Function to find the probability distribution of a stock price

Click For Summary

Discussion Overview

The discussion revolves around finding a formula to calculate the probability distribution of a stock price after a specified number of days, under the assumption that price changes follow a normal distribution. Participants explore the implications of this assumption, particularly in the context of stock price modeling over time, and consider the use of log-normal distributions as a potential alternative.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant seeks a simplified formula for calculating the probability distribution of a stock price after X days, assuming a normal distribution of price changes with a standard deviation of 3.5% per day.
  • Another participant confirms that the probability distribution at the end of one day is a normal distribution with a mean equal to the morning's value and a standard deviation of 3.5% of that value.
  • Concerns are raised about the dependency of the standard deviation for subsequent days on the values drawn from previous distributions, suggesting that a log-normal distribution might be more appropriate.
  • A mathematical approximation for the final standard deviation after n days is proposed, but it is noted that this approximation becomes skewed as the number of days increases.
  • One participant explains the transformation of a normal distribution to a log-normal distribution, discussing the implications of summing percentage changes and how this affects the resulting distribution.
  • Another participant challenges the assumption that stock prices follow a log-normal distribution, stating that stock prices are not lognormal and returns are not normal, questioning the overall approach being taken.

Areas of Agreement / Disagreement

Participants express differing views on the appropriateness of using normal versus log-normal distributions for modeling stock prices. There is no consensus on the best approach, and the discussion remains unresolved regarding the validity of the assumptions made.

Contextual Notes

There are limitations in the assumptions made about the distributions, particularly regarding the nature of stock price movements and the mathematical derivations involved. The discussion highlights the complexity and potential inaccuracies in modeling stock prices using these distributions.

beamthegreat
Messages
116
Reaction score
7
Hi all. I'm trying to find a formula that will calculate the probability distribution of a stock price after X days, using the assumption that the price change follows a normal distribution. In the spreadsheet, you can see the simulation I've made of the probability distribution of the price of a stock that is initially at $100 after 252 days (1 trading year, using the assumption that the price moves with an SD of 3.5% per day)

Can someone please direct me to the simplified formula I can use to calculate this? I'm certain this has been done before.

Thanks!

Link: https://docs.google.com/spreadsheets/d/1beooSijC0OJ4uBfC_a-dxveeplFmfTBTiy4QoIhbC28/edit?usp=sharing
 
Physics news on Phys.org
beamthegreat said:
Hi all. I'm trying to find a formula that will calculate the probability distribution of a stock price after X days, using the assumption that the price change follows a normal distribution. In the spreadsheet, you can see the simulation I've made of the probability distribution of the price of a stock that is initially at $100 after 252 days (1 trading year, using the assumption that the price moves with an SD of 3.5% per day)
So the idea is that the probability distribution at the end of one day is a normal distribution with mean equal to the morning's value and standard deviation equal to 3.5 percent of the morning's value? And that the distribution at the end of 252 days is the result of iterating this procedure 252 times?

The obvious difficulty is that the standard deviation for the second day's normal distribution will depend on the value of the sample drawn from the first day's distribution. The obvious remediation would be to use a log-normal distribution. Sum up 252 of those and take the anti-log.

https://en.wikipedia.org/wiki/Log-normal_distribution

[As an bonus, the log normal distribution is not obviously impossible. The normal distribution is obviously impossible since the left hand tail has a non-zero probability for negative prices]
 
  • Like
Likes   Reactions: mfb
jbriggs444 said:
So the idea is that the probability distribution at the end of one day is a normal distribution with mean equal to the morning's value and standard deviation equal to 3.5 percent of the morning's value?

That is correct.

jbriggs444 said:
The obvious difficulty is that the standard deviation for the second day's normal distribution will depend on the value of the sample drawn from the first day's distribution. The obvious remediation would be to use a log-normal distribution. Sum up 252 of those and take the anti-log.

I got the gist of it, but I don't have sufficient knowledge of mathematics to derive the expression myself. I tried approximating it with a normal distribution using the following equation to find the final SD after n days, which is pretty accurate if n is small, but the distribution becomes increasingly skewed as the number of days increases: ##SD_{final} = \sqrt {nSD_{initial}^2}##

I have no idea how to use the log-normal distribution to remediate this. Any help will be appreciated.
 
beamthegreat said:
That is correct.
I got the gist of it, but I don't have sufficient knowledge of mathematics to derive the expression myself. I tried approximating it with a normal distribution using the following equation to find the final SD after n days, which is pretty accurate if n is small, but the distribution becomes increasingly skewed as the number of days increases: ##SD_{final} = \sqrt {nSD_{initial}^2}##

I have no idea how to use the log-normal distribution to remediate this. Any help will be appreciated.
I've never used one either, but the principle seems simple enough.

With a normal distribution, you'd be looking at a distribution of percentage growth which is centered on 0% growth with standard deviation 3.5%. So we are talking about a bell shaped curve roughly from 96.5% to 103.5% of the morning's starting value.

If we represent those values as natural logs, that's ln(96.5%) to ln(103.5%). Using the small log approximation, that's about -0.035 to +0.035. If precision is important, you could transform the normal distribution more carefully, taking the natural log of every value.

Pretend for the moment that the resulting distribution is approximately normal. So we have an estimated distribution with mean 0 and standard deviation approximately 0.035. But after summing with itself 252 times, the result will be a lot closer to normal. So we estimate the true distribution after 252 days as a normal distribution with mean = 252 times 0 and standard deviation = ##\sqrt{252}## times 0.035. The standard deviation of this will be around 0.55 -- corresponding to a rise or fall by a factor of ##e^{0.55}## ~= 1.73 in price.

Rescale this normal distribution by taking the exponential of each point and you have your expected final distribution. I do not expect that this will be a normal distribution.

Edit: It is gratifying to see that Wiki makes essentially the same points:

Occurrence and applications[edit]

The log-normal distribution is important in the description of natural phenomena. This follows, because many natural growth processes are driven by the accumulation of many small percentage changes. These become additive on a log scale. If the effect of anyone change is negligible, the central limit theorem says that the distribution of their sum is more nearly normal than that of the summands. When back-transformed onto the original scale, it makes the distribution of sizes approximately log-normal (though if the standard deviation is sufficiently small, the normal distribution can be an adequate approximation).
 
Last edited:
beamthegreat said:
That is correct.
I got the gist of it, but I don't have sufficient knowledge of mathematics to derive the expression myself. I tried approximating it with a normal distribution using the following equation to find the final SD after n days, which is pretty accurate if n is small, but the distribution becomes increasingly skewed as the number of days increases: ##SD_{final} = \sqrt {nSD_{initial}^2}##

I have no idea how to use the log-normal distribution to remediate this. Any help will be appreciated.
Google "lognormal distribution".
 
Stock prices are not lognormal, returns are not normal. What are you trying to do with this?
 

Similar threads

  • · Replies 24 ·
Replies
24
Views
4K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 7 ·
Replies
7
Views
2K
  • · Replies 20 ·
Replies
20
Views
5K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 13 ·
Replies
13
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K