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
2830323436384042

Find the sample standard deviation s of the data: 33, 43, 30, 28, 40.

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

Exam scores are normally distributed with mean 60 and standard deviation 8. Find the z-score z of a score of 53.6.

μ = 60σ = 8x = 53.6
z =
3.ProbabilityMedium
red: 4blue: 9

A bag holds 4 red and 9 blue balls. You draw two balls without putting the first one back. What is the probability P that both are red?

4 / 9
P =
4.ProbabilityHard
n = 5, p = 0.1: P(X ≤ 1) = ?k012345

5 components are tested, and each one fails with probability 0.1, independently. What is the probability P that at most one fails?

n = 5p = 0.1
P =
5.Normal distributionMedium
2633.2P = ?

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

μ = 32σ = 6x1 = 26x2 = 33.2
P =
6.Normal distributionHard
557085100115130145pointstop 60%

The IQ scores are normally distributed with mean 100 points and standard deviation 15 points. Drag the cut-off so the shaded top 60% is to the right of it. Find the cut-off x.

μ = 100 pointsσ = 15 points60%
x = points
7.Confidence intervalsMedium
μ₁ − μ₂0LU = ?x̄₁ − x̄₂E99%

The battery life of two phone models is compared. Model 1: 100 phones, mean 86 h, known standard deviation 20 h. Model 2: 80 phones, mean 94 h, known standard deviation 4 h. Find the upper limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 100x̄₁ = 86 hσ₁ = 20 hn₂ = 80x̄₂ = 94 hσ₂ = 4 h99%
upper limit = h
8.Confidence intervalsHard
σ = 34, n = ?x̄ − Ex̄ + Ex̄E = 0.595%

The population standard deviation is 34. 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 0.5?

σ = 34E = 0.595%
n =
9.Hypothesis tests & confidence intervalsMedium
−2.0862.086t = ?df = 20

Two teaching methods are compared. Group 1: 15 students, mean score 110.5, standard deviation 8. Group 2: 7 students, mean score 121.8, standard deviation 5. 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₁ = 15x̄₁ = 110.5s₁ = 8n₂ = 7x̄₂ = 121.8s₂ = 5
t =
10.Hypothesis tests & confidence intervalsHard
z −2.57602.576

A sample of 25 measurements has mean 72.4. The population standard deviation is 10. Find the lower limit L of the 99% confidence interval for the mean.

x̄ = 72.4σ = 10n = 2599%
L =
11.Linear regression & correlationMedium
xy1769208423103261122912432135xy202530100

The table gives 6 paired observations of x = temperature in °C and y = ice creams sold. Find the coefficient of determination r² of the least-squares line.

n = 6
r² =
12.Linear regression & correlationHard
xy144249345453556655xy246455055x = 3.5

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. Predict ŷ for x = 3.5.

n = 6x = 3.5
ŷ =

3Solutions

1.Descriptive statistics

Answer: s = 6.458

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̄ = 174/5 = 34.8

Squared deviations

Σ(x − x̄)² = (−1.8)² + 8.2² + (−4.8)² + (−6.8)² + 5.2² = 166.8

Standard deviation

s = √(166.8/4) = 6.458

Answer

s = 6.458
2.Descriptive statistics

Answer: z = −0.8

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 = (53.6 − 60)/8 = −0.8

Answer

z = −0.8
3.Probability

Answer: P = 0.07692

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

First and second draw

P = 4/13 · 3/12 = 12/156 = 0.07692

Answer

P = 0.07692
4.Probability

Answer: P = 0.9185

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

Zero and one failure

P(X = 0) = 0.95 = 0.5905
P(X = 1) = 5·0.1·0.94 = 0.3281

Add them

P = 0.5905 + 0.3281 = 0.9185

Answer

P = 0.9185
5.Normal distribution

Answer: P = 0.4206

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₁ = (26 − 32)/6 = −1
z₂ = (33.2 − 32)/6 = 0.2

Area between

P = Φ(0.2) − Φ(−1) = 0.5793 − 0.1587 = 0.4206

Answer

P = 0.4206
6.Normal distribution

Answer: x = 96.3 points

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

Φ(z) = 0.4

z from the table

z ≈ −0.25

Back to the original units

x = 100 − 0.25·15 = 96.3 points

Answer

x = 96.3 points
7.Confidence intervals

Answer: upper limit = −2.721 h

Interval for a difference: estimate ± critical value × standard error. For two independent means with known σ: SE = √(σ₁²/n₁ + σ₂²/n₂) and z. With equal unknown variances: pooled s_p and t with n₁ + n₂ − 2 degrees of freedom. For paired data, work with the differences: d̄ ± t·s_d/√n.

Point estimate

x̄₁ − x̄₂ = 86 − 94 = −8

Standard error

SE = √(20²/100 + 4²/80) = 2.049

Margin of error

E = 2.576·2.049 = 5.279

Interval

−8 ± 5.279 → [−13.28, −2.721]

Answer

upper limit = −2.721 h

The interval does not contain 0, so the means differ significantly.

8.Confidence intervals

Answer: n = 17764

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·34/0.5)² = 17764

Round up

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

n = 17764

Answer

n = 17764
9.Hypothesis tests & confidence intervals

Answer: t = −3.414

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² = (14·8² + 6·5²)/20 = 52.3
sp = 7.232

Standard error

SE = 7.232·√(1/15 + 1/7) = 3.31

Test statistic

t = (110.5 − 121.8)/3.31 = −3.414

Answer

t = −3.414

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

10.Hypothesis tests & confidence intervals

Answer: L = 67.25

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·10/√25 = 5.152

Interval limit

L = 72.4 − 5.152 = 67.25

Answer

L = 67.25
11.Linear regression & correlation

Answer: r² = 0.987

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̄ = 147/6 = 24.5
ȳ = 627/6 = 104.5

Sums of squares and products

Sxx = Σ(x − x̄)² = 157.5
Sxy = Σ(x − x̄)(y − ȳ) = 688.5
Syy = Σ(y − ȳ)² = 3050

Coefficient of determination

r² = 688.5²/(157.5·3050) = 0.987

Answer

r² = 0.987

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

12.Linear regression & correlation

Answer: ŷ = 50.33

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
ȳ = 302/6 = 50.33

Sums of squares and products

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

Regression line

b = 42/17.5 = 2.4
a = 50.33 − 2.4·3.5 = 41.93
ŷ = 41.93 + 2.4·x

Prediction

ŷ = 41.93 + 2.4·3.5 = 50.33

Answer

ŷ = 50.33

ExamProblems · examproblems.com/courses/statistics-1