Frequency-Weighted Formulas

When values repeat, weight every deviation by its frequency:

Key Point (Discrete frequency distribution): with N=fiN = \sum f_i,

xˉ=1Nfixi,σ=1Nfi(xixˉ)2\bar{x} = \frac{1}{N}\sum f_ix_i, \qquad \sigma = \sqrt{\frac{1}{N}\sum f_i(x_i - \bar{x})^2}

Dispersion formulas for ungrouped discrete and continuous data

Worked check: xi=4,8,11,17,20,24,32x_i = 4, 8, 11, 17, 20, 24, 32 with fi=3,5,9,5,4,3,1f_i = 3, 5, 9, 5, 4, 3, 1: N=30N = 30, fixi=420\sum f_ix_i = 420 so xˉ=14\bar{x} = 14; fi(xixˉ)2=1374\sum f_i(x_i - \bar{x})^2 = 1374 so σ2=45.8\sigma^2 = 45.8 and σ6.77\sigma \approx 6.77.

Continuous frequency distributions: replace each class by its midpoint and proceed exactly as in the discrete case. (Gapped classes get the half-unit continuity correction first.)

There is also a frequency version of the computing identity:

σ2=1Nfixi2(1Nfixi)2=1N2[Nfixi2(fixi)2]\sigma^2 = \frac{1}{N}\sum f_ix_i^2 - \left(\frac{1}{N}\sum f_ix_i\right)^2 = \frac{1}{N^2}\left[N\sum f_ix_i^2 - \left(\sum f_ix_i\right)^2\right]

useful when the xix_i are small; when they are large, the shortcut method below is faster still.

The Shortcut (Step-Deviation) Method

Large midpoints make direct computation tedious. Shift by an assumed mean AA (usually a middle midpoint) and shrink by the class width hh:

Key Point (Step deviations): with yi=xiAhy_i = \frac{x_i - A}{h},

xˉ=A+hyˉσx=hσyσ2=h2N2[Nfiyi2(fiyi)2]\bar{x} = A + h\bar{y} \qquad \sigma_x = h\,\sigma_y \qquad \sigma^2 = \frac{h^2}{N^2}\left[N\sum f_iy_i^2 - \left(\sum f_iy_i\right)^2\right]

Step deviation shortcut formulas with worked example

Why it works: shifting every observation by AA moves the mean but leaves the spread untouched; dividing by hh scales the spread down by exactly hh. So the tiny yiy_i (typically 3,2,1,0,1,2,3-3, -2, -1, 0, 1, 2, 3) carry all the information, and one multiplication at the end converts back.

Worked example (classes 30-40 to 90-100 with frequencies 3, 7, 12, 15, 8, 3, 2; A=65A = 65, h=10h = 10): the table gives fiyi=15\sum f_iy_i = -15 and fiyi2=105\sum f_iy_i^2 = 105, so

xˉ=651550×10=62,σ2=1002500[50(105)(15)2]=201,σ14.18\bar{x} = 65 - \frac{15}{50} \times 10 = 62, \qquad \sigma^2 = \frac{100}{2500}\left[50(105) - (-15)^2\right] = 201, \qquad \sigma \approx 14.18

[Board Tip] Choose AA as the midpoint of a central class so the yiy_i straddle zero — the sums stay small and sign errors stay visible. And remember the final multiply by hh for σ\sigma (or h2h^2 for σ2\sigma^2): forgetting it is the single most common shortcut-method error.

Solved Examples

Example 1: Discrete frequency distribution

Find the variance and SD for xix_i: 4, 8, 11, 17, 20, 24, 32 with fif_i: 3, 5, 9, 5, 4, 3, 1.

Solution:

Step 1 — Weighted mean. N=30N = 30, fixi=420\sum f_ix_i = 420: xˉ=14\bar{x} = 14.

Step 2 — Weighted squared deviations. fi(xi14)2=1374\sum f_i(x_i - 14)^2 = 1374.

Step 3 — Divide and root. σ2=137430=45.8\sigma^2 = \frac{1374}{30} = 45.8; σ6.77\sigma \approx 6.77.

Dispersion formulas for ungrouped discrete and continuous data

