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
30354045505560

Find the sample standard deviation s of the data: 45, 60, 42, 48, 54, 28.

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

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

μ = 70σ = 20x = 78
z =
3.ProbabilityMedium
red: 5blue: 6

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

5 / 6
P =
4.ProbabilityHard
n = 9, p = 0.3: P(X ≤ 1) = ?k0123456789

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

n = 9p = 0.3
P =
5.Normal distributionMedium
2338P = ?

The delivery times are normally distributed with mean 32 min and standard deviation 6 min. What fraction lies between 23 and 38 min? Give P as a decimal.

μ = 32σ = 6x1 = 23x2 = 38
P =
6.Normal distributionHard
557085100115130145pointsbottom 80%

The IQ scores are normally distributed with mean 100 points and standard deviation 15 points. Drag the cut-off so the shaded bottom 80% is to the left of it. Find the cut-off x.

μ = 100 pointsσ = 15 points80%
x = points
7.Confidence intervalsMedium
x̄E₁ = 690%, n = 36x̄E₂ = ?99%, n = 72

A 90% confidence interval for a mean, based on 36 observations and a known σ, has a margin of error of 6. What is the margin of error E₂ of a 99% interval based on 72 observations?

90%n₁ = 36E₁ = 699%n₂ = 72
E₂ =
8.Confidence intervalsHard
σ = 20, n = ?x̄ − Ex̄ + Ex̄E = 399%

The population standard deviation is 20. 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 3?

σ = 20E = 399%
n =
9.Hypothesis tests & confidence intervalsMedium
−2.1452.145t = ?df = 14

15 employees take a typing test before and after a training course. For each person the difference d = after − before (words per minute) is recorded. The mean difference is 1.47 and the standard deviation of the differences is 5.7. Find the paired test statistic t for H₀: μd = 0.

n = 15d̄ = 1.47sd = 5.7
t =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 1.5α = 0.01βσ = 4, power 80%, n = ?

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

α = 0.01power = 80%δ = 1.5σ = 4zα = 2.326zβ = 0.842
n =
11.Linear regression & correlationMedium
xy2741962783310421251xy5102040

The table gives 6 paired observations of x = load in kN and y = extension in mm. Find Pearson's correlation coefficient r.

n = 6
r =
12.Linear regression & correlationHard
xy126225322415516610xy24610152025x = 3.5

The table gives 6 paired observations of x = car age in years and y = price in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 3.5.

n = 6x = 3.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 11

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̄ = 277/6 = 46.17

Squared deviations

Σ(x − x̄)² = (−1.167)² + 13.83² + (−4.167)² + 1.833² + 7.833² + (−18.17)² = 604.8

Standard deviation

s = √(604.8/5) = 11

Answer

s = 11
2.Descriptive statistics

Answer: z = 0.4

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 = (78 − 70)/20 = 0.4

Answer

z = 0.4
3.Probability

Answer: P = 0.1818

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 = 5/11 · 4/10 = 20/110 = 0.1818

Answer

P = 0.1818
4.Probability

Answer: P = 0.196

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.79 = 0.04035
P(X = 1) = 9·0.3·0.78 = 0.1556

Add them

P = 0.04035 + 0.1556 = 0.196

Answer

P = 0.196
5.Normal distribution

Answer: P = 0.7745

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₁ = (23 − 32)/6 = −1.5
z₂ = (38 − 32)/6 = 1

Area between

P = Φ(1) − Φ(−1.5) = 0.8413 − 0.06681 = 0.7745

Answer

P = 0.7745
6.Normal distribution

Answer: x = 112.6 points

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

Φ(z) = 0.8

z from the table

z ≈ 0.84

Back to the original units

x = 100 + 0.84·15 = 112.6 points

Answer

x = 112.6 points
7.Confidence intervals

Answer: E₂ = 6.644

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.

Ratio of margins

E₂/E₁ = (2.576/1.645)·√(36/72) = 1.107

New margin

E₂ = 6·1.107 = 6.644

Answer

E₂ = 6.644
8.Confidence intervals

Answer: n = 295

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·20/3)² = 294.9

Round up

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

n = 295

Answer

n = 295
9.Hypothesis tests & confidence intervals

Answer: t = 0.9988

Testing a mean: the test statistic measures how many standard errors the sample mean lies from the value claimed in H₀: z = (x̄ − μ₀)/(σ/√n) when σ is known, t = (x̄ − μ₀)/(s/√n) when it is estimated from the sample. A confidence interval is x̄ ± (critical value)·(standard error).

Standard error of the mean difference

SE = 5.7/√15 = 1.472

Test statistic

t = 1.47/1.472 = 0.9988

Answer

t = 0.9988

With df = 14, the two-sided 5% critical value is 2.145; |t| is smaller, so H₀ is not rejected.

10.Hypothesis tests & confidence intervals

Answer: n = 72

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 + 0.842)·4/1.5)² = 71.37

Round up

n = 72

Answer

n = 72
11.Linear regression & correlation

Answer: r = 0.9962

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
ȳ = 179/6 = 29.83

Sums of squares and products

Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 295
Syy = Σ(y − ȳ)² = 1253

Correlation coefficient

r = 295/√(70·1253) = 0.9962

Answer

r = 0.9962
12.Linear regression & correlation

Answer: ŷ = 19

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
ȳ = 114/6 = 19

Sums of squares and products

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

Regression line

b = −57/17.5 = −3.257
a = 19 − (−3.257)·3.5 = 30.4
ŷ = 30.4 − 3.257·x

Prediction

ŷ = 30.4 + (−3.257)·3.5 = 19

Answer

ŷ = 19

ExamProblems · examproblems.com/courses/statistics-1