Solved Exercises on Variance and Standard Deviation in High School Statistics

Master variance and standard deviation: calculating measures of spread, interpreting results, and applying statistical formulas through these 5 detailed exercises.

Solution: Exercises 1 to 3
1 Basic Variance Calculation
Exercise 1
Find the variance and standard deviation of the data set: 2, 4, 6, 8, 10
Definition:

Variance: Average of squared deviations from the mean, measuring data spread

Standard Deviation: Square root of variance, in same units as original data

Step-by-step method:
  1. Calculate the mean (average)
  2. Find deviation of each value from the mean
  3. Square each deviation
  4. Calculate average of squared deviations (variance)
  5. Take square root to get standard deviation
Data Set
{2, 4, 6, 8, 10}
Mean
6
Variance
8
Std Dev
2.83
Step 1: Calculate the mean

Mean = (2 + 4 + 6 + 8 + 10) ÷ 5 = 30 ÷ 5 = 6

Step 2: Find deviations from mean

2 - 6 = -4, 4 - 6 = -2, 6 - 6 = 0, 8 - 6 = 2, 10 - 6 = 4

Step 3: Square each deviation

(-4)² = 16, (-2)² = 4, (0)² = 0, (2)² = 4, (4)² = 16

Step 4: Calculate variance

Variance = (16 + 4 + 0 + 4 + 16) ÷ 5 = 40 ÷ 5 = 8

Step 5: Calculate standard deviation

Standard Deviation = √8 ≈ 2.83

Variance = 8, Standard Deviation ≈ 2.83
Final answer:

Variance = 8, Standard Deviation ≈ 2.83

Applied formulas:

• Mean: x̄ = Σx/n

• Variance: σ² = Σ(x - x̄)²/n

• Standard Deviation: σ = √σ²

2 Population vs Sample Variance
Exercise 2
Given sample data: 5, 7, 9, 11, 13, calculate both population and sample variance
Definition:

Population Variance: σ² = Σ(x - μ)²/N (uses N)

Sample Variance: s² = Σ(x - x̄)²/(n-1) (uses n-1)

Data
{5, 7, 9, 11, 13}
Mean
9
Pop Var
8
Sample Var
10
Step 1: Calculate the mean

Mean = (5 + 7 + 9 + 11 + 13) ÷ 5 = 45 ÷ 5 = 9

Step 2: Find deviations and squares

(5-9)² = 16, (7-9)² = 4, (9-9)² = 0, (11-9)² = 4, (13-9)² = 16

Step 3: Calculate population variance

σ² = (16 + 4 + 0 + 4 + 16) ÷ 5 = 40 ÷ 5 = 8

Step 4: Calculate sample variance

s² = (16 + 4 + 0 + 4 + 16) ÷ (5-1) = 40 ÷ 4 = 10

Population Variance = 8, Sample Variance = 10
Final answer:

Population Variance = 8, Sample Variance = 10

Applied rules:

• Population: Divide by N (total count)

• Sample: Divide by (n-1) for unbiased estimate

• Bessel's Correction: Using (n-1) reduces bias in sample estimates

3 Frequency Distribution
Exercise 3
Calculate variance and standard deviation for grouped data:
Score: 10, 20, 30, 40
Frequency: 2, 3, 4, 1
Definition:

Grouped Data Formula: σ² = Σf(x - x̄)²/Σf where f is frequency

Scores
10, 20, 30, 40
Frequencies
2, 3, 4, 1
Mean
23
Variance
61
Step 1: Calculate the weighted mean

x̄ = (10×2 + 20×3 + 30×4 + 40×1) ÷ (2+3+4+1) = (20+60+120+40) ÷ 10 = 240 ÷ 10 = 24

Step 2: Calculate squared deviations

(10-24)² = 196, (20-24)² = 16, (30-24)² = 36, (40-24)² = 256

Step 3: Multiply by frequencies

196×2 = 392, 16×3 = 48, 36×4 = 144, 256×1 = 256

Step 4: Calculate variance

σ² = (392 + 48 + 144 + 256) ÷ 10 = 840 ÷ 10 = 84

Step 5: Calculate standard deviation

σ = √84 ≈ 9.17

Mean = 24, Variance = 84, Standard Deviation ≈ 9.17
Final answer:

Mean = 24, Variance = 84, Standard Deviation ≈ 9.17

Applied formulas:

• Weighted Mean: x̄ = Σ(f×x)/Σf

• Grouped Variance: σ² = Σf(x - x̄)²/Σf

• Frequency Weighting: Each data point appears f times in calculation

Rules and methods, laws,...
\(σ^2 = \frac{\sum(x - \bar{x})^2}{n}\)
Population Variance
Formula 1
\(σ^2 = \frac{\sum(x - μ)^2}{N}\)
Population Variance
Formula 2
\(s^2 = \frac{\sum(x - \bar{x})^2}{n-1}\)
Sample Variance
Formula 3
\(σ = \sqrt{σ^2}\)
Standard Deviation
Key definitions:

