General Aptitude

Statistics and probability

Part 1 of 3 · 15 min

Averages and spread

The concept

Start with something familiar

Rohit plays five innings for his college team and scores 45, 12, 80, 33 and 30. His coach asks, "So, how does Rohit usually bat?" Nobody wants all five numbers. They want one number that sums him up, and maybe a second number that says how steady he is.
That is all of elementary statistics: one number for the centre of the data (mean, median or mode) and one for the spread (range or standard deviation). Each has a clear job, and GATE questions test whether you know which job each one does.

Idea 1: the mean is the level-out value

Imagine Rohit's runs poured into one pot and shared out equally across the five innings. Each innings would get the same amount. That equal share is the mean.
InningsRuns
145
212
380
433
530
Total200
Mean=Sum of all valuesNumber of values\text{Mean} = \frac{\text{Sum of all values}}{\text{Number of values}}
Example
What is Rohit's mean score?
The sum is 45+12+80+33+30=20045 + 12 + 80 + 33 + 30 = 200, over 5 innings. The mean is 2005=40\dfrac{200}{5} = 40 runs.
Picture it
4512803330mean 40median 33020406080

One big score, 80, pulls the mean (40) above the median (33), the middle score once they're sorted.

Idea 2: sum = mean × count is the real tool

Most GATE average questions don't ask you to find a mean. They give you a mean and change the data: a value is added, removed or corrected. The trick is to turn every mean back into a sum, because sums can be added and subtracted, and means can't.Sum=Mean×Count\text{Sum} = \text{Mean} \times \text{Count}
Example
After a sixth innings, Rohit's mean rises from 40 to 45. What did he score in the sixth innings?
Old sum: 40×5=20040 \times 5 = 200. New sum: 45×6=27045 \times 6 = 270. The sixth innings is 270−200=70270 - 200 = 70 runs.

Idea 3: the median is the middle of the sorted list

The median is the value in the middle once you line the data up in order. Half the values are below it, half above.
Sorted, Rohit's scores are 12,30,33,45,8012, 30, 33, 45, 80. The middle (3rd of 5) is 33.
If the count is even, there are two middle values, and the median is their mean. With six scores 12,30,33,45,80,9012, 30, 33, 45, 80, 90, the median is 33+452=39\dfrac{33 + 45}{2} = 39.Median position=n+12\text{Median position} = \frac{n + 1}{2}Count this position along the sorted list.
Why have a second average at all? Watch what one big score does:
ScoresMeanMedian
12, 30, 33, 45, 804033
12, 30, 33, 45, 2808033
One huge innings doubled the mean but didn't move the median at all. The median ignores how far out the extreme values are.
Example
Find the median of 9, 2, 7, 4.
Sort first: 2,4,7,92, 4, 7, 9. There are 4 values, so the middle two are 4 and 7. The median is 4+72=5.5\dfrac{4 + 7}{2} = 5.5.

Idea 4: the mode is the most common value

The mode is the value that appears most often. It is the only average that works for things you can't add, like shirt sizes or favourite colours.
Example
A shop sells shoes of sizes 7, 8, 8, 9, 8, 10, 7 in a morning. What is the mode?
Size 8 appears 3 times, more than any other. The mode is 8, which tells the shop owner which size to stock most.
A data set can have no mode (every value appears once) or more than one mode (two values tie for most).

Idea 5: range and standard deviation measure spread

Two batters can have the same mean but be very different players:
BatterScoresMeanRange
Ishaan38, 40, 42, 40, 40404
Kunal0, 80, 10, 70, 404080
Ishaan is steady; Kunal is all or nothing. The range (largest minus smallest) captures this, but it uses only two values. The standard deviation (SD) uses every value: it is roughly the typical distance of a value from the mean.SD=sum of (x−mean)2n\text{SD} = \sqrt{\frac{\text{sum of }(x - \text{mean})^2}{n}}To see it in action, take quiz marks 2,4,4,4,5,5,7,92, 4, 4, 4, 5, 5, 7, 9, with mean 5:
Mark xxx−5x - 5(x−5)2(x - 5)^2Count
2−391
4−113
5002
7241
94161
The squares add to 9+3+0+4+16=329 + 3 + 0 + 4 + 16 = 32. Divide by 8 to get 4, and take the square root: SD = 2.
Example
What happens to the SD if every student gets 3 bonus marks? What if every mark is doubled?
Adding 3 moves everyone and the mean together, so the distances don't change: SD stays 2. Doubling stretches every distance, so SD doubles to 4.
Key idea
Adding a constant to every value shifts the mean but leaves the range and SD unchanged. Multiplying every value by cc multiplies the mean by cc, and the range and SD by cc (or by −c-c if cc is negative, since a spread can't be negative).

How to spot which idea you need

The question says...Use
"average of these numbers"Idea 1: sum over count
a value added, removed or misreadIdea 2: convert means to sums
"middle value", extreme values presentIdea 3: sort, then find the middle
"most frequent", "most common"Idea 4: mode
"spread", "consistent", "each value increased by"Idea 5: range and SD

Worked example 1warm-up

Find the mean, median, mode and range of 3,9,4,7,9,2,83, 9, 4, 7, 9, 2, 8.
Solution
Step 1. MeanIdea 1
The sum is 3+9+4+7+9+2+8=423 + 9 + 4 + 7 + 9 + 2 + 8 = 42, over 7 values: 427=6\dfrac{42}{7} = 6.
Step 2. Sort
2,3,4,7,8,9,92, 3, 4, 7, 8, 9, 9.
Step 3. MedianIdea 3
With 7 values, the middle is the 4th: 7.
Step 4. Mode and rangeIdea 4Idea 5
9 appears twice, more than any other, so the mode is 9. The range is 9−2=79 - 2 = 7.
Step 5. Check
Three values (2, 3, 4) sit below the median 7 and three (8, 9, 9) sit above it.

Worked example 2GATE level

The average weight of 30 students is 50 kg. When the teacher's weight is included, the average rises by 0.5 kg. What is the teacher's weight?
Solution
Step 1. Turn the old mean into a sumIdea 2
30×50=150030 \times 50 = 1500 kg.
Step 2. Turn the new mean into a sumIdea 2
There are now 31 people with a mean of 50.550.5: 31×50.5=1565.531 \times 50.5 = 1565.5 kg.
Step 3. Subtract
The teacher weighs 1565.5−1500=65.51565.5 - 1500 = 65.5 kg.
Step 4. Check with the shortcut
The teacher covers his own 50.5 kg share, plus 0.5 kg for each of the 30 students: 50.5+30×0.5=65.550.5 + 30 \times 0.5 = 65.5 kg.

All the equations at a glance

IdeaEquation
MeanSumn\dfrac{\text{Sum}}{n}
Sum from meanSum=Mean×n\text{Sum} = \text{Mean} \times n
Medianvalue at position n+12\dfrac{n+1}{2} after sorting
Modemost frequent value
Spreadrange =max⁡−min⁡= \max - \min, SD=∑(x−xˉ)2n\text{SD} = \sqrt{\dfrac{\sum (x - \bar{x})^2}{n}}