learn-interview-prep-with-phoebe / Session 5 of 6
Learn Interview Prep with Phoebe · Session 5 of 6

Stats, experiments and the product case

The statistics round and the product case are where data candidates who know the material still lose points, because the round is not asking whether you know statistics. It is asking whether you can say the right thing, in the right order, out loud, with someone writing it down. Tonight we practise three spoken moves: a one-sentence p-value an interviewer will accept, an experiment designed and stopped by rules you set before it starts, and a product case answered with one primary metric, its guardrails and an estimate whose assumptions you state as you go. Then we work a full case end to end.

🟠 Deeper Anyone with a stats, experiment or product case round in the loop Bring a pen and a calculator 45 min
0-3 · Welcome 3-18 · P-values, tests, cases 18-40 · Build-along: the skip-a-week case 40-45 · Q&A
Part 0

Where we start

Ren, our constructed analyst, rated "experiment design and statistics" and "metric choice" as thin back in session 1, and the session 4 bench confirmed the story bank leans on one experiment story, S2 "The A/B test that was stopped early". Tonight Ren turns those thin ratings into answers that hold up in the room. Nothing here re-teaches statistics or product analytics as subjects; their own courses do that. Here they are rounds, and a round rewards the candidate who says the careful thing first.

🎫 Clear all three quiz questions to stamp your passport Live = presented in the 45 minutes Self-study = the full depth, after class ★ Build-along = write it yourself

★ What you walk out with tonight. A one-sentence p-value you can say without hedging, a five-line experiment plan you can recite (unit, primary metric, guardrails, sample size, end date), a habit of naming a counter-metric before anyone asks, an estimation routine with the arithmetic shown, and a complete worked product case with a 30-second summary.

Part 1 · covers explaining a p-value in an interview

A p-value is a tail area, not a verdict

5 min live

"What is a p-value?" is one of the most common statistics questions in a data interview, and it is a trap only because the two most natural answers are wrong. In March 2016 the American Statistical Association published a statement of six principles on p-values, written precisely because those wrong answers had become normal in published research. If your answer agrees with that statement, no interviewer can mark it down.

WHAT A P-VALUE IS: A TAIL AREA UNDER THE NO-EFFECT CURVE IF THERE WERE NO EFFECT (THE NULL MODEL) observed result p-value = this area 0 = no difference bigger differences how surprising the data are if there were no effect THE ONE-SENTENCE ANSWER The probability of data at least this extreme, if there were no real effect and the model's assumptions held. Small p: these data sit badly with it. TWO READINGS IT IS NOT NOT the probability that the hypothesis is true NOT the probability that the result was produced by chance alone ASA (2016) principles 1 and 2. The shaded area says how unusual the data are, not how big the effect is.
🔍 Click to zoom - the p-value lives under the no-effect curve; it describes the data assuming no effect, never the hypothesis
LiveThe one-sentence answer, and what to add3 min▶

Say this: "A p-value is the probability of seeing data at least as extreme as what we observed, if there were really no effect and the model's assumptions held. A small one means the data are hard to square with no effect." That is the ASA's first principle in spoken form: p-values "can indicate how incompatible the data are with a specified statistical model".

Then add one of the other principles, unprompted. The strongest in an interview is principle 5: a p-value does not measure the size of an effect or the importance of a result. Follow it with what you would report instead: "so I would always report the effect size with a confidence interval, and ask whether that size matters for the product." Principle 3 is the next best: decisions should not be based only on whether a p-value passes a threshold. One extra principle shows you know the statement exists; reciting all six sounds memorised.

LiveThe two most common wrong answers2 min▶

"It's the probability the hypothesis is true." The p-value is computed by assuming there is no effect, so it cannot also be the probability that there is one. The ASA's second principle says p-values do not measure the probability that the studied hypothesis is true.

"It's the probability the result was due to chance." This one sounds careful, which is why it survives. The same second principle rules it out: p-values do not measure the probability that the data were produced by random chance alone. The difference is the direction of the condition. The p-value is "probability of data this extreme, given no effect", not "probability of no effect, given these data". If an interviewer pushes, saying exactly that sentence about direction is the answer they are hoping to hear.

