E = row total × column total / grand total, df = (r − 1)(c − 1)
Critical values (α = 0.05)
df 1: 3.841, 2: 5.991, 3: 7.815, 4: 9.488
Decision
reject H0 if χ² > χ²crit
2Practice problems
1.Normal distributionMedium
X is normal with mean 120 mm and standard deviation 0.3 mm; Y is independent and normal with mean 80 mm and standard deviation 0.4 mm. Find the probability P that X + Y is more than 200.4 mm. Round z to two decimals.
μX = 120, σX = 0.3μY = 80, σY = 0.4X + Y > 200.4 mm
P =
2.Normal distributionHard
The bag weights are normally distributed with mean 250 g and standard deviation 5 g. Find the value x below which 75% of them lie (the 75th percentile).
μ = 250σ = 5P = 75%
x = g
3.Confidence intervalsMedium
A sample of 11 items has mean 80 and standard deviation s = 10. The population is roughly normal. Find the lower limit of the 95% confidence interval for the mean.
n = 11x̄ = 80s = 1095%t(10) = 2.228
lower limit =
4.Confidence intervalsHard
Two fertilisers are tested. Plot group 1: 22 plots, mean yield 53 kg, standard deviation 4 kg. Plot group 2: 9 plots, mean 54.5 kg, standard deviation 9.5 kg. Assume equal variances (pooled t, df = n₁ + n₂ − 2). Find the upper limit of the 90% confidence interval for μ₁ − μ₂.
6 employees take a typing test before and after a training course. For each person the difference d = after − before (words per minute) is recorded. The mean difference is 15.36 and the standard deviation of the differences is 9.9. Find the paired test statistic t for H₀: μd = 0.
n = 6d̄ = 15.36sd = 9.9
t =
6.Hypothesis tests & confidence intervalsHard
A one-sided z test of H₀: μ = 200 against H₁: μ < 200 is done at α = 0.05 with a sample of 36; the standard deviation is known to be 3. In reality the mean is 198.95. Find the probability of a Type II error β in percent.
μ₀ = 200μ = 198.95σ = 3n = 36α = 0.05
β = %
7.Linear regression & correlationMedium
The table gives 6 paired observations of x = load in kN and y = extension in mm. Find Pearson's correlation coefficient r.
n = 6
r =
8.Linear regression & correlationHard
The table gives 5 paired observations of x = advertising spend in k€ and y = sales in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 7.
n = 5x = 7
ŷ =
9.Chi-square testsMedium
The contingency table shows observed counts. Compute the chi-square statistic χ² for the test of independence between the row and column variables. Do not use a continuity correction.
N = 1802 × 2
χ² =
10.Chi-square testsHard
A chi-square goodness-of-fit test compares observed counts in 6 categories with fully specified expected proportions (no parameters are estimated from the data). Using the table, find the critical value χ²crit at significance level α = 0.05.
α = 0.05
χ²crit =
3Solutions
1.Normal distribution
Answer: P = 0.2119
Sums and differences of normal variables: if X and Y are independent and normal, X + Y and X − Y are normal too. Means add or subtract: E(X ± Y) = μX ± μY. Variances always add, also for a difference: Var(X ± Y) = σX² + σY², so σ = √(σX² + σY²). Standard deviations never add directly. The total of n independent items with the same distribution has mean n·μ and standard deviation σ·√n. Then standardise as usual: z = (x − mean)/σ and read Φ(z).
Distribution of the sum
μ = 200 mm, σ = √(0.3² + 0.4²) = 0.5 mm
Standardise
z = (200.4 − 200)/0.5 = 0.8
Upper tail
P = 1 − Φ(0.8) = 1 − 0.7881 = 0.2119
Answer
P = 0.2119
2.Normal distribution
Answer: x = 253.4 g
Normal distribution: convert a value x to a z-score, z = (x − μ)/σ, which counts standard deviations from the mean. A z-table (or Φ(z)) gives the area to the left of z, which is P(X < x). The area to the right is 1 − Φ(z), and the area between two values is the difference of their two areas.
z for the percentile
Φ(z) = 0.75 → z = 0.6745
Back to x
x = 250 + 0.6745·5 = 253.37 g
Answer
x = 253.37 g
3.Confidence intervals
Answer: lower limit = 73.28
Confidence interval for a mean: x̄ ± margin of error. With a known population σ the margin is z·σ/√n; with only the sample standard deviation s, use t with n − 1 degrees of freedom: t·s/√n. Critical values: z = 1.645 (90%), 1.96 (95%), 2.576 (99%). To get a margin E or smaller, you need n ≥ (z·σ/E)², rounded up.
Critical value
df = n − 1 = 10, t = 2.228
Margin of error
E = 2.228·10/√11 = 6.718
Interval
80 ± 6.718 → [73.28, 86.72]
Answer
lower limit = 73.28
4.Confidence intervals
Answer: upper limit = 2.561 kg
Interval for a difference: estimate ± critical value × standard error. For two independent means with known σ: SE = √(σ₁²/n₁ + σ₂²/n₂) and z. With equal unknown variances: pooled s_p and t with n₁ + n₂ − 2 degrees of freedom. For paired data, work with the differences: d̄ ± t·s_d/√n.
Pooled standard deviation
sp² = (21·4² + 8·9.5²)/29 = 36.48
sp = 6.04
Margin of error
E = 1.699·6.04·√(1/22 + 1/9) = 4.061
Interval
−1.5 ± 4.061 → [−5.561, 2.561]
Answer
upper limit = 2.561 kg
5.Hypothesis tests & confidence intervals
Answer: t = 3.8
Testing a mean: the test statistic measures how many standard errors the sample mean lies from the value claimed in H₀: z = (x̄ − μ₀)/(σ/√n) when σ is known, t = (x̄ − μ₀)/(s/√n) when it is estimated from the sample. A confidence interval is x̄ ± (critical value)·(standard error).
Standard error of the mean difference
SE = 9.9/√6 = 4.042
Test statistic
t = 15.36/4.042 = 3.8
Answer
t = 3.8
With df = 5, the two-sided 5% critical value is 2.571; |t| is larger, so H₀ is rejected.
6.Hypothesis tests & confidence intervals
Answer: β = 32.46 %
Power of a test: power = 1 − β is the probability of rejecting H₀ when it is false. Find the cutoff x̄c from μ₀ and z_α, then compute the probability of landing beyond x̄c using the true mean: z = (x̄c − μ)/(σ/√n).
Critical sample mean
SE = 3/√36 = 0.5
x̄c = 200 − 1.645·0.5 = 199.2
z under the true mean
z = (199.2 − 198.95)/0.5 = 0.455
Type II error
power = P(Z < 0.455) = 67.54%
β = 100% − 67.54% = 32.46%
Answer
β = 32.46%
7.Linear regression & correlation
Answer: r = 0.9806
Least-squares regression: with x̄ and ȳ the means, Sxx = Σ(x − x̄)², Syy = Σ(y − ȳ)² and Sxy = Σ(x − x̄)(y − ȳ), the line ŷ = a + b·x has slope b = Sxy/Sxx and intercept a = ȳ − b·x̄, so it always passes through (x̄, ȳ). Pearson's correlation coefficient r = Sxy/√(Sxx·Syy) lies between −1 and 1; r² is the fraction of the variation in y explained by the line.
Means
x̄ = 42/6 = 7
ȳ = 106/6 = 17.67
Sums of squares and products
Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 168
Syy = Σ(y − ȳ)² = 419.3
Correlation coefficient
r = 168/√(70·419.3) = 0.9806
Answer
r = 0.9806
8.Linear regression & correlation
Answer: ŷ = 82.4
Least-squares regression: with x̄ and ȳ the means, Sxx = Σ(x − x̄)², Syy = Σ(y − ȳ)² and Sxy = Σ(x − x̄)(y − ȳ), the line ŷ = a + b·x has slope b = Sxy/Sxx and intercept a = ȳ − b·x̄, so it always passes through (x̄, ȳ). Pearson's correlation coefficient r = Sxy/√(Sxx·Syy) lies between −1 and 1; r² is the fraction of the variation in y explained by the line.
Means
x̄ = 30/5 = 6
ȳ = 380/5 = 76
Sums of squares and products
Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 256
Regression line
b = 256/40 = 6.4
a = 76 − 6.4·6 = 37.6
ŷ = 37.6 + 6.4·x
Prediction
ŷ = 37.6 + 6.4·7 = 82.4
Answer
ŷ = 82.4
9.Chi-square tests
Answer: χ² = 1.071
Chi-square tests: compare observed counts O with the counts E expected under H₀ using χ² = Σ(O − E)²/E. Goodness of fit: E = n·p for each category, df = k − 1 (minus one more for each parameter estimated from the data). Independence in an r × c table: E = row total × column total / grand total, df = (r − 1)(c − 1). Reject H₀ when χ² exceeds the critical value for the chosen α.
df = 1. At α = 0.05 the critical value is 3.841, so H₀ (independence) is not rejected.
10.Chi-square tests
Answer: χ²crit = 11.07
Chi-square tests: compare observed counts O with the counts E expected under H₀ using χ² = Σ(O − E)²/E. Goodness of fit: E = n·p for each category, df = k − 1 (minus one more for each parameter estimated from the data). Independence in an r × c table: E = row total × column total / grand total, df = (r − 1)(c − 1). Reject H₀ when χ² exceeds the critical value for the chosen α.
Degrees of freedom
df = 6 − 1 = 5
Table
χ²crit(df = 5, α = 0.05) = 11.070
Answer
χ²crit = 11.070
Reject H₀ if the computed χ² is larger than this value.