Estimating Messenger Session Length When Sessions Are Still Open
Last updated: November 29, 2026
Quick Overview
You snapshot Messenger sessions at noon: some sessions have ended, others are still open. Assuming exponential session lengths, derive the maximum likelihood estimate of the mean session length that uses the open sessions correctly.
Meta
November 29, 20260
0
0 solved
You snapshot Messenger sessions at noon: some sessions have ended, others are still open. Assuming exponential session lengths, derive the maximum likelihood estimate of the mean session length that uses the open sessions correctly.
Meta data scientists regularly work with right-censored durations, from session length to time to first post. This onsite question checks that you can write a censored likelihood, derive the MLE, and explain the bias of naive approaches.
What the Interviewer Expects
- Explain right censoring and why open sessions carry information
- Write the likelihood with density for ended and survival for open sessions
- Derive rate = events / total exposure
- Show why averaging only ended sessions is biased
- Give a standard error and discuss checking the exponential assumption
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
- How would you check whether session lengths are actually exponential?
- What changes if you instead use a Weibull model?
- How would you compare session length between two experiment arms with censoring?
Sharpen Your Skills on Codemia
Practice similar problems with our interactive workspace, get AI feedback, and track your progress.
Browse Statistics QuestionsSample Answer
Clarify
- Session has observed time and indicator if it ended, if still open at the snapshot.
- Lengths are i.i.d. ; censoring is independent of length (the s...
Approach
An ended session contributes the density . An open session contributes only the probability of lasting at least , the survival . So