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
20253035404550

Find the sample standard deviation s of the data: 32, 54, 28, 36, 18.

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

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

μ = 50σ = 5x = 53
z =
3.ProbabilityMedium
xp(x)10.220.1530.1540.1550.35μ = 3.3

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

x: 1, 2, 3, 4, 5p(x): 0.2, 0.15, 0.15, 0.15, 0.35
Var(X) =
4.ProbabilityHard
€p(x)−30.7860.21470.02

A game costs €3 to play. You win €9 with probability 0.2 and €150 with probability 0.02; otherwise you win nothing. The stake is not returned. Find the expected net gain E(G) per game.

stake = €3€9: p = 0.2€150: p = 0.02
E(G) = €
5.Normal distributionMedium
105 s113 sX + Y?

X is normal with mean 60 s and standard deviation 5 s; Y is independent and normal with mean 45 s and standard deviation 4 s. Find the probability P that X + Y is more than 113 s. Round z to two decimals.

μX = 60, σX = 5μY = 45, σY = 4X + Y > 113 s
P =
6.Normal distributionHard
μ = 32x = ?99%

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

μ = 32σ = 6P = 99%
x = min
7.Confidence intervalsMedium
μ₁ − μ₂0LU = ?x̄₁ − x̄₂E99%

The battery life of two phone models is compared. Model 1: 40 phones, mean 136 h, known standard deviation 14 h. Model 2: 50 phones, mean 138 h, known standard deviation 5 h. Find the upper limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 40x̄₁ = 136 hσ₁ = 14 hn₂ = 50x̄₂ = 138 hσ₂ = 5 h99%
upper limit = h
8.Confidence intervalsHard
μ₁ − μ₂, t(15) = 2.1310LU = ?x̄₁ − x̄₂E95%

Two fertilisers are tested. Plot group 1: 11 plots, mean yield 20 kg, standard deviation 9 kg. Plot group 2: 6 plots, mean 29.5 kg, standard deviation 4.5 kg. Assume equal variances (pooled t, df = n₁ + n₂ − 2). Find the upper limit of the 95% confidence interval for μ₁ − μ₂.

n₁ = 11x̄₁ = 20s₁ = 9n₂ = 6x̄₂ = 29.5s₂ = 4.595%t(15) = 2.131
upper limit = kg
9.Hypothesis tests & confidence intervalsMedium
t −2.01102.011

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

μ₀ = 100x̄ = 108.3s = 20n = 49
t =
10.Hypothesis tests & confidence intervalsHard
z −2.57602.576

A sample of 81 measurements has mean 48.8. The population standard deviation is 10. Find the upper limit U of the 99% confidence interval for the mean.

x̄ = 48.8σ = 10n = 8199%
U =
11.Linear regression & correlationMedium
xy125223320418518xy242025

The table gives 5 paired observations of x = car age in years and y = price in k€. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 5Σx = 15Σy = 104Σx² = 55Σy² = 2202Σxy = 293
r =
12.Linear regression & correlationHard
xy294146238311034xy510102030ŷ = 26

The table gives 5 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. For which value x does the line predict ŷ = 26?

n = 5ŷ = 26
x =

3Solutions

1.Descriptive statistics

Answer: s = 13.22

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̄ = 168/5 = 33.6

Squared deviations

Σ(x − x̄)² = (−1.6)² + 20.4² + (−5.6)² + 2.4² + (−15.6)² = 699.2

Standard deviation

s = √(699.2/4) = 13.22

Answer

s = 13.22
2.Descriptive statistics

Answer: z = 0.6

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 = (53 − 50)/5 = 0.6

Answer

z = 0.6
3.Probability

Answer: Var(X) = 2.41

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.2 + 2·0.15 + 3·0.15 + 4·0.15 + 5·0.35 = 3.3

Mean of the squares

E(X²) = 1·0.2 + 4·0.15 + 9·0.15 + 16·0.15 + 25·0.35 = 13.3

Variance

Var(X) = 13.3 − 3.3² = 2.41

Answer

Var(X) = 2.41
4.Probability

Answer: E(G) = 1.8 €

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.

Net outcomes

G: 6 (p = 0.2), 147 (p = 0.02), −3 (p = 0.78)

Expected value

E(G) = 6·0.2 + 147·0.02 − 3·0.78 = 1.8 €

Answer

E(G) = 1.8 €

A positive value means you win money on average.

5.Normal distribution

Answer: P = 0.1056

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

μ = 105 s, σ = √(5² + 4²) = 6.403 s

Standardise

z = (113 − 105)/6.403 = 1.25

Upper tail

P = 1 − Φ(1.25) = 1 − 0.8944 = 0.1056

Answer

P = 0.1056
6.Normal distribution

Answer: x = 45.96 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.99 → z = 2.326

Back to x

x = 32 + 2.326·6 = 45.96 min

Answer

x = 45.96 min
7.Confidence intervals

Answer: upper limit = 3.986 h

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.

Point estimate

x̄₁ − x̄₂ = 136 − 138 = −2

Standard error

SE = √(14²/40 + 5²/50) = 2.324

Margin of error

E = 2.576·2.324 = 5.986

Interval

−2 ± 5.986 → [−7.986, 3.986]

Answer

upper limit = 3.986 h

The interval contains 0, so the data do not show a significant difference.

8.Confidence intervals

Answer: upper limit = −1.07 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·9² + 5·4.5²)/15 = 60.75
sp = 7.794

Margin of error

E = 2.131·7.794·√(1/11 + 1/6) = 8.43

Interval

−9.5 ± 8.43 → [−17.93, −1.07]

Answer

upper limit = −1.07 kg
9.Hypothesis tests & confidence intervals

Answer: t = 2.905

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 = 20/√49 = 20/7 = 2.857

Test statistic

t = (108.3 − 100)/2.857 = 2.905

Answer

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

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

10.Hypothesis tests & confidence intervals

Answer: U = 51.66

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).

Margin of error

E = 2.576·10/√81 = 2.862

Interval limit

U = 48.8 + 2.862 = 51.66

Answer

U = 51.66
11.Linear regression & correlation

Answer: r = −0.9646

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 = 293 − 15·104/5 = −19
Sxx = 55 − 15²/5 = 10
Syy = 2202 − 104²/5 = 38.8

Correlation coefficient

r = −19/√(10·38.8) = −0.9646

Answer

r = −0.9646
12.Linear regression & correlation

Answer: x = 7.134

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
ȳ = 111/5 = 22.2

Sums of squares and products

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

Regression line

b = 134/40 = 3.35
a = 22.2 − 3.35·6 = 2.1
ŷ = 2.1 + 3.35·x

Solve for x

x = (26 − 2.1)/3.35 = 7.134

Answer

x = 7.134

ExamProblems · examproblems.com/courses/statistics-1