Takeaway: The frequency column multiplies EVERY squared deviation — a five-column table (xix_i, fif_i, fixif_ix_i, xixˉx_i - \bar{x}, fi(xixˉ)2f_i(x_i-\bar{x})^2) keeps it honest.

Example 2: Mean and variance, discrete data

xix_i: 6, 10, 14, 18, 24, 28, 30 with fif_i: 2, 4, 7, 12, 8, 4, 3.

Solution:

Step 1 — Mean. N=40N = 40, fixi=760\sum f_ix_i = 760: xˉ=19\bar{x} = 19.

Step 2 — Weighted squares. fi(xi19)2=1736\sum f_i(x_i - 19)^2 = 1736.

Step 3 — Divide. σ2=173640=43.4\sigma^2 = \frac{1736}{40} = 43.4.

Takeaway: A round mean (19 here) is the designer's gift — deviations stay integer and the table stays clean.

Example 3: Decimals welcome

xix_i: 92, 93, 97, 98, 102, 104, 109 with fif_i: 3, 2, 3, 2, 6, 3, 3.

Solution:

Step 1 — Mean. N=22N = 22, fixi=2200\sum f_ix_i = 2200: xˉ=100\bar{x} = 100.

Step 2 — Weighted squares. fi(xi100)2=3(64)+2(49)+3(9)+2(4)+6(4)+3(16)+3(81)=640\sum f_i(x_i - 100)^2 = 3(64) + 2(49) + 3(9) + 2(4) + 6(4) + 3(16) + 3(81) = 640.

Step 3 — Divide. σ2=6402229.09\sigma^2 = \frac{640}{22} \approx 29.09.

Takeaway: Large xix_i values with a round mean still compute quickly — deviations, not raw values, do the work.

Example 4: Shortcut with h=1h = 1

xix_i: 60 to 68 with fif_i: 2, 1, 12, 29, 25, 12, 10, 4, 5. Find the mean and SD by the shortcut method.

Solution:

Step 1 — Shift by A=64A = 64. Deviations di=xi64d_i = x_i - 64 run 4-4 to 44; N=100N = 100.

Step 2 — The lucky sum. fidi=0\sum f_id_i = 0: xˉ=64+0=64\bar{x} = 64 + 0 = 64 exactly.

Step 3 — Spread. fidi2=286\sum f_id_i^2 = 286: σ2=2861000=2.86\sigma^2 = \frac{286}{100} - 0 = 2.86, σ1.69\sigma \approx 1.69.

Takeaway: With h=1h = 1 the shortcut is a pure shift — and when fidi=0\sum f_id_i = 0, the assumed mean IS the mean.

Example 5: Wide classes

Classes 0-30 up to 180-210 with frequencies 2, 3, 5, 10, 3, 5, 2. Find the mean and variance.

Solution:

Step 1 — Set up steps. Midpoints 15, 45, up to 195; A=105A = 105, h=30h = 30, N=30N = 30.

Step 2 — Small sums. fiyi=2\sum f_iy_i = 2, fiyi2=76\sum f_iy_i^2 = 76: xˉ=105+230×30=107\bar{x} = 105 + \frac{2}{30} \times 30 = 107.

Step 3 — Variance. σ2=302302[30(76)22]=22804=2276\sigma^2 = \frac{30^2}{30^2}\left[30(76) - 2^2\right] = 2280 - 4 = 2276.

Takeaway: With h=30h = 30 the raw numbers would be enormous — the shortcut trades them for single digits and one rescale.

Example 6: A compact continuous table

Classes 0-10 up to 40-50 with frequencies 5, 8, 15, 16, 6. Find the mean and variance.

Solution:

Step 1 — Midpoints. 5,15,25,35,455, 15, 25, 35, 45; N=50N = 50.

Step 2 — Mean. fixi=1350\sum f_ix_i = 1350: xˉ=27\bar{x} = 27.

Step 3 — Weighted squares. fi(xi27)2=5(484)+8(144)+15(4)+16(64)+6(324)=6600\sum f_i(x_i - 27)^2 = 5(484) + 8(144) + 15(4) + 16(64) + 6(324) = 6600: σ2=132\sigma^2 = 132.

