hanegreefs.com/Statistics I
Home › Worked problems

Worked problems

Problems written for this site in the style of past exams: new data and numbers, the same question types.

Quick reference

ProblemTopicChaptersMain exam skill
1Percentages from a contingency table2, 5Total, row and column percentages; conditional probability
2Mean, standard deviation and outliers of a short list31-Var Stats by hand and on the calculator
3Shape from a five-number summary3Link mean, median and quartiles to skewness
4A prediction from regression output4Read b0 and b1 and predict with units
5Reverse a condition with a tree5Multiply along paths, add, divide
6Expected profit and risk6E(X), SD(X) and the linear rules
7At least one, with the binomial model6Bernoulli conditions and the complement
8A percentage under a normal model7Sketch, standardise, normalcdf and invNorm
9A confidence interval for a proportion, in full9Givens, conditions, SE, interval, interpretation
10How many respondents do we need?9Solve the margin of error for n and round up

Problem 1: Percentages from a contingency table

Short question: pick the right base · Related chapters: Chapter 2, Chapter 5

The problem

A bank surveys 800 clients about how they open accounts. North: 180 online, 120 in a branch, 100 by phone. South: 90 online, 210 in a branch, 100 by phone. (a) What percentage of all clients is from the North and opened online? (b) What percentage of the northern clients opened online? (c) What percentage of the online openers is from the North? (d) Are region and channel independent?

Method

  1. Add the row, column and grand totals first.
  2. Write each question as a sentence starting with "of ...": that "of" is the base.
  3. Compare conditional distributions for independence.
Worked example

Solution

Totals: North 400, South 400; online 270, branch 330, phone 200; grand total 800.

1

(a) total %

180/800 = 22.5%
2

(b) row %

180/400 = 45%
3

(c) column %

180/270 ≈ 66.7%
4

(d) independence

online among northern clients 45%, among southern clients 90/400 = 22.5%: not equal, so region and channel are associated
Answer

Answers: 22.5%, 45%, 66.7%, and the variables are not independent. As probabilities: P(online | North) = 0.45 differs from P(online) = 270/800 ≈ 0.34.

Think further

  • Which percentages add up to 100% across a row?
  • Draw a segmented bar chart of channel within each region.
Common trapThe three numbers 22.5%, 45% and 66.7% are all about the same cell. Multiple-choice options usually contain all three; only the base decides which one is right.
Try it

Practice question

From the same table: what share of the branch openers is from the South, and what share of all clients opened by phone?

Show the worked outline
  • South among branch openers: 210/330 ≈ 63.6% (column percentage).
  • Phone among all clients: 200/800 = 25% (marginal distribution).

Problem 2: Mean, standard deviation and outliers of a short list

Short question with a TI-84 check · Related chapters: Chapter 3

The problem

Seven start-ups report their first-year revenue in million euro: 4.4, 3.2, 6.1, 5.0, 9.8, 4.1, 5.3. Find the mean, the standard deviation, the five-number summary, and decide whether any value is an outlier.

Method

  1. Sort the values.
  2. Mean, then the deviations and their squares; divide by n − 1.
  3. Median, then the medians of the lower and upper halves.
  4. Apply the 1.5 IQR rule.
Worked example

Solution

Sorted: 3.2, 4.1, 4.4, 5.0, 5.3, 6.1, 9.8 (n = 7).

1

Mean

37.9/7 ≈ 5.414 million euro
2

Standard deviation

sum of squared deviations ≈ 27.549; s = √(27.549/6) ≈ 2.143 million euro
3

Five-number summary

3.2, Q1 = 4.1, median 5.0, Q3 = 6.1, 9.8
4

Fences

IQR = 2.0; 4.1 − 3.0 = 1.1 and 6.1 + 3.0 = 9.1
5

Outlier

9.8 > 9.1, so 9.8 is an outlier
Answer

Mean ≈ 5.41 and s ≈ 2.14 million euro, with 9.8 million as an outlier; the median of 5.0 million is a better centre. The TI-84 (1-Var Stats) gives Sx ≈ 2.143.

Think further

  • How do the mean and s change if the outlier is removed?
  • Why does the TI-84 show both Sx and σx, and which one does the course use?
Common trapUse s (division by n − 1, Sx on the TI-84), not σx, for sample data.
Try it

Practice question

