Measures of centre and spread for data and for distributions: mean, median and mode, variance and standard deviation, the effect of shifting and scaling, combined groups and outliers.
The mean and variance of a distribution are and ; the data formulas are the same idea with equal weights.
Sorting and summation
Medians need sorted data, and variance shortcuts use and .
Concept notes
1. The mean
The arithmetic mean of is . For a frequency table with values and frequencies :
For grouped data, use the class mid-points as .
Properties used in questions:
The deviations from the mean add to zero: .
is smallest when ; is smallest when is the median.
Shift and scale: if , then .
Combined mean of two groups of sizes with means :
Correcting an entry: the total is . Replace the wrong value in the total and divide again.
A weighted mean is the same formula with weights in place of frequencies.
For a distribution, the mean is ; for data, think of each value as having probability .
The mean uses every value, so it is pulled strongly by extreme values (outliers).
2. Median and mode
The median is the middle value of the sorted data.
odd: the -th value.
even: the average of the -th and -th values.
For a frequency table, find the first value at which the cumulative frequency reaches half of .
For a continuous distribution with CDF , the median solves . For example, the exponential with rate has median .
The mode is the most frequent value (for a distribution, where the PMF or PDF is highest). Data can have no mode, one mode, or several (bimodal, multimodal).
Comparing the three:
Measure
Uses
Affected by outliers?
Mean
every value
strongly
Median
the middle position
hardly
Mode
the most frequent value
no
Shape: for a symmetric single-peaked distribution, mean median mode. For a right-skewed (long right tail) distribution, typically mode median mean; for left skew, the order reverses.
For moderately skewed data the empirical relation is used when a question asks for it. It is an approximation, not an identity.
A right-skewed PDF, $f(x) = x e^{-x}$: mode $1$, median about $1.68$, mean $2$.
3. Variance and standard deviation
The variance measures spread about the mean. For a full population of values,
The standard deviation is its square root and has the same units as the data.
For a sample of size used to estimate the population variance, divide by :
GATE questions usually say which one they want; if not, read whether the data is "the population" or "a sample".
Shift and scale: if , then and . Adding a constant changes nothing.
Combined variance of two groups (population formula):
Note the terms: the spread between group means adds to the spread within groups.
Other measures of spread: the range (max − min), the mean absolute deviation , and the coefficient of variation , used to compare spread across data with different means.
Variance is exactly when all values are equal.
4. Working method and quick checks
For a raw data question, build one small table and read everything from it.
Sort the data. Read the median, the mode and the range at once.
Find , then .
Find either (when is a whole number) or (otherwise), then the variance.
Divide by for a population or by for a sample, as asked.
Quick checks:
The mean lies between the smallest and largest value.
The population standard deviation is never negative and never more than half the range.
If one value is changed, the median may not move at all, but the mean moves by .
Adding a constant to every value adds to the mean, median and mode, and leaves the variance, standard deviation and range unchanged.
Multiplying every value by multiplies the mean, median and mode by , the range and standard deviation by , and the variance by .
Standard results: the first natural numbers have mean and population variance . An arithmetic progression with common difference has population variance .
Formulas to remember
Mean (frequency table)
Combined mean
Population variance
Sample variance
Shift and scale
Combined variance
Empirical relationModerately skewed data only
Variance of 1 to n
Common mistakes
Finding the median without sorting the data first.
Dividing by n when the question asks for the sample variance (n − 1), or the reverse.
Letting a negative scale factor make the standard deviation negative; use |a|σ.
Adding the shift b to the standard deviation or variance; shifting changes only the centre.
Averaging two group means without weighting by group sizes, or forgetting the d² terms in the combined variance.
Treating Mode = 3 Median − 2 Mean as exact; it is an approximation for moderately skewed data.
Worked examples
Try each step yourself, then reveal the working.
Example 1: All four measures from raw data
numerical
For the data , find the mean, median, mode and population standard deviation.
Step 1: Sort and read the median and mode.
Try it on paper first.
Example 2: Effect of a linear change
numerical
A data set has mean 20 and standard deviation 4. Each value is replaced by . Find the new mean, standard deviation and variance.
Step 1: Apply the rule for the mean.
Try it on paper first.
Example 3: Combining two groups
numerical
Group A: 10 students, mean 50, variance 16. Group B: 15 students, mean 60, variance 25. Find the combined mean and variance.
Step 1: Find the combined mean.
Try it on paper first.
Example 4: What an outlier does
conceptual
The data has mean and median 5. A value 100 is added. How do the mean and median change, and which better describes a typical value?
Step 1: Recompute the mean.
Try it on paper first.
Previous year questions
No official GATE CSE 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 CSE syllabus; being checked by a reviewer. Updated 2026-11-21. Spotted a mistake? Use Report an issue on any question, or contact us.