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: 26, 17, 39, 14, 60.

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

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

μ = 500σ = 25x = 480
z =
3.ProbabilityMedium
n = 15k = 4N = ?

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

n = 15k = 4
N =
4.ProbabilityHard
n = 5, p = 0.25: P(X ≤ 1) = ?k012345

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

n = 5p = 0.25
P =
5.Normal distributionMedium
32 min29.5 minX + Y?

X is normal with mean 12 min and standard deviation 1.5 min; Y is independent and normal with mean 20 min and standard deviation 2 min. Find the probability P that X + Y is more than 29.5 min. Round z to two decimals.

μX = 12, σX = 1.5μY = 20, σY = 2X + Y > 29.5 min
P =
6.Normal distributionHard
μ = 178x = ?99%

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. Find the value x below which 99% of them lie (the 99th percentile).

μ = 178σ = 7P = 99%
x = cm
7.Confidence intervalsMedium
μ₁ − μ₂0L = ?Ux̄₁ − x̄₂E99%

The battery life of two phone models is compared. Model 1: 50 phones, mean 105.5 h, known standard deviation 6 h. Model 2: 100 phones, mean 109.5 h, known standard deviation 15 h. Find the lower limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 50x̄₁ = 105.5 hσ₁ = 6 hn₂ = 100x̄₂ = 109.5 hσ₂ = 15 h99%
lower limit = h
8.Confidence intervalsHard
σ = 31, n = ?x̄ − Ex̄ + Ex̄E = 195%

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 1?

σ = 31E = 195%
n =
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 71.5 mm, and the line's known standard deviation is 4 mm. Line 2: a sample of 40 parts has mean 81.7 mm, known standard deviation 20 mm. Find the test statistic z for H₀: μ₁ = μ₂, taking the difference as x̄₁ − x̄₂ (line 1 minus line 2).

n₁ = 100x̄₁ = 71.5 mmσ₁ = 4 mmn₂ = 40x̄₂ = 81.7 mmσ₂ = 20 mm
z =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

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

μ₀ = 100μ = 100.9σ = 3n = 36α = 0.05
1 − β = %
11.Linear regression & correlationMedium
xy360463572682786889xy46860708090

The table gives 6 paired observations of x = hours studied and y = exam score. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 6Σx = 33Σy = 452Σx² = 199Σy² = 34794Σxy = 2598
r =
12.Linear regression & correlationHard
xy363465575682792895xy468708090ŷ = 93

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. For which value x does the line predict ŷ = 93?

n = 6ŷ = 93
x =

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̄ = 156/5 = 31.2

Squared deviations

Σ(x − x̄)² = (−5.2)² + (−14.2)² + 7.8² + (−17.2)² + 28.8² = 1415

Standard deviation

s = √(1415/4) = 18.81

Answer

s = 18.81
2.Descriptive statistics

Answer: z = −0.8

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 = (480 − 500)/25 = −0.8

Answer

z = −0.8
3.Probability

Answer: N = 1365

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(15, 4) = (15·14·13·12)/(4·3·2·1) = 1365

Answer

N = 1365
4.Probability

Answer: P = 0.6328

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.755 = 0.2373
P(X = 1) = 5·0.25·0.754 = 0.3955

Add them

P = 0.2373 + 0.3955 = 0.6328

Answer

P = 0.6328
5.Normal distribution

Answer: P = 0.8413

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

μ = 32 min, σ = √(1.5² + 2²) = 2.5 min

Standardise

z = (29.5 − 32)/2.5 = −1

Upper tail

P = 1 − Φ(−1) = 1 − 0.1587 = 0.8413

Answer

P = 0.8413
6.Normal distribution

Answer: x = 194.3 cm

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 = 178 + 2.326·7 = 194.28 cm

Answer

x = 194.28 cm
7.Confidence intervals

Answer: lower limit = −8.439 h

Interval for a difference: estimate ± critical value × standard error. For two independent means with known σ: SE = √(σ₁²/n₁ + σ₂²/n₂) and z. With equal unknown variances: pooled s_p and t with n₁ + n₂ − 2 degrees of freedom. For paired data, work with the differences: d̄ ± t·s_d/√n.

Point estimate

x̄₁ − x̄₂ = 105.5 − 109.5 = −4

Standard error

SE = √(6²/50 + 15²/100) = 1.723

Margin of error

E = 2.576·1.723 = 4.439

Interval

−4 ± 4.439 → [−8.439, 0.4394]

Answer

lower limit = −8.439 h

The interval contains 0, so the data do not show a significant difference.

8.Confidence intervals

Answer: n = 3692

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/1)² = 3692

Round up

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

n = 3692

Answer

n = 3692
9.Hypothesis tests & confidence intervals

Answer: z = −3.2

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 = √(4²/100 + 20²/40) = √10.16 = 3.187

Test statistic

z = (71.5 − 81.7)/3.187 = −3.2

Answer

z = −3.2

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

10.Hypothesis tests & confidence intervals

Answer: 1 − β = 56.16 %

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 = 3/√36 = 0.5
x̄c = 100 + 1.645·0.5 = 100.8

z under the true mean

z = (100.8 − 100.9)/0.5 = −0.155

Power

power = P(Z > −0.155) = 56.16%
1 − β = 56.16%

Answer

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

Answer: r = 0.982

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 = 2598 − 33·452/6 = 112
Sxx = 199 − 33²/6 = 17.5
Syy = 34794 − 452²/6 = 743.3

Correlation coefficient

r = 112/√(17.5·743.3) = 0.982

Answer

r = 0.982
12.Linear regression & correlation

Answer: x = 7.523

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̄ = 33/6 = 5.5
ȳ = 472/6 = 78.67

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = 124

Regression line

b = 124/17.5 = 7.086
a = 78.67 − 7.086·5.5 = 39.7
ŷ = 39.7 + 7.086·x

Solve for x

x = (93 − 39.7)/7.086 = 7.523

Answer

x = 7.523

ExamProblems · examproblems.com/courses/statistics-1