Day 2 · Tuesday · Problem set
Loss, regression, probabilities, and action
Choose the best answer. Match the loss to the decision, read associations within their study, and distinguish predicted outcomes from effects of action.
Questions 1–5
One row is one eligible listing in the 19 June 2026 snapshot. The target is quoted nightly price. Hosts do not cross development, validation, and final holdout splits.
- Mean and median
Development prices are £100, £150, £200, and £550. What are the mean and median?
Mean £250; median £175
Mean £175; median £250
Mean £250; median £200
Mean £225; median £175
- Why the squared-loss baseline is the mean
Which statement is correct?
Squaring gives larger errors extra influence, and the sample mean minimises total squared error
Squaring removes the influence of £550
The median always minimises total squared error
The largest observation minimises every loss
- A coefficient is not a treatment effect
A compact model associates one additional recorded bed with £18 higher predicted price. Which interpretation is not justified?
The coefficient is expressed in pounds per recorded bed
The coefficient is conditional on the variables represented in the model
Adding a bed to the same listing will cause its achievable price to rise by £18
Omitted quality or location can contribute to the observed association
- Host-disjoint evaluation
What does the split improve most directly?
Evidence about listings from hosts absent during fitting
Evidence about next year's market conditions
Identification of the causal effect of price
Measurement of realised host profit
- Validation leakage
You learn imputation values and category definitions after combining development and validation. Why is the reported validation RMSE compromised?
The preprocessing has used information from the cases meant to evaluate the fitted procedure
Linear models cannot use imputed values
Validation outcomes must always be predictors
Category definitions are never part of model fitting
Question 6
On the same deliveries, Model A has MAE £42 and RMSE £91. Model B has MAE £50 and RMSE £70.
- When MAE and RMSE disagree
Which explanation and decision are most plausible?
A is closer on ordinary errors but has more severe large misses; prefer B when large misses dominate harm
B is closer on every delivery; prefer A when large misses dominate harm
A must have lower error on every case because its MAE is lower
The metrics cannot differ on the same holdout
Questions 7–9
One row is one payment. Reviewing a legitimate payment costs £3; passing a fraudulent payment costs £120. A calibrated model estimates fraud probability \(p\).
- The review threshold
Using \(\tau=3/(3+120)\), which threshold is closest?
0.024
0.200
0.500
0.976
- Decision at eight per cent
What is the cost-based action when \(p=0.08\)?
Pass because 0.08 is below 0.50
Review because 0.08 exceeds the cost-based threshold
Pass because the false-review cost is nonzero
No action can be chosen from probabilities and costs
- Calibration at one score range
Among 200 held-out payments scored near 0.20, 70 are fraudulent. Which interpretation is best?
Observed frequency 0.35 suggests underprediction near 0.20; the whole calibration curve is not established
Observed frequency 0.35 proves perfect calibration
The model overpredicts near 0.20
The ranking must be random
Questions 10–12
Contact costs £5 and a subscription is worth £100. Estimated subscription probabilities are: R, 0.30 under contact and 0.27 under no contact; S, 0.15 under contact and 0.02 under no contact.
- Estimated uplift
What are the estimated uplifts for R and S?
R 0.03; S 0.13
R 0.30; S 0.15
R 0.27; S 0.02
R 0.13; S 0.03
- Net value of contact
Using \(100\times\text{uplift}-5\), which pair is correct?
R £25; S £10
R \(-\)£2; S £8
R £3; S £13
R \(-\)£5; S \(-\)£5
- Why random assignment matters
What does random contact assignment contribute?
It makes contact and no-contact groups comparable in expectation, supporting estimation of the effect of contact
It guarantees that every individual effect is observed
It makes subscription value irrelevant
It converts response probability into profit without costs