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
25303540455055

Find the sample standard deviation s of the data: 48, 59, 47, 58, 24.

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

A quantity is normally distributed with mean 500 and standard deviation 25. What proportion P of values is below 537.5?

μ = 500σ = 25x = 537.5
P =
3.ProbabilityMedium
xp(x)10.320.130.3540.250.05μ = 2.6

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

x: 1, 2, 3, 4, 5p(x): 0.3, 0.1, 0.35, 0.2, 0.05
Var(X) =
4.ProbabilityHard
n = 7, p = 0.2: P(X = 3) = ?k01234567

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

n = 7p = 0.2k = 3
P =
5.Normal distributionMedium
27.535P = ?

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

μ = 32σ = 6x1 = 27.5x2 = 35
P =
6.Normal distributionHard
μ = 100x = ?90%

The IQ scores are normally distributed with mean 100 points and standard deviation 15 points. Find the value x below which 90% of them lie (the 90th percentile).

μ = 100σ = 15P = 90%
x = points
7.Confidence intervalsMedium
n = 7, s = 9.5L = ?Ux̄ = 24E95%

A sample of 7 items has mean 24 and standard deviation s = 9.5. The population is roughly normal. Find the lower limit of the 95% confidence interval for the mean.

n = 7x̄ = 24s = 9.595%t(6) = 2.447
lower limit =
8.Confidence intervalsHard
σ = 8, n = ?x̄ − Ex̄ + Ex̄E = 1.595%

The population standard deviation is 8. 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.5?

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

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

n₁ = 40x̄₁ = 104.5 mmσ₁ = 19 mmn₂ = 60x̄₂ = 113.6 mmσ₂ = 12 mm
z =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

A one-sided z test of H₀: μ = 50 against H₁: μ > 50 is done at α = 0.01 with a sample of 25; the standard deviation is known to be 15. In reality the mean is 62. Find the power 1 − β of the test in percent.

μ₀ = 50μ = 62σ = 15n = 25α = 0.01
1 − β = %
11.Linear regression & correlationMedium
xy264116218271030xy510102030

The table gives 5 paired observations of x = load in kN and y = extension in mm. Find the coefficient of determination r² of the least-squares line.

n = 5
r² =
12.Linear regression & correlationHard
xy124224320414514xy24152025x = 4.5

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

n = 5x = 4.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 14.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.

Mean

x̄ = 236/5 = 47.2

Squared deviations

Σ(x − x̄)² = 0.8² + 11.8² + (−0.2)² + 10.8² + (−23.2)² = 794.8

Standard deviation

s = √(794.8/4) = 14.1

Answer

s = 14.1
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: Var(X) = 1.54

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.1 + 3·0.35 + 4·0.2 + 5·0.05 = 2.6

Mean of the squares

E(X²) = 1·0.3 + 4·0.1 + 9·0.35 + 16·0.2 + 25·0.05 = 8.3

Variance

Var(X) = 8.3 − 2.6² = 1.54

Answer

Var(X) = 1.54
4.Probability

Answer: P = 0.1147

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 = 3) = 35·0.23·0.84 = 35·0.008·0.4096 = 0.1147

Answer

P = 0.1147
5.Normal distribution

Answer: P = 0.4648

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₁ = (27.5 − 32)/6 = −0.75
z₂ = (35 − 32)/6 = 0.5

Area between

P = Φ(0.5) − Φ(−0.75) = 0.6915 − 0.2266 = 0.4648

Answer

P = 0.4648
6.Normal distribution

Answer: x = 119.2 points

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.9 → z = 1.282

Back to x

x = 100 + 1.282·15 = 119.22 points

Answer

x = 119.22 points
7.Confidence intervals

Answer: lower limit = 15.21

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·9.5/√7 = 8.786

Interval

24 ± 8.786 → [15.21, 32.79]

Answer

lower limit = 15.21
8.Confidence intervals

Answer: n = 110

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·8/1.5)² = 109.3

Round up

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

n = 110

Answer

n = 110
9.Hypothesis tests & confidence intervals

Answer: z = −2.692

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 = √(19²/40 + 12²/60) = √11.43 = 3.38

Test statistic

z = (104.5 − 113.6)/3.38 = −2.692

Answer

z = −2.692

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

10.Hypothesis tests & confidence intervals

Answer: 1 − β = 95.29 %

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 = 15/√25 = 3
x̄c = 50 + 2.326·3 = 56.98

z under the true mean

z = (56.98 − 62)/3 = −1.674

Power

power = P(Z > −1.674) = 95.29%
1 − β = 95.29%

Answer

1 − β = 95.29%
11.Linear regression & correlation

Answer: r² = 0.9706

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
ȳ = 95/5 = 19

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 128
Syy = Σ(y − ȳ)² = 422

Coefficient of determination

r² = 128²/(40·422) = 0.9706

Answer

r² = 0.9706

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

12.Linear regression & correlation

Answer: ŷ = 14.7

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̄ = 15/5 = 3
ȳ = 96/5 = 19.2

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = −30

Regression line

b = −30/10 = −3
a = 19.2 − (−3)·3 = 28.2
ŷ = 28.2 − 3·x

Prediction

ŷ = 28.2 + (−3)·4.5 = 14.7

Answer

ŷ = 14.7

ExamProblems · examproblems.com/courses/statistics-1