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
1520253035

Find the sample standard deviation s of the data: 15, 22, 34, 19, 38, 31.

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

A quantity is normally distributed with mean 70 and standard deviation 8. What proportion P of values is below 73.2?

μ = 70σ = 8x = 73.2
P =
3.ProbabilityMedium
n = 8k = 2N = ?

In how many ways N can a committee of 2 people be chosen from a group of 8? The order does not matter.

n = 8k = 2
N =
4.ProbabilityHard
n = 6, p = 0.25: P(X = 3) = ?k0123456

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

n = 6p = 0.25k = 3
P =
5.Normal distributionMedium
175.9188.85P = ?

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. What fraction lies between 175.9 and 188.85 cm? Give P as a decimal.

μ = 178σ = 7x1 = 175.9x2 = 188.85
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.02 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.02 mm
P =
7.Confidence intervalsMedium
n = 20, s = 12.5L = ?Ux̄ = 71.5E95%

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

n = 20x̄ = 71.5s = 12.595%t(19) = 2.093
lower limit =
8.Confidence intervalsHard
n = 25Lσ = ?s = 11.795%

The diameters of 25 machined shafts have a sample standard deviation of 11.7 µm. Assuming the diameters are normally distributed, find the upper limit σ of the 95% confidence interval for the population standard deviation. With df = 24, 2.5% of the χ² distribution lies below 12.401 and 2.5% lies above 39.364.

n = 25s = 11.7 µmχ² = 12.401, 39.364
σ = µm
9.Hypothesis tests & confidence intervalsMedium
−1.961.96z = ?

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

n₁ = 100x̄₁ = 46.5 mmσ₁ = 6 mmn₂ = 60x̄₂ = 43.9 mmσ₂ = 15 mm
z =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

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

μ₀ = 500μ = 501.1σ = 4n = 64α = 0.10
β = %
11.Linear regression & correlationMedium
xy1680198922105251272814631159xy15202530100150

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Find the coefficient of determination r² of the least-squares line.

n = 6
r² =
12.Linear regression & correlationHard
xy126221319417515xy24152025x = 1.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 = 1.5.

n = 5x = 1.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 9.138

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̄ = 159/6 = 26.5

Squared deviations

Σ(x − x̄)² = (−11.5)² + (−4.5)² + 7.5² + (−7.5)² + 11.5² + 4.5² = 417.5

Standard deviation

s = √(417.5/5) = 9.138

Answer

s = 9.138
2.Descriptive statistics

Answer: P = 0.6554

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 = 0.4

Standard normal table

Φ(0.4) = 0.6554
P = 0.6554

Answer

P = 0.6554
3.Probability

Answer: N = 28

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

Combinations

C(8, 2) = (8·7)/(2·1) = 28

Answer

N = 28
4.Probability

Answer: P = 0.1318

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) = 20·0.253·0.753 = 20·0.01563·0.4219 = 0.1318

Answer

P = 0.1318
5.Normal distribution

Answer: P = 0.5573

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₁ = (175.9 − 178)/7 = −0.3
z₂ = (188.85 − 178)/7 = 1.55

Area between

P = Φ(1.55) − Φ(−0.3) = 0.9394 − 0.3821 = 0.5573

Answer

P = 0.5573
6.Normal distribution

Answer: P = 0.8849

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.025 mm

Standardise

z = (0 − 0.03)/0.025 = −1.2

Probability

P = 1 − Φ(−1.2) = 0.8849

Answer

P = 0.8849
7.Confidence intervals

Answer: lower limit = 65.65

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

Margin of error

E = 2.093·12.5/√20 = 5.85

Interval

71.5 ± 5.85 → [65.65, 77.35]

Answer

lower limit = 65.65
8.Confidence intervals

Answer: σ = 16.28 µm

Interval for a variance: (n − 1)s²/σ² has a χ² distribution with n − 1 degrees of freedom. The 95% interval for σ² runs from (n − 1)s² divided by the upper χ² value (2.5% above it) to (n − 1)s² divided by the lower χ² value (2.5% below it); the interval for σ is the square root of both limits. It is not symmetric around s.

Sum of squares

(n − 1)s² = 24·11.7² = 3285

Limits for σ²

3285/39.364 = 83.46
3285/12.401 = 264.9

Limit for σ

σ = √264.9 = 16.28 µm

Answer

σ = 16.28 µm

95% interval for σ: [9.136, 16.28] µm.

9.Hypothesis tests & confidence intervals

Answer: z = 1.282

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 = √(6²/100 + 15²/60) = √4.11 = 2.027

Test statistic

z = (46.5 − 43.9)/2.027 = 1.282

Answer

z = 1.282

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

10.Hypothesis tests & confidence intervals

Answer: β = 17.93 %

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 = 4/√64 = 0.5
x̄c = 500 + 1.282·0.5 = 500.6

z under the true mean

z = (500.6 − 501.1)/0.5 = −0.918

Type II error

power = P(Z > −0.918) = 82.07%
β = 100% − 82.07% = 17.93%

Answer

β = 17.93%
11.Linear regression & correlation

Answer: r² = 0.988

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̄ = 141/6 = 23.5
ȳ = 706/6 = 117.7

Sums of squares and products

Sxx = Σ(x − x̄)² = 157.5
Sxy = Σ(x − x̄)(y − ȳ) = 882
Syy = Σ(y − ȳ)² = 4999

Coefficient of determination

r² = 882²/(157.5·4999) = 0.988

Answer

r² = 0.988

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

12.Linear regression & correlation

Answer: ŷ = 23.5

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
ȳ = 98/5 = 19.6

Sums of squares and products

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

Regression line

b = −26/10 = −2.6
a = 19.6 − (−2.6)·3 = 27.4
ŷ = 27.4 − 2.6·x

Prediction

ŷ = 27.4 + (−2.6)·1.5 = 23.5

Answer

ŷ = 23.5

ExamProblems · examproblems.com/courses/statistics-1