Remove the 9.8 and recompute the mean and the median.

Show the worked outline
  • Six values: 3.2, 4.1, 4.4, 5.0, 5.3, 6.1; sum 28.1.
  • Mean ≈ 4.683; median = (4.4 + 5.0)/2 = 4.7.
  • The mean dropped by 0.73, the median only by 0.3.

Problem 3: Shape from a five-number summary

Conceptual multiple choice · Related chapters: Chapter 3

The problem

Hourly wages (euro) of 60 shop managers: min 22, Q1 41, median 47, Q3 52, max 70; the mean is 44. (a) What is the shape? (b) What changes if the highest wage rises to 95 euro?

Method

  1. Compare the mean with the median.
  2. Compare the distances from the median to Q1 and to Q3.
  3. Ask which summaries use the maximum.
Worked example

Solution

Read the summary from left to right.

1

Mean versus median

44 < 47: the mean is pulled down
2

Quartile distances

median − Q1 = 6, Q3 − median = 5; min is 25 below Q1
3

(a) Shape

skewed left: a longer tail of low wages
4

(b) Max rises to 95

the mean and the range rise; the median, Q1, Q3 and IQR stay the same
Answer

The distribution is skewed left. Raising the maximum moves only the summaries that use every value or the extremes.

Think further

  • Could the 95 euro wage be an outlier? Check the fence Q3 + 1.5 IQR.
  • Which summaries would you report for these wages?
Common trapA low mean does not mean "skewed right". The tail lies on the side where the mean has moved.
Try it

Practice question

A five-number summary of delivery times is 8, 12, 14, 19, 45 minutes and the mean is 17. Shape, and is 45 an outlier?

Show the worked outline
  • Mean 17 > median 14 and Q3 is further from the median: skewed right.
  • IQR = 7; upper fence 19 + 10.5 = 29.5; 45 is an outlier.

Problem 4: A prediction from regression output

Short question with R output · Related chapters: Chapter 4

The problem

R output for yearly fringe benefits (euro) against salary (euro) of 30 employees: (Intercept) 3800, salary 0.21, and r = 0.82. (a) Write the line of best fit. (b) Predict the benefits at a salary of 95,000 euro. (c) Interpret the slope. (d) What share of the variation in benefits does the line account for?

Method

  1. Coefficients: the intercept is b0, the coefficient next to the variable name is b1.
  2. Substitute x with its units.
  3. Square r for R squared.
Worked example

Solution

b0 = 3,800 euro, b1 = 0.21 euro of benefits per euro of salary.

1

(a) Line

predicted benefits ≈ 3,800 euro + 0.21 × salary
2

(b) Prediction

3,800 + 0.21 × 95,000 = 3,800 + 19,950 = 23,750 euro
3

(c) Slope

each extra 1,000 euro of salary goes with about 210 euro more benefits on average
4

(d) R squared

0.822 ≈ 0.67, so about 67%
Answer

Predicted benefits ≈ 23,750 euro, if 95,000 euro lies within the salary range of the data.

Think further

  • What would the residual be if this employee actually receives 21,000 euro?
  • Why is the intercept hard to interpret here?
Common trapOn the TI-84 LinReg(ax+b) output, "a" is the slope and "b" the intercept: the reverse of b0 and b1.
Try it

Practice question

Same line: predict the benefits at 60,000 euro and give the residual if the employee receives 18,000 euro.

Show the worked outline
  • ŷ = 3,800 + 12,600 = 16,400 euro.
  • Residual = 18,000 − 16,400 = 1,600 euro: the line underestimates.

Problem 5: Reverse a condition with a tree

Probability tree · Related chapters: Chapter 5

The problem

A factory has three lines: A makes 50% of the output with 2% defects, B 30% with 3% defects and C 20% with 5% defects. A product is found defective. What is the probability that it came from line C?

Method

  1. Draw the first stage (line) and the second stage (defective or not).
  2. Multiply along each path that ends in "defective".
  3. Add for P(defective), then divide the path of C by it.
Worked example

Solution

Three paths end in "defective".

1

Line A

0.50 × 0.02 = 0.010
2

Line B

0.30 × 0.03 = 0.009
3

Line C

0.20 × 0.05 = 0.010
4

P(defective)

0.010 + 0.009 + 0.010 = 0.029
5

P(C | defective)

0.010/0.029 ≈ 0.345
Answer

