![]() |
The calculation of the standard deviation is reasonably complex, but don't worry - good stock analysis programs will be able to do the necessary calculations for you. However, I feel it's alway nice to know exactly how to calculate these things as it helps to understand the inner workings and background of how the figures are calculated. The mathematical formula is as follows:
We'll go through this step by step so don't be put off if it looks horrendous.
Running through the meaning of the signs, the lower case sigma, σ, indicates Standard Deviation. The As with most stock analysis tools, a period of time needs to be decided upon for the sample of data. For an example, we'll use 10 days worth of data. This will give the value of n as 10. We'll be calculating the 10 day Standard Deviation for the UK company, Royal Bank of Scotland Group PLC, at the close of trade on 14 December 2004. The prices for the 10 trading days up to and including the 14 December 2004 were:
The average is (1,645.56+1,663.68+1,671.00+1,667.00+1,655.08+1,643.00+1,670.97+1,678.00+1,711.82+1,700.24) ÷ 10, which equals 1670.635. This figure of 1670.635 is our xbar (that is to say, our
We're nearly there - most of the complex calculations are now done. All we need to do now is the simple stuff. We know that, in our example, the value of n is 10 (this being the number of values in our data sample). So n-1 is 9. We need to divide |
Moving Average | MFI - Money Flow Index | Exponential Moving Average |
RSI - Relative Strength Index | Moving Average Envelopes | ROC - Rate of Change |
Fast and Slow Stoch Stochastics | W%R - Williams' %R | MACD |
Standard Deviation Definition and Usage | Calculation of Standard Deviation | Normal Distribution and Standard Deviation |
Plus more useful stocks and shares information:
Online stockbrokers | Stock analysis software and online services |
Please bookmark Pandacash's Calculating Standard Deviation - Formula for Calculation in Stocks and Shares page for your future reference
© PandaCash