Pages

Thursday, May 19, 2011

Standard Deviation

Standard deviation is a statistical term that provides a good indication of volatility. It measures how widely values (closing prices for instance) are dispersed from the average. Dispersion is difference between the actual value (closing price) and the average value (mean closing price). The larger the difference between the closing prices and the average price, the higher the standard deviation will be and the higher the volatility. The closer the closing prices are to the average price, the lower the standard deviation and the lower the volatility.
The calculation for the standard deviation is based on the number of periods chosen. 20 days, which represents about a month, is a popular number of periods to use and will be used in the example below.
The steps for a 20-period standard deviation formula are as follows:
  1. Calculate the mean price. Sum the 20 periods and divide by 20. This is also the average price over 20 periods. (2246.06/20 = 112.30)
  2. For each period, subtract the mean price from the close. This gives us the deviation for each period (-3.30, -9.24….).
  3. Square each period's deviation (10.91, 85.38…).
  4. Add together the squared deviations for periods 1 through 20 (921.28).
  5. Divide the sum of the squared deviations by 20 (921.28/20 = 46.06).
  6. Calculate the square root of the sum of the squared deviations. The square root of 46.06 equals 6.787.
The standard deviation for the 20 periods is 6.787.


No comments:

Post a Comment