Introduction

Elementary statistics summarises a list of numbers by a centre (mean, median, mode) and a spread (range, variance, standard deviation). Elementary probability measures how likely an event is, usually as a ratio of counts or as a product of the probabilities of successive steps. The calculations that follow are of this kind: an average that changes when an item is added or replaced, the standard deviation of a small list, the effect of adding a constant to every value, or the chance of drawing two red balls.

Watch for the median of an even-sized list, population versus sample standard deviation, sampling with versus without replacement, and "at least one", which is usually easiest through the complement.

Prerequisites

Core concepts

Measures of centre and spread

MeasureDefinition for data x1,…,xnx_1, \ldots, x_n
Meanxˉ=1n∑xi\bar{x} = \frac{1}{n}\sum x_i
Weighted mean∑wixi∑wi\frac{\sum w_i x_i}{\sum w_i}
MedianMiddle value of the sorted list; for even nn, the mean of the two middle values
ModeMost frequent value (there can be several, or none)
RangeLargest minus smallest
Population varianceσ2=1n∑(xi−xˉ)2\sigma^2 = \frac{1}{n}\sum (x_i - \bar{x})^2
Sample variances2=1n−1∑(xi−xˉ)2s^2 = \frac{1}{n - 1}\sum (x_i - \bar{x})^2
Standard deviationSquare root of the variance

Variance convention. These notes use the population formula (divide by nn) unless a question says "sample" or "unbiased", in which case divide by n−1n - 1. A useful identity is σ2=x2‾−xˉ2\sigma^2 = \overline{x^2} - \bar{x}^2 (mean of squares minus square of mean).

Linear transformation. If every value becomes yi=axi+by_i=ax_i+b, then yˉ=axˉ+b\bar y=a\bar x+b, the median becomes amedian⁡(x)+ba\operatorname{median}(x)+b, and the standard deviation becomes ∣a∣σ|a|\sigma. For a≠0a\ne0, the mode values transform one-to-one by the same rule. For a=0a=0, all observations equal bb, so bb is the unique mode. Adding a constant shifts the centre and leaves the spread unchanged.

Probability vocabulary

TermMeaning
Sample space SSThe set of all outcomes
Event AAA subset of SS
Classical probabilityP(A)=∣A∣∣S∣P(A) = \frac{\lvert A \rvert}{\lvert S \rvert} when all outcomes are equally likely
ComplementP(not A)=1−P(A)P(\text{not } A) = 1 - P(A)
Addition ruleP(A∪B)=P(A)+P(B)−P(A∩B)P(A \cup B) = P(A) + P(B) - P(A \cap B)
Mutually exclusiveA∩B=∅A \cap B = \varnothing, so P(A∪B)=P(A)+P(B)P(A \cup B) = P(A) + P(B)
Conditional probabilityP(A∣B)=P(A∩B)P(B)P(A \mid B) = \frac{P(A \cap B)}{P(B)} for P(B)>0P(B) > 0
Independent eventsP(A∩B)=P(A)P(B)P(A \cap B) = P(A)P(B)
Expected valueE[X]=∑x P(X=x)E[X] = \sum x\,P(X = x)

Mutually exclusive is different from independent. Two events with positive probability that cannot happen together are dependent: knowing one happened makes the other impossible.

Decision procedure

  1. Statistics. Sort the data first (median and range need it). For a changed average, work with totals: total = mean ×\times count.
  2. Spread. Decide population or sample; compute deviations from the mean, or use mean of squares minus square of mean.
  3. Probability. Write the sample space or its size. Check that outcomes are equally likely before dividing counts.
  4. "And then" steps. Multiply probabilities along the sequence, updating the counts when drawing without replacement.
  5. "At least one". Use 1−P(none)1 - P(\text{none}).
  6. "Or". Use the addition rule and subtract the overlap.
  7. "Given that". Restrict the sample space to the given event, then count inside it.

Mathematical explanation

Totals make averages easy. If nn values have mean mm, their total is nmnm. Adding, removing or replacing values changes the total by a known amount, and the new mean is the new total over the new count. Combining groups of sizes n1,n2n_1, n_2 with means m1,m2m_1, m_2 gives the weighted mean n1m1+n2m2n1+n2\frac{n_1 m_1 + n_2 m_2}{n_1 + n_2}.

Why n−1n - 1. Deviations from the sample mean sum to zero, so only n−1n - 1 of them are free; dividing by n−1n - 1 makes the sample variance an unbiased estimate of the population variance. For the arithmetic of a GA question, the only point is which divisor the question wants.

Complement for "at least one". For independent trials each succeeding with probability pp, P(no success in n)=(1−p)nP(\text{no success in } n) = (1 - p)^n, so P(at least one)=1−(1−p)nP(\text{at least one}) = 1 - (1 - p)^n.

Binomial count. The probability of exactly kk successes in nn independent trials is (nk)pk(1−p)n−k\binom{n}{k} p^k (1 - p)^{n-k}: choose which kk trials succeed, then multiply.

Worked examples

