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
1520253035404550

Find the sample standard deviation s of the data: 37, 16, 52, 28, 22, 26, 11.

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

A quantity is normally distributed with mean 50 and standard deviation 8. What proportion P of values is above 42?

μ = 50σ = 8x = 42
P =
3.ProbabilityMedium
n = 11k = 4N = ?

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

n = 11k = 4
N =
4.ProbabilityHard
xp(x)10.2520.3530.2540.15μ

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

x: 1, 2, 3, 4p(x): 0.25, 0.35, 0.25, 0.15Y = −2X + 4
σY =
5.Normal distributionMedium
750 g762.3 gX + Y?

X is normal with mean 250 g and standard deviation 4 g; Y is independent and normal with mean 500 g and standard deviation 9 g. Find the probability P that X + Y is more than 762.3 g. Round z to two decimals.

μX = 250, σX = 4μY = 500, σY = 9X + Y > 762.3 g
P =
6.Normal distributionHard
μ = 65x = ?10%

The exam scores are normally distributed with mean 65 points and standard deviation 10 points. Find the value x below which 10% of them lie (the 10th percentile).

μ = 65σ = 10P = 10%
x = points
7.Confidence intervalsMedium
μ₁ − μ₂0LU = ?x̄₁ − x̄₂E90%

The battery life of two phone models is compared. Model 1: 50 phones, mean 54.5 h, known standard deviation 13 h. Model 2: 60 phones, mean 60.5 h, known standard deviation 10 h. Find the upper limit of the 90% confidence interval for μ₁ − μ₂.

n₁ = 50x̄₁ = 54.5 hσ₁ = 13 hn₂ = 60x̄₂ = 60.5 hσ₂ = 10 h90%
upper limit = h
8.Confidence intervalsHard
n = 25Lσ = ?s = 795%

The diameters of 25 machined shafts have a sample standard deviation of 7 µm. Assuming the diameters are normally distributed, find the upper limit σ of the 95% confidence interval for the population standard deviation. With df = 24, 2.5% of the χ² distribution lies below 12.401 and 2.5% lies above 39.364.

n = 25s = 7 µmχ² = 12.401, 39.364
σ = µm
9.Hypothesis tests & confidence intervalsMedium
−1.961.96z = ?

Two production lines make the same part. Line 1: a sample of 40 parts has mean length 53.5 mm, and the line's known standard deviation is 17 mm. Line 2: a sample of 30 parts has mean 62.6 mm, known standard deviation 20 mm. Find the test statistic z for H₀: μ₁ = μ₂, taking the difference as x̄₁ − x̄₂ (line 1 minus line 2).

n₁ = 40x̄₁ = 53.5 mmσ₁ = 17 mmn₂ = 30x̄₂ = 62.6 mmσ₂ = 20 mm
z =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 4α = 0.05βσ = 29, power 90%, n = ?

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

α = 0.05power = 90%δ = 4σ = 29zα = 1.645zβ = 1.282
n =
11.Linear regression & correlationMedium
xy126221320418514611xy24610152025

The table gives 6 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 = 6Σx = 21Σy = 110Σx² = 91Σy² = 2158Σxy = 336
r =
12.Linear regression & correlationHard
xy23043463484310471245xy5103040x = 3

The table gives 6 paired observations of x = advertising spend in k€ and y = sales in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 3.

n = 6x = 3
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 13.71

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̄ = 192/7 = 27.43

Squared deviations

Σ(x − x̄)² = 9.571² + (−11.43)² + 24.57² + 0.5714² + (−5.429)² + (−1.429)² + (−16.43)² = 1128

Standard deviation

s = √(1128/6) = 13.71

Answer

s = 13.71
2.Descriptive statistics

Answer: P = 0.8413

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 = −1

Standard normal table

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

Answer

P = 0.8413
3.Probability

Answer: N = 330

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(11, 4) = (11·10·9·8)/(4·3·2·1) = 330

Answer

N = 330
4.Probability

Answer: σY = 2.01

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.3, Var(X) = 1.01, σX = 1.005

Linear change

σY = |−2|·1.005 = 2.01

Answer

σY = 2.01

The mean does move: E(Y) = −2·2.3 + 4 = −0.6.

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

μ = 750 g, σ = √(4² + 9²) = 9.849 g

Standardise

z = (762.3 − 750)/9.849 = 1.25

Upper tail

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

Answer

P = 0.1056
6.Normal distribution

Answer: x = 52.18 points

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.1 → z = −1.282

Back to x

x = 65 + −1.282·10 = 52.18 points

Answer

x = 52.18 points
7.Confidence intervals

Answer: upper limit = −2.305 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̄₂ = 54.5 − 60.5 = −6

Standard error

SE = √(13²/50 + 10²/60) = 2.246

Margin of error

E = 1.645·2.246 = 3.695

Interval

−6 ± 3.695 → [−9.695, −2.305]

Answer

upper limit = −2.305 h

The interval does not contain 0, so the means differ significantly.

8.Confidence intervals

Answer: σ = 9.738 µm

Interval for a variance: (n − 1)s²/σ² has a χ² distribution with n − 1 degrees of freedom. The 95% interval for σ² runs from (n − 1)s² divided by the upper χ² value (2.5% above it) to (n − 1)s² divided by the lower χ² value (2.5% below it); the interval for σ is the square root of both limits. It is not symmetric around s.

Sum of squares

(n − 1)s² = 24·7² = 1176

Limits for σ²

1176/39.364 = 29.88
1176/12.401 = 94.83

Limit for σ

σ = √94.83 = 9.738 µm

Answer

σ = 9.738 µm

95% interval for σ: [5.466, 9.738] µm.

9.Hypothesis tests & confidence intervals

Answer: z = −2.007

Hypothesis test: the test statistic = (estimate − value under H₀)/(standard error under H₀). The p-value is the probability, assuming H₀ is true, of a statistic at least as extreme as the one observed: the area in one tail for a one-sided H₁, twice the tail area for a two-sided H₁. Reject H₀ when p ≤ α.

Standard error of the difference

SE = √(17²/40 + 20²/30) = √20.56 = 4.534

Test statistic

z = (53.5 − 62.6)/4.534 = −2.007

Answer

z = −2.007

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

10.Hypothesis tests & confidence intervals

Answer: n = 451

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 + 1.282)·29/4)² = 450.3

Round up

n = 451

Answer

n = 451
11.Linear regression & correlation

Answer: r = −0.9853

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 = 336 − 21·110/6 = −49
Sxx = 91 − 21²/6 = 17.5
Syy = 2158 − 110²/6 = 141.3

Correlation coefficient

r = −49/√(17.5·141.3) = −0.9853

Answer

r = −0.9853
12.Linear regression & correlation

Answer: ŷ = 31.8

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
ȳ = 233/6 = 38.83

Sums of squares and products

Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 123

Regression line

b = 123/70 = 1.757
a = 38.83 − 1.757·7 = 26.53
ŷ = 26.53 + 1.757·x

Prediction

ŷ = 26.53 + 1.757·3 = 31.8

Answer

ŷ = 31.8

ExamProblems · examproblems.com/courses/statistics-1