Introductory Statistics: cram pack

Formula sheets, the key method steps for every topic and 12 practice problems, with full solutions at the back.

New problemsBack to the course

In the print window, choose “Save as PDF” to keep a copy on your device.

1Formulas and methods

Descriptive statistics

Mean
x̄ = Σx/n
Sample standard deviation
s = √(Σ(x − x̄)²/(n − 1))
Median
middle value of the sorted data
z-score
z = (x − μ)/σ
Normal distribution
68% within ±1σ, 95% within ±2σ

Probability

Complement
P(not A) = 1 − P(A)
Addition rule
P(A ∪ B) = P(A) + P(B) − P(A ∩ B)
Independent events
P(A ∩ B) = P(A)·P(B)
Conditional probability
P(A|B) = P(A ∩ B)/P(B)
Binomial
P(X = k) = C(n,k)·pk(1 − p)n−k

Normal distribution

z-score
z = (x − μ)/σ
Below x
P(X < x) = Φ(z)
Above x
P(X > x) = 1 − Φ(z)
Between
Φ(z2) − Φ(z1)
Percentile
x = μ + z·σ

Method

  1. Convert the value to a z-score: z = (x − μ)/σ.
  2. Look up Φ(z), the area to the left of z.
  3. For the area to the right use 1 − Φ(z); for an interval subtract the two left areas.
  4. For a percentile, work backwards: find z for the area, then x = μ + z·σ.

Confidence intervals

σ known
x̄ ± z·σ/√n
σ unknown
x̄ ± t·s/√n, df = n − 1
Critical z
90%: 1.645, 95%: 1.96, 99%: 2.576
Sample size
n = (z·σ/E)², rounded up

Method

  1. Decide between z (population σ known) and t (only the sample s, with n − 1 degrees of freedom).
  2. Find the critical value for the confidence level.
  3. Margin of error: E = critical value × standard deviation/√n.
  4. Interval: x̄ ± E.

Hypothesis tests & confidence intervals

z-test for a mean
z = (x̄ − μ0)/(σ/√n)
t-test for a mean
t = (x̄ − μ0)/(s/√n), df = n − 1
Two-sided at 5%
reject H0 if |z| > 1.96
Confidence interval
x̄ ± z·σ/√n

Method

  1. State H₀ and H₁ and decide whether the test is one- or two-sided.
  2. Calculate the test statistic: (x̄ − μ₀)/(σ/√n), or with s and t.
  3. Compare with the critical value, or find the p-value.
  4. Reject H₀ if the statistic is beyond the critical value (p below α), and state the conclusion in words.

Linear regression & correlation

Sums of squares
Sxx = Σ(x − x̄)² = Σx² − (Σx)²/n, Sxy = Σxy − ΣxΣy/n
Slope
b = Sxy/Sxx
Intercept
a = ȳ − b·x̄
Correlation
r = Sxy/√(SxxSyy)
Residual
e = y − ŷ

2Practice problems

1.Descriptive statisticsMedium
152025303540

Find the sample standard deviation s of the data: 11, 40, 43, 22, 38.

n = 5
s =
2.Descriptive statisticsHard
z −2−1012

Exam scores are normally distributed with mean 50 and standard deviation 15. Find the z-score z of a score of 32.

μ = 50σ = 15x = 32
z =
3.ProbabilityMedium
xp(x)10.2520.230.1540.150.3μ = 3

For the distribution shown, find the variance Var(X) of X.

x: 1, 2, 3, 4, 5p(x): 0.25, 0.2, 0.15, 0.1, 0.3
Var(X) =
4.ProbabilityHard
xp(x)10.3520.2530.140.3μ

X has the distribution shown, and Y = −2X − 3. Find the standard deviation σY of Y.

x: 1, 2, 3, 4p(x): 0.35, 0.25, 0.1, 0.3Y = −2X − 3
σY =
5.Normal distributionMedium
242.5259P = ?

The bag weights are normally distributed with mean 250 g and standard deviation 5 g. What fraction lies between 242.5 and 259 g? Give P as a decimal.

μ = 250σ = 5x1 = 242.5x2 = 259
P =
6.Normal distributionHard
μ = 32x = ?97.5%

The delivery times are normally distributed with mean 32 min and standard deviation 6 min. Find the value x below which 97.5% of them lie (the 97.5th percentile).

μ = 32σ = 6P = 97.5%
x = min
7.Confidence intervalsMedium
n = 8, sd​ = 1.90LUd̄ = −8.6E = ?95%

The blood pressure of 8 patients is measured before and after a treatment. The differences d = before − after (mmHg) have mean −8.6 and standard deviation 1.9. Find the margin of error E of the 95% confidence interval for the mean difference.

n = 8d̄ = −8.6sd = 1.995%t(7) = 2.365
E = mmHg
8.Confidence intervalsHard
p ≈ 0.2, n = ?p̂ − Ep̂ + Ep̂E = 0.0399%

A pilot study suggests that about 0.2 of products are defective. How many products n must be inspected so that a 99% confidence interval for the proportion has a margin of error of at most 0.03?

p ≈ 0.2E = 0.0399%
n =
9.Hypothesis tests & confidence intervalsMedium
t −1.98401.984

A sample of 100 students has a mean score of 501.2 and a sample standard deviation of 5. Find the test statistic t for H₀: μ = 500.

μ₀ = 500x̄ = 501.2s = 5n = 100
t =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 3α = 0.01βσ = 13, power 95%, n = ?

A one-sided z test at α = 0.01 must detect a shift of the mean of 3 units with a power of 95%. The standard deviation is 13. Find the minimum sample size n.

α = 0.01power = 95%δ = 3σ = 13zα = 2.326zβ = 1.645
n =
11.Linear regression & correlationMedium
xy129226320417517613xy24615202530

