Skip to content

Mathematics · Ch 13 — Statistics

Standard Deviation of a Continuous Frequency Distribution

13.5.3

Standard Deviation of a Continuous Frequency Distribution

Standard Deviation of a Continuous Frequency Distribution

When you have a continuous frequency distribution — data grouped into class intervals like 30–40, 40–50, and so on — you cannot directly use the raw values because you only know how many observations fall in each interval, not their exact individual values. The standard technique is to convert the continuous distribution into a discrete one by replacing each class interval with its mid-point (the average of the lower and upper class limits). Once you have these mid-points xix_i and their corresponding frequencies fif_i, you treat the distribution exactly as you would a discrete frequency distribution.

So, for a distribution with nn classes, where the ii-th class has mid-point xix_i and frequency fif_i, the total number of observations is

N=∑i=1nfiN = \sum_{i=1}^{n} f_i

and the mean is

xˉ=1N∑i=1nfixi.\bar{x} = \frac{1}{N} \sum_{i=1}^{n} f_i x_i.

The standard deviation σ\sigma is then given by the same formula you used for discrete data:

σ=1N∑i=1nfi(xi−xˉ)2.\sigma = \sqrt{ \frac{1}{N} \sum_{i=1}^{n} f_i (x_i - \bar{x})^2 }.

This is the direct definition. But as you will see, there is a more convenient formula that avoids calculating each deviation (xi−xˉ)(x_i - \bar{x}) separately.

Watch out

A common mistake is to forget that NN is the sum of frequencies, not the number of classes. Always compute N=∑fiN = \sum f_i first.


Another Formula for Standard Deviation (The Computational Formula)

The direct formula σ2=1N∑fi(xi−xˉ)2\sigma^2 = \frac{1}{N} \sum f_i (x_i - \bar{x})^2 requires you to first find xˉ\bar{x}, then compute each squared deviation. The textbook derives an algebraically equivalent formula that works directly with xix_i and xi2x_i^2, which is often easier for calculations — especially when the mean is not a nice round number.

Start with the definition of variance:

σ2=1N∑i=1nfi(xi−xˉ)2.\sigma^2 = \frac{1}{N} \sum_{i=1}^{n} f_i (x_i - \bar{x})^2.

Expand the square:

σ2=1N∑i=1nfi(xi2−2xixˉ+xˉ2).\sigma^2 = \frac{1}{N} \sum_{i=1}^{n} f_i \left( x_i^2 - 2 x_i \bar{x} + \bar{x}^2 \right).

Now split the sum into three separate sums:

σ2=1N[∑i=1nfixi2−2xˉ∑i=1nfixi+xˉ2∑i=1nfi].\sigma^2 = \frac{1}{N} \left[ \sum_{i=1}^{n} f_i x_i^2 - 2\bar{x} \sum_{i=1}^{n} f_i x_i + \bar{x}^2 \sum_{i=1}^{n} f_i \right].

Recall that ∑fi=N\sum f_i = N and ∑fixi=Nxˉ\sum f_i x_i = N \bar{x}. Substitute these in:

σ2=1N[∑fixi2−2xˉ(Nxˉ)+xˉ2(N)].\sigma^2 = \frac{1}{N} \left[ \sum f_i x_i^2 - 2\bar{x} (N \bar{x}) + \bar{x}^2 (N) \right].

Simplify the terms inside the brackets:

σ2=1N[∑fixi2−2Nxˉ2+Nxˉ2]=1N[∑fixi2−Nxˉ2].\sigma^2 = \frac{1}{N} \left[ \sum f_i x_i^2 - 2N \bar{x}^2 + N \bar{x}^2 \right] = \frac{1}{N} \left[ \sum f_i x_i^2 - N \bar{x}^2 \right].

Now replace xˉ\bar{x} with 1N∑fixi\frac{1}{N} \sum f_i x_i:

σ2=1N[∑fixi2−N(1N∑fixi)2]=1N[∑fixi2−(∑fixi)2N].\sigma^2 = \frac{1}{N} \left[ \sum f_i x_i^2 - N \left( \frac{1}{N} \sum f_i x_i \right)^2 \right] = \frac{1}{N} \left[ \sum f_i x_i^2 - \frac{(\sum f_i x_i)^2}{N} \right].