Self-studyAll six principles, in plain words4 min▶

The ASA Statement on Statistical Significance and P-Values was released on 7 March 2016 (Wasserstein and Lazar, The American Statistician). Its six principles, paraphrased closely from the ASA's release:

  1. P-values can indicate how incompatible the data are with a specified statistical model.
  2. P-values do not measure the probability that the studied hypothesis is true, or the probability that the data were produced by random chance alone.
  3. Scientific conclusions and business or policy decisions should not be based only on whether a p-value passes a specific threshold.
  4. Proper inference requires full reporting and transparency.
  5. A p-value, or statistical significance, does not measure the size of an effect or the importance of a result.
  6. By itself, a p-value does not provide a good measure of evidence regarding a model or hypothesis.

Effect size is not significance. With enough users, a difference too small to matter will come out with a tiny p-value; with too few, a difference worth a lot can come out with a large one. That is principle 5 at work, and it is why every experiment readout in the build-along reports the size of the change and a decision rule, not a pass or fail. For the mathematics behind all of this, Learn Statistics with Phoebe ↗ owns the subject.

Real world

The readout that said "proven". A pattern most analysts have seen in a slide deck: "the new checkout is proven to work, p = 0.03". Two principles are broken in five words. The p-value did not prove anything about the hypothesis (principle 2), and the slide says nothing about how big the improvement was (principle 5). In an interview, being able to say calmly why that sentence is wrong, and rewrite it as "the data are unlikely under no effect; the estimated lift is X, with this interval", is worth more than any formula.

Part 2 · covers designing and stopping an experiment out loud

Decide how it ends before it starts

5 min live

"How would you test this?" is the experiment round in one question. The interviewer is listening for a short list of decisions made in a particular order: what gets randomised, which one number decides, what must not get worse, how many users and how long, and when you will look. The last one is where strong candidates separate themselves, because the most common way to break a valid A/B test is to keep checking it and stop the moment it looks good.

SAME TEST, TWO STOPPING RULES (CONSTRUCTED DAILY READINGS) Stop when green checked daily, stopped on day 4 each dot = one daily look at the p-value .05 day 4: dipped under .05, stopped and shipped Fix the end first sample size and end date set before launch daily looks for broken data only, no decision .05 day 14: read once, as planned day 1 day 7 day 14 Lower on the chart = smaller p. Constructed readings; your numbers will differ.
🔍 Click to zoom - with daily looks and a stop-on-green rule, the dip on day 4 becomes a launch; with the end date fixed, it is just day 4
LiveFive decisions, said in this order3 min▶

1. Unit of randomisation. Who gets assigned to a version: a user, an account, a session, a store. Choose the unit the change acts on, and say why. If one person can see both versions, say how you would stop that.

2. One primary metric. The single number that decides. Naming two primary metrics is naming none, because one of them will move by chance.

3. Guardrails. Two or three numbers that must not get meaningfully worse, even if the primary improves: support contacts, latency, cancellations, revenue proxies.

4. Sample size and duration, decided in advance. From a baseline rate, the smallest change worth acting on, and the error rates you accept. Round the duration up to whole weeks so weekdays and weekends are both in it.

5. When you will look. "I would read it once, at the end date, and only look before then to check the data are flowing and the split is even." That sentence is the one interviewers remember.

LiveWhy peeking breaks the test2 min▶

A standard p-value assumes the sample size was fixed before anyone looked. Check every day and stop the first time it dips under .05, and you have given chance fourteen tries to cross the line instead of one. Even with no real effect, a reading that wanders will cross it sometimes, and the stop-on-green rule turns that one crossing into a launch.

Johari, Pekelis and Walsh (2015, arXiv 1512.04922) put it bluntly in their abstract: standard p-values and confidence intervals are “wholly unreliable if users endogenously choose samples sizes by continuously monitoring their tests”. Their paper goes on to propose "always valid" inference built to survive continuous monitoring. In an interview you need the problem and one remedy: fix the end in advance, or, if the business genuinely needs to look early, use a method designed for sequential looks and say so. The details of those methods belong to Learn Statistics with Phoebe ↗.

