Skip to content
GATEiit

GATE EC · Engineering Mathematics

Mean, median, mode, standard deviation

Mean, median and mode of data and of distributions, variance and standard deviation (population and sample), effects of shifting and scaling, pooled groups, and the RMS and quantisation-noise links GATE EC uses.

Before you start

  • Summation notation

    Every formula here is a weighted sum such as ∑fixi or ∑(xi−xˉ)2.

  • Definite integrals →

    For a continuous distribution the mean, variance and median are found by integrating the PDF.

This topic comes before: Correlation and regression analysis, Probability distributions

Concept notes

1. Mean: definition and working rules

For observations x1,x2,…,xn the arithmetic mean is xˉ=1n∑i=1nxi. When value xi occurs fi times, xˉ=∑fixi∑fi. For grouped data, take each class mid-point as xi. A weighted mean uses weights wi in place of fi.

Rules that make questions quick:

  • Deviations balance: ∑(xi−xˉ)=0. The mean is the balance point of the data.
  • Least squares: ∑(xi−c)2 is smallest at c=xˉ; ∑∣xi−c∣ is smallest at the median.
  • Linear change: if every xi becomes yi=axi+b, then yˉ=axˉ+b.
  • Pooling groups: sizes n1,n2 with means xˉ1,xˉ2 give xˉ=n1xˉ1+n2xˉ2n1+n2, not the plain average of the two means.
  • Fixing a wrong entry: the total is nxˉ. Remove the wrong value from the total, add the right one, and divide by n again. A change of Δ in one value moves the mean by Δn.

Signals view. The mean of the samples of a voltage is its DC value (average value). For a periodic waveform, the same idea becomes 1T∫0Tv(t) dt.

Random variables. The mean of X is E[X]=∑x p(x) or ∫xf(x) dx. A data set behaves like a random variable that takes each value with probability 1n.

Because every value enters the sum, a single extreme value (outlier) can drag the mean a long way.

2. Median, mode and skewness

Median: sort the data first, then take the middle.

  • n odd: the value in position n+12.
  • n even: the average of the values in positions n2 and n2+1.
  • Frequency table: the first value at which the cumulative frequency reaches n2.
  • Continuous random variable with CDF F: solve F(m)=12, i.e. ∫−∞mf(x) dx=12. For an exponential with rate λ, m=ln⁡2λ, which is less than its mean 1λ.

Mode: the value that occurs most often, or the x where the PMF or PDF peaks. A data set may have no mode, one mode, or several (bimodal, multimodal).

Measure Depends on Sensitive to outliers?
Mean every value yes, strongly
Median the order of the values very little
Mode the most frequent value no

Skewness and the order of the three.

  • Symmetric with one peak (e.g. normal): mean = median = mode.
  • Right (positive) skew, long tail to the right: usually mode < median < mean.
  • Left (negative) skew: the order reverses.

For moderately skewed data, the empirical relation Mode≈3 Median−2 Mean is used when a question asks for it. It is a rule of thumb, not an exact result.

xf(x)2468mode = 2median ≈ 2.67mean = 3long right tail pulls the meanto the right of the medianmode < median < mean
A right-skewed PDF, $f(x) = \frac{1}{2}x^2 e^{-x}$ for $x \ge 0$: the peak (mode) is at 2, half the area lies left of about 2.67 (median), and the balance point (mean) is at 3.

3. Variance and standard deviation

Variance is the average squared distance from the mean; the standard deviation (SD) is its positive square root and carries the units of the data.

Data treated as Variance
Whole population of N values σ2=1N∑(xi−μ)2=1N∑xi2−μ2
Sample of n values (estimate of population variance) s2=1n−1∑(xi−xˉ)2
Random variable X Var⁡(X)=E[(X−μ)2]=E[X2]−(E[X])2

The n−1 divisor appears because deviations are taken from xˉ, which is itself computed from the sample. Read the question to see which divisor is wanted.

Linear change y=ax+b: σy=∣a∣ σx,σy2=a2σx2. Adding b moves the data but does not spread it, so it has no effect on the SD.

Mean square, RMS and SD. Rearranging the shortcut formula, x2‾=σ2+xˉ2,i.e.Vrms2=Vdc2+Vac,rms2. So for samples of a signal, the SD is the RMS value of the AC part, and the mean-square value (proportional to power in a resistor) splits into DC power plus AC power. For zero-mean noise, RMS and SD are the same number.

Other measures of spread: the range (largest minus smallest), the mean absolute deviation 1n∑∣xi−xˉ∣, and the coefficient of variation σxˉ×100% for comparing spreads of data with different means.

The variance is zero only when every value is the same.

