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: 19, 50, 24, 15, 32, 42.

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

A quantity is normally distributed with mean 50 and standard deviation 20. What proportion P of values is above 34?

μ = 50σ = 20x = 34
P =
3.ProbabilityMedium
n = 13k = 4N = ?

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

n = 13k = 4
N =
4.ProbabilityHard
n = 6, p = 0.1: P(X = 4) = ?k0123456

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

n = 6p = 0.1k = 4
P =
5.Normal distributionMedium
30.239.5P = ?

The delivery times are normally distributed with mean 32 min and standard deviation 6 min. What fraction lies between 30.2 and 39.5 min? Give P as a decimal.

μ = 32σ = 6x1 = 30.2x2 = 39.5
P =
6.Normal distributionHard
μ = 500x = ?5%

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

μ = 500σ = 40P = 5%
x = h
7.Confidence intervalsMedium
x̄E₁ = 890%, n = 50x̄E₂ = ?90%, n = 100

A 90% confidence interval for a mean, based on 50 observations and a known σ, has a margin of error of 8. What is the margin of error E₂ if the same study uses 100 observations instead?

90%n₁ = 50E₁ = 8n₂ = 100
E₂ =
8.Confidence intervalsHard
p = 0.5, n = ?p̂ − Ep̂ + Ep̂E = 0.0195%

Nothing is known in advance about the proportion of defective products. How many products n must be inspected so that a 95% confidence interval for the proportion has a margin of error of at most 0.01?

p = 0.5E = 0.0195%
n =
9.Hypothesis tests & confidence intervalsMedium
t −2.01102.011

A sample of 49 students has a mean score of 91.14 and a sample standard deviation of 20. Find the test statistic t for H₀: μ = 100.

μ₀ = 100x̄ = 91.14s = 20n = 49
t =
10.Hypothesis tests & confidence intervalsHard
−1.961.96z = ?

In a trial, 30 of 200 patients on treatment A recover, and 29 of 120 patients on treatment B. Using the pooled proportion, find the test statistic z for H₀: p₁ = p₂.

x₁ = 30n₁ = 200x₂ = 29n₂ = 120
z =
11.Linear regression & correlationMedium
xy123222319417517xy24182022

The table gives 5 paired observations of x = car age in years and y = price in k€. Find the coefficient of determination r² of the least-squares line.

n = 5
r² =
12.Linear regression & correlationHard
xy140350550758962xy5405060x = 2

The table gives 5 paired observations of x = advertising spend in k€ and y = sales in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 2.

n = 5x = 2
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 13.63

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̄ = 182/6 = 30.33

Squared deviations

Σ(x − x̄)² = (−11.33)² + 19.67² + (−6.333)² + (−15.33)² + 1.667² + 11.67² = 929.3

Standard deviation

s = √(929.3/5) = 13.63

Answer

s = 13.63
2.Descriptive statistics

Answer: P = 0.7881

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

Standard normal table

Φ(−0.8) = 0.2119
P = 1 − 0.2119 = 0.7881

Answer

P = 0.7881
3.Probability

Answer: N = 715

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

Answer

N = 715
4.Probability

Answer: P = 0.001215

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 = 4) = 15·0.14·0.92 = 15·0.0001·0.81 = 0.001215

Answer

P = 0.001215
5.Normal distribution

Answer: P = 0.5123

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₁ = (30.2 − 32)/6 = −0.3
z₂ = (39.5 − 32)/6 = 1.25

Area between

P = Φ(1.25) − Φ(−0.3) = 0.8944 − 0.3821 = 0.5123

Answer

P = 0.5123
6.Normal distribution

Answer: x = 434.2 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.05 → z = −1.645

Back to x

x = 500 + −1.645·40 = 434.2 h

Answer

x = 434.2 h
7.Confidence intervals

Answer: E₂ = 5.657

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.

Ratio of margins

E₂/E₁ = (1.645/1.645)·√(50/100) = 0.7071

New margin

E₂ = 8·0.7071 = 5.657

Answer

E₂ = 5.657
8.Confidence intervals

Answer: n = 9604

Confidence interval for a proportion: p̂ ± z·√(p̂(1 − p̂)/n), where p̂ = x/n. To reach a margin E you need n ≥ z²·p(1 − p)/E², rounded up; without a prior estimate use p = 0.5, which gives the largest n.

Solve for n

n = 1.96²·0.5·0.5/0.01² = 9604

Round up

n = 9604

Answer

n = 9604
9.Hypothesis tests & confidence intervals

Answer: t = −3.101

Testing a mean: the test statistic measures how many standard errors the sample mean lies from the value claimed in H₀: z = (x̄ − μ₀)/(σ/√n) when σ is known, t = (x̄ − μ₀)/(s/√n) when it is estimated from the sample. A confidence interval is x̄ ± (critical value)·(standard error).

Standard error

SE = 20/√49 = 20/7 = 2.857

Test statistic

t = (91.14 − 100)/2.857 = −3.101

Answer

t = −3.101
t0.025; df = 48 = 2.011

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

10.Hypothesis tests & confidence intervals

Answer: z = −2.047

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

Sample proportions

p̂₁ = 30/200 = 0.15
p̂₂ = 29/120 = 0.2417
p̂ = 59/320 = 0.1844

Standard error under H₀

SE = √(0.1844·0.8156·(1/200 + 1/120)) = 0.04478

Test statistic

z = (0.15 − 0.2417)/0.04478 = −2.047

Answer

z = −2.047

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

11.Linear regression & correlation

Answer: r² = 0.9263

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 − ȳ) = −17
Syy = Σ(y − ȳ)² = 31.2

Coefficient of determination

r² = −17²/(10·31.2) = 0.9263

Answer

r² = 0.9263

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

12.Linear regression & correlation

Answer: ŷ = 44.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̄ = 25/5 = 5
ȳ = 260/5 = 52

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 104

Regression line

b = 104/40 = 2.6
a = 52 − 2.6·5 = 39
ŷ = 39 + 2.6·x

Prediction

ŷ = 39 + 2.6·2 = 44.2

Answer

ŷ = 44.2

ExamProblems · examproblems.com/courses/statistics-1