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
10152025303540455055

Find the sample standard deviation s of the data: 23, 43, 45, 57, 10.

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

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

μ = 60σ = 10x = 40
z =
3.ProbabilityMedium
n = 12k = 4N = ?

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

n = 12k = 4
N =
4.ProbabilityHard
n = 10, p = 0.7: P(X ≤ 1) = ?k012345678910

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

n = 10p = 0.7
P =
5.Normal distributionMedium
400 kg397 kgT = X₁ + … + X₁₆?

The masses of bags of cement are independent and normal with mean 25 kg and standard deviation 0.5 kg. Find the probability P that the total mass of 16 of them is below 397 kg. Round z to two decimals.

μ = 25 kgσ = 0.5 kgn = 16< 397 kg
P =
6.Normal distributionHard
10 cm0X − Y?

The heights X of men and Y of women in a group are independent and normal: X has mean 180 cm and standard deviation 10 cm, Y has mean 170 cm and standard deviation 12 cm. Find the probability P that X is greater than Y. Round z to two decimals.

μX = 180 cm, σX = 10 cmμY = 170 cm, σY = 12 cm
P =
7.Confidence intervalsMedium
n = 20, s = 17.5LUx̄ = 90.5E = ?95%

A sample of 20 items has mean 90.5 and standard deviation s = 17.5. The population is roughly normal. Find the margin of error E of a 95% confidence interval for the mean.

n = 20x̄ = 90.5s = 17.595%t(19) = 2.093
E =
8.Confidence intervalsHard
σ = 31, n = ?x̄ − Ex̄ + Ex̄E = 295%

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

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

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

n₁ = 30x̄₁ = 149 mmσ₁ = 7 mmn₂ = 30x̄₂ = 146.9 mmσ₂ = 8 mm
z =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

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

μ₀ = 500μ = 498.9σ = 4n = 64α = 0.05
β = %
11.Linear regression & correlationMedium
xy175320692385261042910932124xy20253050100

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

n = 6
r =
12.Linear regression & correlationHard
xy130224323422521xy242530x = 3.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. A new observation (3.5, 21) is made. Find its residual e = y − ŷ.

n = 5(3.5, 21)
e =

3Solutions

1.Descriptive statistics

Answer: s = 18.81

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̄ = 178/5 = 35.6

Squared deviations

Σ(x − x̄)² = (−12.6)² + 7.4² + 9.4² + 21.4² + (−25.6)² = 1415

Standard deviation

s = √(1415/4) = 18.81

Answer

s = 18.81
2.Descriptive statistics

Answer: z = −2

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 = (40 − 60)/10 = −2

Answer

z = −2
3.Probability

Answer: N = 495

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(12, 4) = (12·11·10·9)/(4·3·2·1) = 495

Answer

N = 495
4.Probability

Answer: P = 0.0001437

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.310 = 5.905 × 10⁻⁶
P(X = 1) = 10·0.7·0.39 = 0.0001378

Add them

P = 5.905 × 10⁻⁶ + 0.0001378 = 0.0001437

Answer

P = 0.0001437
5.Normal distribution

Answer: P = 0.06681

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 total

μT = 400 kg, σT = 0.5·√16 = 2 kg

Standardise

z = (397 − 400)/2 = −1.5

Probability

P = Φ(−1.5) = 0.06681

Answer

P = 0.06681
6.Normal distribution

Answer: P = 0.7389

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

μ = 180 − 170 = 10 cm, σ = 15.62 cm

Standardise

z = (0 − 10)/15.62 = −0.64

Probability

P = 1 − Φ(−0.64) = 0.7389

Answer

P = 0.7389
7.Confidence intervals

Answer: E = 8.19

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·17.5/√20 = 8.19

Answer

E = 8.19
8.Confidence intervals

Answer: n = 923

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·31/2)² = 922.9

Round up

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

n = 923

Answer

n = 923
9.Hypothesis tests & confidence intervals

Answer: z = 1.082

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 = √(7²/30 + 8²/30) = √3.767 = 1.941

Test statistic

z = (149 − 146.9)/1.941 = 1.082

Answer

z = 1.082

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

10.Hypothesis tests & confidence intervals

Answer: β = 28.94 %

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.645·0.5 = 499.2

z under the true mean

z = (499.2 − 498.9)/0.5 = 0.555

Type II error

power = P(Z < 0.555) = 71.06%
β = 100% − 71.06% = 28.94%

Answer

β = 28.94%
11.Linear regression & correlation

Answer: r = 0.9916

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̄ = 147/6 = 24.5
ȳ = 544/6 = 90.67

Sums of squares and products

Sxx = Σ(x − x̄)² = 157.5
Sxy = Σ(x − x̄)(y − ȳ) = 741
Syy = Σ(y − ȳ)² = 3545

Correlation coefficient

r = 741/√(157.5·3545) = 0.9916

Answer

r = 0.9916
12.Linear regression & correlation

Answer: e = −2

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
ȳ = 120/5 = 24

Sums of squares and products

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

Regression line

b = −20/10 = −2
a = 24 − (−2)·3 = 30
ŷ = 30 − 2·x

Predicted value

ŷ = 30 + (−2)·3.5 = 23

Residual

e = 21 − 23 = −2

Answer

e = −2

The point lies below the line.

ExamProblems · examproblems.com/courses/statistics-1