Self-studyRen's S2, retold as an answer3 min▶

Ren's constructed story S2, "The A/B test that was stopped early", runs 260 seconds in the bank, the longest of the eight. Its honest fits are experiments strong, pushing back strong, metric choice thin. Part 2 gives Ren the vocabulary to tell it in under two minutes and to make it serve the stats round as well as the behavioural one.

Situation and task: a product manager wanted to stop a test on day four because the dashboard showed a significant result. Action: Ren explained that the test had been sized for two weeks, that a reading checked daily will cross the line by chance some of the time, and proposed keeping the planned end date while watching guardrails daily. Result: at the end date the lift was much smaller than on day four, and the team decided on a smaller rollout. Every detail is constructed; the shape is what you copy. If an interviewer then asks "what would you do if the business could not wait?", Ren has the second half of the Johari answer ready.

Real world

The dashboard with a live p-value. A familiar setup in product teams: an experiment dashboard that refreshes every morning and shows a green badge when the result is "significant". Nobody intends to peek; the badge does it for them, and a busy stakeholder sees green on day three and asks why it has not shipped. The candidate who can explain, kindly and in one breath, why day three is not the answer is describing exactly the situation Johari and colleagues wrote about.

Part 3 · covers the product case: metrics and estimation

One metric that decides, and one that catches cheating

5 min live

The product case gives you a vague business prompt and watches how you turn it into numbers. Two moves carry most of it. Metric choice: one primary metric, a few guardrails, and a counter-metric that would catch the primary being gamed. Estimation: break an unknown number into parts you can guess, say each guess out loud, multiply, and check the answer is the right order of magnitude. Every case number in this Part is constructed.

AN ESTIMATION TREE: BOXES DELIVERED PER YEAR, ONE CITY (CONSTRUCTED) tinted = an assumption you say out loud · white = arithmetic · coral = the answer Households in the city 2,000,000 Share who subscribe 1% × Subscribers 20,000 Boxes each, per week 0.75 × Boxes per week 15,000 Weeks per year 52 × Boxes per year 780,000 Sanity check: 15,000 a week is about 2,100 a day. Thousands, not millions: plausible for one city. All numbers constructed; your numbers will differ.
🔍 Click to zoom - every tinted box is a guess you say out loud; the interviewer can argue with a guess, but never with your arithmetic
LivePrimary, guardrails, counter-metric3 min▶

Primary metric: the one number that, if it moves, means the change did what it was for. Tie it to the goal you clarified, not to the feature: a "skip a week" button is for keeping subscribers, so the primary is about retention, not about how many people click skip.

Guardrails: what must not get meaningfully worse. For a subscription product that usually means boxes or orders delivered, support contacts and complaints, plus a technical one such as page errors.

Counter-metric: the number that would expose the primary being gamed. If "retained" means "has not cancelled", a feature that lets people skip forever can raise retention while nobody receives anything. A counter-metric such as "retained subscribers who received at least one box in weeks 5 to 8" catches that. Naming a counter-metric before the interviewer finds the hole is the single most convincing move in a metric question.

LiveEstimation in four spoken steps2 min▶

Decompose: "Boxes per year is subscribers, times boxes each per week, times weeks." State assumptions: say each guess and where it comes from, even roughly: "two million households is a big city; I will guess one percent subscribe." Compute: write the multiplication down and do it slowly; 2,000,000 × 1% = 20,000, × 0.75 = 15,000, × 52 = 780,000. Sanity-check: turn the answer into a unit you can picture. 15,000 a week is about 2,100 a day, which is a busy warehouse, not a corner shop and not a continent. If the check fails, say which assumption you distrust and change it out loud.

Interviewers grade the structure and the check, not the closeness of your answer to a number they hold. No study was found on how estimation answers are scored; this is common practice, and it is also simply how a careful analyst works.

Self-studyWhen the case is really a diagnosis3 min▶

Some product cases are not "should we ship" but "this metric fell 10 percent last week, why?". The same discipline applies in a different order: confirm the metric's definition and the data pipeline first, then split by time, platform, region and user type to find where the drop lives, then form hypotheses for that slice only. Saying "first I would check it is not a logging change" earns credit before any analysis. Product analytics as a subject, with funnels, cohorts and metric trees, belongs to Learn Product Analytics with Phoebe ↗.

