
138 4b: Dispersion ⏐ Part B Summarising and analysing data
4.2 Calculation of the variance for ungrouped data
Step 1
Difference between value and mean x –
x
Step 2 Square of the difference (x –
x
)
2
Step 3 Sum of the squares of the difference ∑(x – x)
2
Step 4 Average of the sum (= variance = σ
2
)
n
)xx(
2
−∑
4.3 Calculation of the variance for grouped data
Step 1
Difference between value and mean (x – x)
Step 2 Square of the difference (x – x)
2
Step 3 Sum of the squares of the difference ∑f(x –
x
)
2
Step 4 Average of the sum (= variance = σ
2
)
)
f
xxf
2
∑
−∑
4.4 The standard deviation
The units of the variance are the square of those in the original data because we squared the differences. We
therefore need to take the square root to get back to the units of the original data.
The standard deviation = square
root of the variance.
The standard deviation measures the spread of data around the mean. In general, the larger the standard deviation
value in relation to the mean, the more dispersed the data.
The standard deviation, which is the square root of the variance, is the most important measure of spread used in
statistics. Make sure you understand how to calculate the standard deviation of a set of data.
There are a number of formulae which you may use to calculate the standard deviation; use whichever one you feel
comfortable with. The standard deviation formulae provided in your assessment are shown as follows.
Standard deviation (for ungrouped data) =
2
(x x)
n
∑−
=
2
2
x
x
n
∑
−
Standard deviation (for grouped data) =
2
f(x x)
f
∑−
∑
=
2
2
fx fx
ff
∑∑
⎛⎞
−
⎜⎟
∑∑
⎝⎠
The key to these calculations is to set up a table with totals as shown below and then use the totals in the formulae
given to you.
4.5 Example: The variance and the standard deviation
Calculate the variance and the standard deviation of the frequency distribution in Paragraph 3.3
Assessment
formula
FA
T F
RWAR