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
20253035404550

Find the sample standard deviation s of the data: 32, 25, 27, 27, 52, 17, 54.

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

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

μ = 170σ = 5x = 160
P =
3.ProbabilityMedium
P(at least one six) = ??1?2?3?4?5P(six) = 1/6 on each roll

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

n = 5
P =
4.ProbabilityHard
€p(x)−10.7530.2490.05

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

stake = €1€4: p = 0.2€50: p = 0.05
E(G) = €
5.Normal distributionMedium
−3−2−10123zshaded area to the right of z = 0.0778

Drag z so that the shaded area under the standard normal curve, to the right of z, is 0.0778. Find z to two decimals.

A = 0.0778
z =
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
x̄E₁ = 11.990%, n = 25x̄E₂ = ?90%, n = 225

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

90%n₁ = 25E₁ = 11.9n₂ = 225
E₂ =
8.Confidence intervalsHard
σ = 9, n = ?x̄ − Ex̄ + Ex̄E = 0.590%

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

σ = 9E = 0.590%
n =
9.Hypothesis tests & confidence intervalsMedium
−1.18p = ?

The mean of a population is claimed to be 80; the population standard deviation is known to be 15. A random sample of 36 observations has a mean of 77.05. Test H₀: μ = 80 against H₁: μ < 80. Find the p-value p.

μ₀ = 80σ = 15n = 36x̄ = 77.05H₁: μ < μ₀
p =
10.Hypothesis tests & confidence intervalsHard
z −2.57602.576

A sample of 16 measurements has mean 49.8. The population standard deviation is 4. Find the upper limit U of the 99% confidence interval for the mean.

x̄ = 49.8σ = 4n = 1699%
U =
11.Linear regression & correlationMedium
xy2124196258341040xy51010203040

The table gives 5 paired observations of x = load in kN and y = extension in mm. Find Pearson's correlation coefficient r.

n = 5
r =
12.Linear regression & correlationHard
xy12122031541259xy24101520x = 1.5

The table gives 5 paired observations of x = car age in years and y = price in k€. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 1.5.

n = 5x = 1.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 14.11

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̄ = 234/7 = 33.43

Squared deviations

Σ(x − x̄)² = (−1.429)² + (−8.429)² + (−6.429)² + (−6.429)² + 18.57² + (−16.43)² + 20.57² = 1194

Standard deviation

s = √(1194/6) = 14.11

Answer

s = 14.11
2.Descriptive statistics

Answer: P = 0.02275

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.02275
P = 0.02275

Answer

P = 0.02275
3.Probability

Answer: P = 0.5981

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)5 = 0.4019
P = 1 − 0.4019 = 0.5981

Answer

P = 0.5981
4.Probability

Answer: E(G) = 2.3 €

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: 3 (p = 0.2), 49 (p = 0.05), −1 (p = 0.75)

Expected value

E(G) = 3·0.2 + 49·0.05 − 1·0.75 = 2.3 €

Answer

E(G) = 2.3 €

A positive value means you win money on average.

5.Normal distribution

Answer: z = 1.42

From an area back to z: Φ(z) is the area to the left of z. For a left-tail area A, find z with Φ(z) = A in the table. A right-tail area A means Φ(z) = 1 − A. A central area A between −z and z leaves (1 − A)/2 in each tail, so Φ(z) = (1 + A)/2. For a value x, use x = μ + zσ.

Area to the left of z

Φ(z) = 1 − 0.0778 = 0.9222

Read the z-table backwards

Find 0.9222 inside the table and read off z.

z = 1.42

Answer

z = 1.42
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: E₂ = 3.967

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)·√(25/225) = 0.3333

New margin

E₂ = 11.9·0.3333 = 3.967

Answer

E₂ = 3.967
8.Confidence intervals

Answer: n = 877

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.645·9/0.5)² = 876.8

Round up

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

n = 877

Answer

n = 877
9.Hypothesis tests & confidence intervals

Answer: p = 0.119

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 = 15/√36 = 2.5
z = (77.05 − 80)/2.5 = −1.18

Tail area

Φ(1.18) = 0.8810
1 − Φ(1.18) = 0.1190

p-value

p = 0.119

Answer

p = 0.119

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

10.Hypothesis tests & confidence intervals

Answer: U = 52.38

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

Margin of error

E = 2.576·4/√16 = 2.576

Interval limit

U = 49.8 + 2.576 = 52.38

Answer

U = 52.38
11.Linear regression & correlation

Answer: r = 0.9981

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̄ = 30/5 = 6
ȳ = 130/5 = 26

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 142
Syy = Σ(y − ȳ)² = 506

Correlation coefficient

r = 142/√(40·506) = 0.9981

Answer

r = 0.9981
12.Linear regression & correlation

Answer: ŷ = 20.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̄ = 15/5 = 3
ȳ = 77/5 = 15.4

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = −32

Regression line

b = −32/10 = −3.2
a = 15.4 − (−3.2)·3 = 25
ŷ = 25 − 3.2·x

Prediction

ŷ = 25 + (−3.2)·1.5 = 20.2

Answer

ŷ = 20.2

ExamProblems · examproblems.com/courses/statistics-1