About 34.5% of defective products come from line C, although C makes only 20% of the output.

Think further

  • Which line contributes the smallest share of defects?
  • Do the three conditional probabilities P(line | defective) add up to 1?
Common trapDo not answer with P(defective | C) = 0.05: the question gives the defect and asks for the line.
Try it

Practice question

Same factory: what is P(A | defective) and P(A | not defective)?

Show the worked outline
  • P(A | defective) = 0.010/0.029 ≈ 0.345.
  • P(A and not defective) = 0.50 × 0.98 = 0.49; P(not defective) = 0.971.
  • P(A | not defective) = 0.49/0.971 ≈ 0.505.

Problem 6: Expected profit and risk

Random variable with a table · Related chapters: Chapter 6

The problem

A festival stall's profit X (euro) depends on the weather: −2,000 if it rains (probability 0.25), 1,500 if cloudy (0.45) and 4,000 if sunny (0.30). (a) Find E(X) and SD(X). (b) The organiser takes a fixed fee of 300 euro plus 10% of the profit. What are the mean and SD of the stall's remaining profit Y = 0.9X − 300?

Method

  1. Check that the probabilities add to 1.
  2. E(X) = ΣxP(x), then Var(X) = Σ(x − μ)2P(x).
  3. Apply E(aX + c) and SD(aX + c).
Worked example

Solution

Probabilities: 0.25 + 0.45 + 0.30 = 1.

1

E(X)

−500 + 675 + 1,200 = 1,375 euro
2

Var(X)

(−3,375)2(0.25) + 1252(0.45) + 2,6252(0.30) ≈ 4,921,875 euro2
3

SD(X)

≈ 2,218.5 euro
4

Y = 0.9X − 300

E(Y) = 0.9 × 1,375 − 300 = 937.5 euro; SD(Y) = 0.9 × 2,218.5 ≈ 1,996.7 euro
Answer

The stall expects 1,375 euro with large risk (SD ≈ 2,219 euro); after the fees, 937.5 euro with SD ≈ 1,997 euro. The fixed fee does not change the risk.

Think further

  • What is the expected total and SD for two independent festival days?
  • Is the stall worth running if the owner cannot afford a loss?
Common trapSubtracting a fixed amount never changes the SD; multiplying by 0.9 does.
Try it

Practice question

Two independent festival days: mean and SD of the total profit X1 + X2?

Show the worked outline
  • Mean 2 × 1,375 = 2,750 euro.
  • Variance 2 × 4,921,875 = 9,843,750 euro2.
  • SD ≈ 3,137.5 euro (not 2 × 2,218.5).

Problem 7: At least one, with the binomial model

Binomial probabilities · Related chapters: Chapter 6

The problem

12% of the visitors of a showroom place an order. Six visitors walk in, independently. (a) Check the binomial conditions. (b) P(at least one order). (c) P(exactly 2 orders). (d) Expected number of orders and its SD.

Method

  1. Write n, p and the event.
  2. Use 1 − P(0) for "at least one".
  3. Use the binomial formula or binompdf for "exactly".
Worked example

Solution

n = 6, p = 0.12.

1

(a) Conditions

order or not; same p for every visitor; visitors independent
2

(b) At least one

1 − 0.886 ≈ 1 − 0.4644 = 0.5356
3

(c) Exactly two

15 × 0.122 × 0.884 ≈ 0.1295
4

(d) Mean and SD

np = 0.72 orders; √(6 × 0.12 × 0.88) ≈ 0.80 orders
Answer

There is a 53.6% chance of at least one order among six visitors. TI-84: 1 − binompdf(6, 0.12, 0) and binompdf(6, 0.12, 2).

Think further

  • How many visitors are needed for a 90% chance of at least one order?
  • Why is the normal model not appropriate here?
Common trap"At least 2" is 1 − P(0) − P(1), not 1 − P(2).
Try it

Practice question

Same showroom: P(at least 2 orders among 6 visitors)?

Show the worked outline
  • P(0) ≈ 0.4644; P(1) = 6 × 0.12 × 0.885 ≈ 0.3800.
  • P(at least 2) ≈ 1 − 0.4644 − 0.3800 = 0.1556.

Problem 8: A percentage under a normal model

Normal areas and percentiles · Related chapters: Chapter 7

The problem

