Statistics and Probability part 1
Table of contents
- Sampling and data collection
- Bivariate data, Pearson correlation and regression
1. Sampling and data collection
1.1 Sampling techniques
- Simple Random Sampling: Every member of the population has an equal chance of being selected, often using a random number generator.
- Stratified Sampling: The population is divided into groups (strata) based on shared characteristics, and a random sample is taken from each group proportionally to its size.
- Systematic Sampling: Every kth member from a list is selected after a random starting point.
- Quota Sampling: A non-random method where researchers ensure specific groups are represented until a predetermined limit (quota) is met.
- Convenience Sampling: Individuals who are easiest to reach are selected, which carries a high risk of bias 1.
1.2 Sampling bias
Sampling bias occurs when certain members of a population are systematically more likely to be selected than others, leading to a sample that does not accurately represent the population 2.
- Q1. A researcher stands outside a gym and asks the first 20 people their fitness habits. Identify the sampling method. This question tests the identification of convenience sampling.
- Q2. Explain why stratified sampling might be preferred over simple random sampling in a school with 90% boys and 10% girls. This question assesses understanding of stratified sampling's benefit in ensuring proportional representation.
- Q3. In a town of 5000 people, every 50th person on the voter roll is contacted. Name the method. This question tests the identification of systematic sampling 2.
📝 For a dataset {4, 7, 10, 12, 17}, the mean is 10 and the population standard deviation is σ=98/5≈4.43 5.
1.3 Central tendency vs. dispersion (spread) 3
Descriptive statistics involves collecting, organizing, and summarizing data to reveal patterns. Key aspects include measures of central tendency (where data centers) and dispersion (how spread out data is) 2.
| Category | Measure | Definition & Intuition | Sensitivity to Outliers |
|---|---|---|---|
| Central Tendency (The "Center") | Mean (x̄) | Arithmetic average: x̄ = (∑ x) / n. The "balance point" of the data. | Highly Sensitive |
| Central Tendency (The "Center") | Median (Med) | The middle value when data is arranged in order. Exactly 50% above, 50% below. | Resistant (Robust) |
| Central Tendency (The "Center") | Mode | The most frequently occurring data value. | Resistant |
| Dispersion (The "Spread") | Range | Full width: xmax - xmin. Simple but ignores distribution. | Highly Sensitive |
| Dispersion (The "Spread") | Interquartile Range (IQR) | Spread of the middle 50%: IQR = Q3 - Q1. Ignores extreme tails. | Resistant |
| Dispersion (The "Spread") | Standard Deviation (σ) | Average distance of data points from the mean: σ = Σ(𝑥−𝑥)² / 𝑁 | Sensitive |
1.4 Data visualizations
-
Cumulative Frequency Curves (Ogive): These curves display the running total of frequencies and are used to estimate the median (50th percentile) and quartiles by reading from the y-axis (frequency) to the curve and then down to the x-axis (value).
-
Stem-and-Leaf Diagrams: This method organizes data by leading digits (stems) and trailing digits (leaves), preserving original data values while illustrating distribution shape 4.
-
Q1. From a cumulative frequency curve with n=80, find the y-value used to locate the Lower Quartile (Q1). This question tests the understanding of how to find quartiles from a cumulative frequency curve.
-
Q2. In a stem-and-leaf plot, a stem of 4 and a leaf of 7 with key 4|0 = 40 represents what number? This question assesses the interpretation of stem-and-leaf plot keys.
-
Q3. Explain why the leaf in a stem-and-leaf plot must only be a single digit. This question probes the structural rules of stem-and-leaf plots 4.
1.5 Population vs. sample standard deviation
- Population Standard Deviation (σ): Used when analyzing a dataset as the complete set of interest.
- Sample Standard Deviation (s): Used when the data represents only a subset of a larger population. For IB exams, default to population standard deviation unless explicitly stated otherwise 5.
Manual Calculation Example: For dataset {4, 7, 10, 12, 17}:
- Mean (x̄): Sum = 50. x̄ = 50 / 5 = 10.
- Standard Deviation (σ): Squared deviations from mean are 36, 9, 0, 4, 49. Sum = 98. σ = √(98 / 5) ≈ 4.43 5.
1.6 Linear transformations (Y = aX + b)
Linear transformations affect statistics as follows:
- Adding/Subtracting (b): Shifts the data, moving the center (mean, median, mode) by +b but leaving the spread (range, IQR, standard deviation) unchanged.
- Multiplying/Dividing (a): Scales the data, stretching or shrinking the distribution. This affects the center by factor 'a' and the spread by factor '|a|'. Variance scales by a² 5.
| Statistic Type | Example Measures | Effect of Y = aX + b |
|---|---|---|
| Center | Mean, Median, Mode | Multiply by a, then add b. |
| Spread | Range, IQR, Std Dev | Multiply by |
| Variance | Variance | Multiply by a² only (Adding b has no effect!) |
Quick Check: The standard deviation uses the absolute value |-2| when multiplying by -2 because it measures spread, which is always a positive quantity 5.
Linear Transformation Example: For dataset X = {2, 4, 6} and Y = 3X + 1:
- Original Mean (x̄) = 4. Original Standard Deviation (σx) ≈ 1.63.
- New Mean (ȳ) = 3 + 1 = 13 4.
- New Standard Deviation (σy) = |3| × 1.63 ≈ 4.89 6.
1.7 Outlier identification: The 1.5 × IQR rule
An outlier is an extreme data point significantly different from other observations. Fences are used to identify them:
- Lower Fence (LF): Q1 - 1.5 × IQR.
- Upper Fence (UF): Q3 + 1.5 × IQR. Any data value x < LF or x > UF is classified as an outlier 6.
Worked Example 1.1: Test scores: 12, 28, 30, 32, 35, 36, 38, 40, 42, 45.
- Median = 35.5, Q1 = 30, Q3 = 40, IQR = 10.
- LF = 30 - 1.5 = 15. Since 12 < 15, 12 is an outlier10.
- For Y = 2X + 10 (original x̄ = 33.8, σx = 8.68): New Mean = 2(33.8) + 10 = 77.6. New Std Dev = |2|(8.68) = 17.36 7.
📝 For test scores {12, 28, 30, 32, 35, 36, 38, 40, 42, 45}, Q1 = 30, Q3 = 40, and IQR = 10. The lower fence is 30−1.5×10=15, so the score 12 is an outlier because 12<15 7.
1.8 TI-Nspire GDC guide: Summary statistics
- Enter data in Lists & Spreadsheet (Column A).
- Navigate to [menu → 4: Statistics → 1: Stat Calculations → 1: One-Variable Statistics.
- Output includes x̄, σx, n, MinX, Q1, Med, Q3, MaxX 7.
1.9 Practice problems & solutions: Descriptive statistics
- Q1.1: Given Q1 = 22 and Q3 = 38, find the lower and upper fences for outlier detection. LF = -2, UF = 62.
- Q1.2: The mean of 15 numbers is 12. If a 16th number, 28, is added, find the new mean. New Mean = 13.
- Q1.3: A distribution has σ = 4.2. Each value is multiplied by -4 and reduced by 7. Find the new standard deviation. New σy = 16.8.
- Q1.4: In a symmetrical distribution, Q1 = 18 and Q3 = 34. Find the median. Median = 26 8.
- Q1.5: A set of observations X has Var(X) = 9. Find the variance of Y = 3X - 5. Var(Y) = 81.
- Q1.6: Dataset (n=8) has x̄ = 10, σ = 3. Each number multiplied by -2, then 5 added. (a) New mean = -15. (b) New standard deviation = 6, new variance = 36.
- Q1.7: Ages: 18, 19, 19, 20, 22, 23, 24, 25, 26, 28, 30, 31, 35, 58. (a) Mean ≈ 27.0, Median = 24.5, IQR = 10, σx ≈ 9.76. (b) UF = 45. Since 58 > 45, 58 is an outlier 9.
2. Bivariate data, Pearson correlation and regression
Bivariate data involves analyzing two variables simultaneously to explore their relationships 9.
2.1 Explanatory vs. response variables & scatter diagrams
- Explanatory Variable (x): Plotted on the horizontal axis; it's the variable used for prediction.
- Response Variable (y): Plotted on the vertical axis; it's the outcome being measured 9.
Pearson's Correlation Coefficient (r) measures the linear strength and direction between two continuous variables, ranging from -1 to +1.
- Interpreting r: Must specify both strength (e.g., strong, moderate, weak) and direction (positive or negative).
- Quick Check: When r = -0.1, there is a very weak negative linear relationship between the two variables 10.
2.2 The line of best fit / linear regression line
The linear regression line of y on x, given by y = ax + b, minimizes the sum of squared vertical distances from points to the line 10.
Golden Rule of Regression Lines: The regression line always passes through the mean point (x̄, ȳ). The y-intercept (b) can be found using: b = ȳ - a x̄ 10.
Regression Line Derivation Example: If x̄ = 2, ȳ = 5, and gradient a = 3, then b = 5 - = -1. The equation is y = 3x - 1 2 3 10.
📝 If x̄ = 2, ȳ = 5, and gradient a = 3, then b = 5 - (3)(2) = -1. The equation is y = 3x - 1 10.
2.3 Interpolation vs. extrapolation & coefficient of determination (r²)
- Interpolation: Predicting y for an x-value within the range of observed data; reliable if r is strong.
- Extrapolation: Predicting y for an x-value outside the observed data range; unreliable as the linear trend may not continue 10.
- Coefficient of Determination (r²): Represents the proportion of total variance in the response variable (y) explained by the linear relationship with the explanatory variable (x). For example, if r = 0.9, r² = 0.81, meaning 81% of the variance in y is explained by x 11.
Quick Check: Predicting a test score for 20 hours of study is unreliable if the data range is 1-7 hours because it is extrapolation 11.
Try this: Data on hours studied (x) and test scores (y) is provided.
- (a) Draw a scatter plot and sketch the line of best fit.
- (b) Use a GDC to find the regression line equation (y = ax + b).
- (c) Interpret the gradient 'a' in context.
- (d) Predict the score for 4.5 hours of study; identify as interpolation or extrapolation.
- (e) Calculate 'r' and interpret its value.
- (f) Calculate 'r²' and interpret its meaning regarding variance 11.
📝 Predicting a test score for 20 hours of study is unreliable if the data range is 1-7 hours because it is extrapolation 11.
2.4 Why r vs r² matters
- r (Trend Reporter): Indicates the direction (positive/negative) and strength of the linear relationship.
- r² (Percentage Reporter): Shows the percentage of variance in the response variable accounted for by the explanatory variable. The sign of r is crucial for understanding the relationship's direction 12.
2.5 TI-Nspire GDC guide: Linear regression
- Enter x-data and y-data in separate columns (Lists & Spreadsheet). Ensure lists have equal entries.
- Navigate to [menu → 4: Statistics → 1: Stat Calculations → 3: Linear Regression (mx+b).
- Select X and Y lists to view slope (m), y-intercept (b), and correlation values (r, r²).
- Exam Strategy: A 'Dimension Mismatch' error indicates unequal list lengths 12.
2.6 Practice problems & solutions: Bivariate analysis
- Q2.1: Interpret r = -0.92. Very strong negative linear correlation; as x increases, y decreases linearly.
- Q2.2: Regression line y = -1.4x + 18.2. Given x̄ = 5, find ȳ. ȳ = 11.2.
- Q2.3: Scatter diagram x from 10 to 50. Predicting y at x = 5 is extrapolation, as 5 is outside the observed domain.
- Q2.4: Regression equation y = 3.2x + 12 models temperature (y) vs. altitude (x). Interpret gradient 3.2: for every 1-unit increase in altitude, temperature increases by 3.2 units.
- Q2.5: Given r = 0.85, find r² and interpret. r² = 0.7225; 72.25% of variation in y is explained by x.
- Q2.6: Bivariate data: x̄ = 8, ȳ = 15. Regression line passes through (8, 15) with gradient a = 1.25. (a) Show y = 1.25x + 5. (b) Estimate y when x = 12: y = 20 13.
- Q2.7: Engine fuel consumption (y in L/100km) vs. speed (x in km/h): x: 40, 60, 80, 100, 120; y: 5.2, 5.8, 6.7, 7.9, 9.1. (a) r = 0.992 (Extremely strong positive correlation). (b) Equation: y = 0.0495x + 2.98. (c) Predicted consumption at x = 90 km/h is 7.435 L/100km. Reliable because r is close to 1 and x = 90 is interpolation 14 15.
© 2026 Maeve. All rights reserved. This content is protected by copyright.