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
2628303234363840424446

Find the sample standard deviation s of the data: 46, 46, 26, 41, 43, 34.

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

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

μ = 60σ = 15x = 69
P =
3.ProbabilityMedium
xp(x)00.3510.1520.330.2μ = 1.35

For the distribution shown, find the standard deviation σ of X.

x: 0, 1, 2, 3p(x): 0.35, 0.15, 0.3, 0.2
σ =
4.ProbabilityHard
xp(x)00.3510.320.35μ

X has the distribution shown, and Y = 0.5X + 20. Find the standard deviation σY of Y.

x: 0, 1, 2p(x): 0.35, 0.3, 0.35Y = 0.5X + 20
σY =
5.Normal distributionMedium
178.35186.75P = ?

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

μ = 178σ = 7x1 = 178.35x2 = 186.75
P =
6.Normal distributionHard
157164171178185192199cmtop 15%

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. Drag the cut-off so the shaded top 15% is to the right of it. Find the cut-off x.

μ = 178 cmσ = 7 cm15%
x = cm
7.Confidence intervalsMedium
x̄E₁ = 7.390%, n = 100x̄E₂ = ?95%, n = 100

A 90% confidence interval for a mean, based on 100 observations and a known σ, has a margin of error of 7.3. What is the margin of error E₂ of a 95% interval from the same data?

90%n₁ = 100E₁ = 7.395%
E₂ =
8.Confidence intervalsHard
p ≈ 0.1, n = ?p̂ − Ep̂ + Ep̂E = 0.0595%

A pilot study suggests that about 0.1 of products are defective. How many products n must be inspected so that a 95% confidence interval for the proportion has a margin of error of at most 0.05?

p ≈ 0.1E = 0.0595%
n =
9.Hypothesis tests & confidence intervalsMedium
t −1.99801.998

A sample of 64 students has a mean score of 121 and a sample standard deviation of 12. Find the test statistic t for H₀: μ = 120.

μ₀ = 120x̄ = 121s = 12n = 64
t =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

A one-sided z test of H₀: μ = 100 against H₁: μ > 100 is done at α = 0.10 with a sample of 64; the standard deviation is known to be 24. In reality the mean is 106.3. Find the probability of a Type II error β in percent.

μ₀ = 100μ = 106.3σ = 24n = 64α = 0.10
β = %
11.Linear regression & correlationMedium
xy2841862383010401246xy5102040

The table gives 6 paired observations of x = load in kN and y = extension in mm. Find the coefficient of determination r² of the least-squares line.

n = 6
r² =
12.Linear regression & correlationHard
xy264186238321038xy51010203040ŷ = 35

The table gives 5 paired observations of x = load in kN and y = extension in mm. Use the least-squares line ŷ = a + b·x. For which value x does the line predict ŷ = 35?

n = 5ŷ = 35
x =

3Solutions

1.Descriptive statistics

Answer: s = 7.891

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̄ = 236/6 = 39.33

Squared deviations

Σ(x − x̄)² = 6.667² + 6.667² + (−13.33)² + 1.667² + 3.667² + (−5.333)² = 311.3

Standard deviation

s = √(311.3/5) = 7.891

Answer

s = 7.891
2.Descriptive statistics

Answer: P = 0.2743

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

Standard normal table

Φ(0.6) = 0.7257
P = 1 − 0.7257 = 0.2743

Answer

P = 0.2743
3.Probability

Answer: σ = 1.152

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.

Mean

μ = 0·0.35 + 1·0.15 + 2·0.3 + 3·0.2 = 1.35

Mean of the squares

E(X²) = 0·0.35 + 1·0.15 + 4·0.3 + 9·0.2 = 3.15

Variance

Var(X) = 3.15 − 1.35² = 1.327
σ = √1.327 = 1.152

Answer

σ = 1.152
4.Probability

Answer: σY = 0.4183

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.

Spread of X

μ = 1, Var(X) = 0.7, σX = 0.8367

Linear change

σY = |0.5|·0.8367 = 0.4183

Answer

σY = 0.4183

The mean does move: E(Y) = 0.5·1 + 20 = 20.5.

5.Normal distribution

Answer: P = 0.3744

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₁ = (178.35 − 178)/7 = 0.05
z₂ = (186.75 − 178)/7 = 1.25

Area between

P = Φ(1.25) − Φ(0.05) = 0.8944 − 0.5199 = 0.3744

Answer

P = 0.3744
6.Normal distribution

Answer: x = 185.3 cm

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

z from the table

z ≈ 1.04

Back to the original units

x = 178 + 1.04·7 = 185.3 cm

Answer

x = 185.3 cm
7.Confidence intervals

Answer: E₂ = 8.698

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.645)·√(100/100) = 1.191

New margin

E₂ = 7.3·1.191 = 8.698

Answer

E₂ = 8.698
8.Confidence intervals

Answer: n = 139

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 = 1.96²·0.1·0.9/0.05² = 138.3

Round up

n = 139

Answer

n = 139
9.Hypothesis tests & confidence intervals

Answer: t = 0.6667

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 = 12/√64 = 12/8 = 1.5

Test statistic

t = (121 − 120)/1.5 = 0.6667

Answer

t = 0.6667
t0.025; df = 63 = 1.998

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

10.Hypothesis tests & confidence intervals

Answer: β = 20.67 %

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 = 24/√64 = 3
x̄c = 100 + 1.282·3 = 103.8

z under the true mean

z = (103.8 − 106.3)/3 = −0.818

Type II error

power = P(Z > −0.818) = 79.33%
β = 100% − 79.33% = 20.67%

Answer

β = 20.67%
11.Linear regression & correlation

Answer: r² = 0.9926

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̄ = 42/6 = 7
ȳ = 165/6 = 27.5

Sums of squares and products

Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 263
Syy = Σ(y − ȳ)² = 995.5

Coefficient of determination

r² = 263²/(70·995.5) = 0.9926

Answer

r² = 0.9926

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

12.Linear regression & correlation

Answer: x = 8.974

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
ȳ = 117/5 = 23.4

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 156

Regression line

b = 156/40 = 3.9
a = 23.4 − 3.9·6 = 0
ŷ = 0 + 3.9·x

Solve for x

x = (35 − 0)/3.9 = 8.974

Answer

x = 8.974

ExamProblems · examproblems.com/courses/statistics-1