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
25303540455055

Find the sample standard deviation s of the data: 42, 55, 48, 24, 26.

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

Exam scores are normally distributed with mean 70 and standard deviation 5. Find the z-score z of a score of 67.5.

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

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

n = 6
P =
4.ProbabilityHard
€p(x)−50.89100.1450.01

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

stake = €5€15: p = 0.1€50: p = 0.01
E(G) = €
5.Normal distributionMedium
108 kg110.4 kgT = X₁ + … + X₉?

The masses of boxes are independent and normal with mean 12 kg and standard deviation 0.8 kg. Find the probability P that the total mass of 9 of them exceeds 110.4 kg. Round z to two decimals.

μ = 12 kgσ = 0.8 kgn = 9> 110.4 kg
P =
6.Normal distributionHard
μ = 178x = ?10%

The heights of adult men are normally distributed with mean 178 cm and standard deviation 7 cm. Find the value x below which 10% of them lie (the 10th percentile).

μ = 178σ = 7P = 10%
x = cm
7.Confidence intervalsMedium
μ₁ − μ₂0L = ?Ux̄₁ − x̄₂E99%

The battery life of two phone models is compared. Model 1: 100 phones, mean 146 h, known standard deviation 11 h. Model 2: 60 phones, mean 132.5 h, known standard deviation 19 h. Find the lower limit of the 99% confidence interval for μ₁ − μ₂.

n₁ = 100x̄₁ = 146 hσ₁ = 11 hn₂ = 60x̄₂ = 132.5 hσ₂ = 19 h99%
lower limit = h
8.Confidence intervalsHard
n = 10σ = ?Us = 8.395%

The diameters of 10 machined shafts have a sample standard deviation of 8.3 µm. Assuming the diameters are normally distributed, find the lower limit σ of the 95% confidence interval for the population standard deviation. With df = 9, 2.5% of the χ² distribution lies below 2.7 and 2.5% lies above 19.023.

n = 10s = 8.3 µmχ² = 2.7, 19.023
σ = µm
9.Hypothesis tests & confidence intervalsMedium
−0.880.88p = ?

The mean of a population is claimed to be 50; the population standard deviation is known to be 20. A random sample of 100 observations has a mean of 48.24. Test H₀: μ = 50 against H₁: μ ≠ 50. Find the p-value p.

μ₀ = 50σ = 20n = 100x̄ = 48.24H₁: μ ≠ μ₀
p =
10.Hypothesis tests & confidence intervalsHard
μ₀x̄c

A one-sided z test of H₀: μ = 50 against H₁: μ > 50 is done at α = 0.05 with a sample of 25; the standard deviation is known to be 7.5. In reality the mean is 51.8. Find the power 1 − β of the test in percent.

μ₀ = 50μ = 51.8σ = 7.5n = 25α = 0.05
1 − β = %
11.Linear regression & correlationMedium
xy2941262282610351240xy51010203040

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

n = 6
r =
12.Linear regression & correlationHard
xy243348449558656761xy2465060ŷ = 60

The table gives 6 paired observations of x = hours studied and y = exam score. Use the least-squares line ŷ = a + b·x. For which value x does the line predict ŷ = 60?

n = 6ŷ = 60
x =

3Solutions

1.Descriptive statistics

Answer: s = 13.6

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

Squared deviations

Σ(x − x̄)² = 3² + 16² + 9² + (−15)² + (−13)² = 740

Standard deviation

s = √(740/4) = 13.6

Answer

s = 13.6
2.Descriptive statistics

Answer: z = −0.5

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 = (67.5 − 70)/5 = −0.5

Answer

z = −0.5
3.Probability

Answer: P = 0.6651

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)6 = 0.3349
P = 1 − 0.3349 = 0.6651

Answer

P = 0.6651
4.Probability

Answer: E(G) = −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: 10 (p = 0.1), 45 (p = 0.01), −5 (p = 0.89)

Expected value

E(G) = 10·0.1 + 45·0.01 − 5·0.89 = −3 €

Answer

E(G) = −3 €

A negative value means you lose money on average.

5.Normal distribution

Answer: P = 0.1587

Sums and differences of normal variables: if X and Y are independent and normal, X + Y and X − Y are normal too. Means add or subtract: E(X ± Y) = μX ± μY. Variances always add, also for a difference: Var(X ± Y) = σX² + σY², so σ = √(σX² + σY²). Standard deviations never add directly. The total of n independent items with the same distribution has mean n·μ and standard deviation σ·√n. Then standardise as usual: z = (x − mean)/σ and read Φ(z).

Distribution of the total

μT = 108 kg, σT = 0.8·√9 = 2.4 kg

Standardise

z = (110.4 − 108)/2.4 = 1

Probability

P = 1 − Φ(1) = 0.1587

Answer

P = 0.1587
6.Normal distribution

Answer: x = 169 cm

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.1 → z = −1.282

Back to x

x = 178 + −1.282·7 = 169.03 cm

Answer

x = 169.03 cm
7.Confidence intervals

Answer: lower limit = 6.575 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̄₂ = 146 − 132.5 = 13.5

Standard error

SE = √(11²/100 + 19²/60) = 2.688

Margin of error

E = 2.576·2.688 = 6.925

Interval

13.5 ± 6.925 → [6.575, 20.42]

Answer

lower limit = 6.575 h

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

8.Confidence intervals

Answer: σ = 5.709 µm

Interval for a variance: (n − 1)s²/σ² has a χ² distribution with n − 1 degrees of freedom. The 95% interval for σ² runs from (n − 1)s² divided by the upper χ² value (2.5% above it) to (n − 1)s² divided by the lower χ² value (2.5% below it); the interval for σ is the square root of both limits. It is not symmetric around s.

Sum of squares

(n − 1)s² = 9·8.3² = 620

Limits for σ²

620/19.023 = 32.59
620/2.7 = 229.6

Limit for σ

σ = √32.59 = 5.709 µm

Answer

σ = 5.709 µm

95% interval for σ: [5.709, 15.15] µm.

9.Hypothesis tests & confidence intervals

Answer: p = 0.3789

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 = 20/√100 = 2
z = (48.24 − 50)/2 = −0.88

Tail area

Φ(0.88) = 0.8106
1 − Φ(0.88) = 0.1894

p-value

p = 2·0.1894 = 0.3789

Answer

p = 0.3789

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

10.Hypothesis tests & confidence intervals

Answer: 1 − β = 32.82 %

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 = 7.5/√25 = 1.5
x̄c = 50 + 1.645·1.5 = 52.47

z under the true mean

z = (52.47 − 51.8)/1.5 = 0.445

Power

power = P(Z > 0.445) = 32.82%
1 − β = 32.82%

Answer

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

Answer: r = 0.9924

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
ȳ = 144/6 = 24

Sums of squares and products

Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 228
Syy = Σ(y − ȳ)² = 754

Correlation coefficient

r = 228/√(70·754) = 0.9924

Answer

r = 0.9924
12.Linear regression & correlation

Answer: x = 6.634

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
ȳ = 315/6 = 52.5

Sums of squares and products

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

Regression line

b = 61.5/17.5 = 3.514
a = 52.5 − 3.514·4.5 = 36.69
ŷ = 36.69 + 3.514·x

Solve for x

x = (60 − 36.69)/3.514 = 6.634

Answer

x = 6.634

ExamProblems · examproblems.com/courses/statistics-1