sample kv (V)mean = DC valuemean + σmean − σ1234σ = RMS of the fluctuation about the mean; (overall RMS)² = mean² + σ²
Samples of a noisy DC voltage. The mean is the DC level; the standard deviation is the RMS value of the fluctuating (AC) part, shown as the band mean ± σ.

4. Pooled groups, standard results and quantisation noise

Pooled variance of two groups (population form). With xˉ the combined mean and di=xˉi−xˉ, σ2=n1(σ12+d12)+n2(σ22+d22)n1+n2. The di2 terms add the spread between the group means to the spread within the groups. Forgetting them is the usual mistake.

Standard results worth remembering:

  • The integers 1,2,…,n: mean n+12, population variance n2−112.
  • An arithmetic progression of n terms with common difference d: population variance d2(n2−1)12.
  • Uniform distribution on [a,b]: mean a+b2 (= median), variance (b−a)212, no unique mode.

Quantisation noise. An ADC with step size Δ rounds each sample to the nearest level. The error is commonly modelled as uniform on [−Δ2,Δ2], so it has mean 0 and σq2=Δ212,σq=Δ12≈0.289 Δ. This is the same uniform-variance formula with b−a=Δ. For an N-bit converter covering a range VFS, Δ=VFS2N.

A quick working method for raw data:

  1. Sort; read off the median, mode and range.
  2. Find the total and the mean.
  3. Sum the squared deviations (easy when xˉ is a whole number) or use ∑xi2−nxˉ2.
  4. Divide by n or n−1 as asked, then take the square root.

Sanity checks: the mean lies between the smallest and largest values; the population SD never exceeds half the range; the SD is never negative.

Formulas to remember

Mean (frequency table)
xˉ=∑fixi∑fi
Combined mean
xˉ=n1xˉ1+n2xˉ2n1+n2
Population variance
σ2=1N∑(xi−μ)2=1N∑xi2−μ2
Sample variance
s2=1n−1∑(xi−xˉ)2
Linear change
y=ax+b  ⇒  yˉ=axˉ+b,σy=∣a∣ σx
Mean square, mean and SD
x2‾=σ2+xˉ2(Vrms2=Vdc2+Vac,rms2)
Combined variancedi=xˉi−xˉ
σ2=n1(σ12+d12)+n2(σ22+d22)n1+n2
Empirical relationModerately skewed data only
Mode≈3 Median−2 Mean
Uniform variance and quantisation noise
σ2=(b−a)212,σq2=Δ212

Common mistakes

  • Taking the middle value of unsorted data as the median.
  • Using the divisor n when the question wants the sample variance with n − 1, or the other way round.
  • Writing a negative standard deviation after scaling by a negative factor; the SD scales by |a|.
  • Adding the offset b to the SD or variance; a shift moves the centre only.
  • Averaging two group means without weighting by group size, or dropping the d² terms in the pooled variance.
  • Confusing RMS with SD for a signal that has a DC part; RMS² = mean² + SD², so they match only for zero-mean signals.

Worked examples

Try each step yourself, then reveal the working.

Example 1: Every summary from a set of ADC readings

numerical

Seven ADC readings (in codes) are 8,5,13,3,6,9,5. Find the mean, median, mode, population SD and sample SD.

  1. Step 1: Sort the data and read the position-based measures.

    Try it on paper first.

Example 2: DC level, RMS and an amplifier stage

numerical

Samples of a sensor voltage have mean 2 V and SD 1.5 V. (a) Find the RMS value of the samples. (b) The signal passes through a stage with output y=−3x+1 (volts). Find the mean and SD of the output.

  1. Step 1: Relate RMS to mean and SD.

    Try it on paper first.

Example 3: Pooling two batches of resistors

numerical

Batch A has 20 resistors with mean 100 Ω and variance 4 Ω2. Batch B has 30 resistors with mean 105 Ω and variance 9 Ω2 (both population values). Find the mean and variance of all 50 resistors.

  1. Step 1: Combined mean.

    Try it on paper first.

Example 4: Quantisation noise as a uniform variable

conceptual

An ADC has step size Δ=12 mV and rounds to the nearest level. Modelling the error e as uniform on [−6,6] mV, find its mean, median and SD, and say why it has no useful mode.

  1. Step 1: Mean and median.

    Try it on paper first.

Previous year questions

No official GATE EC question is tagged with this topic yet. The topic test below uses practice questions.

Topic test

8 questions: original practice questions, with GATE marking (MCQ wrong answers lose marks). Score 60% or more to pass. A new set is drawn each time.

Mark as mastered

Loading your progress…

My revision notes

Notes written by the GATEiit team against the official GATE EC syllabus; being checked by a reviewer. Updated 2026-11-29. Spotted a mistake? Use Report an issue on any question, or contact us.