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
15202530354045

Find the sample standard deviation s of the data: 42, 49, 34, 40, 13, 47.

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

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

μ = 500σ = 100x = 600
z =
3.ProbabilityMedium
xp(x)10.320.3530.1540.2μ = 2.25

For the distribution shown, find the standard deviation σ of X.

x: 1, 2, 3, 4p(x): 0.3, 0.35, 0.15, 0.2
σ =
4.ProbabilityHard
xp(x)00.310.3520.35μ

X has the distribution shown, and Y = 3X − 3. Find the standard deviation σY of Y.

x: 0, 1, 2p(x): 0.3, 0.35, 0.35Y = 3X − 3
σY =
5.Normal distributionMedium
200 mm201 mmX + Y?

X is normal with mean 120 mm and standard deviation 0.3 mm; Y is independent and normal with mean 80 mm and standard deviation 0.4 mm. Find the probability P that X + Y is more than 201 mm. Round z to two decimals.

μX = 120, σX = 0.3μY = 80, σY = 0.4X + Y > 201 mm
P =
6.Normal distributionHard
0.03 mm0D − d?

Hole diameters D are normal with mean 25.03 mm and standard deviation 0.015 mm. Shaft diameters d are independent and normal with mean 25 mm and standard deviation 0.015 mm. A randomly chosen shaft fits when D − d > 0. Find the probability P that it fits. Round z to two decimals.

hole: μ = 25.03 mm, σ = 0.015 mmshaft: μ = 25 mm, σ = 0.015 mm
P =
7.Confidence intervalsMedium
n = 30, s = 20LU = ?x̄ = 23.5E99%

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

n = 30x̄ = 23.5s = 2099%t(29) = 2.756
upper limit =
8.Confidence intervalsHard
σ = 32, n = ?x̄ − Ex̄ + Ex̄E = 2.595%

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

σ = 32E = 2.595%
n =
9.Hypothesis tests & confidence intervalsMedium
t −2.0302.03

A sample of 36 students has a mean score of 121.8 and a sample standard deviation of 15. Find the test statistic t for H₀: μ = 120.

μ₀ = 120x̄ = 121.8s = 15n = 36
t =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

A one-sided z test of H₀: μ = 80 against H₁: μ > 80 is done at α = 0.01 with a sample of 100; the standard deviation is known to be 30. In reality the mean is 89.3. Find the probability of a Type II error β in percent.

μ₀ = 80μ = 89.3σ = 30n = 100α = 0.01
β = %
11.Linear regression & correlationMedium
xy17952011423133261522917032180xy202530100150

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 6Σx = 147Σy = 844Σx² = 3759Σy² = 124114Σxy = 21596
r =
12.Linear regression & correlationHard
xy21041762283010351242xy51010203040x = 3

The table gives 6 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. A new observation (3, 9) is made. Find its residual e = y − ŷ.

n = 6(3, 9)
e =

3Solutions

1.Descriptive statistics

Answer: s = 13.13

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̄ = 225/6 = 37.5

Squared deviations

Σ(x − x̄)² = 4.5² + 11.5² + (−3.5)² + 2.5² + (−24.5)² + 9.5² = 861.5

Standard deviation

s = √(861.5/5) = 13.13

Answer

s = 13.13
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 = (600 − 500)/100 = 1

Answer

z = 1
3.Probability

Answer: σ = 1.09

Discrete random variables: a probability distribution lists every value x a variable can take with its probability p(x); the probabilities are between 0 and 1 and add up to 1. The expected value (mean) is E(X) = Σx·p(x), the long-run average. The variance is Var(X) = Σ(x − μ)²·p(x) = E(X²) − μ², and the standard deviation σ = √Var(X). For a linear change Y = aX + b: E(Y) = a·E(X) + b, Var(Y) = a²·Var(X) and σY = |a|·σX; adding a constant does not change the spread.

Mean

