PracticeVideosBlogFlashcards

9.1 Mean, Median, Mode, Range, Mean Deviation & Standard Deviation

Key Takeaways

  • Arithmetic mean represents the first moment about the origin; calculation methods include direct (xˉ=∑fixiN\bar{x} = \frac{\sum f_i x_i}{N}), assumed mean (A+∑fidiNA + \frac{\sum f_i d_i}{N}), and step-deviation (A+h∑fiuiNA + h \frac{\sum f_i u_i}{N}).

  • Median partitions sorted data into equal halves; for grouped frequency distributions, M=L+(N/2−CFf)hM = L + \left(\frac{N/2 - CF}{f}\right)h, using the preceding cumulative frequency (CFCF).

  • Grouped median and mode formulas estimate central values from class frequencies. Pearson’s mode ≈ 3 median - 2 mean relation is an approximation for suitable moderately skewed distributions.

  • The range measures extremes; mean absolute deviation is minimized at a median; population variance averages squared deviations from the mean.

  • For y = ax + b with nonzero a, mean, median and modes transform with signed a and b; SD scales by |a| and variance by a². Adding a constant leaves dispersion unchanged.

Last updated: October 2026

Measures of Central Tendency

Measures of central tendency identify a single representative central value around which numerical observations cluster.

+-----------------------------------------------------------------------------+
|                       MEASURES OF CENTRAL TENDENCY                          |
+-----------------------------------------------------------------------------+
| ARITHMETIC MEAN (x̄): Mathematical centroid; sensitive to extreme outliers.  |
| MEDIAN (M):          Positional midpoint; less sensitive to outlier magnitude.     |
| MODE (Z):            Point of maximum frequency density; practical peak.    |
| EMPIRICAL RULE:      Mode approximately 3(Median) - 2(Mean) [empirical estimate]    |
+-----------------------------------------------------------------------------+

1. Arithmetic Mean (xˉ\bar{x})

The arithmetic mean is the quotient of the sum of all observations divided by the total number of observations.

  • Raw (Ungrouped) Data:
xˉ=∑i=1nxin\bar{x} = \frac{\sum_{i=1}^n x_i}{n}
  • Discrete Frequency Distribution:
xˉ=∑i=1kfixi∑i=1kfi=∑fixiN(where N=∑fi)\bar{x} = \frac{\sum_{i=1}^k f_i x_i}{\sum_{i=1}^k f_i} = \frac{\sum f_i x_i}{N} \quad (\text{where } N = \sum f_i)
  • Grouped Continuous Frequency Distribution: In grouped data, each class interval is represented by its class mark (midpoint) xi=Lower limit+Upper limit2x_i = \frac{\text{Lower limit} + \text{Upper limit}}{2}. Three methods streamline calculation:
MethodFormulaOperational Application / Advantage
Direct Methodxˉ=∑fixiN\bar{x} = \frac{\sum f_i x_i}{N}Suitable when midpoints xix_i and frequencies fif_i are small integers
Assumed Mean Methodxˉ=A+∑fidiN\bar{x} = A + \frac{\sum f_i d_i}{N}Sets arbitrary mean AA; deviations di=xi−Ad_i = x_i - A reduce arithmetic scale
Step-Deviation Methodxˉ=A+h(∑fiuiN)\bar{x} = A + h \left(\frac{\sum f_i u_i}{N}\right)Class width hh; reduced variable ui=xi−Ahu_i = \frac{x_i - A}{h}; eliminates large products
  • Combined Mean Formula: If two groups contain n1n_1 and n2n_2 observations with respective means xˉ1\bar{x}_1 and xˉ2\bar{x}_2, their pooled composite mean is:
xˉ12=n1xˉ1+n2xˉ2n1+n2\bar{x}_{12} = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2}

Note

First Moment Property: The algebraic sum of deviations of all observations from their arithmetic mean is always identically zero: ∑(xi−xˉ)=0\sum (x_i - \bar{x}) = 0. Consequently, ∑fi(xi−xˉ)=0\sum f_i (x_i - \bar{x}) = 0.

2. Median (MM)

