Skip to content
GATEiit

GATE All 17 EM papers & ES · Probability and Statistics

Mean, Median, Mode, Variance and Standard Deviation

Arithmetic mean, median, mode and empirical skewness, population vs sample variance, standard deviation, linear scaling E[aX + b], independent Var(X ± Y), and pooled variance.

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.

  • Expectation and variance →

    The mean and variance of a distribution are E[X] and E[X2]−(E[X])2; the data formulas are the same idea with equal weights.

  • Sorting and summation

    Medians need sorted data, and variance shortcuts use ∑x and ∑x2.

This topic comes before: Basics of water quality standards – Physical, chemical and biological parameters, Hydrologic cycle, precipitation, evaporation, evapo-transpiration, watershed, infiltration, Plane and geodetic surveying, GNSS surveying, errors and their adjustment, Traffic studies on flow and speed, peak hour factor, accident study, statistical analysis of traffic data, Principal Component Analysis (PCA), Error analysis, Correlation, Linear Regression and Least Squares, Probability Distributions Overview and Uniform Distribution, Sampling Distributions and Hypothesis Testing (t, Chi-Square and F Tests)

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. Linear scaling, independence and sum/difference formulas

Three rules solve most GATE AE variance questions rapidly:

  1. Shift invariance and quadratic scaling: adding a constant b shifts location without spreading data: Var⁡(aX+b)=a2 Var⁡(X),σ(aX+b)=∣a∣ σ(X).
  2. Sum and difference with covariance Cov⁡(X,Y)=E[XY]−E[X]E[Y]: Var⁡(aX±bY)=a2Var⁡(X)+b2Var⁡(Y)±2ab Cov⁡(X,Y).
  3. Independent (or uncorrelated) X,Y (Cov⁡=0): variances always ADD even when subtracting X−Y. Var⁡(X−Y)=Var⁡(X)+Var⁡(Y)(X,Y uncorrelated). For sample mean Xˉn of i.i.d. draws, Var⁡(Xˉn)=σ2n.

5. Standard variances and pooled variance formula

Know these variances by heart:

  • Constant c: 0. Symmetric {±a}: a2. Bernoulli(p): p(1−p).
  • Discrete uniform {1,2,…,n}: n2−112. Continuous U(a,b): (b−a)212.
  • Exp(λ): 1/λ2.
  • Combined (pooled) population variance of two datasets (n1,μ1,σ12) and (n2,μ2,σ22) with combined mean μ: σ2=n1(σ12+(μ1−μ)2)+n2(σ22+(μ2−μ)2)n1+n2.

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
Second-moment identity
Var⁡(X)=E[X2]−(E[X])2≥0
Sample vs population variance
s2=∑(xi−xˉ)2n−1,σ2=∑(xi−μ)2N

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: All four measures from raw data

numerical

For the data 2,4,4,5,7,9,11,14, find the mean, median, mode and population standard deviation.

  1. Step 1: Sort and read the median and mode.

    Try it on paper first.

Example 2: Updating mean and median after editing an outlier

numerical

Data sorted: [4,7,9,10,15,21]. If the largest value 21 is misrecorded as 33, find the change in mean and change in median.

  1. Step 1: Compute new mean shift.

    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: Recovering E[X²] and Cov(X, Y) from variances

numerical

Random variables X,Y have Var⁡(X)=4, Var⁡(Y)=9, and Var⁡(X+Y)=19. Find Cov⁡(X,Y) and Var⁡(X−Y).

  1. Step 1: Extract 2 Cov(X, Y).

    Try it on paper first.

Previous year questions

No official PYQ in our currently live papers is tagged with this exact topic yet. The topic test below uses original GATE-style 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 Engineering Mathematics (All 17 EM papers & ES) syllabus; being checked by a reviewer. Updated 2026-12-01. Spotted a mistake? Use Report an issue on any question, or contact us.