CSCA Mathematics · Calculus & Statistics · Section 10 of 12
Statistics & Data
Statistics is about collecting, organising, and interpreting data. Here are the key measures.
Measures of Central Tendency
- Mean (x̄): Sum of all values divided by the count.
x̄ = Σxᵢ/n. - Median: The middle value when data is ordered. For even n, average the two middle values.
- Mode: The most frequent value. A set can have multiple modes or no mode.
Measures of Spread
- Range: max - min.
- Variance:
s² = Σ(xᵢ - x̄)²/n. Chinese senior-high textbooks (人教版) use this divide-by-n formula for the variance of a data set, including the sample variance (样本方差); the n − 1 version is a university convention that these textbooks do not use. If every value is changed to axᵢ + b, the mean becomes a·x̄ + b and the variance becomes a²s² (adding b does not change the spread). - Standard Deviation: σ = √(variance). Tells you how spread out the data is.
- Interquartile Range (IQR): Q3 - Q1. Measures the spread of the middle 50% of data.
Quartiles
- Q1 = 25th percentile (第一四分位数).
- Q2 = 50th percentile (the median).
- Q3 = 75th percentile (第三四分位数).
- Find them with the 百分位数 rule below. The "median of the lower/upper half" shortcut sometimes gives a different value, so do not use it on the CSCA.
Percentiles the Chinese-textbook way (百分位数): sort the n values and compute i = n × p%. If i is not a whole number, the p-th percentile is the value in position ⌈i⌉ (round up); if i is a whole number, it is the average of the values in positions i and i + 1. For 1, 2, 3, 4, 5 the 25th percentile is position ⌈1.25⌉ = 2, i.e. 2, whereas "median of the lower half" gives 1.5, so use this rule on the CSCA.
Estimating from a frequency histogram (频率分布直方图). The height of each bar is 频率/组距 (relative frequency ÷ class width), so a bar's area is its relative frequency (频率) and all areas add to 1. Mean ≈ Σ (class midpoint × relative frequency); median = the x where the cumulative relative frequency reaches 0.5; mode ≈ midpoint of the tallest bar. E.g. classes [40,50), [50,60), [60,70), [70,80) with relative frequencies 0.1, 0.3, 0.4, 0.2: mean ≈ 45(0.1) + 55(0.3) + 65(0.4) + 75(0.2) = 62; the first two classes hold 0.4, so the median lies in [60,70) at 60 + 10 × (0.1/0.4) = 62.5.
Box Plots (Box-and-Whisker)
Display the five-number summary: min, Q1, median, Q3, max. Outliers are points more than 1.5 × IQR below Q1 or above Q3.
Correlation
Measures the strength and direction of a linear relationship between two variables. r ranges from -1 to 1. Close to ±1 = strong, close to 0 = weak. Correlation does NOT imply causation.
The regression line. The least-squares regression line of y on x is the straight line that minimises the sum of the SQUARED vertical distances from the points to the line. Whatever the data, it always passes through the mean point (x̄, ȳ) (样本中心点), a fact you can use to find a missing coefficient. Use it to predict y from x, and be wary of extrapolating beyond the range of the data, where the relationship may simply not hold.
The correlation coefficient r measures how strong and in which direction the linear relationship is, with −1 ≤ r ≤ 1; r² is the fraction of the variation in y that the line accounts for. A strong correlation still does not establish causation — a third variable may be driving both.
The next two topics, the standard error and confidence intervals, are beyond the CSCA syllabus and Chinese senior-high textbooks; read them as enrichment only.
Standard Error of the Mean
The standard deviation σ describes how spread out individual values are; the standard error describes how much a sample MEAN would vary from sample to sample:
SE = σ / √n
Because n is under a square root, quadrupling the sample size only halves the standard error — which is why large surveys cost so much for modest gains in precision. A sample of 100 from a population with σ = 20 has SE = 20/√100 = 2.0.
Confidence Intervals
A confidence interval takes the sample mean and reaches out a fixed number of standard errors either side:
x̄ ± z × SE, with z = 1.96 for 95% and z = 2.58 for 99%
So a sample mean of 50 with SE = 2.0 gives 50 ± 1.96 × 2.0 = 50 ± 3.92, an interval of (46.1, 53.9). Two mistakes are common: using σ in place of SE, which produces an interval about ten times too wide here, and dropping the 1.96 altogether. Read the interval carefully too — 95% confidence describes the long-run reliability of the METHOD, not the probability that this particular interval contains μ.
Key takeaway: Mean, median, mode for centre. Variance, SD, IQR for spread. Quartiles divide data into four equal parts. Correlation ≠ causation.
Key Formulas
Mean: Σx/n | Variance: Σ(x-x̄)²/n
SD: √(variance) | IQR: Q3-Q1
Outliers: < Q1-1.5·IQR or > Q3+1.5·IQR
Worked Example 1
Example 1: Data: 3, 5, 7, 7, 9. Find mean, median, mode.
Mean = 31/5 = 6.2. Median = 7 (middle). Mode = 7 (appears twice).
Worked Example 2
Example 2: Find Q1, Q2, Q3 for: 2, 4, 6, 8, 10, 12.
n = 6, data already sorted. Q1: 6 × 25% = 1.5, not whole → position 2 → Q1 = 4. Q2: 6 × 50% = 3, whole → average of positions 3 and 4 = (6+8)/2 = 7. Q3: 6 × 75% = 4.5 → position 5 → Q3 = 10. IQR = 10-4 = 6.
Worked Example 3
Example 3: Calculate the population variance of: 4, 6, 8.
Mean = 6. Deviations: -2, 0, 2. Squared: 4, 0, 4. Variance = 8/3 ≈ 2.67.
Exam Tips
Always sort the data before finding the median — unsorted data leads to wrong answers.
For "which measure is best", mean is affected by outliers, median is resistant. Choose accordingly.
Common Mistakes
Using n − 1 instead of n: Chinese textbooks, and therefore the CSCA, divide by n for the variance of a data set, including a sample. Divide by n unless a question explicitly gives the n − 1 formula.
Confusing standard deviation with variance: SD = √(variance). They have different units.
Try This Yourself
Data: 10, 20, 30, 40, 50. Find the mean and standard deviation (population).
Show the answer
Mean = 30. Deviations²: 400,100,0,100,400. Var = 1000/5 = 200. SD = √200 ≈ 14.14.