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.

Google
Statistics & Math
Data Scientist
Google
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Hard

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
likelihood ratio test
Poisson distribution
Wilks' theorem
conditional binomial test
anomaly detection
How to Approach This
  1. Define your hypotheses (H0 and H1) clearly before performing any test.
  2. Calculate required sample size BEFORE running an experiment, using power analysis.
  3. Remember the Central Limit Theorem: sample means become approximately normal with large n.
  4. Watch for Simpson's paradox. Always segment data by key dimensions.
  5. 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 Questions
Sample Answer
Clarify

Assume counts in each period are Poisson with rates λ1\lambda_1 (per hour, first 10 hours) and λ2\lambda_2 (next 2 hours). H0:λ1=λ2H_0: \lambda_1 = \lambda_2. Ask whether these hours are comparable in time ...

Approach

Under H1H_1 the MLEs are λ^i=xi/ti\hat\lambda_i = x_i / t_i: 120 and 145 per hour. Under H0H_0 the pooled MLE is λ^=(x1+x2)/(t1+t2)\hat\lambda = (x_1 + x_2)/(t_1 + t_2). The statistic is


Submit Your Answer
Markdown supported