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
Statistics & Math
Data Scientist
Meta
November 29, 2026
Data Scientist
Onsite
Statistics & Math
Medium

0

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
right censoring
maximum likelihood
exponential distribution
survival function
exposure time
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
  • 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 Questions
Sample Answer
Clarify
  • Session ii has observed time tit_i and indicator δi=1\delta_i = 1 if it ended, 00 if still open at the snapshot.
  • Lengths are i.i.d. Exp(λ)\text{Exp}(\lambda); censoring is independent of length (the s...
Approach

An ended session contributes the density λe−λti\lambda e^{-\lambda t_i}. An open session contributes only the probability of lasting at least tit_i, the survival e−λtie^{-\lambda t_i}. So


Submit Your Answer
Markdown supported