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
15202530354045505560

Find the sample standard deviation s of the data: 44, 52, 15, 11, 60, 58.

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

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

μ = 70σ = 10x = 60
z =
3.ProbabilityMedium
xp(x)00.220.2540.260.35μ = 3.4

For the distribution shown, find the variance Var(X) of X.

x: 0, 2, 4, 6p(x): 0.2, 0.25, 0.2, 0.35
Var(X) =
4.ProbabilityHard
€p(x)−20.8460.15380.01

A game costs €2 to play. You win €8 with probability 0.15 and €40 with probability 0.01; otherwise you win nothing. The stake is not returned. Find the expected net gain E(G) per game.

stake = €2€8: p = 0.15€40: p = 0.01
E(G) = €
5.Normal distributionMedium
245.25255P = ?

The bag weights are normally distributed with mean 250 g and standard deviation 5 g. What fraction lies between 245.25 and 255 g? Give P as a decimal.

μ = 250σ = 5x1 = 245.25x2 = 255
P =
6.Normal distributionHard
μ = 500x = ?99%

The battery lifetimes are normally distributed with mean 500 h and standard deviation 40 h. Find the value x below which 99% of them lie (the 99th percentile).

μ = 500σ = 40P = 99%
x = h
7.Confidence intervalsMedium
x̄E₁ = 8.490%, n = 25x̄E₂ = ?99%, n = 225

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

90%n₁ = 25E₁ = 8.499%n₂ = 225
E₂ =
8.Confidence intervalsHard
σ = 20, n = ?x̄ − Ex̄ + Ex̄E = 195%

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

σ = 20E = 195%
n =
9.Hypothesis tests & confidence intervalsMedium
−2.3062.306t = ?df = 8

9 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 8.31 and the standard deviation of the differences is 8.9. Find the paired test statistic t for H₀: μd = 0.

n = 9d̄ = 8.31sd = 8.9
t =
10.Hypothesis tests & confidence intervalsHard
z −1.64501.645

A sample of 36 measurements has mean 114.8. The population standard deviation is 15. Find the upper limit U of the 90% confidence interval for the mean.

x̄ = 114.8σ = 15n = 3690%
U =
11.Linear regression & correlationMedium
xy126223322420516612xy246152025

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
xy2741361682210281234xy510102030ŷ = 15

The table gives 6 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. For which value x does the line predict ŷ = 15?

n = 6ŷ = 15
x =

3Solutions

1.Descriptive statistics

Answer: s = 21.68

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̄ = 240/6 = 40

Squared deviations

Σ(x − x̄)² = 4² + 12² + (−25)² + (−29)² + 20² + 18² = 2350

Standard deviation

s = √(2350/5) = 21.68

Answer

s = 21.68
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 = (60 − 70)/10 = −1

Answer

z = −1
3.Probability

Answer: Var(X) = 5.24

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

μ = 0·0.2 + 2·0.25 + 4·0.2 + 6·0.35 = 3.4

Mean of the squares

E(X²) = 0·0.2 + 4·0.25 + 16·0.2 + 36·0.35 = 16.8

Variance

Var(X) = 16.8 − 3.4² = 5.24

Answer

Var(X) = 5.24
4.Probability

Answer: E(G) = −0.4 €

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.

Net outcomes

G: 6 (p = 0.15), 38 (p = 0.01), −2 (p = 0.84)

Expected value

E(G) = 6·0.15 + 38·0.01 − 2·0.84 = −0.4 €

Answer

E(G) = −0.4 €

A negative value means you lose money on average.

5.Normal distribution

Answer: P = 0.6703

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₁ = (245.25 − 250)/5 = −0.95
z₂ = (255 − 250)/5 = 1

Area between

P = Φ(1) − Φ(−0.95) = 0.8413 − 0.1711 = 0.6703

Answer

P = 0.6703
6.Normal distribution

Answer: x = 593.1 h

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 for the percentile

Φ(z) = 0.99 → z = 2.326

Back to x

x = 500 + 2.326·40 = 593.05 h

Answer

x = 593.05 h
7.Confidence intervals

Answer: E₂ = 4.385

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)·√(25/225) = 0.522

New margin

E₂ = 8.4·0.522 = 4.385

Answer

E₂ = 4.385
8.Confidence intervals

Answer: n = 1537

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·20/1)² = 1537

Round up

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

n = 1537

Answer

n = 1537
9.Hypothesis tests & confidence intervals

Answer: t = 2.801

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 = 8.9/√9 = 2.967

Test statistic

t = 8.31/2.967 = 2.801

Answer

t = 2.801

With df = 8, the two-sided 5% critical value is 2.306; |t| is larger, so H₀ is rejected.

10.Hypothesis tests & confidence intervals

Answer: U = 118.9

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

Margin of error

E = 1.645·15/√36 = 4.112

Interval limit

U = 114.8 + 4.112 = 118.9

Answer

U = 118.9
11.Linear regression & correlation

Answer: r² = 0.959

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
ȳ = 119/6 = 19.83

Sums of squares and products

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

Coefficient of determination

r² = −46.5²/(17.5·128.8) = 0.959

Answer

r² = 0.959

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

12.Linear regression & correlation

Answer: x = 5.118

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
ȳ = 120/6 = 20

Sums of squares and products

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

Regression line

b = 186/70 = 2.657
a = 20 − 2.657·7 = 1.4
ŷ = 1.4 + 2.657·x

Solve for x

x = (15 − 1.4)/2.657 = 5.118

Answer

x = 5.118

ExamProblems · examproblems.com/courses/statistics-1