∑GATE DA Atlas

Descriptive Statistics — Mean, Median, Mode, Spread, Covariance and Correlation

Measures of central tendency and spread for raw and grouped data, population vs sample variance, the effect of shifting and scaling, quartiles and skewness, covariance and Pearson correlation with their properties, and why uncorrelated does not mean independent.

Section 19 practice questions

Descriptive statistics summarise a data set with a few numbers: where it is centred, how spread out it is, its shape, and how two variables move together. These formulas reappear in random variables (as expectations), in hypothesis testing (sample mean and variance), in PCA (the covariance matrix) and in regression (correlation and least squares).

Measures of central tendency

MeasureDefinitionNotes
Meanxˉ=1n∑ixi\bar x = \frac{1}{n}\sum_i x_iuses every value; sensitive to outliers
Weighted mean∑wixi∑wi\frac{\sum w_i x_i}{\sum w_i}combined mean of groups: weights = group sizes
Medianmiddle value of sorted data; average of two middle values if nn evenrobust to outliers
Modemost frequent valuecan be non-unique; the only one for nominal data
Geometric mean(∏xi)1/n(\prod x_i)^{1/n}growth rates; GM≤AM\text{GM} \le \text{AM}
Harmonic meann/∑(1/xi)n / \sum (1/x_i)average speeds and rates; HM≤GM≤AM\text{HM} \le \text{GM} \le \text{AM}

Key property of the mean: deviations sum to zero, ∑(xi−xˉ)=0\sum (x_i - \bar x) = 0, and xˉ\bar x minimises ∑(xi−c)2\sum (x_i - c)^2. The median minimises ∑∣xi−c∣\sum |x_i - c|.

Grouped data

For a frequency table with class midpoints mim_i and frequencies fif_i: xˉ=∑fimi/∑fi\bar x = \sum f_i m_i / \sum f_i.

  • Median: L+n/2−Ff hL + \dfrac{n/2 - F}{f}\,h where LL is the lower boundary of the median class, FF the cumulative frequency before it, ff its frequency and hh the class width.
  • Mode: L+f1−f02f1−f0−f2 hL + \dfrac{f_1 - f_0}{2f_1 - f_0 - f_2}\,h (modal class f1f_1, neighbours f0,f2f_0, f_2).
  • Empirical relation for moderately skewed data: mode≈3 median−2 mean\text{mode} \approx 3\,\text{median} - 2\,\text{mean}.

Measures of spread

MeasureFormula
Rangemax⁡−min⁡\max - \min
Population varianceσ2=1N∑(xi−μ)2=x2‾−μ2\sigma^2 = \frac{1}{N}\sum (x_i - \mu)^2 = \overline{x^2} - \mu^2
Sample variance (unbiased)s2=1n−1∑(xi−xˉ)2s^2 = \frac{1}{n-1}\sum (x_i - \bar x)^2
Standard deviationvariance\sqrt{\text{variance}}, in the data's units
Mean absolute deviation1n∑∣xi−xˉ∣\frac1n \sum \lvert x_i - \bar x\rvert
Interquartile rangeQ3−Q1Q_3 - Q_1 (robust)
Coefficient of variationσ/μ\sigma / \mu (unit-free)

Shifting and scaling

If yi=axi+by_i = a x_i + b: yˉ=axˉ+b\bar y = a\bar x + b, median⁡y=amedian⁡x+b\operatorname{median}_y = a\operatorname{median}_x + b, sy=∣a∣ sxs_y = |a|\,s_x, sy2=a2sx2s_y^2 = a^2 s_x^2. Shifting moves location but never spread.

Standardisation: zi=(xi−xˉ)/sz_i = (x_i - \bar x)/s has mean 0 and standard deviation 1.

Quantiles, box plots and skewness

The pp-th quantile has a fraction pp of the data below it; Q1,Q2=median,Q3Q_1, Q_2 = \text{median}, Q_3 are the quartiles. A box plot draws Q1Q_1–Q3Q_3 as a box with the median inside, whiskers to the most extreme points within 1.5 IQR1.5\,\text{IQR}, and flags points beyond as outliers.

modemedianmean right (positive) skew modemedianmean left (negative) skew
The mean is dragged furthest towards the long tail.

Moment coefficient of skewness: γ1=E[(X−μ)3]σ3\gamma_1 = \frac{E[(X-\mu)^3]}{\sigma^3} (0 for symmetric distributions). Kurtosis E[(X−μ)4]σ4\frac{E[(X-\mu)^4]}{\sigma^4} is 3 for the normal distribution.

Covariance

Cov⁡(X,Y)=E[(X−μX)(Y−μY)]=E[XY]−E[X]E[Y].\operatorname{Cov}(X,Y) = E[(X - \mu_X)(Y - \mu_Y)] = E[XY] - E[X]E[Y].

