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
1520253035404550

Find the sample standard deviation s of the data: 26, 47, 53, 11, 46.

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

Exam scores are normally distributed with mean 500 and standard deviation 100. Find the z-score z of a score of 300.

μ = 500σ = 100x = 300
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
n = 12, p = 0.1: P(X ≤ 1) = ?k0123456789101112

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

n = 12p = 0.1
P =
5.Normal distributionMedium
850 kg869 kgT = X₁ + … + X₁₀?

The masses of passengers with luggage are independent and normal with mean 85 kg and standard deviation 12 kg. Find the probability P that the total mass of 10 of them exceeds 869 kg. Round z to two decimals.

μ = 85 kgσ = 12 kgn = 10> 869 kg
P =
6.Normal distributionHard
μ = 65x = ?90%

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

μ = 65σ = 10P = 90%
x = points
7.Confidence intervalsMedium
n = 8, sd​ = 6.20L = ?Ud̄ = 8.8E95%

The blood pressure of 8 patients is measured before and after a treatment. The differences d = before − after (mmHg) have mean 8.8 and standard deviation 6.2. Find the lower limit of the 95% confidence interval for the mean difference.

n = 8d̄ = 8.8sd = 6.295%t(7) = 2.365
lower limit = mmHg
8.Confidence intervalsHard
p = 0.5, n = ?p̂ − Ep̂ + Ep̂E = 0.0495%

Nothing is known in advance about the proportion of defective products. 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.04?

p = 0.5E = 0.0495%
n =
9.Hypothesis tests & confidence intervalsMedium
2.38p = ?

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

μ₀ = 250σ = 10n = 100x̄ = 252.38H₁: μ > μ₀
p =
10.Hypothesis tests & confidence intervalsHard
z −1.64501.645

A sample of 16 measurements has mean 52.3. The population standard deviation is 10. Find the upper limit U of the 90% confidence interval for the mean.

x̄ = 52.3σ = 10n = 1690%
U =
11.Linear regression & correlationMedium
xy254146208271029xy510102030

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

n = 5
r² =
12.Linear regression & correlationHard
xy251359457565667xy24650556065ŷ = 62

The table gives 5 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 ŷ = 62?

n = 5ŷ = 62
x =

3Solutions

1.Descriptive statistics

Answer: s = 17.56

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̄ = 183/5 = 36.6

Squared deviations

Σ(x − x̄)² = (−10.6)² + 10.4² + 16.4² + (−25.6)² + 9.4² = 1233

Standard deviation

s = √(1233/4) = 17.56

Answer

s = 17.56
2.Descriptive statistics

Answer: z = −2

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 = (300 − 500)/100 = −2

Answer

z = −2
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: P = 0.659

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.912 = 0.2824
P(X = 1) = 12·0.1·0.911 = 0.3766

Add them

P = 0.2824 + 0.3766 = 0.659

Answer

P = 0.659
5.Normal distribution

Answer: P = 0.3085

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 = 850 kg, σT = 12·√10 = 37.95 kg

Standardise

z = (869 − 850)/37.95 = 0.5

Probability

P = 1 − Φ(0.5) = 0.3085

Answer

P = 0.3085
6.Normal distribution

Answer: x = 77.82 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.9 → z = 1.282

Back to x

x = 65 + 1.282·10 = 77.82 points

Answer

x = 77.82 points
7.Confidence intervals

Answer: lower limit = 3.616 mmHg

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.

Critical value

df = 7, t = 2.365

Margin of error

E = 2.365·6.2/√8 = 5.184

Interval

8.8 ± 5.184 → [3.616, 13.98]

Answer

lower limit = 3.616 mmHg
8.Confidence intervals

Answer: n = 601

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.5·0.5/0.04² = 600.2

Round up

n = 601

Answer

n = 601
9.Hypothesis tests & confidence intervals

Answer: p = 0.008656

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 = 10/√100 = 1
z = (252.38 − 250)/1 = 2.38

Tail area

Φ(2.38) = 0.9913
1 − Φ(2.38) = 0.0087

p-value

p = 0.008656

Answer

p = 0.008656

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

10.Hypothesis tests & confidence intervals

Answer: U = 56.41

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 = 1.645·10/√16 = 4.112

Interval limit

U = 52.3 + 4.112 = 56.41

Answer

U = 56.41
11.Linear regression & correlation

Answer: r² = 0.964

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
ȳ = 95/5 = 19

Sums of squares and products

Sxx = Σ(x − x̄)² = 40
Sxy = Σ(x − x̄)(y − ȳ) = 122
Syy = Σ(y − ȳ)² = 386

Coefficient of determination

r² = 122²/(40·386) = 0.964

Answer

r² = 0.964

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

12.Linear regression & correlation

Answer: x = 4.579

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̄ = 20/5 = 4
ȳ = 299/5 = 59.8

Sums of squares and products

Sxx = Σ(x − x̄)² = 10
Sxy = Σ(x − x̄)(y − ȳ) = 38

Regression line

b = 38/10 = 3.8
a = 59.8 − 3.8·4 = 44.6
ŷ = 44.6 + 3.8·x

Solve for x

x = (62 − 44.6)/3.8 = 4.579

Answer

x = 4.579

ExamProblems · examproblems.com/courses/statistics-1