Example 1 (centre and spread). Data: 4, 8, 6, 5, 3, 8, 9. Sorted: 3, 4, 5, 6, 8, 8, 9.

  • Mean: 43/7≈6.1443/7 \approx 6.14. Median: the 4th value, 6. Mode: 8. Range: 9−3=69 - 3 = 6.

Example 2 (median of an even-sized list). For 3, 7, 8, 12, the median is (7+8)/2=7.5(7 + 8)/2 = 7.5.

Example 3 (combined mean). Class A has 30 students with mean 60; class B has 20 with mean 70. Combined mean: 30×60+20×7050=320050=64\frac{30 \times 60 + 20 \times 70}{50} = \frac{3200}{50} = 64.

Example 4 (replacing a value). Ten numbers have mean 25, so their total is 250. One number, 40, is replaced by 10. New total 250−40+10=220250 - 40 + 10 = 220; new mean 2222.

Example 5 (standard deviation). Data: 2, 4, 4, 4, 5, 5, 7, 9 (n=8n = 8).

  • Mean: 40/8=540/8 = 5. Squared deviations: 9, 1, 1, 1, 0, 0, 4, 16, sum 32.
  • Population variance 32/8=432/8 = 4, standard deviation 2.
  • Sample variance 32/732/7, standard deviation 32/7≈2.14\sqrt{32/7} \approx 2.14.

Example 6 (linear transformation). Each value of Example 5 is multiplied by 3 and then increased by 2. New mean 3×5+2=173 \times 5 + 2 = 17; new population standard deviation 3×2=63 \times 2 = 6. The added 2 does not change the spread.

Example 7 (two dice). Two fair dice are rolled (36 equally likely ordered outcomes).

  • Sum 8: (2,6),(3,5),(4,4),(5,3),(6,2)(2,6), (3,5), (4,4), (5,3), (6,2), so P=5/36P = 5/36.
  • At least one six: 1−(5/6)2=1−25/36=11/361 - (5/6)^2 = 1 - 25/36 = 11/36.

Example 8 (addition rule). One card from a standard 52-card deck. P(king or heart)=452+1352−152=1652=413P(\text{king or heart}) = \frac{4}{52} + \frac{13}{52} - \frac{1}{52} = \frac{16}{52} = \frac{4}{13}; the king of hearts is subtracted once because it was counted twice.

Example 9 (with and without replacement). A bag has 5 red and 3 blue balls; two are drawn.

  • Without replacement: P(both red)=58×47=2056=514P(\text{both red}) = \frac{5}{8} \times \frac{4}{7} = \frac{20}{56} = \frac{5}{14}. By counting: (52)/(82)=10/28=5/14\binom{5}{2}/\binom{8}{2} = 10/28 = 5/14.
  • With replacement: (58)2=2564\left(\frac{5}{8}\right)^2 = \frac{25}{64}.

Example 10 (at least one). Each of 4 independent shots hits with probability 0.3. P(at least one hit)=1−0.74=1−0.2401=0.7599P(\text{at least one hit}) = 1 - 0.7^4 = 1 - 0.2401 = 0.7599.

Example 11 (conditional). A family has two children, each equally likely to be a boy or a girl, independently. Given that at least one is a boy, the sample space is {BB,BG,GB}\{BB, BG, GB\}, so P(both boys)=1/3P(\text{both boys}) = 1/3, not 1/21/2.

Example 12 (binomial). Exactly 2 heads in 4 fair tosses: (42)/24=6/16=3/8\binom{4}{2}/2^4 = 6/16 = 3/8.

Example 13 (expected value). A game pays 10 with probability 1/61/6 and costs 1 otherwise. E=10×16−1×56=56≈0.83E = 10 \times \frac{1}{6} - 1 \times \frac{5}{6} = \frac{5}{6} \approx 0.83 per play.

Example 14 (frequency table). Marks 1 to 5 were scored by 25 students with frequencies 3, 5, 8, 6, 3.

Mark12345
Frequency35863
Cumulative38162225
  • Mean: 1×3+2×5+3×8+4×6+5×325=7625=3.04\frac{1 \times 3 + 2 \times 5 + 3 \times 8 + 4 \times 6 + 5 \times 3}{25} = \frac{76}{25} = 3.04.
  • Median: the 13th value. The cumulative frequency first reaches 13 at mark 3, so the median is 3.
  • Mode: the mark with the largest frequency, 3.
  • Traps: the mode is the mark (3), not the largest frequency (8); the median is the middle observation, not the middle of the list of marks; the mean is not 1+2+3+4+55=3\frac{1 + 2 + 3 + 4 + 5}{5} = 3, which ignores the frequencies.

