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: 26, 35, 29, 17, 48, 40, 53.

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

A quantity is normally distributed with mean 500 and standard deviation 75. What proportion P of values is above 575?

μ = 500σ = 75x = 575
P =
3.ProbabilityMedium
red: 8blue: 4

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

8 / 4
P =
4.ProbabilityHard
n = 8, p = 0.1: P(X = 1) = ?k012345678

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

n = 8p = 0.1k = 1
P =
5.Normal distributionMedium
76.75123.25P = ?

The IQ scores are normally distributed with mean 100 points and standard deviation 15 points. What fraction lies between 76.75 and 123.25 points? Give P as a decimal.

μ = 100σ = 15x1 = 76.75x2 = 123.25
P =
6.Normal distributionHard
μ = 178x = ?95%

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

μ = 178σ = 7P = 95%
x = cm
7.Confidence intervalsMedium
μ₁ − μ₂0LU = ?x̄₁ − x̄₂E99%

The battery life of two phone models is compared. Model 1: 30 phones, mean 88 h, known standard deviation 8 h. Model 2: 100 phones, mean 90 h, known standard deviation 8 h. Find the upper limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 30x̄₁ = 88 hσ₁ = 8 hn₂ = 100x̄₂ = 90 hσ₂ = 8 h99%
upper limit = h
8.Confidence intervalsHard
p = 0.5, n = ?p̂ − Ep̂ + Ep̂E = 0.0499%

Nothing is known in advance about the proportion of defective products. 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.04?

p = 0.5E = 0.0499%
n =
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 51.5 mm, and the line's known standard deviation is 14 mm. Line 2: a sample of 40 parts has mean 47.4 mm, known standard deviation 4 mm. Find the test statistic z for H₀: μ₁ = μ₂, taking the difference as x̄₁ − x̄₂ (line 1 minus line 2).

n₁ = 40x̄₁ = 51.5 mmσ₁ = 14 mmn₂ = 40x̄₂ = 47.4 mmσ₂ = 4 mm
z =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 2α = 0.01βσ = 12, power 90%, n = ?

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

α = 0.01power = 90%δ = 2σ = 12zα = 2.326zβ = 1.282
n =
11.Linear regression & correlationMedium
xy12322331741851269xy246101520

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
xy154117371948215223572562xy152025405060x = 22

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Use the least-squares line ŷ = a + b·x. A new observation (22, 59) is made. Find its residual e = y − ŷ.

n = 6(22, 59)
e =

3Solutions

1.Descriptive statistics

Answer: s = 12.63

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̄ = 248/7 = 35.43

Squared deviations

Σ(x − x̄)² = (−9.429)² + (−0.4286)² + (−6.429)² + (−18.43)² + 12.57² + 4.571² + 17.57² = 957.7

Standard deviation

s = √(957.7/6) = 12.63

Answer

s = 12.63
2.Descriptive statistics

Answer: P = 0.1587

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.8413
P = 1 − 0.8413 = 0.1587

Answer

P = 0.1587
3.Probability

Answer: P = 0.4242

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 = 8/12 · 7/11 = 56/132 = 0.4242

Answer

P = 0.4242
4.Probability

Answer: P = 0.3826

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) = 8·0.11·0.97 = 8·0.1·0.4783 = 0.3826

Answer

P = 0.3826
5.Normal distribution

Answer: P = 0.8789

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₁ = (76.75 − 100)/15 = −1.55
z₂ = (123.25 − 100)/15 = 1.55

Area between

P = Φ(1.55) − Φ(−1.55) = 0.9394 − 0.06057 = 0.8789

Answer

P = 0.8789
6.Normal distribution

Answer: x = 189.5 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.95 → z = 1.645

Back to x

x = 178 + 1.645·7 = 189.51 cm

Answer

x = 189.51 cm
7.Confidence intervals

Answer: upper limit = 2.29 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̄₂ = 88 − 90 = −2

Standard error

SE = √(8²/30 + 8²/100) = 1.665

Margin of error

E = 2.576·1.665 = 4.29

Interval

−2 ± 4.29 → [−6.29, 2.29]

Answer

upper limit = 2.29 h

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

8.Confidence intervals

Answer: n = 1037

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.5·0.5/0.04² = 1037

Round up

n = 1037

Answer

n = 1037
9.Hypothesis tests & confidence intervals

Answer: z = 1.781

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 = √(14²/40 + 4²/40) = √5.3 = 2.302

Test statistic

z = (51.5 − 47.4)/2.302 = 1.781

Answer

z = 1.781

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

10.Hypothesis tests & confidence intervals

Answer: n = 469

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.282)·12/2)² = 468.6

Round up

n = 469

Answer

n = 469
11.Linear regression & correlation

Answer: r² = 0.9175

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
ȳ = 102/6 = 17

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = −51
Syy = Σ(y − ȳ)² = 162

Coefficient of determination

r² = −51²/(17.5·162) = 0.9175

Answer

r² = 0.9175

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

12.Linear regression & correlation

Answer: e = 4.671

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̄ = 120/6 = 20
ȳ = 297/6 = 49.5

Sums of squares and products

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

Regression line

b = 169/70 = 2.414
a = 49.5 − 2.414·20 = 1.214
ŷ = 1.214 + 2.414·x

Predicted value

ŷ = 1.214 + 2.414·22 = 54.33

Residual

e = 59 − 54.33 = 4.671

Answer

e = 4.671

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1