Real world

The metric that rose while the product got worse. A pattern product teams meet sooner or later: "time in app" climbs after a redesign, the team celebrates, and support tickets reveal people are spending longer because they cannot find things. Nobody gamed anything on purpose; the primary simply rewarded the wrong behaviour, and there was no counter-metric to notice. Telling a version of this from your own work, if you have one, is a ready-made answer to "how do you choose metrics?".

Build-along

Work a full product case, out loud

★ 22 min · everyone builds

The prompt is constructed: "A constructed meal-kit subscription app is considering a 'skip a week' button. How would you decide whether to ship it?" Work each step with Ren, writing your spoken notes in the boxes as you go. Then pick a feature from a product you know and do the six steps again for yourself; that second pass is the artefact you bring to a real round.

THE SKIP-A-WEEK TEST, DECIDED BEFORE IT STARTS (CONSTRUCTED) ELIGIBLE RANDOMISED BY SUBSCRIBER EIGHT-WEEK WINDOW 40,000 active subscribers each one assigned at random A · no button 20,000 B · skip-a-week button 20,000 week 0 week 8 end date fixed before launch READ ONCE, ON THE END DATE primary: retained at 8 weeks guardrail: boxes per subscriber counter: got a box in weeks 5-8 Constructed: 8,068 needed per arm; 20,000 per arm can detect about 1.3 points. Your numbers will differ.
🔍 Click to zoom - every decision in this picture is made before the first subscriber sees a button, which is what makes the end-date reading worth believing

Clarify the goal before touching a metric. Ask what the button is for and what "ship" would mean. State your assumption if the interviewer will not say. Ren's two questions take twenty seconds and change everything after them.

★ Step 1 · clarify (Ren, constructed)Q: What problem is the button meant to solve? A (assumed): subscribers cancel when they travel or are busy; a skip should keep them instead of losing them. Q: Is anything off limits? A (assumed): we cannot accept a big drop in boxes delivered. Goal in one line: keep more subscribers subscribed, without delivering meaningfully fewer boxes.

Choose one primary metric, guardrails and a counter-metric. Write them as definitions someone could compute, with a time window.

★ Step 2 · metricsPrimary: share of subscribers still subscribed at 8 weeks Guardrail: boxes delivered per original subscriber, weeks 1-8 Guardrail: support contacts per 1,000 subscribers Counter: share of the retained who received a box in weeks 5-8 (catches "retained" meaning "skipping forever")

Design the test, with the end fixed in advance. Unit, split, duration and when you will look, in that order.

★ Step 3 · designUnit: subscriber (the button lives in their account) Split: 50/50, all 40,000 active subscribers (constructed) Duration: 8 weeks, so the 8-week primary is fully observed for everyone; end date written down before launch Looking: daily checks that data flow and the split is even; the result is read once, on the end date

Estimate the sample you need, and show the arithmetic. Constructed inputs: 70% are still subscribed at 8 weeks today, and a 2-point lift is the smallest worth shipping for. Standard two-proportion formula, 5% two-sided significance, 80% power.

★ Step 4 · sample size (constructed)z values: 1.96 (5% two-sided) + 0.84 (80% power) = 2.80 squared: 2.80 x 2.80 = 7.84 variance: 0.70 x 0.30 = 0.21 0.72 x 0.28 = 0.2016 sum = 0.4116 lift: 0.02, squared = 0.0004 per arm: 7.84 x 0.4116 / 0.0004 = 8,067.36, round up to 8,068 total: 8,068 x 2 = 16,136; we have 40,000, so 20,000 per arm detectable at 20,000 per arm: about 1.3 points (software with unrounded z values says 8,077 per arm; same answer to the order that matters)

Say in advance what result would change the decision. Write the rule before the data exist, including the outcome where you do not ship.

★ Step 5 · decision ruleShip if: retention lift is at least 1 point and its interval excludes zero, AND boxes per subscriber falls by less than 3%, AND the counter-metric holds Do not ship: retention flat, or boxes fall 3% or more Investigate: retention up but counter-metric down (people are parked on skip, not kept) All thresholds constructed; agree yours with the team first.

