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
152025303540455055

Find the sample standard deviation s of the data: 24, 12, 41, 54, 12, 25, 57.

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

Exam scores are normally distributed with mean 100 and standard deviation 5. Find the z-score z of a score of 96.

μ = 100σ = 5x = 96
z =
3.ProbabilityMedium
red: 7blue: 7

A bag holds 7 red and 7 blue balls. You draw two balls without putting the first one back. What is the probability P that both are red?

7 / 7
P =
4.ProbabilityHard
n = 12, p = 0.25: P(X = 4) = ?k0123456789101112

A test has 12 multiple-choice questions. A student who guesses gets each one right with probability 0.25, independently. What is the probability P of exactly 4 correct answers?

n = 12p = 0.25k = 4
P =
5.Normal distributionMedium
500534P = ?

The battery lifetimes are normally distributed with mean 500 h and standard deviation 40 h. What fraction lies between 500 and 534 h? Give P as a decimal.

μ = 500σ = 40x1 = 500x2 = 534
P =
6.Normal distributionHard
10 cm0X − Y?

The heights X of men and Y of women in a group are independent and normal: X has mean 180 cm and standard deviation 10 cm, Y has mean 170 cm and standard deviation 12 cm. Find the probability P that X is greater than Y. Round z to two decimals.

μX = 180 cm, σX = 10 cmμY = 170 cm, σY = 12 cm
P =
7.Confidence intervalsMedium
n = 7, sd​ = 0.80L = ?Ud̄ = −8.2E95%

The blood pressure of 7 patients is measured before and after a treatment. The differences d = before − after (mmHg) have mean −8.2 and standard deviation 0.8. Find the lower limit of the 95% confidence interval for the mean difference.

n = 7d̄ = −8.2sd = 0.895%t(6) = 2.447
lower limit = mmHg
8.Confidence intervalsHard
μ₁ − μ₂, t(10) = 1.8120LUx̄₁ − x̄₂E = ?90%

Two fertilisers are tested. Plot group 1: 7 plots, mean yield 44 kg, standard deviation 10 kg. Plot group 2: 5 plots, mean 51.5 kg, standard deviation 2.5 kg. Assume equal variances (pooled t, df = n₁ + n₂ − 2). Find the margin of error E of the 90% confidence interval for μ₁ − μ₂.

n₁ = 7x̄₁ = 44s₁ = 10n₂ = 5x̄₂ = 51.5s₂ = 2.590%t(10) = 1.812
E = kg
9.Hypothesis tests & confidence intervalsMedium
t −2.0302.03

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

μ₀ = 100x̄ = 102.3s = 8n = 36
t =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 3α = 0.01βσ = 25, power 80%, n = ?

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

α = 0.01power = 80%δ = 3σ = 25zα = 2.326zβ = 0.842
n =
11.Linear regression & correlationMedium
xy18472167247127863010433118xy20253050100

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Find Pearson's correlation coefficient r.

n = 6
r =
12.Linear regression & correlationHard
xy124219317417513xy24152025x = 4.5

The table gives 5 paired observations of x = car age in years and y = price in k€. Use the least-squares line ŷ = a + b·x. A new observation (4.5, 16) is made. Find its residual e = y − ŷ.

n = 5(4.5, 16)
e =

3Solutions

1.Descriptive statistics

Answer: s = 18.72

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̄ = 225/7 = 32.14

Squared deviations

Σ(x − x̄)² = (−8.143)² + (−20.14)² + 8.857² + 21.86² + (−20.14)² + (−7.143)² + 24.86² = 2103

Standard deviation

s = √(2103/6) = 18.72

Answer

s = 18.72
2.Descriptive statistics

Answer: z = −0.8

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 = (96 − 100)/5 = −0.8

Answer

z = −0.8
3.Probability

Answer: P = 0.2308

Probability: with equally likely outcomes, P(A) = favourable/total. For independent events multiply: P(A and B) = P(A)·P(B). The complement often helps: P(at least one) = 1 − P(none). Binomial: in n independent trials with success probability p, P(X = k) = C(n, k)·pᵏ·(1 − p)ⁿ⁻ᵏ.

First and second draw

P = 7/14 · 6/13 = 42/182 = 0.2308

Answer

P = 0.2308
4.Probability

Answer: P = 0.1936

Probability: with equally likely outcomes, P(A) = favourable/total. For independent events multiply: P(A and B) = P(A)·P(B). The complement often helps: P(at least one) = 1 − P(none). Binomial: in n independent trials with success probability p, P(X = k) = C(n, k)·pᵏ·(1 − p)ⁿ⁻ᵏ.

Binomial formula

P(X = 4) = 495·0.254·0.758 = 495·0.003906·0.1001 = 0.1936

Answer

P = 0.1936
5.Normal distribution

Answer: P = 0.3023

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₁ = (500 − 500)/40 = 0
z₂ = (534 − 500)/40 = 0.85

Area between

P = Φ(0.85) − Φ(0) = 0.8023 − 0.5 = 0.3023

Answer

P = 0.3023
6.Normal distribution

Answer: P = 0.7389

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 difference

μ = 180 − 170 = 10 cm, σ = 15.62 cm

Standardise

z = (0 − 10)/15.62 = −0.64

Probability

P = 1 − Φ(−0.64) = 0.7389

Answer

P = 0.7389
7.Confidence intervals

Answer: lower limit = −8.94 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 = 6, t = 2.447

Margin of error

E = 2.447·0.8/√7 = 0.7399

Interval

−8.2 ± 0.7399 → [−8.94, −7.46]

Answer

lower limit = −8.94 mmHg
8.Confidence intervals

Answer: E = 8.388 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² = (6·10² + 4·2.5²)/10 = 62.5
sp = 7.906

Margin of error

E = 1.812·7.906·√(1/7 + 1/5) = 8.388

Answer

E = 8.388 kg
9.Hypothesis tests & confidence intervals

Answer: t = 1.725

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 = 8/√36 = 8/6 = 1.333

Test statistic

t = (102.3 − 100)/1.333 = 1.725

Answer

t = 1.725
t0.025; df = 35 = 2.03

|t| < 2.03, so H₀ is not rejected at the 5% level (two-sided).

10.Hypothesis tests & confidence intervals

Answer: n = 697

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 + 0.842)·25/3)² = 697

Round up

n = 697

Answer

n = 697
11.Linear regression & correlation

Answer: r = 0.9908

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̄ = 153/6 = 25.5
ȳ = 493/6 = 82.17

Sums of squares and products

Sxx = Σ(x − x̄)² = 157.5
Sxy = Σ(x − x̄)(y − ȳ) = 721.5
Syy = Σ(y − ȳ)² = 3367

Correlation coefficient

r = 721.5/√(157.5·3367) = 0.9908

Answer

r = 0.9908
12.Linear regression & correlation

Answer: e = 1.6

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̄ = 15/5 = 3
ȳ = 90/5 = 18

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = −24

Regression line

b = −24/10 = −2.4
a = 18 − (−2.4)·3 = 25.2
ŷ = 25.2 − 2.4·x

Predicted value

ŷ = 25.2 + (−2.4)·4.5 = 14.4

Residual

e = 16 − 14.4 = 1.6

Answer

e = 1.6

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1