μ = 1·0.3 + 2·0.35 + 3·0.15 + 4·0.2 = 2.25

Mean of the squares

E(X²) = 1·0.3 + 4·0.35 + 9·0.15 + 16·0.2 = 6.25

Variance

Var(X) = 6.25 − 2.25² = 1.188
σ = √1.188 = 1.09

Answer

σ = 1.09
4.Probability

Answer: σY = 2.414

Discrete random variables: a probability distribution lists every value x a variable can take with its probability p(x); the probabilities are between 0 and 1 and add up to 1. The expected value (mean) is E(X) = Σx·p(x), the long-run average. The variance is Var(X) = Σ(x − μ)²·p(x) = E(X²) − μ², and the standard deviation σ = √Var(X). For a linear change Y = aX + b: E(Y) = a·E(X) + b, Var(Y) = a²·Var(X) and σY = |a|·σX; adding a constant does not change the spread.

Spread of X

μ = 1.05, Var(X) = 0.6475, σX = 0.8047

Linear change

σY = |3|·0.8047 = 2.414

Answer

σY = 2.414

The mean does move: E(Y) = 3·1.05 − 3 = 0.15.

5.Normal distribution

Answer: P = 0.02275

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 sum

μ = 200 mm, σ = √(0.3² + 0.4²) = 0.5 mm

Standardise

z = (201 − 200)/0.5 = 2

Upper tail

P = 1 − Φ(2) = 1 − 0.9772 = 0.02275

Answer

P = 0.02275
6.Normal distribution

Answer: P = 0.9207

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

μ = 25.03 − 25 = 0.03 mm, σ = 0.02121 mm

Standardise

z = (0 − 0.03)/0.02121 = −1.41

Probability

P = 1 − Φ(−1.41) = 0.9207

Answer

P = 0.9207
7.Confidence intervals

Answer: upper limit = 33.56

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 = 29, t = 2.756

Margin of error

E = 2.756·20/√30 = 10.06

Interval

23.5 ± 10.06 → [13.44, 33.56]

Answer

upper limit = 33.56
8.Confidence intervals

Answer: n = 630

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 = (1.96·32/2.5)² = 629.4

Round up

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

n = 630

Answer

n = 630
9.Hypothesis tests & confidence intervals

Answer: t = 0.72

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

SE = 15/√36 = 15/6 = 2.5

Test statistic

t = (121.8 − 120)/2.5 = 0.72

Answer

t = 0.72
t0.025; df = 35 = 2.03

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

10.Hypothesis tests & confidence intervals

Answer: β = 21.95 %

Power of a test: power = 1 − β is the probability of rejecting H₀ when it is false. Find the cutoff x̄c from μ₀ and z_α, then compute the probability of landing beyond x̄c using the true mean: z = (x̄c − μ)/(σ/√n).

Critical sample mean

SE = 30/√100 = 3
x̄c = 80 + 2.326·3 = 86.98

z under the true mean

z = (86.98 − 89.3)/3 = −0.774

Type II error

power = P(Z > −0.774) = 78.05%
β = 100% − 78.05% = 21.95%

Answer

β = 21.95%
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.

Centred sums

Sxy = 21596 − 147·844/6 = 918
Sxx = 3759 − 147²/6 = 157.5
Syy = 124114 − 844²/6 = 5391

Correlation coefficient

r = 918/√(157.5·5391) = 0.9962

Answer

r = 0.9962
12.Linear regression & correlation

Answer: e = −4.314

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
ȳ = 156/6 = 26

Sums of squares and products

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

Regression line

b = 222/70 = 3.171
a = 26 − 3.171·7 = 3.8
ŷ = 3.8 + 3.171·x

Predicted value

ŷ = 3.8 + 3.171·3 = 13.31

Residual

e = 9 − 13.31 = −4.314

Answer

e = −4.314

The point lies below the line.

ExamProblems · examproblems.com/courses/statistics-1