Takeaway: Direct computation stays feasible when midpoints are small — the shortcut is a choice, not a ritual.

Example 7: The full shortcut

Classes 30-40 up to 90-100 with frequencies 3, 7, 12, 15, 8, 3, 2. Find the mean, variance and SD.

Solution:

Step 1 — Steps about the middle. A=65A = 65, h=10h = 10, N=50N = 50: the yiy_i run 3-3 to 33.

Step 2 — Sums. fiyi=15\sum f_iy_i = -15, fiyi2=105\sum f_iy_i^2 = 105: xˉ=65+1550×10=62\bar{x} = 65 + \frac{-15}{50} \times 10 = 62.

Step 3 — Variance and SD. σ2=102502[50(105)(15)2]=1002500(5250225)=201\sigma^2 = \frac{10^2}{50^2}\left[50(105) - (-15)^2\right] = \frac{100}{2500}(5250 - 225) = 201: σ=20114.18\sigma = \sqrt{201} \approx 14.18.

Step deviation shortcut formulas with worked example

Takeaway: Note (15)2=+225(-15)^2 = +225 is SUBTRACTED — squaring the negative sum then subtracting it is where sign discipline pays.

Example 8: Heights by shortcut

Heights (cm): classes 70-75 up to 110-115 with frequencies 3, 4, 7, 7, 15, 9, 6, 6, 3.

Solution:

Step 1 — Steps. Midpoints 72.5 up to 112.5; A=92.5A = 92.5, h=5h = 5, N=60N = 60.

Step 2 — Mean. fiyi=6\sum f_iy_i = 6: xˉ=92.5+660×5=93\bar{x} = 92.5 + \frac{6}{60} \times 5 = 93 cm.

Step 3 — Variance. fiyi2=254\sum f_iy_i^2 = 254: σ2=253600[60(254)36]=25×152043600105.58\sigma^2 = \frac{25}{3600}\left[60(254) - 36\right] = \frac{25 \times 15204}{3600} \approx 105.58: σ10.27\sigma \approx 10.27 cm.

Takeaway: Half-unit midpoints (72.5, 77.5) vanish into clean integers under the step substitution — exactly what it is for.

Example 9: Continuity correction first

Diameters (mm): 33-36, 37-40, 41-44, 45-48, 49-52 with frequencies 15, 17, 21, 22, 25.

Solution:

Step 1 — Close the gaps. Classes become 32.5-36.5 and so on; midpoints 34.5,38.5,42.5,46.5,50.534.5, 38.5, 42.5, 46.5, 50.5; N=100N = 100.

Step 2 — Steps. A=42.5A = 42.5, h=4h = 4: fiyi=25\sum f_iy_i = 25, fiyi2=199\sum f_iy_i^2 = 199; xˉ=42.5+25100×4=43.5\bar{x} = 42.5 + \frac{25}{100} \times 4 = 43.5 mm.

Step 3 — Variance. σ2=1610000[100(199)625]=16×192751000030.84\sigma^2 = \frac{16}{10000}\left[100(199) - 625\right] = \frac{16 \times 19275}{10000} \approx 30.84: σ5.55\sigma \approx 5.55 mm.

Takeaway: Gapped classes get the half-unit correction BEFORE anything else — midpoints shift with it, and so does every downstream number.

Example 10: Reading the shortcut backwards

A distribution has h=10h = 10, N=40N = 40, fiyi=8\sum f_iy_i = 8, fiyi2=50\sum f_iy_i^2 = 50 about A=55A = 55. Find the mean and variance.

Solution:

Step 1 — Mean. xˉ=55+840×10=57\bar{x} = 55 + \frac{8}{40} \times 10 = 57.

Step 2 — Variance. σ2=1001600[40(50)82]=100×19361600=121\sigma^2 = \frac{100}{1600}\left[40(50) - 8^2\right] = \frac{100 \times 1936}{1600} = 121.

Step 3 — SD. σ=11\sigma = 11.

Takeaway: The four summary numbers (A,h,fiyi,fiyi2)(A, h, \sum f_iy_i, \sum f_iy_i^2) carry the whole distribution's mean and spread — JEE often hands you exactly these.