The median is a central value of ordered data: at least half the observations are no greater than it and at least half are no less than it. With ties, there need not be exactly half strictly below or above it.

  • Ungrouped Data: Arrange nn values in ascending order:
    • If nn is odd: Median=(n+12)-th observation\text{Median} = \left(\frac{n + 1}{2}\right)\text{-th observation}.
    • If nn is even: Median=12[(n2)-th+(n2+1)-th observation]\text{Median} = \frac{1}{2} \left[ \left(\frac{n}{2}\right)\text{-th} + \left(\frac{n}{2} + 1\right)\text{-th observation} \right].
  • Grouped Continuous Distribution:
    1. Construct the cumulative frequency (CFCF) distribution.
    2. Determine N2\frac{N}{2}, where N=∑fiN = \sum f_i.
    3. Locate the median class: the class interval whose cumulative frequency just exceeds or equals N2\frac{N}{2}.
    4. Apply the interpolation formula:
M=L+(N2−CFf)×hM = L + \left( \frac{\frac{N}{2} - CF}{f} \right) \times h

Where:

  • L=Lower limit of the median classL = \text{Lower limit of the median class}
  • N=Total frequency (∑fi)N = \text{Total frequency } (\sum f_i)
  • CF=Cumulative frequency of the class immediately PRECEDING the median classCF = \text{Cumulative frequency of the class immediately PRECEDING the median class}
  • f=Simple frequency of the median class itselff = \text{Simple frequency of the median class itself}
  • h=Class width of the median classh = \text{Class width of the median class}

3. Mode (ZZ)

The mode is the value that occurs with the highest frequency in a dataset.

  • Grouped Continuous Distribution:
    1. Locate the modal class: the class interval possessing the highest frequency (f1f_1).
    2. Apply the modal formula:
Mode=L+(f1−f02f1−f0−f2)×h\text{Mode} = L + \left( \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \right) \times h

Where:

  • L=Lower limit of the modal classL = \text{Lower limit of the modal class}
  • f1=Frequency of the modal classf_1 = \text{Frequency of the modal class}
  • f0=Frequency of the class immediately PRECEDING the modal classf_0 = \text{Frequency of the class immediately PRECEDING the modal class}
  • f2=Frequency of the class immediately SUCCEEDING the modal classf_2 = \text{Frequency of the class immediately SUCCEEDING the modal class}
  • h=Class width of the modal classh = \text{Class width of the modal class}

4. Karl Pearson's Empirical Skewness Relationship

For moderately asymmetrical (unimodal) frequency distributions, the three central tendencies can approximately satisfy the empirical relationship:

Mode≈3Median−2Mean\text{Mode} \approx 3\text{Median} - 2\text{Mean}

Alternative algebraic expressions useful for rapid CBT substitutions:

  • Mean−Mode≈3(Mean−Median)\text{Mean} - \text{Mode} \approx 3(\text{Mean} - \text{Median})
  • Median≈13Mode+23Mean\text{Median} \approx \frac{1}{3}\text{Mode} + \frac{2}{3}\text{Mean}
Symmetric unimodal examples:    Mean = Median = Mode
Typical unimodal right-tail examples: Mean > Median > Mode (not universal)
Typical unimodal left-tail examples: Mode > Median > Mean (not universal)

Measures of Dispersion (Spread)

Central tendency describes the location of data; dispersion measures the degree of scatter or variability of individual values around the central point.

Absolute measureRelative measure or unit qualification
RangeCoefficient of range divides range by maximum plus minimum, when meaningful and nonzero
Mean absolute deviationA relative coefficient divides by the chosen central value, when meaningful and nonzero
VarianceSquared data units; it is not a dimensionless measure
Standard deviationOriginal data units; CV divides SD by a meaningful positive mean and expresses a percentage

1. Range & Coefficient of Range

  • Absolute Range: Difference between extreme values:
Range=Xmax⁡−Xmin⁡\text{Range} = X_{\max} - X_{\min}
  • Coefficient of Range (Relative):
Coefficient of Range=Xmax⁡−Xmin⁡Xmax⁡+Xmin⁡\text{Coefficient of Range} = \frac{X_{\max} - X_{\min}}{X_{\max} + X_{\min}}

2. Mean Deviation (MDMD)