Close with a 30-second summary. Goal, metric, design, rule, in that order, as if the interviewer had walked in late. Delivery on the day belongs to Learn Public Speaking with Phoebe ↗; the content is yours.

★ Step 6 · 30 seconds"The button exists to keep busy subscribers, so the primary is the share still subscribed at 8 weeks, with boxes per subscriber as the guardrail and a box in weeks 5 to 8 as the counter-metric, so skipping forever does not count as kept. I would randomise all 40,000 subscribers 50/50 for 8 weeks, which detects about a 1.3-point lift, read it once on a date fixed in advance, and ship only if retention rises at least a point without boxes falling 3% or more."

Say the numbers are yours. In a real round, every number in steps 3 to 5 is an assumption you invent on the spot. Label them as you say them: "I'll assume 70 percent retention today". An interviewer who disagrees with an assumption will tell you, and that conversation is part of the round, not a sign it is going badly.

Homework

Before session 6

30 min
  1. Say the one-sentence p-value out loud three times, then once more adding principle 5 and what you would report instead. Record yourself once and listen back.
  2. Retell your own experiment story (or Ren's S2) in under two minutes, with the stopping rule named in the action.
  3. Pick one feature in a product you use and write its primary metric, two guardrails and a counter-metric, each with a time window.
  4. Do one estimation from scratch with four boxes, the arithmetic written down and a sanity check in a unit you can picture. Check the multiplication twice.
Check yourself

Three questions

Clear all three and session 5 gets stamped in your passport.

1 · An interviewer asks "what does p = 0.03 mean?" Which answer agrees with the ASA statement?

The p-value is computed assuming no effect, so it describes the data, not the hypothesis. A and B are the two readings the ASA's second principle rules out; D confuses significance with size, which principle 5 rules out.

2 · A test was sized for 14 days. On day 4 the dashboard shows p under .05 and the product manager wants to ship. What is the strongest answer?

Johari, Pekelis and Walsh (2015) describe standard p-values as wholly unreliable when sample sizes are chosen by continuously monitoring the test. A ignores that, B is still stop-on-a-threshold peeking with a stricter line, and C throws away valid data without fixing the rule.

3 · For the skip-a-week button, which metric set is strongest?

A ties the primary to the goal, protects deliveries with a guardrail, and adds a counter-metric so people parked on endless skips do not count as kept. B measures the feature, not the goal; C gives chance three tries to declare a win; D leaves the gaming hole open.

Sources covered

What this session teaches, and where it came from

✓ASA Statement on Statistical Significance and P-Values (2016)Released 7 March 2016 (Wasserstein and Lazar, The American Statistician); all six principles read at source in the ASA release
◐Johari, Pekelis and Walsh (2015), arXiv 1512.04922The peeking quote, read in the abstract; the full paper's methods were not read and are not taught here
◐Product case numbers and the skip-a-week caseConstructed for teaching: households, subscribers, retention, thresholds and the sample-size inputs; the arithmetic is checked, the inputs are invented
◐Ren and story S2 "The A/B test that was stopped early"Constructed; length and fits as recorded for the session 4 bench
◐Statistics and product analytics as subjectsTaught in Learn Statistics with Phoebe ↗ and Learn Product Analytics with Phoebe ↗; here they are rounds
◐How estimation and metric answers are scoredNo study found; taught as common practice

Every fact on this page, and its verification tier, is recorded in the course's source map.

Session 5 cheat sheet · pin this

The one-sentence p-valueProbability of data at least this extreme if there were no real effect. Then add: it is not the effect size.
Two wrong answersNot the chance the hypothesis is true; not the chance it was luck alone. ASA principle 2.
Five test decisionsUnit, one primary, guardrails, sample size and duration, when you look. In that order.
No peekingFix the end date first, or use a method built for continuous monitoring and say so.
Metric trioPrimary for the goal, guardrails for harm, a counter-metric that catches the primary being gamed.
EstimationDecompose, state each assumption, multiply on paper, sanity-check in a unit you can picture.