Engineering Mathematics
Statistics
Tighten descriptive statistics, n vs n−1 variance, and correlation vs causation so short numericals and MCQ traps do not surprise you — then lock marks with GATE-style samples and flashcards.
GATE CSE statistics — mean, median, mode, variance, quartiles, covariance/correlation, probability bridge, sample GATE questions, flashcards, and practice drills.
Learning outcomes
- Compute mean, median, mode, and quartiles from small datasets
- Calculate population and sample variance / SD and CV correctly
- Relate population vs sample notation and the probability bridge (E, Var)
- Interpret covariance, Pearson correlation, and causation traps
- Solve GATE-style statistics MCQ/NAT items with a clear explanation trail
Data, population & sample
- A population is the full set of interest; a sample is a subset used to estimate population quantities.
- Parameter (population): μ, σ². Statistic (sample): x̄, s² — random before the sample is fixed.
- GATE numericals are usually tiny datasets — compute exactly; do not round mid-way.
- Raw data vs frequency table: mean = (Σ f_i x_i)/(Σ f_i); same idea for grouped data with class midpoints (light touch).
| Symbol | Meaning | Typical formula |
|---|---|---|
| μ | Population mean | Σ x_i / N |
| x̄ | Sample mean | Σ x_i / n |
| σ² | Population variance | Σ (x_i−μ)² / N |
| s² | Sample variance | Σ (x_i−x̄)² / (n−1) |
Measures of central tendency
- Arithmetic mean x̄ = Σ x_i / n. Sensitive to outliers; uses every value.
- Median: sort first. Odd n → middle value; even n → average of two middle values.
- Mode: most frequent value. Bimodal / multimodal datasets appear in definition MCQs.
- For a symmetric unimodal distribution, mean ≈ median ≈ mode. Right skew: mean > median > mode (typical cartoon).
- Weighted mean: Σ w_i x_i / Σ w_i when weights are given.
Formulas to remember
-
x̄ = (Σ x_i) / n -
Median (sorted, n odd): x_{((n+1)/2)} -
Median (n even): (x_{(n/2)} + x_{(n/2+1)}) / 2
Worked example
Problem. Data: 2, 3, 3, 5, 100. Compare mean and median.
Solution. Mean = 113/5 = 22.6; median = 3. The outlier pulls the mean up; median is robust.
Dispersion — range, variance, SD, CV
- Range = max − min (crude; uses only two points).
- Population variance σ² = Σ (x_i − μ)² / N = (Σ x_i²)/N − μ².
- Sample variance s² = Σ (x_i − x̄)² / (n−1) (Bessel’s correction) — read which divisor the stem wants.
- Standard deviation = √variance; same units as the data.
- Mean absolute deviation and interquartile range (IQR = Q3−Q1) appear as “robust spread” ideas.
- Coefficient of variation CV = σ/μ (or s/x̄) compares relative spread across different scales.
Formulas to remember
-
σ² = (Σ x_i²)/N − μ² -
s² = Σ (x_i − x̄)² / (n−1) -
CV = σ / μ -
IQR = Q3 − Q1
Worked example
Problem. For 4, 8, 8, 10, 12 find sample variance s² (divide by n−1).
Solution. x̄=42/5=8.4. Deviations²: 19.36+0.16+0.16+2.56+12.96=35.2. s²=35.2/4=8.8.
Quartiles, percentiles & five-number summary
- Quartiles split ordered data into four roughly equal parts: Q1 (25%), Q2=median (50%), Q3 (75%).
- Five-number summary: min, Q1, median, Q3, max — basis of a box plot.
- Outlier rules of thumb (1.5×IQR fences) are light GATE/aptitude crossover; know the idea.
- Percentile p: value below which roughly p% of the data lie — definitions vary slightly; follow the stem.
Worked example
Problem. Sorted data 1,2,3,4,5,6,7. Approximate Q1, Q2, Q3?
Solution. Q2=4. Lower half 1,2,3 → Q1=2; upper half 5,6,7 → Q3=6 (simple textbook split).
Bridge to probability (E and Var)
- For a discrete RV, population mean μ = E[X] and σ² = Var(X) — same formulas, probabilistic language.
- Linear transform: E[aX+b]=aE[X]+b; Var(aX+b)=a²Var(X).
- If a stem gives mean and variance of X, you can answer E[2X+3] and Var(2X+3) without raw data.
- Sample mean x̄ estimates μ; for iid finite-variance samples, E[x̄]=μ and Var(x̄)=σ²/n (idea level).
Formulas to remember
-
E[aX+b] = a E[X] + b -
Var(aX+b) = a² Var(X) -
Var(x̄) = σ² / n (iid sample mean)
Worked example
Problem. Mean 10, variance 4 for X. Find E[2X+3] and Var(2X+3).
Solution. E=2·10+3=23; Var=4·4=16.
Covariance & correlation
- Sample covariance measures how X and Y move together; sign shows direction of linear association.
- Pearson r = Cov(X,Y)/(s_X s_Y) ∈ [−1,1]. |r|=1 suggests perfect linear relation in the sample.
- r is invariant to positive scaling of both variables (standardized); units cancel.
- Correlation ≠ causation — confounding is the classic verbal trap.
- Cov=0 does not imply independence (nonlinear dependence possible) — same warning as in Probability.
Formulas to remember
-
Cov(X,Y) = E[XY] − E[X]E[Y] -
r = Cov(X,Y) / (σ_X σ_Y) -
Var(X+Y) = Var(X)+Var(Y)+2Cov(X,Y)
| |r| range | Rough reading |
|---|---|
| 0 | No linear association |
| Near 0.3 | Weak linear |
| Near 0.7 | Stronger linear |
| 1 | Perfect linear |
Frequency tables & quick computations
- With frequencies f_i at values x_i: n=Σ f_i, mean = Σ f_i x_i / n.
- Variance shortcut still works with weighted sums: keep Σ f_i x_i and Σ f_i x_i² organized.
- Mode = value with largest frequency. Median: locate the n/2-th observation in the cumulative frequency column.
- Bar charts / histograms: know categorical vs continuous display — rarely computational.
Worked example
Problem. Values 1,2,3 with frequencies 2,3,5. Find the mean.
Solution. n=10; mean=(2·1+3·2+5·3)/10=(2+6+15)/10=2.3.
What GATE usually skips
- Heavy hypothesis testing (t-tests, p-values beyond a name-drop) is uncommon in CSE Engineering Maths.
- Full regression line fitting is rare; interpret slope/correlation conceptually if asked.
- Prioritise descriptive stats + the probability link — that combination scores.
Exam tips
- Sort before finding median; never average unsorted “middle” positions.
- Check n vs n−1 in variance when the option set looks “almost right”.
- Outliers: mean and range suffer; median and IQR are more robust.
- CV needs nonzero mean and is dimensionless — use it to compare relative spread.
- Correlation does not imply causation — eliminate causal-language options unless the stem supports them.
- Keep a card: mean, variance shortcut, s² with n−1, CV, r = Cov/(σx σy).
10 GATE-style MCQs for Statistics with full explanations. Attempt each question before revealing the answer.
For the data 2, 4, 4, 4, 5, 5, 7, 9 the mode is:
Show answer & explanation
Answer: A
4 appears three times; 5 appears twice ⇒ unique mode 4.
Median of 3, 1, 7, 5, 9 after sorting is:
Show answer & explanation
Answer: B
Sorted 1,3,5,7,9 → middle value 5.
Mean of 5, 10, 15 is 10. If population variance uses divisor N=3, σ² equals:
Show answer & explanation
Answer: A
Deviations −5,0,5; squares 25+0+25=50; σ²=50/3.
If Var(X)=9, then SD(X) equals:
Show answer & explanation
Answer: A
SD = √Var = 3.
Mean μ=20, SD σ=4. Coefficient of variation is:
Show answer & explanation
Answer: B
CV=σ/μ=4/20=0.2 (or 20%).
E[X]=5, Var(X)=4. Then E[3X−2] and Var(3X−2) are:
Show answer & explanation
Answer: B
E=3·5−2=13; Var=9·4=36.
Which measure is least affected by a single extreme outlier?
Show answer & explanation
Answer: C
Median depends on order position; mean, range, and variance react strongly to extremes.
Pearson correlation r always lies in:
Show answer & explanation
Answer: B
By Cauchy–Schwarz / definition, r ∈ [−1,1].
If Cov(X,Y)=0, which must be TRUE?
Show answer & explanation
Answer: B
Corr=Cov/(σx σy)=0 when Cov=0 (and finite nonzero SDs). Independence is stronger; converse of “indep ⇒ Cov=0” is false.
For sorted data with n=8, the median is:
Show answer & explanation
Answer: B
Even n: average the two central order statistics (4th and 5th).
Extra page-specific practice beyond the GATE samples. Attempt all 10, then reveal answers to check your reasoning.
Mean of 4, 8, 8, 10, 12 is:
Show answer & explanation
Answer: B) 8.4
Sum=42; 42/5=8.4.
Median of 4, 8, 8, 10, 12 is:
Show answer & explanation
Answer: A) 8
Already sorted; middle value is 8.
Mode of 4, 8, 8, 10, 12 is:
Show answer & explanation
Answer: B) 8
8 appears twice; others once.
Sample variance s² of 4, 8, 8, 10, 12 (divisor n−1) equals:
Show answer & explanation
Answer: A) 8.8
x̄=8.4; Σ(x−x̄)²=35.2; s²=35.2/4=8.8.
If μ=50 and σ=5, CV equals:
Show answer & explanation
Answer: B) 0.1
5/50=0.1.
Data 1,2,3,4. Population variance (÷4) equals:
Show answer & explanation
Answer: A) 1.25
μ=2.5. Squared deviations: 2.25+0.25+0.25+2.25=5. σ²=5/4=1.25.
IQR for sorted 2,4,6,8,10,12 with Q1=4, Q3=10 equals:
Show answer & explanation
Answer: A) 6
IQR=Q3−Q1=10−4=6.
If Corr(X,Y)=1, the scatter of (X,Y) is:
Show answer & explanation
Answer: B) A perfect increasing line
r=+1 means perfect positive linear relationship.
Frequencies: value 0 (f=2), 1 (f=3), 2 (f=5). Mean equals:
Show answer & explanation
Answer: B) 1.3
(0·2+1·3+2·5)/10=13/10=1.3.
Which statement is FALSE?
Show answer & explanation
Answer: C) Mean always equals median
Mean equals median for symmetric cases, not always (skew/outliers break equality).
Topic FAQs
How much statistics is enough for GATE CSE?
Descriptive stats plus the probability bridge (expectation/variance/distributions). Heavy hypothesis testing is uncommon.
When do I divide by n−1 instead of n?
Sample variance s² typically uses n−1 (unbiased for σ² under iid normal sampling). Population variance uses N. Follow the stem’s wording.
Is median always better than mean?
Not always. Median is more robust to outliers; mean uses all data and matches E[X] in probability models. Choose based on the question’s goal.
What does a negative correlation mean?
Larger values of X tend to pair with smaller values of Y (linearly). It does not by itself prove a causal mechanism.
Hover a card to reveal the answer with a 3D flip. On touch devices, tap the card or use Show answer.