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
303540455055

Find the sample standard deviation s of the data: 30, 57, 48, 45, 27, 46.

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

Exam scores are normally distributed with mean 100 and standard deviation 20. Find the z-score z of a score of 80.

μ = 100σ = 20x = 80
z =
3.ProbabilityMedium
red: 3blue: 3

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

3 / 3
P =
4.ProbabilityHard
n = 11, p = 0.5: P(X ≤ 1) = ?k01234567891011

11 components are tested, and each one fails with probability 0.5, independently. What is the probability P that at most one fails?

n = 11p = 0.5
P =
5.Normal distributionMedium
4580P = ?

The exam scores are normally distributed with mean 65 points and standard deviation 10 points. What fraction lies between 45 and 80 points? Give P as a decimal.

μ = 65σ = 10x1 = 45x2 = 80
P =
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 = 20, s = 19LU = ?x̄ = 66E99%

A sample of 20 items has mean 66 and standard deviation s = 19. The population is roughly normal. Find the upper limit of the 99% confidence interval for the mean.

n = 20x̄ = 66s = 1999%t(19) = 2.861
upper limit =
8.Confidence intervalsHard
σ = 25, n = ?x̄ − Ex̄ + Ex̄E = 1.599%

The population standard deviation is 25. 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 1.5?

σ = 25E = 1.599%
n =
9.Hypothesis tests & confidence intervalsMedium
−1.961.96z = ?

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

n₁ = 80x̄₁ = 146 mmσ₁ = 9 mmn₂ = 100x̄₂ = 151.5 mmσ₂ = 16 mm
z =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 3α = 0.05βσ = 22, power 90%, n = ?

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

α = 0.05power = 90%δ = 3σ = 22zα = 1.645zβ = 1.282
n =
11.Linear regression & correlationMedium
xy2434566638671076xy51060

The table gives 5 paired observations of x = hours studied and y = exam score. Find Pearson's correlation coefficient r.

n = 5
r =
12.Linear regression & correlationHard
xy360468564679782879xy468607080x = 3.5

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 = 3.5.

n = 6x = 3.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 11.44

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̄ = 253/6 = 42.17

Squared deviations

Σ(x − x̄)² = (−12.17)² + 14.83² + 5.833² + 2.833² + (−15.17)² + 3.833² = 654.8

Standard deviation

s = √(654.8/5) = 11.44

Answer

s = 11.44
2.Descriptive statistics

Answer: z = −1

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 = (80 − 100)/20 = −1

Answer

z = −1
3.Probability

Answer: P = 0.2

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/6 · 2/5 = 6/30 = 0.2

Answer

P = 0.2
4.Probability

Answer: P = 0.005859

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)ⁿ⁻ᵏ.

Zero and one failure

P(X = 0) = 0.511 = 0.0004883
P(X = 1) = 11·0.5·0.510 = 0.005371

Add them

P = 0.0004883 + 0.005371 = 0.005859

Answer

P = 0.005859
5.Normal distribution

Answer: P = 0.9104

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₁ = (45 − 65)/10 = −2
z₂ = (80 − 65)/10 = 1.5

Area between

P = Φ(1.5) − Φ(−2) = 0.9332 − 0.02275 = 0.9104

Answer

P = 0.9104
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: upper limit = 78.16

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 = 19, t = 2.861

Margin of error

E = 2.861·19/√20 = 12.16

Interval

66 ± 12.16 → [53.84, 78.16]

Answer

upper limit = 78.16
8.Confidence intervals

Answer: n = 1844

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·25/1.5)² = 1843

Round up

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

n = 1844

Answer

n = 1844
9.Hypothesis tests & confidence intervals

Answer: z = −2.91

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 = √(9²/80 + 16²/100) = √3.572 = 1.89

Test statistic

z = (146 − 151.5)/1.89 = −2.91

Answer

z = −2.91

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

10.Hypothesis tests & confidence intervals

Answer: n = 461

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)·22/3)² = 460.7

Round up

n = 461

Answer

n = 461
11.Linear regression & correlation

Answer: r = 0.9827

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
ȳ = 305/5 = 61

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 154
Syy = Σ(y − ȳ)² = 614

Correlation coefficient

r = 154/√(40·614) = 0.9827

Answer

r = 0.9827
12.Linear regression & correlation

Answer: ŷ = 63.31

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̄ = 33/6 = 5.5
ȳ = 432/6 = 72

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = 76

Regression line

b = 76/17.5 = 4.343
a = 72 − 4.343·5.5 = 48.11
ŷ = 48.11 + 4.343·x

Prediction

ŷ = 48.11 + 4.343·3.5 = 63.31

Answer

ŷ = 63.31

ExamProblems · examproblems.com/courses/statistics-1