For data: sxy=1n−1∑(xi−xˉ)(yi−yˉ)s_{xy} = \frac{1}{n-1}\sum (x_i - \bar x)(y_i - \bar y). Positive covariance means the variables tend to be above their means together.

Properties:

  • Cov⁡(X,X)=Var⁡(X)\operatorname{Cov}(X, X) = \operatorname{Var}(X); Cov⁡(X,Y)=Cov⁡(Y,X)\operatorname{Cov}(X, Y) = \operatorname{Cov}(Y, X).
  • Bilinear: Cov⁡(aX+b,cY+d)=ac Cov⁡(X,Y)\operatorname{Cov}(aX + b, cY + d) = ac\,\operatorname{Cov}(X, Y).
  • Var⁡(X±Y)=Var⁡X+Var⁡Y±2Cov⁡(X,Y)\operatorname{Var}(X \pm Y) = \operatorname{Var} X + \operatorname{Var}Y \pm 2\operatorname{Cov}(X,Y).
  • Independent ⇒\Rightarrow Cov⁡=0\operatorname{Cov} = 0 (the converse is false).

Covariance depends on units, which is why we normalise it.

Pearson correlation

ρXY=Cov⁡(X,Y)σXσY,r=∑(xi−xˉ)(yi−yˉ)∑(xi−xˉ)2∑(yi−yˉ)2.\rho_{XY} = \frac{\operatorname{Cov}(X, Y)}{\sigma_X\sigma_Y}, \qquad r = \frac{\sum (x_i - \bar x)(y_i - \bar y)}{\sqrt{\sum (x_i - \bar x)^2 \sum (y_i - \bar y)^2}}.
Property
Range−1≤ρ≤1-1 \le \rho \le 1 (Cauchy–Schwarz)
ρ=±1\rho = \pm 1exact linear relationship Y=aX+bY = aX + b with sign⁡(a)=±\operatorname{sign}(a) = \pm
Affine invarianceρ(aX+b,cY+d)=sign⁡(ac) ρ(X,Y)\rho(aX + b, cY + d) = \operatorname{sign}(ac)\,\rho(X, Y)
Measuresonly linear association
Link to regressionslope of least-squares line =r sy/sx= r\, s_y / s_x; R2=r2R^2 = r^2 in simple regression

Spearman's rank correlation is Pearson's rr applied to ranks, capturing monotonic (not just linear) relationships: rs=1−6∑di2n(n2−1)r_s = 1 - \frac{6\sum d_i^2}{n(n^2-1)} when there are no ties.

The covariance matrix

For a random vector X=(X1,…,Xp)\mathbf X = (X_1, \dots, X_p), Σij=Cov⁡(Xi,Xj)\Sigma_{ij} = \operatorname{Cov}(X_i, X_j). Σ\Sigma is symmetric and positive semi-definite, and Var⁡(a⊤X)=a⊤Σ a\operatorname{Var}(\mathbf a^\top \mathbf X) = \mathbf a^\top \Sigma\, \mathbf a. This is the matrix PCA diagonalises — see Principal component analysis.

Quick revision

Practice questions

GATE-style questions: 5 one-mark and 4 two-mark. Wrong MCQs cost ⅓ of their marks in the real exam; MSQ and NAT have no negative marking. Attempt each before opening the solution.

Q1NAT1 mark

The population standard deviation of the data 2,4,4,4,5,5,7,92, 4, 4, 4, 5, 5, 7, 9 is ______.

Q2MCQ1 mark

Every observation in a data set with standard deviation σ\sigma is multiplied by −3-3 and then increased by 55. The new standard deviation is

Q3NAT2 marks

The sample variance (with divisor n−1n-1) of the observations 3,5,7,9,113, 5, 7, 9, 11 is ______.

Q4MCQ1 mark

The median of 7,1,5,3,9,117, 1, 5, 3, 9, 11 is

Q5NAT2 marks

For the paired data (x,y)(x, y): (1,2),(2,4),(3,5),(4,4),(5,5)(1,2), (2,4), (3,5), (4,4), (5,5), the Pearson correlation coefficient is ______ (round to two decimals).

Q6MSQ2 marks

Which of the following statements about the Pearson correlation coefficient ρ(X,Y)\rho(X, Y) are true?

One or more options are correct.

Q7NAT2 marks

Var⁡(X)=4\operatorname{Var}(X) = 4, Var⁡(Y)=1\operatorname{Var}(Y) = 1 and Cov⁡(X,Y)=0.5\operatorname{Cov}(X, Y) = 0.5. Then Var⁡(2X−3Y+4)\operatorname{Var}(2X - 3Y + 4) is ______.

Q8MCQ1 mark

For a unimodal distribution with a long right tail (positively skewed), the usual ordering of the measures of central tendency is

Q9NAT1 mark

A class has two sections. Section A has 20 students with mean score 60 and section B has 30 students with mean score 70. The mean score of all 50 students is ______.