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: 24, 20, 13, 39, 35, 52.

n = 6
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 below 612.5?

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

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

3 / 8
P =
4.ProbabilityHard
n = 7, p = 0.3: P(X = 4) = ?k01234567

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

n = 7p = 0.3k = 4
P =
5.Normal distributionMedium
76118P = ?

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

μ = 100σ = 15x1 = 76x2 = 118
P =
6.Normal distributionHard
10 g0X − Y?

The mass X of a product from line 1 and Y from line 2 are independent and normal: X has mean 500 g and standard deviation 8 g, Y has mean 490 g and standard deviation 6 g. Find the probability P that X is greater than Y. Round z to two decimals.

μX = 500 g, σX = 8 gμY = 490 g, σY = 6 g
P =
7.Confidence intervalsMedium
n = 7, s = 1LUx̄ = 30.5E = ?95%

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

n = 7x̄ = 30.5s = 195%t(6) = 2.447
E =
8.Confidence intervalsHard
σ = 30, n = ?x̄ − Ex̄ + Ex̄E = 599%

The population standard deviation is 30. How large a sample n do you need so that a 99% confidence interval for the mean has a margin of error of at most 5?

σ = 30E = 599%
n =
9.Hypothesis tests & confidence intervalsMedium
−1.281.28p = ?

The mean of a population is claimed to be 250; the population standard deviation is known to be 16. A random sample of 64 observations has a mean of 252.56. Test H₀: μ = 250 against H₁: μ ≠ 250. Find the p-value p.

μ₀ = 250σ = 16n = 64x̄ = 252.56H₁: μ ≠ μ₀
p =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 1.5α = 0.05βσ = 8, power 95%, n = ?

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

α = 0.05power = 95%δ = 1.5σ = 8zα = 1.645zβ = 1.645
n =
11.Linear regression & correlationMedium
xy129225325419520615xy24615202530

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
xy1769208323892610329125xy20253080100120x = 21.5

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

n = 5(21.5, 92)
e =

3Solutions

1.Descriptive statistics

Answer: s = 14.24

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̄ = 183/6 = 30.5

Squared deviations

Σ(x − x̄)² = (−6.5)² + (−10.5)² + (−17.5)² + 8.5² + 4.5² + 21.5² = 1014

Standard deviation

s = √(1014/5) = 14.24

Answer

s = 14.24
2.Descriptive statistics

Answer: P = 0.9332

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

Standard normal table

Φ(1.5) = 0.9332
P = 0.9332

Answer

P = 0.9332
3.Probability

Answer: P = 0.05455

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/11 · 2/10 = 6/110 = 0.05455

Answer

P = 0.05455
4.Probability

Answer: P = 0.09724

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 = 4) = 35·0.34·0.73 = 35·0.0081·0.343 = 0.09724

Answer

P = 0.09724
5.Normal distribution

Answer: P = 0.8301

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 − 100)/15 = −1.6
z₂ = (118 − 100)/15 = 1.2

Area between

P = Φ(1.2) − Φ(−1.6) = 0.8849 − 0.0548 = 0.8301

Answer

P = 0.8301
6.Normal distribution

Answer: P = 0.8413

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

μ = 500 − 490 = 10 g, σ = 10 g

Standardise

z = (0 − 10)/10 = −1

Probability

P = 1 − Φ(−1) = 0.8413

Answer

P = 0.8413
7.Confidence intervals

Answer: E = 0.9249

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

Margin of error

E = 2.447·1/√7 = 0.9249

Answer

E = 0.9249
8.Confidence intervals

Answer: n = 239

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.

Solve for n

n = (2.576·30/5)² = 238.9

Round up

A sample size is a whole number, and rounding down would make the margin too large.

n = 239

Answer

n = 239
9.Hypothesis tests & confidence intervals

Answer: p = 0.2005

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 = 16/√64 = 2
z = (252.56 − 250)/2 = 1.28

Tail area

Φ(1.28) = 0.8997
1 − Φ(1.28) = 0.1003

p-value

p = 2·0.1003 = 0.2005

Answer

p = 0.2005

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

10.Hypothesis tests & confidence intervals

Answer: n = 308

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.645)·8/1.5)² = 307.9

Round up

n = 308

Answer

n = 308
11.Linear regression & correlation

Answer: r² = 0.9182

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
ȳ = 133/6 = 22.17

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = −45.5
Syy = Σ(y − ȳ)² = 128.8

Coefficient of determination

r² = −45.5²/(17.5·128.8) = 0.9182

Answer

r² = 0.9182

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

12.Linear regression & correlation

Answer: e = 4.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̄ = 115/5 = 23
ȳ = 469/5 = 93.8

Sums of squares and products

Sxx = Σ(x − x̄)² = 90
Sxy = Σ(x − x̄)(y − ȳ) = 396

Regression line

b = 396/90 = 4.4
a = 93.8 − 4.4·23 = −7.4
ŷ = −7.4 + 4.4·x

Predicted value

ŷ = −7.4 + 4.4·21.5 = 87.2

Residual

e = 92 − 87.2 = 4.8

Answer

e = 4.8

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1