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
1520253035404550

Find the sample standard deviation s of the data: 12, 46, 54, 44, 14, 31, 18.

n = 7
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 = 6k = 4N = ?

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

n = 6k = 4
N =
4.ProbabilityHard
n = 10, p = 0.2: P(X = 3) = ?k012345678910

A test has 10 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 = 10p = 0.2k = 3
P =
5.Normal distributionMedium
300 kg302.6 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 12 of them exceeds 302.6 kg. Round z to two decimals.

μ = 25 kgσ = 0.5 kgn = 12> 302.6 kg
P =
6.Normal distributionHard
μ = 500x = ?20%

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

μ = 500σ = 40P = 20%
x = h
7.Confidence intervalsMedium
n = 15, sd​ = 1.30LUd̄ = −6.6E = ?90%

The blood pressure of 15 patients is measured before and after a treatment. The differences d = before − after (mmHg) have mean −6.6 and standard deviation 1.3. Find the margin of error E of the 90% confidence interval for the mean difference.

n = 15d̄ = −6.6sd = 1.390%t(14) = 1.761
E = mmHg
8.Confidence intervalsHard
σ = 9, n = ?x̄ − Ex̄ + Ex̄E = 299%

The population standard deviation is 9. How large a sample n do you need so that a 99% confidence interval for the mean has a margin of error of at most 2?

σ = 9E = 299%
n =
9.Hypothesis tests & confidence intervalsMedium
−22p = ?

The mean of a population is claimed to be 50; the population standard deviation is known to be 7.5. A random sample of 25 observations has a mean of 53. Test H₀: μ = 50 against H₁: μ ≠ 50. Find the p-value p.

μ₀ = 50σ = 7.5n = 25x̄ = 53H₁: μ ≠ μ₀
p =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 1.5α = 0.05βσ = 6, power 90%, n = ?

A one-sided z test at α = 0.05 must detect a shift of the mean of 1.5 units with a power of 90%. The standard deviation is 6. Find the minimum sample size n.

α = 0.05power = 90%δ = 1.5σ = 6zα = 1.645zβ = 1.282
n =
11.Linear regression & correlationMedium
xy128223324420520xy242025

The table gives 5 paired observations of x = car age in years and y = price in k€. Their sums are given. Find Pearson's correlation coefficient r from these sums.

n = 5Σx = 15Σy = 115Σx² = 55Σy² = 2689Σxy = 326
r =
12.Linear regression & correlationHard
xy254463680890109712113xy5106080100120x = 3

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. A new observation (3, 64) is made. Find its residual e = y − ŷ.

n = 6(3, 64)
e =

3Solutions

1.Descriptive statistics

Answer: s = 17.04

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̄ = 219/7 = 31.29

Squared deviations

Σ(x − x̄)² = (−19.29)² + 14.71² + 22.71² + 12.71² + (−17.29)² + (−0.2857)² + (−13.29)² = 1741

Standard deviation

s = √(1741/6) = 17.04

Answer

s = 17.04
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 = 15

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(6, 4) = (6·5·4·3)/(4·3·2·1) = 15

Answer

N = 15
4.Probability

Answer: P = 0.2013

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) = 120·0.23·0.87 = 120·0.008·0.2097 = 0.2013

Answer

P = 0.2013
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 = 300 kg, σT = 0.5·√12 = 1.732 kg

Standardise

z = (302.6 − 300)/1.732 = 1.5

Probability

P = 1 − Φ(1.5) = 0.06681

Answer

P = 0.06681
6.Normal distribution

Answer: x = 466.3 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.2 → z = −0.8416

Back to x

x = 500 + −0.8416·40 = 466.34 h

Answer

x = 466.34 h
7.Confidence intervals

Answer: E = 0.5911 mmHg

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.

Critical value

df = 14, t = 1.761

Margin of error

E = 1.761·1.3/√15 = 0.5911

Answer

E = 0.5911 mmHg
8.Confidence intervals

Answer: n = 135

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 = (2.576·9/2)² = 134.4

Round up

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

n = 135

Answer

n = 135
9.Hypothesis tests & confidence intervals

Answer: p = 0.0455

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 ≤ α.

Test statistic

SE = σ/√n = 7.5/√25 = 1.5
z = (53 − 50)/1.5 = 2

Tail area

Φ(2) = 0.9772
1 − Φ(2) = 0.0228

p-value

p = 2·0.0228 = 0.0455

Answer

p = 0.0455

p ≤ 0.05, so H₀ is rejected at the 5% level.

10.Hypothesis tests & confidence intervals

Answer: n = 138

Sample size for a test: to detect a true shift δ with power 1 − β in a one-sided z test at level α, the standard error must satisfy δ = (z_α + z_β)·σ/√n, so n = ((z_α + z_β)·σ/δ)², rounded up.

Solve for n

n = ((1.645 + 1.282)·6/1.5)² = 137.1

Round up

n = 138

Answer

n = 138
11.Linear regression & correlation

Answer: r = −0.9058

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 = 326 − 15·115/5 = −19
Sxx = 55 − 15²/5 = 10
Syy = 2689 − 115²/5 = 44

Correlation coefficient

r = −19/√(10·44) = −0.9058

Answer

r = −0.9058
12.Linear regression & correlation

Answer: e = 4.424

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
ȳ = 497/6 = 82.83

Sums of squares and products

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

Regression line

b = 407/70 = 5.814
a = 82.83 − 5.814·7 = 42.13
ŷ = 42.13 + 5.814·x

Predicted value

ŷ = 42.13 + 5.814·3 = 59.58

Residual

e = 64 − 59.58 = 4.424

Answer

e = 4.424

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1