Bags of coffee are filled with weights that follow N(250 g, 15 g). (a) What percentage weighs less than 230 g? (b) What percentage weighs between 230 g and 270 g? (c) Below which weight are the lightest 5% of bags?

Method

  1. Sketch the curve and shade the area.
  2. Standardise each bound.
  3. Use normalcdf for areas and invNorm for the percentile.
Worked example

Solution

Mean 250 g, SD 15 g.

1

(a)

z = (230 − 250)/15 ≈ −1.33; P ≈ 0.0912, about 9.1%
2

(b)

z from −1.33 to 1.33: about 0.8176, so 81.8%
3

(c)

invNorm(0.05) ≈ −1.645; x ≈ 250 − 1.645 × 15 ≈ 225.3 g
Answer

About 9% of bags weigh under 230 g; the lightest 5% weigh less than about 225.3 g.

Think further

  • What mean would bring the share under 230 g down to 1%?
  • Which assumption does every answer rely on?
Common trapDo not apply the 68-95-99.7 rule to a cut-off that is not a whole number of SDs; use the calculator.
Try it

Practice question

What weight do 75% of the bags exceed?

Show the worked outline
  • Area 0.25 to the left: invNorm(0.25) ≈ −0.6745.
  • x ≈ 250 − 0.6745 × 15 ≈ 239.9 g.

Problem 9: A confidence interval for a proportion, in full

Open question · Related chapters: Chapter 9

The problem

In a random sample of 1,200 Belgian adults, 456 say they have changed energy supplier in the last two years. (a) Give p̂. (b) Give the standard error. (c) Build an approximate 95% interval. (d) Explain "95% confident" with the frequency interpretation. (e) A newspaper claims that "more than 40%" switched. Is that supported?

Method

  1. Write the givens and what is asked.
  2. Check the conditions.
  3. p̂, SE, margin of error, interval.
  4. Interpret in context.
Worked example

Solution

x = 456, n = 1,200.

1

(a)

p̂ = 456/1,200 = 0.38
2

Conditions

random sample; 456 and 744 both at least 10; 1,200 is far below 10% of all adults
3

(b)

SE = √(0.38 × 0.62/1,200) ≈ 0.0140
4

(c)

0.38 ± 2 × 0.0140 = 0.38 ± 0.028: from 0.352 to 0.408
5

(d)

about 95% of intervals built this way from repeated samples would contain the true share
6

(e)

the interval contains values below and above 0.40, so "more than 40%" is not established
Answer

We are about 95% confident that between 35.2% and 40.8% of Belgian adults switched supplier.

Think further

  • How would a 99% interval change?
  • Sketch twenty intervals around the true p and mark the one that misses.
Common trapDo not write "there is a 95% probability that p is between 0.352 and 0.408": p is fixed.
Try it

Practice question

Same survey with z* = 1.96: give the interval and compare it with the TI-84 1-PropZInt output.

Show the worked outline
  • ME = 1.96 × 0.0140 ≈ 0.0275.
  • Interval ≈ 0.3525 to 0.4075; 1-PropZInt (x = 456, n = 1200, C-Level 0.95) gives the same.

Problem 10: How many respondents do we need?

Sample size · Related chapters: Chapter 9

The problem

A market researcher wants to estimate the share of households that own an electric car within 2.5 percentage points with 90% confidence. (a) How many households if nothing is known about the share? (b) And if earlier studies suggest about 15%?

Method

  1. Pick z* for the confidence level.
  2. Use p = 0.5 without information.
  3. n = z*2p(1 − p)/ME2, rounded up.
Worked example

Solution

z* = 1.645, ME = 0.025.

1

(a) p = 0.5

n = 1.6452 × 0.25/0.0252 ≈ 1,082.4, so 1,083 households
2

(b) p = 0.15

n = 2.706 × 0.1275/0.000625 ≈ 552.0, so 553 households
Answer

Without information 1,083 households are needed; with a credible guess of 15%, 553 suffice.

Think further

  • What happens to n if the margin is halved?
  • Why is p = 0.5 the safe choice?
Common trapRounding 1,082.4 down to 1,082 gives a margin just above 2.5 points. Always round up.
Try it

Practice question

Same goal but with 95% confidence and z* = 2, p unknown. How many households?

Show the worked outline
  • n = 4 × 0.25/0.000625 = 1,600.