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
303540455055

Find the sample standard deviation s of the data: 44, 45, 47, 56, 28.

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

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

μ = 50σ = 15x = 27.5
P =
3.ProbabilityMedium
P(at least one six) = ??1?2P(six) = 1/6 on each roll

A fair die is rolled 2 times. What is the probability P of getting at least one six?

n = 2
P =
4.ProbabilityHard
n = 12, p = 0.1: P(X = 2) = ?k0123456789101112

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

n = 12p = 0.1k = 2
P =
5.Normal distributionMedium
76.75107.5P = ?

The IQ scores are normally distributed with mean 100 points and standard deviation 15 points. What fraction lies between 76.75 and 107.5 points? Give P as a decimal.

μ = 100σ = 15x1 = 76.75x2 = 107.5
P =
6.Normal distributionHard
μ = 500x = ?99%

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

μ = 500σ = 40P = 99%
x = h
7.Confidence intervalsMedium
n = 8, s = 3.5LU = ?x̄ = 40.5E99%

A sample of 8 items has mean 40.5 and standard deviation s = 3.5. The population is roughly normal. Find the upper limit of the 99% confidence interval for the mean.

n = 8x̄ = 40.5s = 3.599%t(7) = 3.499
upper limit =
8.Confidence intervalsHard
n = 21σ = ?Us = 2.495%

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

n = 21s = 2.4 µmχ² = 9.591, 34.17
σ = µm
9.Hypothesis tests & confidence intervalsMedium
t −2.01102.011

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

μ₀ = 50x̄ = 50.8s = 8n = 49
t =
10.Hypothesis tests & confidence intervalsHard
−1.961.96z = ?

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

x₁ = 90n₁ = 200x₂ = 38n₂ = 100
z =
11.Linear regression & correlationMedium
xy127221318415513xy24152025

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 = 94Σx² = 55Σy² = 1888Σxy = 248
r =
12.Linear regression & correlationHard
xy1454176720882310126113xy1520256080100120x = 24.5

The table gives 5 paired observations of x = temperature in °C and y = ice creams sold. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 24.5.

n = 5x = 24.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 10.12

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̄ = 220/5 = 44

Squared deviations

Σ(x − x̄)² = 0² + 1² + 3² + 12² + (−16)² = 410

Standard deviation

s = √(410/4) = 10.12

Answer

s = 10.12
2.Descriptive statistics

Answer: P = 0.9332

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 = −1.5

Standard normal table

Φ(−1.5) = 0.06681
P = 1 − 0.06681 = 0.9332

Answer

P = 0.9332
3.Probability

Answer: P = 0.3056

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)ⁿ⁻ᵏ.

Complement

P(no six) = (5/6)2 = 0.6944
P = 1 − 0.6944 = 0.3056

Answer

P = 0.3056
4.Probability

Answer: P = 0.2301

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 = 2) = 66·0.12·0.910 = 66·0.01·0.3487 = 0.2301

Answer

P = 0.2301
5.Normal distribution

Answer: P = 0.6309

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₁ = (76.75 − 100)/15 = −1.55
z₂ = (107.5 − 100)/15 = 0.5

Area between

P = Φ(0.5) − Φ(−1.55) = 0.6915 − 0.06057 = 0.6309

Answer

P = 0.6309
6.Normal distribution

Answer: x = 593.1 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.99 → z = 2.326

Back to x

x = 500 + 2.326·40 = 593.05 h

Answer

x = 593.05 h
7.Confidence intervals

Answer: upper limit = 44.83

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 = 7, t = 3.499

Margin of error

E = 3.499·3.5/√8 = 4.33

Interval

40.5 ± 4.33 → [36.17, 44.83]

Answer

upper limit = 44.83
8.Confidence intervals

Answer: σ = 1.836 µ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² = 20·2.4² = 115.2

Limits for σ²

115.2/34.17 = 3.371
115.2/9.591 = 12.01

Limit for σ

σ = √3.371 = 1.836 µm

Answer

σ = 1.836 µm

95% interval for σ: [1.836, 3.466] µm.

9.Hypothesis tests & confidence intervals

Answer: t = 0.7

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 = 8/√49 = 8/7 = 1.143

Test statistic

t = (50.8 − 50)/1.143 = 0.7

Answer

t = 0.7
t0.025; df = 48 = 2.011

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

10.Hypothesis tests & confidence intervals

Answer: z = 1.156

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̂₁ = 90/200 = 0.45
p̂₂ = 38/100 = 0.38
p̂ = 128/300 = 0.4267

Standard error under H₀

SE = √(0.4267·0.5733·(1/200 + 1/100)) = 0.06058

Test statistic

z = (0.45 − 0.38)/0.06058 = 1.156

Answer

z = 1.156

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

11.Linear regression & correlation

Answer: r = −0.9782

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 = 248 − 15·94/5 = −34
Sxx = 55 − 15²/5 = 10
Syy = 1888 − 94²/5 = 120.8

Correlation coefficient

r = −34/√(10·120.8) = −0.9782

Answer

r = −0.9782
12.Linear regression & correlation

Answer: ŷ = 107.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̄ = 100/5 = 20
ȳ = 423/5 = 84.6

Sums of squares and products

Sxx = Σ(x − x̄)² = 90
Sxy = Σ(x − x̄)(y − ȳ) = 456

Regression line

b = 456/90 = 5.067
a = 84.6 − 5.067·20 = −16.73
ŷ = −16.73 + 5.067·x

Prediction

ŷ = −16.73 + 5.067·24.5 = 107.4

Answer

ŷ = 107.4

ExamProblems · examproblems.com/courses/statistics-1