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: 13, 53, 39, 22, 35, 14.

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

A quantity is normally distributed with mean 170 and standard deviation 20. What proportion P of values is above 182?

μ = 170σ = 20x = 182
P =
3.ProbabilityMedium
red: 3blue: 4

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

3 / 4
P =
4.ProbabilityHard
n = 9, p = 0.7: P(X = 1) = ?k0123456789

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

n = 9p = 0.7k = 1
P =
5.Normal distributionMedium
−3−2−10123zshaded area to the right of z = 0.1611

Drag z so that the shaded area under the standard normal curve, to the right of z, is 0.1611. Find z to two decimals.

A = 0.1611
z =
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, s = 11LUx̄ = 62E = ?99%

A sample of 7 items has mean 62 and standard deviation s = 11. The population is roughly normal. Find the margin of error E of a 99% confidence interval for the mean.

n = 7x̄ = 62s = 1199%t(6) = 3.707
E =
8.Confidence intervalsHard
μ₁ − μ₂, t(19) = 2.8610LU = ?x̄₁ − x̄₂E99%

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

n₁ = 7x̄₁ = 59.5s₁ = 6.5n₂ = 14x̄₂ = 61s₂ = 1099%t(19) = 2.861
upper limit = kg
9.Hypothesis tests & confidence intervalsMedium
1.52p = ?

The mean of a population is claimed to be 500; the population standard deviation is known to be 6. A random sample of 36 observations has a mean of 501.52. Test H₀: μ = 500 against H₁: μ > 500. Find the p-value p.

μ₀ = 500σ = 6n = 36x̄ = 501.52H₁: μ > μ₀
p =
10.Hypothesis tests & confidence intervalsHard
−1.961.96z = ?

In a trial, 40 of 100 patients on treatment A recover, and 35 of 120 patients on treatment B. Using the pooled proportion, find the test statistic z for H₀: p₁ = p₂.

x₁ = 40n₁ = 100x₂ = 35n₂ = 120
z =
11.Linear regression & correlationMedium
xy131232340441541xy243540

The table gives 5 paired observations of x = advertising spend in k€ and y = sales in k€. Find Pearson's correlation coefficient r.

n = 5
r =
12.Linear regression & correlationHard
xy1533565607729711184xy510607080x = 2

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 2.

n = 6x = 2
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 15.76

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̄ = 176/6 = 29.33

Squared deviations

Σ(x − x̄)² = (−16.33)² + 23.67² + 9.667² + (−7.333)² + 5.667² + (−15.33)² = 1241

Standard deviation

s = √(1241/5) = 15.76

Answer

s = 15.76
2.Descriptive statistics

Answer: P = 0.2743

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 = 0.6

Standard normal table

Φ(0.6) = 0.7257
P = 1 − 0.7257 = 0.2743

Answer

P = 0.2743
3.Probability

Answer: P = 0.1429

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 = 3/7 · 2/6 = 6/42 = 0.1429

Answer

P = 0.1429
4.Probability

Answer: P = 0.0004133

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) = 9·0.71·0.38 = 9·0.7·6.561 × 10⁻⁵ = 0.0004133

Answer

P = 0.0004133
5.Normal distribution

Answer: z = 0.99

From an area back to z: Φ(z) is the area to the left of z. For a left-tail area A, find z with Φ(z) = A in the table. A right-tail area A means Φ(z) = 1 − A. A central area A between −z and z leaves (1 − A)/2 in each tail, so Φ(z) = (1 + A)/2. For a value x, use x = μ + zσ.

Area to the left of z

Φ(z) = 1 − 0.1611 = 0.8389

Read the z-table backwards

Find 0.8389 inside the table and read off z.

z = 0.99

Answer

z = 0.99
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: E = 15.41

Confidence interval for a mean: x̄ ± margin of error. With a known population σ the margin is z·σ/√n; with only the sample standard deviation s, use t with n − 1 degrees of freedom: t·s/√n. Critical values: z = 1.645 (90%), 1.96 (95%), 2.576 (99%). To get a margin E or smaller, you need n ≥ (z·σ/E)², rounded up.

Critical value

df = n − 1 = 6, t = 3.707

Margin of error

E = 3.707·11/√7 = 15.41

Answer

E = 15.41
8.Confidence intervals

Answer: upper limit = 10.48 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·6.5² + 13·10²)/19 = 81.76
sp = 9.042

Margin of error

E = 2.861·9.042·√(1/7 + 1/14) = 11.98

Interval

−1.5 ± 11.98 → [−13.48, 10.48]

Answer

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

Answer: p = 0.06426

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 ≤ α.

Test statistic

SE = σ/√n = 6/√36 = 1
z = (501.52 − 500)/1 = 1.52

Tail area

Φ(1.52) = 0.9357
1 − Φ(1.52) = 0.0643

p-value

p = 0.06426

Answer

p = 0.06426

p > 0.05, so H₀ is not rejected at the 5% level.

10.Hypothesis tests & confidence intervals

Answer: z = 1.688

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 ≤ α.

Sample proportions

p̂₁ = 40/100 = 0.4
p̂₂ = 35/120 = 0.2917
p̂ = 75/220 = 0.3409

Standard error under H₀

SE = √(0.3409·0.6591·(1/100 + 1/120)) = 0.06418

Test statistic

z = (0.4 − 0.2917)/0.06418 = 1.688

Answer

z = 1.688

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

11.Linear regression & correlation

Answer: r = 0.908

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
ȳ = 185/5 = 37

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = 29
Syy = Σ(y − ȳ)² = 102

Correlation coefficient

r = 29/√(10·102) = 0.908

Answer

r = 0.908
12.Linear regression & correlation

Answer: ŷ = 53.89

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̄ = 36/6 = 6
ȳ = 396/6 = 66

Sums of squares and products

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

Regression line

b = 212/70 = 3.029
a = 66 − 3.029·6 = 47.83
ŷ = 47.83 + 3.029·x

Prediction

ŷ = 47.83 + 3.029·2 = 53.89

Answer

ŷ = 53.89

ExamProblems · examproblems.com/courses/statistics-1