KatInterview

Correcting Size-Biased Sampling to Estimate Daily Guest Totals

Statistics & ExperimentsModel answer
EasyModel answerStatistics & Experimentssize-biased-samplinginverse-probability-weightingsurvey-sampling

Last updated

Estimate total guests who show up across all reservations from a sample drawn proportionally to party size, correcting the bias and giving a confidence interval.

A venue has 10,000 bookings for one day. For booking j you have:

  • the booked party size (R_j), a positive integer, and
  • the number of guests who actually arrive, (S_j), which may be smaller than, equal to, or larger than (R_j).

Checking actual arrivals is expensive, so you only record ((R_i, S_i)) for 1,000 bookings. The bookings were chosen with probability proportional to booked party size. For example, a booking for 10 is twice as likely to be picked as a booking for 5:

[ \Pr(\text{booking } j \text{ is selected}) \propto R_j . ]

Task. Using only the 1,000 observed pairs, estimate the total number of guests who show up across all 10,000 bookings:

[ T_S = \sum_{j=1}^{10000} S_j . ]

You should:

  1. Explain why the obvious estimate (10,000 times the average of the sampled (S_i)) goes wrong.
  2. Give an estimator that corrects for the sampling design, and say what extra information it needs.
  3. State the assumptions you rely on.
  4. Describe how you would quantify uncertainty, for example with a 95% confidence interval.

Hints

Hint 1

Write down the probability that a single draw selects booking j. What does the plain sample mean of S estimate under that probability, and how does it compare with the true average of S over all bookings?

Hint 2

Rewrite the target as a sum of R_j times the ratio S_j / R_j. Under size-proportional sampling, which simple sample average of per-booking quantities is unbiased for a weighted version of this?

Hint 3

The correction needs a known population quantity: the total booked size (available from the booking system), or at least N. For the variance, treat each scaled term as an i.i.d. draw and use its sample standard deviation, or bootstrap the pairs.