KatInterview

Watch-Time Sample: Skew, Percentiles, and Winsorizing

Statistics & ExperimentsModel answer
MediumModel answerStatistics & Experimentsdescriptive-statisticsquantilesskewness

Last updated

Analyze a 20-point video watch-time sample: judge its shape, compute median, mode and an interpolated p95, compare mean and median, and reason about winsorizing in an A/B test.

You are choosing a primary metric for an experiment on a video product, and you settle on watch time per video, in seconds. A small pilot gives these 20 observations:

3, 5, 6, 6, 7, 8, 9, 10, 12, 15, 16, 20, 24, 30, 35, 45, 60, 90, 120, 180

Answer the following:

  1. Shape. Describe the likely distribution: its skew and how heavy its tail is. Explain how you would sketch it in words and which numbers support your claim.
  2. Summary numbers. Compute the sample median, the mode, and the 95th percentile using linear interpolation between order statistics. Show your steps and state which quantile convention you used.
  3. Mean vs. median. Compare the two on this data. Argue which is the more robust basis for product decisions, and say whether your answer depends on the business goal.
  4. Winsorizing. Suppose you cap values at the 99th percentile before analysis. Explain qualitatively how this changes the variance of the metric, the statistical power of an A/B test, and the quantity you are actually estimating.

Hints

Hint 1

Compare the mean to the median and look at how much of the total comes from the largest few values. Also consider what the data would look like on a log scale.

Hint 2

For an interpolated quantile at probability p with n points, the default in NumPy and R is position h = (n-1)p + 1 on the sorted list. Interpolate between the two neighbouring order statistics, and note that other conventions give different answers.

Hint 3

Ask what happens to each estimator if the largest value is replaced by something ten times bigger. Then ask what the business actually sums up: typical views, or total watch time?

Hint 4

For winsorizing, think about three things separately: how variance changes, how that feeds into the standard error and minimum detectable effect, and what bias the cap introduces if the treatment acts on long views.