Likelihood Ratio Test for a Jump in Hourly Query Rate
Last updated: November 29, 2026
Quick Overview
A Google Search endpoint averaged 1,200 queries over 10 quiet hours, then saw 290 queries in the next 2 hours. Test whether the hourly rate changed using a Poisson likelihood ratio test, and confirm with an exact conditional approach.
0
0
0 solved
A Google Search endpoint averaged 1,200 queries over 10 quiet hours, then saw 290 queries in the next 2 hours. Test whether the hourly rate changed using a Poisson likelihood ratio test, and confirm with an exact conditional approach.
Detecting rate changes in counts is core to anomaly detection for Google services. The interviewer checks that you can write the Poisson likelihood with exposure, derive the likelihood ratio statistic, use Wilks' theorem, and know the conditional binomial trick.
What the Interviewer Expects
- Write the Poisson likelihood with different exposures
- Derive the MLEs under null and alternative
- Compute the likelihood ratio statistic and its reference distribution
- Use the conditional binomial test as a check
- Discuss overdispersion and seasonality
Key Topics to Cover
How to Approach This
- Define your hypotheses (H0 and H1) clearly before performing any test.
- Calculate required sample size BEFORE running an experiment, using power analysis.
- Remember the Central Limit Theorem: sample means become approximately normal with large n.
- Watch for Simpson's paradox. Always segment data by key dimensions.
- Distinguish between statistical significance and practical significance.
Possible Follow-up Questions
- Why does conditioning on the total remove the nuisance parameter?
- How would you adjust for the usual hour-of-day pattern?
- What if counts are overdispersed relative to Poisson?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
Assume counts in each period are Poisson with rates (per hour, first 10 hours) and (next 2 hours). . Ask whether these hours are comparable in time ...
Approach
Under the MLEs are : 120 and 145 per hour. Under the pooled MLE is . The statistic is