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
10152025303540455055

Find the sample standard deviation s of the data: 11, 31, 20, 11, 55, 41, 10.

n = 7
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 56.

μ = 50σ = 15x = 56
z =
3.ProbabilityMedium
n = 12k = 4N = ?

In how many ways N can a committee of 4 people be chosen from a group of 12? The order does not matter.

n = 12k = 4
N =
4.ProbabilityHard
n = 7, p = 0.25: P(X = 1) = ?k01234567

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

n = 7p = 0.25k = 1
P =
5.Normal distributionMedium
32 min34.5 minX + Y?

X is normal with mean 12 min and standard deviation 1.5 min; Y is independent and normal with mean 20 min and standard deviation 2 min. Find the probability P that X + Y is more than 34.5 min. Round z to two decimals.

μX = 12, σX = 1.5μY = 20, σY = 2X + Y > 34.5 min
P =
6.Normal distributionHard
μ = 178x = ?80%

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. Find the value x below which 80% of them lie (the 80th percentile).

μ = 178σ = 7P = 80%
x = cm
7.Confidence intervalsMedium
n = 10, sd​ = 4.80LUd̄ = 7.9E = ?90%

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

n = 10d̄ = 7.9sd = 4.890%t(9) = 1.833
E = mmHg
8.Confidence intervalsHard
μ₁ − μ₂, t(19) = 2.8610LU = ?x̄₁ − x̄₂E99%

Two fertilisers are tested. Plot group 1: 11 plots, mean yield 50.5 kg, standard deviation 4 kg. Plot group 2: 10 plots, mean 41.5 kg, standard deviation 7.5 kg. Assume equal variances (pooled t, df = n₁ + n₂ − 2). Find the upper limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 11x̄₁ = 50.5s₁ = 4n₂ = 10x̄₂ = 41.5s₂ = 7.599%t(19) = 2.861
upper limit = kg
9.Hypothesis tests & confidence intervalsMedium
t −2.01102.011

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

μ₀ = 50x̄ = 51.37s = 8n = 49
t =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 3α = 0.05βσ = 22, power 80%, n = ?

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

α = 0.05power = 80%δ = 3σ = 22zα = 1.645zβ = 0.842
n =
11.Linear regression & correlationMedium
xy2124196268351044xy51010203040

The table gives 5 paired observations of x = load in kN and y = extension in mm. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 5Σx = 30Σy = 136Σx² = 220Σy² = 4342Σxy = 976
r =
12.Linear regression & correlationHard
xy1792209623125261362914832175xy202530100150x = 21.5

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 21.5.

n = 6x = 21.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 17.47

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̄ = 179/7 = 25.57

Squared deviations

Σ(x − x̄)² = (−14.57)² + 5.429² + (−5.571)² + (−14.57)² + 29.43² + 15.43² + (−15.57)² = 1832

Standard deviation

s = √(1832/6) = 17.47

Answer

s = 17.47
2.Descriptive statistics

Answer: z = 0.4

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 = (56 − 50)/15 = 0.4

Answer

z = 0.4
3.Probability

Answer: N = 495

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)ⁿ⁻ᵏ.

Combinations

C(12, 4) = (12·11·10·9)/(4·3·2·1) = 495

Answer

N = 495
4.Probability

Answer: P = 0.3115

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 = 1) = 7·0.251·0.756 = 7·0.25·0.178 = 0.3115

Answer

P = 0.3115
5.Normal distribution

Answer: P = 0.1587

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

μ = 32 min, σ = √(1.5² + 2²) = 2.5 min

Standardise

z = (34.5 − 32)/2.5 = 1

Upper tail

P = 1 − Φ(1) = 1 − 0.8413 = 0.1587

Answer

P = 0.1587
6.Normal distribution

Answer: x = 183.9 cm

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.8 → z = 0.8416

Back to x

x = 178 + 0.8416·7 = 183.89 cm

Answer

x = 183.89 cm
7.Confidence intervals

Answer: E = 2.782 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 = 9, t = 1.833

Margin of error

E = 1.833·4.8/√10 = 2.782

Answer

E = 2.782 mmHg
8.Confidence intervals

Answer: upper limit = 16.4 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² = (10·4² + 9·7.5²)/19 = 35.07
sp = 5.922

Margin of error

E = 2.861·5.922·√(1/11 + 1/10) = 7.402

Interval

9 ± 7.402 → [1.598, 16.4]

Answer

upper limit = 16.4 kg
9.Hypothesis tests & confidence intervals

Answer: t = 1.199

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/√49 = 8/7 = 1.143

Test statistic

t = (51.37 − 50)/1.143 = 1.199

Answer

t = 1.199
t0.025; df = 48 = 2.011

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

10.Hypothesis tests & confidence intervals

Answer: n = 333

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 = ((1.645 + 0.842)·22/3)² = 332.6

Round up

n = 333

Answer

n = 333
11.Linear regression & correlation

Answer: r = 0.9978

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.

Centred sums

Sxy = 976 − 30·136/5 = 160
Sxx = 220 − 30²/5 = 40
Syy = 4342 − 136²/5 = 642.8

Correlation coefficient

r = 160/√(40·642.8) = 0.9978

Answer

r = 0.9978
12.Linear regression & correlation

Answer: ŷ = 112

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̄ = 147/6 = 24.5
ȳ = 772/6 = 128.7

Sums of squares and products

Sxx = Σ(x − x̄)² = 157.5
Sxy = Σ(x − x̄)(y − ȳ) = 873

Regression line

b = 873/157.5 = 5.543
a = 128.7 − 5.543·24.5 = −7.133
ŷ = −7.133 + 5.543·x

Prediction

ŷ = −7.133 + 5.543·21.5 = 112

Answer

ŷ = 112

ExamProblems · examproblems.com/courses/statistics-1