Multiply through by 1N\frac{1}{N}:

σ2=1N∑fixi2−(1N∑fixi)2.\sigma^2 = \frac{1}{N} \sum f_i x_i^2 - \left( \frac{1}{N} \sum f_i x_i \right)^2.

This is the variance. Taking the square root gives the standard deviation:

σ=1N∑i=1nfixi2−(1N∑i=1nfixi)2.\sigma = \sqrt{ \frac{1}{N} \sum_{i=1}^{n} f_i x_i^2 - \left( \frac{1}{N} \sum_{i=1}^{n} f_i x_i \right)^2 }.

The textbook writes this in an equivalent, slightly different form that is also very common:

σ=1NN∑fixi2−(∑fixi)2.\sigma = \frac{1}{N}\sqrt{ N \sum f_i x_i^2 - \left( \sum f_i x_i \right)^2 }.

Both are the same — the second version just clears the denominators inside the root and then divides by NN. You can use whichever you find easier to remember.

Tip

This formula is often called the step-deviation formula when you also shift the origin (subtract an assumed mean) and change the scale (divide by class width). But the version above is the basic computational formula — it only uses xix_i, xi2x_i^2, and fif_i. No need to compute xˉ\bar{x} separately.


Worked Example 10 (from the textbook)

Problem: Calculate the mean, variance, and standard deviation for the following distribution:

Class30–4040–5050–6060–7070–8080–9090–100
Frequency371215832

Step 1: Find mid-points and construct the table.

The mid-point xix_i of a class is lower limit+upper limit2\frac{\text{lower limit} + \text{upper limit}}{2}. For 30–40, xi=35x_i = 35; for 40–50, xi=45x_i = 45; and so on.

Classfif_ixix_ifixif_i x_i(xi−xˉ)2(x_i - \bar{x})^2fi(xi−xˉ)2f_i (x_i - \bar{x})^2
30–403351057292187
40–507453152892023
50–60125566049588
60–7015659759135
70–808756001691352
80–903852555291587
90–10029519010892178
Total50310010050

Step 2: Compute the mean.

xˉ=1N∑fixi=310050=62.\bar{x} = \frac{1}{N} \sum f_i x_i = \frac{3100}{50} = 62.

Step 3: Compute variance using the direct formula.

σ2=1N∑fi(xi−xˉ)2=150×10050=201.\sigma^2 = \frac{1}{N} \sum f_i (x_i - \bar{x})^2 = \frac{1}{50} \times 10050 = 201.

Step 4: Standard deviation.

σ=201≈14.18.\sigma = \sqrt{201} \approx 14.18.

Note

The squared deviations (xi−xˉ)2(x_i - \bar{x})^2 in the table were computed using xˉ=62\bar{x} = 62. For example, (35−62)2=(−27)2=729(35 - 62)^2 = (-27)^2 = 729, (45−62)2=(−17)2=289(45 - 62)^2 = (-17)^2 = 289, and so on.


Worked Example 11 (using the computational formula)

Problem: Find the standard deviation for the following data:

xix_i38131823
fif_i71015106

Here the data is already given as mid-points (discrete), so the same formula applies directly.

Step 1: Construct the table with xi2x_i^2 and fixi2f_i x_i^2. …

Table 13.9Mean, variance and standard deviation of a continuous frequency distribution
ClassFrequency (fi)(f_i)Mid-point (xi)(x_i)fixif_ix_i(xi−xˉ)2(x_i-\bar{x})^2fi(xi−xˉ)2f_i(x_i-\bar{x})^2
30-403351057292187
40-507453152892023
50-60125566049588
60-7015659759135
70-808756001691352
80-903852555291587
Table 13.10Standard deviation using the $\sum f_ix_i^2$ formula
xix_ifif_ifixif_ix_ixi2x_i^2fixi2f_ix_i^2
3721963
8108064640
13151951692535
18101803243240