The table gives 6 paired observations of x = car age in years and y = price in k€. Find the coefficient of determination r² of the least-squares line.

n = 6
r² =
12.Linear regression & correlationHard
xy274116158241029xy510102030x = 9

The table gives 5 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 9.

n = 5x = 9
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 13.74

Descriptive statistics: the mean is the sum divided by n; the median is the middle value of the sorted data (the average of the two middle values when n is even). The sample standard deviation is s = √(Σ(x − x̄)²/(n − 1)). A z-score z = (x − μ)/σ says how many standard deviations a value lies from the mean.

Mean

x̄ = 154/5 = 30.8

Squared deviations

Σ(x − x̄)² = (−19.8)² + 9.2² + 12.2² + (−8.8)² + 7.2² = 754.8

Standard deviation

s = √(754.8/4) = 13.74

Answer

s = 13.74
2.Descriptive statistics

Answer: z = −1.2

Descriptive statistics: the mean is the sum divided by n; the median is the middle value of the sorted data (the average of the two middle values when n is even). The sample standard deviation is s = √(Σ(x − x̄)²/(n − 1)). A z-score z = (x − μ)/σ says how many standard deviations a value lies from the mean.

Standardise

z = (32 − 50)/15 = −1.2

Answer

z = −1.2
3.Probability

Answer: Var(X) = 2.5

Discrete random variables: a probability distribution lists every value x a variable can take with its probability p(x); the probabilities are between 0 and 1 and add up to 1. The expected value (mean) is E(X) = Σx·p(x), the long-run average. The variance is Var(X) = Σ(x − μ)²·p(x) = E(X²) − μ², and the standard deviation σ = √Var(X). For a linear change Y = aX + b: E(Y) = a·E(X) + b, Var(Y) = a²·Var(X) and σY = |a|·σX; adding a constant does not change the spread.

Mean

μ = 1·0.25 + 2·0.2 + 3·0.15 + 4·0.1 + 5·0.3 = 3

Mean of the squares

E(X²) = 1·0.25 + 4·0.2 + 9·0.15 + 16·0.1 + 25·0.3 = 11.5

Variance

Var(X) = 11.5 − 3² = 2.5

Answer

Var(X) = 2.5
4.Probability

Answer: σY = 2.472

Discrete random variables: a probability distribution lists every value x a variable can take with its probability p(x); the probabilities are between 0 and 1 and add up to 1. The expected value (mean) is E(X) = Σx·p(x), the long-run average. The variance is Var(X) = Σ(x − μ)²·p(x) = E(X²) − μ², and the standard deviation σ = √Var(X). For a linear change Y = aX + b: E(Y) = a·E(X) + b, Var(Y) = a²·Var(X) and σY = |a|·σX; adding a constant does not change the spread.

Spread of X

μ = 2.35, Var(X) = 1.528, σX = 1.236

Linear change

σY = |−2|·1.236 = 2.472

Answer

σY = 2.472

The mean does move: E(Y) = −2·2.35 − 3 = −7.7.

5.Normal distribution

Answer: P = 0.8973

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-scores

z₁ = (242.5 − 250)/5 = −1.5
z₂ = (259 − 250)/5 = 1.8

Area between

P = Φ(1.8) − Φ(−1.5) = 0.9641 − 0.06681 = 0.8973

Answer

P = 0.8973
6.Normal distribution

Answer: x = 43.76 min

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.975 → z = 1.96

Back to x

x = 32 + 1.96·6 = 43.76 min

Answer

x = 43.76 min
7.Confidence intervals

Answer: E = 1.589 mmHg

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.

Critical value

df = 7, t = 2.365

Margin of error

E = 2.365·1.9/√8 = 1.589

Answer

E = 1.589 mmHg
8.Confidence intervals

Answer: n = 1180

Confidence interval for a proportion: p̂ ± z·√(p̂(1 − p̂)/n), where p̂ = x/n. To reach a margin E you need n ≥ z²·p(1 − p)/E², rounded up; without a prior estimate use p = 0.5, which gives the largest n.

Solve for n

n = 2.576²·0.2·0.8/0.03² = 1180

Round up

n = 1180

Answer

n = 1180
9.Hypothesis tests & confidence intervals

Answer: t = 2.4

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

SE = 5/√100 = 5/10 = 0.5

Test statistic

t = (501.2 − 500)/0.5 = 2.4

Answer

t = 2.4
t0.025; df = 99 = 1.984

|t| > 1.984, so H₀ is rejected at the 5% level (two-sided).

10.Hypothesis tests & confidence intervals

Answer: n = 297

Sample size for a test: to detect a true shift δ with power 1 − β in a one-sided z test at level α, the standard error must satisfy δ = (z_α + z_β)·σ/√n, so n = ((z_α + z_β)·σ/δ)², rounded up.

Solve for n

n = ((2.326 + 1.645)·13/3)² = 296.1

Round up

n = 297

Answer

n = 297
11.Linear regression & correlation

Answer: r² = 0.9429

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̄ = 21/6 = 3.5
ȳ = 122/6 = 20.33

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = −55
Syy = Σ(y − ȳ)² = 183.3

Coefficient of determination

r² = −55²/(17.5·183.3) = 0.9429

Answer

r² = 0.9429

About 94.29% of the variation in y is explained by the line.

12.Linear regression & correlation

Answer: ŷ = 25.75

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
ȳ = 86/5 = 17.2

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 114

Regression line

b = 114/40 = 2.85
a = 17.2 − 2.85·6 = 0.1
ŷ = 0.1 + 2.85·x

Prediction

ŷ = 0.1 + 2.85·9 = 25.75

Answer

ŷ = 25.75

ExamProblems · examproblems.com/courses/statistics-1