Example 15 (grouped data). 40 values fall in the classes 0 to 10, 10 to 20, 20 to 30, 30 to 40, 40 to 50 with frequencies 5, 8, 12, 10, 5 (each class includes its lower end).

  • Estimated mean from class midpoints 5,15,25,35,455, 15, 25, 35, 45: 25+120+300+350+22540=102040=25.5\frac{25 + 120 + 300 + 350 + 225}{40} = \frac{1020}{40} = 25.5. It is an estimate: the true values inside each class are unknown.
  • Median class: n/2=20n/2 = 20; cumulative frequencies are 5,13,255, 13, 25, so the 20th value is in the class 20 to 30.
  • Estimated median by linear interpolation inside that class: 20+20−1312×10≈25.8320 + \frac{20 - 13}{12} \times 10 \approx 25.83.
  • Modal class: 20 to 30 (frequency 12).
  • Trap: the median class is found from cumulative frequency, not by taking the middle class of the list (here they coincide only by chance; with frequencies 22, 6, 4, 4, 4 the median class would be 0 to 10, since its cumulative frequency of 22 already covers the 20th and 21st values).

Example 16 (two-stage experiment and reversed conditional). Urn I has 3 red and 2 blue balls; urn II has 1 red and 3 blue. A fair coin chooses the urn, then one ball is drawn.

  • P(red)=12×35+12×14=310+18=1740P(\text{red}) = \frac{1}{2} \times \frac{3}{5} + \frac{1}{2} \times \frac{1}{4} = \frac{3}{10} + \frac{1}{8} = \frac{17}{40}.
  • Given that the ball is red, the chance it came from urn I: 3/1017/40=1217\frac{3/10}{17/40} = \frac{12}{17}.
  • Trap: P(urn I∣red)P(\text{urn I} \mid \text{red}) is not P(red∣urn I)=35P(\text{red} \mid \text{urn I}) = \frac{3}{5}.

Example 17 (table and direction of conditioning). Of 100 students, 60 took science and 45 of them passed; 40 took arts and 20 of them passed. P(passed∣science)=4560=34P(\text{passed} \mid \text{science}) = \frac{45}{60} = \frac{3}{4}, but P(science∣passed)=4565=913P(\text{science} \mid \text{passed}) = \frac{45}{65} = \frac{9}{13}. Identify the condition (the group you restrict to) before dividing.

Example 18 (several draws without replacement). Three balls are drawn without replacement from 5 red and 3 blue. P(at least one red)=1−(33)(83)=1−156=5556P(\text{at least one red}) = 1 - \frac{\binom{3}{3}}{\binom{8}{3}} = 1 - \frac{1}{56} = \frac{55}{56}. With replacement the answer would be 1−(38)3=4855121 - \left(\frac{3}{8}\right)^3 = \frac{485}{512}, slightly smaller.

Important properties and observations

  • Common misconceptions. The mean of two averages is the overall average (true when group sizes are equal or the group means happen to be equal; Example 3). Mutually exclusive events with positive probabilities are independent (they are not). After four heads, a tail is "due" (independent tosses have no memory).
  • Effect of outliers. One extreme value moves the mean but barely moves the median; the median is the better centre for skewed data.
  • Standard deviation facts. It is never negative; it is 0 only when all values are equal; it is in the same units as the data.
  • Probability bounds. Every probability lies in [0,1][0, 1]; the probabilities of all outcomes sum to 1.
  • Equally likely check. The sums 2 to 12 of two dice are not equally likely, so P(sum 8)≠1/11P(\text{sum } 8) \ne 1/11.
  • EDGE CASE. A list with every value distinct has no mode under the "most frequent" definition, unless a stated convention treats every value as a mode.

GATE examination perspective

  • Changed-average questions. Convert to totals (Examples 3 and 4).
  • Median traps. Sort first, and average the two middle values for an even count (Example 2).
  • Divisor traps. Population and sample standard deviation differ; read the wording (Example 5).
  • Transformation questions. Shifts change the mean but not the standard deviation; scalings change both (Example 6).
  • Replacement traps. Options include both the with and without replacement answers (Example 9).
  • Conditional traps. "At least one is a boy" and "the elder is a boy" give different answers, 1/31/3 and 1/21/2 (Example 11).
  • Complement. "At least one" is 1−P(none)1 - P(\text{none}) (Examples 7 and 10).
  • Frequency tables. Weight each value by its frequency; the mode is a value, not a frequency (Example 14).
  • Grouped data. Mean from midpoints is an estimate; the median class comes from cumulative frequency (Example 15).
  • Reversed conditionals. P(A∣B)P(A \mid B) and P(B∣A)P(B \mid A) have different denominators (Examples 16 and 17).
  • Without replacement over several draws. Use the complement with combinations (Example 18).

Summary

Sources

  1. B. Illowsky, S. Dean et al., Introductory Statistics 2e, OpenStax, 2023, Section 2.5 Measures of the Center of the Data; Section 2.7 Measures of the Spread of the Data; Section 3.1 Terminology; Section 3.2 Independent and Mutually Exclusive Events; Section 3.3 Two Basic Rules of Probability; Section 3.4 Contingency Tables; Section 3.5 Tree and Venn Diagrams. (consulted 2026-11-11).
  2. D. Kirk et al., Contemporary Mathematics, OpenStax, 2023, Sections 7.5 Basic Concepts of Probability, 7.8 The Addition Rule for Probability, 7.9 Conditional Probability and the Multiplication Rule, 7.11 Expected Value, 8.3 Mean, Median and Mode, 8.4 Range and Standard Deviation. (consulted 2026-11-11).

Next steps