Complete Guide to Calculating Statistics
Master statistical calculations with comprehensive step-by-step tutorials, formulas, and practical examples for IB, AP, GCSE, and university-level mathematics. Learn to calculate measures of central tendency, variability, correlation, and hypothesis testing.
Quick Navigation
1 Calculating Measures of Central Tendency
μ Mean (Average) Calculation
Step-by-Step Process:
- Add all values in your dataset
- Count the number of values (n)
- Divide the sum by the count
📝 Worked Example:
Data: 4, 7, 9, 10, 15
Step 1: Sum = 4 + 7 + 9 + 10 + 15 = 45
Step 2: Count (n) = 5
Step 3: Mean = 45 ÷ 5 = 9
M Median Calculation
Step-by-Step Process:
- Arrange data in ascending order
- Find the middle position(s)
- Identify median value based on n
📝 Examples:
Odd n: 3, 7, 9, 12, 15 → Median = 9 (middle value)
Even n: 3, 7, 9, 12 → Median = (7+9)/2 = 8
Mo Mode Calculation
Step-by-Step Process:
- Count frequency of each value
- Identify the most frequent value(s)
- Note: Can have no mode, one mode, or multiple modes
📝 Examples:
Unimodal: 2, 3, 3, 4, 5 → Mode = 3
Bimodal: 1, 2, 2, 3, 3, 4 → Modes = 2, 3
No mode: 1, 2, 3, 4, 5 → No repeating values
R Range Calculation
Step-by-Step Process:
- Identify the highest value (maximum)
- Identify the lowest value (minimum)
- Subtract: Range = Maximum - Minimum
📝 Worked Example:
Data: 15, 22, 8, 35, 12, 18
Maximum: 35
Minimum: 8
Range: 35 - 8 = 27
2 Calculating Measures of Variability
σ² Variance Calculation - Step by Step
📋 Step-by-Step Process:
- Calculate the mean (x̄)
- Find deviations from mean for each value: (x - x̄)
- Square each deviation: (x - x̄)²
- Sum all squared deviations: Σ(x - x̄)²
- Divide by: n-1 (sample) or n (population)
📐 Formulas:
🔍 Detailed Worked Example:
Data: 4, 7, 9, 10, 15
x̄ = (4+7+9+10+15)/5 = 9
4-9=-5, 7-9=-2, 9-9=0
10-9=1, 15-9=6
25, 4, 0, 1, 36
Σ(x-x̄)² = 25+4+0+1+36 = 66
Sample Variance: s² = 66/(5-1) = 66/4 = 16.5
σ Standard Deviation Calculation
✨ Simple Process:
- Calculate variance first (follow steps above)
- Take the square root of the variance
📐 Formulas:
📝 Continuing Previous Example:
From our variance calculation: s² = 16.5
Standard Deviation: s = √16.5 ≈ 4.06
3 Calculating Correlation Coefficient
r Pearson Correlation Coefficient
📋 Step-by-Step Process:
- Calculate means of both variables (x̄, ȳ)
- Find deviations from means
- Calculate products of deviations
- Calculate standard deviations of both variables
- Apply correlation formula
📐 Formula:
Alternative: r = Cov(x,y) / (sx × sy)
🔍 Worked Example:
Data: Hours studied (x): 2, 4, 6, 8 | Test scores (y): 65, 70, 85, 90
x | y | x - x̄ | y - ȳ | (x-x̄)(y-ȳ) | (x-x̄)² | (y-ȳ)² |
2 | 65 | -3 | -12.5 | 37.5 | 9 | 156.25 |
4 | 70 | -1 | -7.5 | 7.5 | 1 | 56.25 |
6 | 85 | 1 | 7.5 | 7.5 | 1 | 56.25 |
8 | 90 | 3 | 12.5 | 37.5 | 9 | 156.25 |
Sums: | 0 | 0 | 90 | 20 | 425 |
Calculation:
x̄ = 5, ȳ = 77.5
r = 90 / √(20 × 425) = 90 / √8500 = 90 / 92.2 ≈ 0.976
Interpretation: Very strong positive correlation
📊 Correlation Interpretation Guide:
4 Calculating Test Statistics
H General Hypothesis Testing Steps
- State Hypotheses:
- H₀ (null hypothesis)
- H₁ (alternative hypothesis)
- Choose significance level (α) (typically 0.05)
- Calculate test statistic using appropriate formula
- Find p-value or critical value
- Make decision: Reject or fail to reject H₀
If p-value ≤ α: Reject H₀
If p-value > α: Fail to reject H₀
Z Z-Test Calculation
When to Use:
- Population standard deviation is known
- Large sample size (n ≥ 30)
- Population is normally distributed
📝 Example:
Sample mean = 52, μ = 50, σ = 8, n = 64
z = (52 - 50)/(8/√64) = 2/(8/8) = 2/1 = 2.0
t T-Test Calculation
When to Use:
- Population standard deviation is unknown
- Small sample size (n < 30)
- Use sample standard deviation
Degrees of freedom: df = n - 1
📝 Example:
Sample mean = 18.5, μ = 20, s = 3.2, n = 16
t = (18.5 - 20)/(3.2/√16) = -1.5/(3.2/4) = -1.5/0.8 = -1.875
df = 16 - 1 = 15
t₂ Two-Sample T-Test
Degrees of freedom: df = n₁ + n₂ - 2
🖩 Calculator Tips & Common Mistakes
📱 Calculator Tips
- STAT mode: Use for entering data lists
- 1-Var Stats: Calculates mean, std dev, variance
- 2-Var Stats: For correlation analysis
- Check n vs n-1: Sample vs population formulas
- Store intermediate results to avoid rounding errors
⚠️ Common Mistakes
- Confusing sample (n-1) vs population (n) formulas
- Forgetting to square deviations for variance
- Not arranging data for median calculation
- Using wrong test (z vs t) based on conditions
- Misinterpreting correlation vs causation
💡 Study Tips
- Practice by hand first to understand concepts
- Verify calculator results with simple examples
- Understand when to use each statistical measure
- Check assumptions before applying tests
- Interpret results in context of the problem
🔍 Quick Reference
Mean: \( \bar{x} = \frac{\sum x}{n} \)
Variance: \( s^2 = \frac{\sum(x-\bar{x})^2}{n-1} \)
Std Dev: \( s = \sqrt{s^2} \)
Z-score: \( z = \frac{x-\mu}{\sigma} \)
Correlation: \( r = \frac{\sum(x-\bar{x})(y-\bar{y})}{\sqrt{\sum(x-\bar{x})^2\sum(y-\bar{y})^2}} \)
About the Author
Adam Kumar
Co-Founder @RevisionTown
Mathematics Expert specializing in various curricula including IB, AP, GCSE, IGCSE, and more.
Dedicated to creating comprehensive statistical education resources and step-by-step calculation guides for students worldwide.
RevisionTown provides comprehensive study materials, interactive calculators, and step-by-step guides for mathematics and statistics across multiple international curricula.