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
3540455055

Find the sample standard deviation s of the data: 31, 36, 33, 46, 39, 57, 31.

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

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

μ = 60σ = 12x = 45.6
P =
3.ProbabilityMedium
n = 13k = 5N = ?

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

n = 13k = 5
N =
4.ProbabilityHard
€p(x)−20.7320.25380.02

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

stake = €2€4: p = 0.25€40: p = 0.02
E(G) = €
5.Normal distributionMedium
−3−2−10123zshaded area to the right of z = 0.0526

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

A = 0.0526
z =
6.Normal distributionHard
μ = 250x = ?75%

The bag weights are normally distributed with mean 250 g and standard deviation 5 g. Find the value x below which 75% of them lie (the 75th percentile).

μ = 250σ = 5P = 75%
x = g
7.Confidence intervalsMedium
x̄E₁ = 10.895%, n = 64x̄E₂ = ?95%, n = 256

A 95% confidence interval for a mean, based on 64 observations and a known σ, has a margin of error of 10.8. What is the margin of error E₂ if the same study uses 256 observations instead?

95%n₁ = 64E₁ = 10.8n₂ = 256
E₂ =
8.Confidence intervalsHard
p = 0.5, n = ?p̂ − Ep̂ + Ep̂E = 0.0299%

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

p = 0.5E = 0.0299%
n =
9.Hypothesis tests & confidence intervalsMedium
−2.0642.064t = ?df = 24

Two teaching methods are compared. Group 1: 8 students, mean score 115.5, standard deviation 11. Group 2: 18 students, mean score 121.5, standard deviation 3. Assume equal population variances and use the pooled two-sample t test. Find the test statistic t for H₀: μ₁ = μ₂, taking the difference as x̄₁ − x̄₂ (group 1 minus group 2).

n₁ = 8x̄₁ = 115.5s₁ = 11n₂ = 18x̄₂ = 121.5s₂ = 3
t =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

A one-sided z test of H₀: μ = 200 against H₁: μ < 200 is done at α = 0.01 with a sample of 36; the standard deviation is known to be 9. In reality the mean is 197.3. Find the power 1 − β of the test in percent.

μ₀ = 200μ = 197.3σ = 9n = 36α = 0.01
1 − β = %
11.Linear regression & correlationMedium
xy2364376488601069xy5104060

The table gives 5 paired observations of x = advertising spend in k€ and y = sales in k€. Find Pearson's correlation coefficient r.

n = 5
r =
12.Linear regression & correlationHard
xy130226322421518617xy246202530x = 2.5

The table gives 6 paired observations of x = car age in years and y = price in k€. Use the least-squares line ŷ = a + b·x. A new observation (2.5, 29) is made. Find its residual e = y − ŷ.

n = 6(2.5, 29)
e =

3Solutions

1.Descriptive statistics

Answer: s = 9.539

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̄ = 273/7 = 39

Squared deviations

Σ(x − x̄)² = (−8)² + (−3)² + (−6)² + 7² + 0² + 18² + (−8)² = 546

Standard deviation

s = √(546/6) = 9.539

Answer

s = 9.539
2.Descriptive statistics

Answer: P = 0.1151

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

Standard normal table

Φ(−1.2) = 0.1151
P = 0.1151

Answer

P = 0.1151
3.Probability

Answer: N = 1287

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

Answer

N = 1287
4.Probability

Answer: E(G) = −0.2 €

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: 2 (p = 0.25), 38 (p = 0.02), −2 (p = 0.73)

Expected value

E(G) = 2·0.25 + 38·0.02 − 2·0.73 = −0.2 €

Answer

E(G) = −0.2 €

A negative value means you lose money on average.

5.Normal distribution

Answer: z = 1.62

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.0526 = 0.9474

Read the z-table backwards

Find 0.9474 inside the table and read off z.

z = 1.62

Answer

z = 1.62
6.Normal distribution

Answer: x = 253.4 g

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.75 → z = 0.6745

Back to x

x = 250 + 0.6745·5 = 253.37 g

Answer

x = 253.37 g
7.Confidence intervals

Answer: E₂ = 5.4

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.96/1.96)·√(64/256) = 0.5

New margin

E₂ = 10.8·0.5 = 5.4

Answer

E₂ = 5.4
8.Confidence intervals

Answer: n = 4148

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 = 2.576²·0.5·0.5/0.02² = 4147

Round up

n = 4148

Answer

n = 4148
9.Hypothesis tests & confidence intervals

Answer: t = −2.188

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

Pooled variance

sp² = (7·11² + 17·3²)/24 = 41.67
sp = 6.455

Standard error

SE = 6.455·√(1/8 + 1/18) = 2.743

Test statistic

t = (115.5 − 121.5)/2.743 = −2.188

Answer

t = −2.188

With df = 24, the two-sided 5% critical value is 2.064; |t| is larger, so H₀ is rejected.

10.Hypothesis tests & confidence intervals

Answer: 1 − β = 29.94 %

Power of a test: power = 1 − β is the probability of rejecting H₀ when it is false. Find the cutoff x̄c from μ₀ and z_α, then compute the probability of landing beyond x̄c using the true mean: z = (x̄c − μ)/(σ/√n).

Critical sample mean

SE = 9/√36 = 1.5
x̄c = 200 − 2.326·1.5 = 196.5

z under the true mean

z = (196.5 − 197.3)/1.5 = −0.526

Power

power = P(Z < −0.526) = 29.94%
1 − β = 29.94%

Answer

1 − β = 29.94%
11.Linear regression & correlation

Answer: r = 0.9769

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
ȳ = 250/5 = 50

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 178
Syy = Σ(y − ȳ)² = 830

Correlation coefficient

r = 178/√(40·830) = 0.9769

Answer

r = 0.9769
12.Linear regression & correlation

Answer: e = 4.095

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̄ = 21/6 = 3.5
ȳ = 134/6 = 22.33

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = −45

Regression line

b = −45/17.5 = −2.571
a = 22.33 − (−2.571)·3.5 = 31.33
ŷ = 31.33 − 2.571·x

Predicted value

ŷ = 31.33 + (−2.571)·2.5 = 24.9

Residual

e = 29 − 24.9 = 4.095

Answer

e = 4.095

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1