The arithmetic average of the absolute deviations taken from a central value (mean or median):

  • About Mean (xˉ\bar{x}):
MD(xˉ)=∑i=1n∣xi−xˉ∣n=∑fi∣xi−xˉ∣NMD(\bar{x}) = \frac{\sum_{i=1}^n |x_i - \bar{x}|}{n} = \frac{\sum f_i |x_i - \bar{x}|}{N}
  • About Median (MM):
MD(M)=∑i=1n∣xi−M∣n=∑fi∣xi−M∣NMD(M) = \frac{\sum_{i=1}^n |x_i - M|}{n} = \frac{\sum f_i |x_i - M|}{N}

Important

Minimal Property of Mean Deviation: The sum of absolute deviations ∑∣xi−A∣\sum |x_i - A| is minimum when deviations are taken about the Median (A=MA = M). Hence, MD(M)≤MD(xˉ)MD(M) \le MD(\bar{x}).

3. Variance (σ2\sigma^2) and Standard Deviation (σ\sigma)

Standard deviation is the nonnegative square root of the arithmetic mean of squared deviations taken from the arithmetic mean (the second central moment).

  • Variance Formula for Raw Data:
σ2=∑i=1n(xi−xˉ)2n=∑xi2n−(xˉ)2\sigma^2 = \frac{\sum_{i=1}^n (x_i - \bar{x})^2}{n} = \frac{\sum x_i^2}{n} - (\bar{x})^2
  • Grouped Continuous Data (Shortcut Method):
σ=∑fidi2N−(∑fidiN)2×h(where di=xi−Ah)\sigma = \sqrt{ \frac{\sum f_i d_i^2}{N} - \left( \frac{\sum f_i d_i}{N} \right)^2 } \times h \quad \left( \text{where } d_i = \frac{x_i - A}{h} \right)
  • Standard Deviation (σ\sigma):
σ=σ2\sigma = \sqrt{\sigma^2}

4. Coefficient of Variation (CVCV)

Developed by Karl Pearson, the Coefficient of Variation expresses dispersion as a percentage of the mean:

CV=σxˉ×100%CV = \frac{\sigma}{\bar{x}} \times 100\%
  • Consistency Rule: When comparing two series (e.g., punctuality of two railway divisions):
    • Lower CV  ⟹  CV \implies Higher consistency, greater uniformity, more stable operation.
    • Higher CV  ⟹  CV \implies Greater variability, less consistency.

Mathematical Transformations: Effects of Shifting & Scaling

Examinees frequently encounter questions where every observation in a dataset undergoes a linear algebraic transformation yi=a⋅xi+by_i = a \cdot x_i + b, where bb represents a change of origin (shift) and aa represents a change of scale (multiplication).

Statistical ParameterOriginal Data (xix_i)Shifted Data (xi+bx_i + b)Scaled Data (a⋅xia \cdot x_i)Combined Linear Transform (axi+ba x_i + b)
Mean (xˉ\bar{x})xˉ\bar{x}xˉ+b\bar{x} + baxˉa \bar{x}axˉ+ba \bar{x} + b
Median (MM)MMM+bM + baMa MaM+ba M + b
Mode (ZZ)ZZZ+bZ + baZa ZaZ+ba Z + b
Range (RR)RRRR (Unchanged!)∣a∣R\lvert a \rvert R∣a∣R\lvert a \rvert R
Mean Deviation (MDMD)MDMDMDMD (Unchanged!)∣a∣MD\lvert a \rvert MD∣a∣MD\lvert a \rvert MD
Standard Deviation (σ\sigma)σ\sigmaσ\sigma (Unchanged!)∣a∣σ\lvert a \rvert \sigma∣a∣σ\lvert a \rvert \sigma
Variance (σ2\sigma^2)σ2\sigma^2σ2\sigma^2 (Unchanged!)a2σ2a^2 \sigma^2a2σ2a^2 \sigma^2

Warning

The Shift-Invariance Trap: Adding or subtracting an arbitrary constant kk shifts the mean, median, and mode by exactly kk. However, the distances between points remain completely unaltered! Therefore, Range, Mean Deviation, Variance, and Standard Deviation are completely unaffected by addition or subtraction of a constant.