Variance: Average squared deviation from the mean, measure of data spread

Standard Deviation: Square root of variance, expressed in same units as data

Population: Entire group being studied (parameter)

Sample: Subset of population (statistic)

Complete methodology:
  1. Identify the type: Population vs sample data
  2. Calculate the mean: Sum of values divided by count
  3. Find deviations: Subtract mean from each value
  4. Square deviations: Eliminate negative values
  5. Average squares: Divide by N or (n-1)
  6. Calculate SD: Take square root of variance
Tip 1: Variance is always positive and measured in squared units.
Tip 2: Standard deviation has same units as original data, making it more interpretable.
Tip 3: Use (n-1) for samples to get unbiased estimate (Bessel's correction).
Tip 4: Larger standard deviation indicates greater variability in data.
Common errors: Using wrong divisor (N vs n-1), forgetting to square deviations, miscalculating mean.
Exam preparation: Memorize formulas, practice with different data types, understand when to use population vs sample formulas.
Formulas to know by heart:

• Population Variance: σ² = Σ(x - μ)²/N

• Sample Variance: s² = Σ(x - x̄)²/(n-1)

• Standard Deviation: σ = √σ²

• Weighted Variance: σ² = Σf(x - x̄)²/Σf

Solution: Exercises 4 to 5
4 Coefficient of Variation
Exercise 4
Dataset A has mean = 50, std dev = 10. Dataset B has mean = 100, std dev = 20. Which dataset has greater relative variability?
Definition:

Coefficient of Variation: CV = (σ/μ) × 100%, measures relative variability

Dataset A
CV = 20%
Dataset B
CV = 20%
Conclusion
Equal Relativity
Step 1: Calculate CV for Dataset A

CV_A = (10/50) × 100% = 0.2 × 100% = 20%

Step 2: Calculate CV for Dataset B

CV_B = (20/100) × 100% = 0.2 × 100% = 20%

Step 3: Compare relative variabilities

Since CV_A = CV_B = 20%, both datasets have equal relative variability

Step 4: Interpretation

Although Dataset B has larger absolute variability (std dev = 20 vs 10), the relative variability compared to its mean is the same as Dataset A

Both datasets have equal coefficient of variation (20%)
Final answer:

Both datasets have equal relative variability (CV = 20%)

Applied rules:

• Coefficient of Variation: CV = (σ/μ) × 100%

• Relative Comparison: Useful for comparing variability across different scales

• Unitless Measure: Allows comparison regardless of measurement units

5 Properties of Variance
Exercise 5
If X has mean = 15 and variance = 9, find the mean and variance of Y = 2X + 5
Definition:

Linear Transformation Properties: If Y = aX + b, then E[Y] = aE[X] + b and Var(Y) = a²Var(X)

Original
X: μ=15, σ²=9
Transform
Y = 2X + 5
New Stats
μ_Y=35, σ²_Y=36
Step 1: Identify transformation parameters

Y = 2X + 5, so a = 2 and b = 5

Step 2: Calculate new mean

E[Y] = E[2X + 5] = 2E[X] + 5 = 2(15) + 5 = 30 + 5 = 35

Step 3: Calculate new variance

Var(Y) = Var(2X + 5) = 2²Var(X) = 4 × 9 = 36

Step 4: Calculate new standard deviation

SD(Y) = √36 = 6

Y has mean = 35, variance = 36, standard deviation = 6
Final answer:

Y has mean = 35, variance = 36, standard deviation = 6

Applied rules:

• Linear Transformation: If Y = aX + b, E[Y] = aE[X] + b

• Variance Property: Var(aX + b) = a²Var(X)

• Additive Constant: Adding constant doesn't change variance

Statistical Laws and Properties for Variance and Standard Deviation
\(σ^2 = \frac{\sum(x_i - \bar{x})^2}{n}\)
Variance Formula
Key definitions:

Measures of Spread: Quantify how data values vary around the center

Dispersion: Degree to which data points differ from central tendency

Homogeneity: Low variance indicates data points cluster closely together

Heterogeneity: High variance indicates data points are spread out widely

Complete methodology:
  1. Data Analysis: Determine if working with population or sample
  2. Central Tendency: Calculate mean (most common reference point)
  3. Deviation Calculation: Find distance of each value from mean
  4. Squaring: Square deviations to eliminate negatives and emphasize larger differences
  5. Averaging: Calculate mean of squared deviations
  6. Interpretation: Convert back to original units using square root
Tip 1: Variance is sensitive to outliers because of squaring operation.
Tip 2: Standard deviation is preferred over variance for interpretation due to same units as data.
Tip 3: In normal distributions, approximately 68% of data falls within one standard deviation of the mean.
Tip 4: Zero variance means all data points are identical.
Tip 5: Variance cannot be negative; minimum value is zero.
Statistical Properties: Variance is additive for independent variables, standard deviation follows specific transformation rules.
Applications: Quality control, risk assessment, scientific measurements, financial analysis.
Comparison Measures: Coefficient of variation allows cross-unit comparisons, Z-scores standardize data.
Statistical Laws and Properties:

• Translation Invariance: Adding constant doesn't change variance: Var(X + c) = Var(X)

• Scaling Property: Multiplying by constant: Var(aX) = a²Var(X)

• Linear Transformation: Var(aX + b) = a²Var(X)

• Independence: Var(X + Y) = Var(X) + Var(Y) if X and Y are independent

• Non-negativity: Variance ≥ 0, equals zero only when all values are identical

Visual Representation: Variance and Standard Deviation
Exercise 6: Comparing Distributions
Three datasets with same mean (50) but different standard deviations:
Dataset 1: σ = 5 (low variability)
Dataset 2: σ = 10 (medium variability)
Dataset 3: σ = 15 (high variability)

Analysis: The chart demonstrates how standard deviation affects the spread of data around the mean.

  • Low SD: Data tightly clustered around mean (bell-shaped curve is narrow)
  • Medium SD: Moderate spread around mean
  • High SD: Wide spread of data points from mean (flatter curve)

Questions & Answers

Question: Why do we square the deviations when calculating variance? Why not just use absolute values?

Answer: Great question! Squaring deviations serves several important purposes:

  • Eliminates negatives: Positive and negative deviations cancel out if we don't square them
  • Emphasizes outliers: Squaring gives more weight to values far from the mean
  • Mathematical convenience: Squared functions are differentiable, making calculus operations easier
  • Variance properties: Squared deviations lead to useful statistical properties like additivity for independent variables

While absolute deviations (mean absolute deviation) could be used, variance has superior mathematical properties that make it fundamental to statistical inference and probability theory.

However, standard deviation (square root of variance) brings us back to the original units, making it more interpretable than variance itself.

Question: When should I use population variance versus sample variance? How do I know which formula to apply?

Answer: The choice depends on your data context:

  • Population variance (σ²): Use when you have data for the entire group of interest. Example: Heights of all students in your school.
  • Sample variance (s²): Use when you have a subset of a larger population. Example: Heights of 50 randomly selected students from your state.

Key indicator words:

  • Population: "all", "entire", "complete", "every"
  • Sample: "sample", "random", "selected", "subset", "survey"

The (n-1) denominator in sample variance (Bessel's correction) provides an unbiased estimate of the population variance, compensating for the fact that sample means tend to underestimate population variance.

Always consider: Am I studying the whole group or just a part of it?

Question: How does standard deviation relate to the concept of "normal distribution" and why is it important?

Answer: Standard deviation is crucial to normal distribution because it defines the shape and spread:

  • Empirical Rule: In a normal distribution:
    • ≈68% of data falls within 1 standard deviation of the mean
    • ≈95% of data falls within 2 standard deviations of the mean
    • ≈99.7% of data falls within 3 standard deviations of the mean

Standard deviation allows us to:

  • Standardize scores (Z-scores: z = (x - μ)/σ)
  • Compare different normal distributions
  • Make probability calculations
  • Set confidence intervals

Many natural phenomena follow normal distribution (heights, weights, test scores), making standard deviation essential for understanding and predicting real-world events.

It's the foundation for hypothesis testing, quality control, and many statistical inference procedures.

Question: Can you explain why we divide by (n-1) instead of n for sample variance? What is Bessel's correction?

Answer: Bessel's correction addresses a systematic bias in sample variance estimation:

The Problem: When using sample mean (x̄) instead of population mean (μ), the deviations (x - x̄) tend to be smaller than deviations from the true population mean (x - μ). This leads to underestimating the true population variance.

The Solution: Dividing by (n-1) instead of n increases the variance estimate to compensate for this bias. The degrees of freedom are reduced by 1 because we estimated the mean from the same data.

Mathematical basis: E[s²] = σ² when dividing by (n-1), making it an unbiased estimator. Without this correction, E[s²] = (n-1)/n × σ², which systematically underestimates the population variance.

For large samples, the difference between n and (n-1) is minimal, but for small samples, this correction is critical for accurate statistical inference.

Question: What are some practical applications of variance and standard deviation in real life?

Answer: Variance and standard deviation have numerous practical applications:

  • Quality Control: Manufacturing processes monitor standard deviation to detect defects
  • Finance: Investment risk is measured by standard deviation of returns
  • Education: Test score analysis uses standard deviation to understand performance spread
  • Medicine: Clinical trials analyze variance to determine treatment effectiveness
  • Weather: Temperature variations are reported using standard deviation
  • Research: Scientific studies use these measures to assess data reliability

In all these fields, understanding variability helps make informed decisions, set appropriate expectations, and identify unusual patterns or outliers.

These measures are fundamental tools for quantifying uncertainty and making predictions about future outcomes.