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
152025303540455055

Find the sample standard deviation s of the data: 23, 57, 33, 14, 37, 51.

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

A quantity is normally distributed with mean 100 and standard deviation 10. What proportion P of values is below 95?

μ = 100σ = 10x = 95
P =
3.ProbabilityMedium
n = 9k = 5N = ?

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

n = 9k = 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
175.9181.85P = ?

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. What fraction lies between 175.9 and 181.85 cm? Give P as a decimal.

μ = 178σ = 7x1 = 175.9x2 = 181.85
P =
6.Normal distributionHard
μ = 65x = ?75%

The exam scores are normally distributed with mean 65 points and standard deviation 10 points. Find the value x below which 75% of them lie (the 75th percentile).

μ = 65σ = 10P = 75%
x = points
7.Confidence intervalsMedium
x̄E₁ = 4.190%, n = 36x̄E₂ = ?90%, n = 9

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

90%n₁ = 36E₁ = 4.1n₂ = 9
E₂ =
8.Confidence intervalsHard
σ = 13, n = ?x̄ − Ex̄ + Ex̄E = 395%

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

σ = 13E = 395%
n =
9.Hypothesis tests & confidence intervalsMedium
t −2.13102.131

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

μ₀ = 50x̄ = 53.63s = 5n = 16
t =
10.Hypothesis tests & confidence intervalsHard
−1.961.96z = ?

In a trial, 163 of 250 patients on treatment A recover, and 42 of 80 patients on treatment B. Using the pooled proportion, find the test statistic z for H₀: p₁ = p₂.

x₁ = 163n₁ = 250x₂ = 42n₂ = 80
z =
11.Linear regression & correlationMedium
xy130227325421523619xy246202530

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

n = 6
r =
12.Linear regression & correlationHard
xy255352459563676779xy24650607080x = 3.5

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. A new observation (3.5, 63) is made. Find its residual e = y − ŷ.

n = 6(3.5, 63)
e =

3Solutions

1.Descriptive statistics

Answer: s = 16.3

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̄ = 215/6 = 35.83

Squared deviations

Σ(x − x̄)² = (−12.83)² + 21.17² + (−2.833)² + (−21.83)² + 1.167² + 15.17² = 1329

Standard deviation

s = √(1329/5) = 16.3

Answer

s = 16.3
2.Descriptive statistics

Answer: P = 0.3085

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

Standard normal table

Φ(−0.5) = 0.3085
P = 0.3085

Answer

P = 0.3085
3.Probability

Answer: N = 126

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(9, 5) = (9·8·7·6·5)/(5·4·3·2·1) = 126

Answer

N = 126
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: P = 0.3268

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₁ = (175.9 − 178)/7 = −0.3
z₂ = (181.85 − 178)/7 = 0.55

Area between

P = Φ(0.55) − Φ(−0.3) = 0.7088 − 0.3821 = 0.3268

Answer

P = 0.3268
6.Normal distribution

Answer: x = 71.75 points

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 = 65 + 0.6745·10 = 71.75 points

Answer

x = 71.75 points
7.Confidence intervals

Answer: E₂ = 8.2

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)·√(36/9) = 2

New margin

E₂ = 4.1·2 = 8.2

Answer

E₂ = 8.2
8.Confidence intervals

Answer: n = 73

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.96·13/3)² = 72.14

Round up

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

n = 73

Answer

n = 73
9.Hypothesis tests & confidence intervals

Answer: t = 2.904

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 = 5/√16 = 5/4 = 1.25

Test statistic

t = (53.63 − 50)/1.25 = 2.904

Answer

t = 2.904
t0.025; df = 15 = 2.131

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

10.Hypothesis tests & confidence intervals

Answer: z = 2.038

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̂₁ = 163/250 = 0.652
p̂₂ = 42/80 = 0.525
p̂ = 205/330 = 0.6212

Standard error under H₀

SE = √(0.6212·0.3788·(1/250 + 1/80)) = 0.06231

Test statistic

z = (0.652 − 0.525)/0.06231 = 2.038

Answer

z = 2.038

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

11.Linear regression & correlation

Answer: r = −0.9439

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
ȳ = 145/6 = 24.17

Sums of squares and products

Sxx = Σ(x − x̄)² = 17.5
Sxy = Σ(x − x̄)(y − ȳ) = −35.5
Syy = Σ(y − ȳ)² = 80.83

Correlation coefficient

r = −35.5/√(17.5·80.83) = −0.9439

Answer

r = −0.9439
12.Linear regression & correlation

Answer: e = 4.6

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̄ = 27/6 = 4.5
ȳ = 384/6 = 64

Sums of squares and products

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

Regression line

b = 98/17.5 = 5.6
a = 64 − 5.6·4.5 = 38.8
ŷ = 38.8 + 5.6·x

Predicted value

ŷ = 38.8 + 5.6·3.5 = 58.4

Residual

e = 63 − 58.4 = 4.6

Answer

e = 4.6

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1