Worked Examples

Worked Example 1: Grouped Data Median and Mode of Sectional Running Speeds

Problem: A Section Controller tabulates the recorded operational speeds (in km/h) of 50 freight trains traversing a critical junction section:

Speed Interval (km/h)Number of Trains (fif_i)
10 – 205
20 – 308
30 – 4015
40 – 5012
50 – 6010

Calculate: (a) The Median speed, and (b) The Modal speed.

  • Step 1: Compute Cumulative Frequencies (CFCF):
    • 10−20:f=5,CF=510-20: f = 5, CF = 5
    • 20−30:f=8,CF=5+8=1320-30: f = 8, CF = 5 + 8 = 13
    • 30−40:f=15,CF=13+15=2830-40: f = 15, CF = 13 + 15 = 28
    • 40−50:f=12,CF=28+12=4040-50: f = 12, CF = 28 + 12 = 40
    • 50−60:f=10,CF=40+10=5050-60: f = 10, CF = 40 + 10 = 50 Total frequency N=50N = 50.
  • Step 2: Calculate Median (MM):
    • Half-count: N2=502=25\frac{N}{2} = \frac{50}{2} = 25.
    • The cumulative frequency just exceeding 25 is 28, corresponding to the class 30 – 40.
    • Parameter values: L=30,CF=13,f=15,h=10L = 30, CF = 13, f = 15, h = 10.
    • Substitute into the median interpolation formula:
M=L+(N2−CFf)h=30+(25−1315)×10=30+(1215)×10M = L + \left( \frac{\frac{N}{2} - CF}{f} \right) h = 30 + \left( \frac{25 - 13}{15} \right) \times 10 = 30 + \left( \frac{12}{15} \right) \times 10 M=30+0.8×10=30+8=38.00 km/hM = 30 + 0.8 \times 10 = 30 + 8 = 38.00 \text{ km/h}
  • Step 3: Calculate Mode (ZZ):
    • Highest frequency is f1=15f_1 = 15, situated in class 30 – 40.
    • Preceding frequency f0=8f_0 = 8; Succeeding frequency f2=12f_2 = 12; Lower limit L=30L = 30; Class width h=10h = 10.
    • Substitute into the mode formula:
Mode=L+(f1−f02f1−f0−f2)h=30+(15−82(15)−8−12)×10\text{Mode} = L + \left( \frac{f_1 - f_0}{2f_1 - f_0 - f_2} \right) h = 30 + \left( \frac{15 - 8}{2(15) - 8 - 12} \right) \times 10 Mode=30+(730−20)×10=30+(710)×10=30+7=37.00 km/h\text{Mode} = 30 + \left( \frac{7}{30 - 20} \right) \times 10 = 30 + \left( \frac{7}{10} \right) \times 10 = 30 + 7 = 37.00 \text{ km/h}
  • Conclusion: The grouped-data estimates are median 38.00 km/h and mode 37.00 km/h; they do not recover the exact original observations.

Worked Example 2: Karl Pearson's Empirical Rule and Composite Means

Problem: In one fictional running-time dataset, the mean running time is 54.0054.00 minutes and the median running time is 51.0051.00 minutes. Using Pearson's empirical formula, estimate the mode. In a separate pooling exercise, if Division X (n1=30n_1 = 30 trains, xˉ1=60\bar{x}_1 = 60 minutes) merges operations with Division Y (n2=20n_2 = 20 trains, xˉ2=75\bar{x}_2 = 75 minutes), find the aggregate combined mean.

  • Step 1: Estimate Mode using Pearson's empirical formula:
Mode≈3Median−2Mean\text{Mode} \approx 3\text{Median} - 2\text{Mean} Mode=3(51.00)−2(54.00)=153.00−108.00=45.00 minutes\text{Mode} = 3(51.00) - 2(54.00) = 153.00 - 108.00 = 45.00 \text{ minutes}
  • Step 2: Calculate Combined Mean for merged divisions:
xˉ12=n1xˉ1+n2xˉ2n1+n2=30(60)+20(75)30+20\bar{x}_{12} = \frac{n_1 \bar{x}_1 + n_2 \bar{x}_2}{n_1 + n_2} = \frac{30(60) + 20(75)}{30 + 20} xˉ12=1800+150050=330050=66.00 minutes\bar{x}_{12} = \frac{1800 + 1500}{50} = \frac{3300}{50} = 66.00 \text{ minutes}
  • Conclusion: The estimated mode is 45.00 minutes and the combined mean is 66.00 minutes.

Worked Example 3: Effect of Linear Transformation on Variance and Standard Deviation

Problem: A sample of 12 block section track occupancy times has a mean xˉ=25.0\bar{x} = 25.0 minutes, a standard deviation σ=4.0\sigma = 4.0 minutes, and a variance σ2=16.0 minutes2\sigma^2 = 16.0 \text{ minutes}^2. For a mathematical exercise, transform each recorded value by the algebraic rule:

yi=3xi−10y_i = 3x_i - 10

Determine the new mean (yˉ\bar{y}), new standard deviation (σy\sigma_y), new variance (σy2\sigma_y^2), and the new coefficient of variation (CVyCV_y).

  • Step 1: Compute New Mean (yˉ\bar{y}):
yˉ=3xˉ−10=3(25.0)−10=75.0−10=65.0 minutes\bar{y} = 3\bar{x} - 10 = 3(25.0) - 10 = 75.0 - 10 = 65.0 \text{ minutes}
  • Step 2: Compute New Standard Deviation (σy\sigma_y): Origin shift (−10-10) has zero effect on dispersion. Scale factor is a=3a = 3.
σy=∣a∣×σx=3×4.0=12.0 minutes\sigma_y = |a| \times \sigma_x = 3 \times 4.0 = 12.0 \text{ minutes}
  • Step 3: Compute New Variance (σy2\sigma_y^2):
σy2=a2×σx2=32×16.0=9×16.0=144.0 minutes2\sigma_y^2 = a^2 \times \sigma_x^2 = 3^2 \times 16.0 = 9 \times 16.0 = 144.0 \text{ minutes}^2

(Check: σy2=12.02=144.0\sigma_y^2 = 12.0^2 = 144.0.)

  • Step 4: Compute New Coefficient of Variation (CVyCV_y):
CVy=σyyˉ×100%=12.065.0×100%=120065≈18.46%CV_y = \frac{\sigma_y}{\bar{y}} \times 100\% = \frac{12.0}{65.0} \times 100\% = \frac{1200}{65} \approx 18.46\%
  • Conclusion: yˉ=65.0 min\bar{y} = 65.0 \text{ min}, σy=12.0 min\sigma_y = 12.0 \text{ min}, σy2=144.0 min2\sigma_y^2 = 144.0 \text{ min}^2, and CVy≈18.46%CV_y \approx 18.46\%.

Grouped mean and median/mode interpolation are estimates based on class information, not the exact original observations. The displayed grouped mode formula assumes equal-width continuous classes and an appropriate modal class. Pearson’s empirical relation and familiar mean–median–mode orderings are approximations for suitable unimodal distributions, not universal identities. CV comparisons require a meaningful positive ratio-scale mean; a zero or negative mean makes the usual interpretation unsuitable. The displayed variance divides by N for the described population; an unbiased sample variance uses n - 1.

Test Your Knowledge

A continuous grouped frequency distribution with equal-width classes of freight wagon turn-around times has a modal class of 40–50 days. The frequency of the modal class is 24, while the frequencies of the immediately preceding and succeeding classes are 14 and 16, respectively. What is the estimated mode of this distribution?

A

43.50 days

B

45.56 days

C

47.25 days

D

44.17 days

Test Your Knowledge

The mean of a dataset of 25 signal clearance observations is 60 and its standard deviation is 8. If every observation in the dataset is multiplied by -3 and then increased by 15, what are the new mean and the new variance, respectively?

A

-165 and -72

B

-180 and 576

C

-165 and 576

D

-165 and 24

Test Your Knowledge

For which of the following central values is the sum of absolute deviations, expressed as Σ|x_i - A|, mathematically minimized?

A

A = Median

B

A = Arithmetic Mean

C

A = Mode

D

A = Geometric Mean

Sections you finish are checked off in the contents.