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
1015202530354045505560

Find the sample standard deviation s of the data: 46, 37, 11, 10, 60, 22.

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

Exam scores are normally distributed with mean 50 and standard deviation 15. Find the z-score z of a score of 38.

μ = 50σ = 15x = 38
z =
3.ProbabilityMedium
n = 8k = 4N = ?

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

n = 8k = 4
N =
4.ProbabilityHard
n = 9, p = 0.5: P(X ≤ 1) = ?k0123456789

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

n = 9p = 0.5
P =
5.Normal distributionMedium
−3−2−10123zshaded area to the right of z = 0.8461

Drag z so that the shaded area under the standard normal curve, to the right of z, is 0.8461. Find z to two decimals.

A = 0.8461
z =
6.Normal distributionHard
μ = 100x = ?10%

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

μ = 100σ = 15P = 10%
x = points
7.Confidence intervalsMedium
n = 7, sd​ = 3.80LUd̄ = 7.8E = ?95%

The blood pressure of 7 patients is measured before and after a treatment. The differences d = before − after (mmHg) have mean 7.8 and standard deviation 3.8. Find the margin of error E of the 95% confidence interval for the mean difference.

n = 7d̄ = 7.8sd = 3.895%t(6) = 2.447
E = mmHg
8.Confidence intervalsHard
n = 11Lσ = ?s = 1.595%

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

n = 11s = 1.5 µmχ² = 3.247, 20.483
σ = µm
9.Hypothesis tests & confidence intervalsMedium
1.34p = ?

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

μ₀ = 500σ = 4n = 64x̄ = 500.67H₁: μ > μ₀
p =
10.Hypothesis tests & confidence intervalsHard
σ = 10, n = ?x̄ − Ex̄ + Ex̄E = 199%

How large must a sample be so that the 99% confidence interval for a mean has a margin of error of at most 1? The standard deviation is 10. Find the smallest sample size n.

σ = 10E = 199%
n =
11.Linear regression & correlationMedium
xy2441261782210251232xy510102030

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
xy139251354455568670xy24640506070x = 2.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 (2.5, 53) is made. Find its residual e = y − ŷ.

n = 6(2.5, 53)
e =

3Solutions

1.Descriptive statistics

Answer: s = 20.12

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̄ = 186/6 = 31

Squared deviations

Σ(x − x̄)² = 15² + 6² + (−20)² + (−21)² + 29² + (−9)² = 2024

Standard deviation

s = √(2024/5) = 20.12

Answer

s = 20.12
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 = (38 − 50)/15 = −0.8

Answer

z = −0.8
3.Probability

Answer: N = 70

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

Answer

N = 70
4.Probability

Answer: P = 0.01953

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.59 = 0.001953
P(X = 1) = 9·0.5·0.58 = 0.01758

Add them

P = 0.001953 + 0.01758 = 0.01953

Answer

P = 0.01953
5.Normal distribution

Answer: z = −1.02

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 of z

Φ(z) = 1 − 0.8461 = 0.1539

Read the z-table backwards

Find 0.1539 inside the table and read off z.

z = −1.02

Answer

z = −1.02
6.Normal distribution

Answer: x = 80.78 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.1 → z = −1.282

Back to x

x = 100 + −1.282·15 = 80.78 points

Answer

x = 80.78 points
7.Confidence intervals

Answer: E = 3.515 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 = 6, t = 2.447

Margin of error

E = 2.447·3.8/√7 = 3.515

Answer

E = 3.515 mmHg
8.Confidence intervals

Answer: σ = 2.632 µ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² = 10·1.5² = 22.5

Limits for σ²

22.5/20.483 = 1.098
22.5/3.247 = 6.929

Limit for σ

σ = √6.929 = 2.632 µm

Answer

σ = 2.632 µm

95% interval for σ: [1.048, 2.632] µm.

9.Hypothesis tests & confidence intervals

Answer: p = 0.09012

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 = 4/√64 = 0.5
z = (500.67 − 500)/0.5 = 1.34

Tail area

Φ(1.34) = 0.9099
1 − Φ(1.34) = 0.0901

p-value

p = 0.09012

Answer

p = 0.09012

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

10.Hypothesis tests & confidence intervals

Answer: n = 664

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

Solve for n

n = (2.576·10/1)² = 663.6

Round up

n = 664

Answer

n = 664
11.Linear regression & correlation

Answer: r = 0.9922

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
ȳ = 112/6 = 18.67

Sums of squares and products

Sxx = Σ(x − x̄)² = 70
Sxy = Σ(x − x̄)(y − ȳ) = 184
Syy = Σ(y − ȳ)² = 491.3

Correlation coefficient

r = 184/√(70·491.3) = 0.9922

Answer

r = 0.9922
12.Linear regression & correlation

Answer: e = 2.748

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
ȳ = 337/6 = 56.17

Sums of squares and products

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

Regression line

b = 103.5/17.5 = 5.914
a = 56.17 − 5.914·3.5 = 35.47
ŷ = 35.47 + 5.914·x

Predicted value

ŷ = 35.47 + 5.914·2.5 = 50.25

Residual

e = 53 − 50.25 = 2.748

Answer

e = 2.748

The point lies above the line.

ExamProblems · examproblems.com/courses/statistics-1