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
2025303540455055

Find the sample standard deviation s of the data: 47, 52, 58, 41, 27, 50, 20.

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

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

μ = 60σ = 5x = 70
P =
3.ProbabilityMedium
xp(x)00.310.3520.35μ = 1.05

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

x: 0, 1, 2p(x): 0.3, 0.35, 0.35
Var(X) =
4.ProbabilityHard
€p(x)−30.860.15570.05

A game costs €3 to play. You win €9 with probability 0.15 and €60 with probability 0.05; otherwise you win nothing. The stake is not returned. Find the expected net gain E(G) per game.

stake = €3€9: p = 0.15€60: p = 0.05
E(G) = €
5.Normal distributionMedium
60 kg58.2 kgT = X₁ + … + X₅?

The masses of boxes are independent and normal with mean 12 kg and standard deviation 0.8 kg. Find the probability P that the total mass of 5 of them is below 58.2 kg. Round z to two decimals.

μ = 12 kgσ = 0.8 kgn = 5< 58.2 kg
P =
6.Normal distributionHard
μ = 500x = ?25%

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

μ = 500σ = 40P = 25%
x = h
7.Confidence intervalsMedium
μ₁ − μ₂0LU = ?x̄₁ − x̄₂E90%

The battery life of two phone models is compared. Model 1: 30 phones, mean 106 h, known standard deviation 6 h. Model 2: 30 phones, mean 115 h, known standard deviation 15 h. Find the upper limit of the 90% confidence interval for μ₁ − μ₂.

n₁ = 30x̄₁ = 106 hσ₁ = 6 hn₂ = 30x̄₂ = 115 hσ₂ = 15 h90%
upper limit = h
8.Confidence intervalsHard
n = 10σ = ?Us = 6.295%

The diameters of 10 machined shafts have a sample standard deviation of 6.2 µm. Assuming the diameters are normally distributed, find the lower limit σ of the 95% confidence interval for the population standard deviation. With df = 9, 2.5% of the χ² distribution lies below 2.7 and 2.5% lies above 19.023.

n = 10s = 6.2 µmχ² = 2.7, 19.023
σ = µ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 111.5 mm, and the line's known standard deviation is 20 mm. Line 2: a sample of 60 parts has mean 113.7 mm, known standard deviation 19 mm. Find the test statistic z for H₀: μ₁ = μ₂, taking the difference as x̄₁ − x̄₂ (line 1 minus line 2).

n₁ = 100x̄₁ = 111.5 mmσ₁ = 20 mmn₂ = 60x̄₂ = 113.7 mmσ₂ = 19 mm
z =
10.Hypothesis tests & confidence intervalsHard
H₀H₁μ₀x̄cμ₀ + 1.5α = 0.05βσ = 17, power 80%, n = ?

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

α = 0.05power = 80%δ = 1.5σ = 17zα = 1.645zβ = 0.842
n =
11.Linear regression & correlationMedium
xy130226327422523xy242530

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

n = 5
r =
12.Linear regression & correlationHard
xy24466981110161220xy5105101520x = 11

The table gives 6 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 11.

n = 6x = 11
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 13.87

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̄ = 295/7 = 42.14

Squared deviations

Σ(x − x̄)² = 4.857² + 9.857² + 15.86² + (−1.143)² + (−15.14)² + 7.857² + (−22.14)² = 1155

Standard deviation

s = √(1155/6) = 13.87

Answer

s = 13.87
2.Descriptive statistics

Answer: P = 0.9772

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

Standard normal table

Φ(2) = 0.9772
P = 0.9772

Answer

P = 0.9772
3.Probability

Answer: Var(X) = 0.6475

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

μ = 0·0.3 + 1·0.35 + 2·0.35 = 1.05

Mean of the squares

E(X²) = 0·0.3 + 1·0.35 + 4·0.35 = 1.75

Variance

Var(X) = 1.75 − 1.05² = 0.6475

Answer

Var(X) = 0.6475
4.Probability

Answer: E(G) = 1.35 €

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.

Net outcomes

G: 6 (p = 0.15), 57 (p = 0.05), −3 (p = 0.8)

Expected value

E(G) = 6·0.15 + 57·0.05 − 3·0.8 = 1.35 €

Answer

E(G) = 1.35 €

A positive value means you win money on average.

5.Normal distribution

Answer: P = 0.1562

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 = 60 kg, σT = 0.8·√5 = 1.789 kg

Standardise

z = (58.2 − 60)/1.789 = −1.01

Probability

P = Φ(−1.01) = 0.1562

Answer

P = 0.1562
6.Normal distribution

Answer: x = 473 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.25 → z = −0.6745

Back to x

x = 500 + −0.6745·40 = 473.02 h

Answer

x = 473.02 h
7.Confidence intervals

Answer: upper limit = −4.148 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̄₂ = 106 − 115 = −9

Standard error

SE = √(6²/30 + 15²/30) = 2.95

Margin of error

E = 1.645·2.95 = 4.852

Interval

−9 ± 4.852 → [−13.85, −4.148]

Answer

upper limit = −4.148 h

The interval does not contain 0, so the means differ significantly.

8.Confidence intervals

Answer: σ = 4.265 µ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² = 9·6.2² = 346

Limits for σ²

346/19.023 = 18.19
346/2.7 = 128.1

Limit for σ

σ = √18.19 = 4.265 µm

Answer

σ = 4.265 µm

95% interval for σ: [4.265, 11.32] µm.

9.Hypothesis tests & confidence intervals

Answer: z = −0.6951

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 = √(20²/100 + 19²/60) = √10.02 = 3.165

Test statistic

z = (111.5 − 113.7)/3.165 = −0.6951

Answer

z = −0.6951

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

10.Hypothesis tests & confidence intervals

Answer: n = 795

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 + 0.842)·17/1.5)² = 794.5

Round up

n = 795

Answer

n = 795
11.Linear regression & correlation

Answer: r = −0.8868

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
ȳ = 128/5 = 25.6

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = −18
Syy = Σ(y − ȳ)² = 41.2

Correlation coefficient

r = −18/√(10·41.2) = −0.8868

Answer

r = −0.8868
12.Linear regression & correlation

Answer: ŷ = 17.4

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
ȳ = 66/6 = 11

Sums of squares and products

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

Regression line

b = 112/70 = 1.6
a = 11 − 1.6·7 = −0.2
ŷ = −0.2 + 1.6·x

Prediction

ŷ = −0.2 + 1.6·11 = 17.4

Answer

ŷ = 17.4

ExamProblems · examproblems.com/courses/statistics-1