The interview problem
How much can you say about a random variable when you know only its mean and variance?
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Apply Markov’s inequality to the nonnegative squared deviation: P(|X−μ|≥a)≤σ²/a². This gives Chebyshev’s bound without assuming normality, but requires finite variance.
2. Trace the design or derivation
Squared deviation → nonnegative expectation → Markov inequality → tail bound
For n independent observations with variance σ², the sample mean has variance σ²/n, producing bound σ²/(na²). Correlation changes that variance; repeatedly measuring one highly correlated process is not automatically equivalent to n independent observations.
3. Calculate the example
For standard deviation 2 and deviation threshold 6, the bound is 4/36=1/9≈11.1%. It is an upper bound, not a prediction that exactly 11.1% of cases fall outside.
4. Failure cases and trade-offs
The bound can be loose. Replacing it with a normal-tail probability silently adds a distributional assumption. Infinite-variance distributions do not meet the premise.
5. Validation, follow-ups and self-review
Construct a concentrated distribution and compare its exact tail. Follow-up: apply the bound to an independent sample mean. Self-review: state the assumptions and inequality direction.
Sources and related practice
Technical reference: www.stat.cmu.edu — Markov and Chebyshev deviation bounds.
Source publication/update: 2016-08-31 lecture. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Interpret uncertainty and confidence intervals in model evaluation; Estimate effective sample size under dependence.
Continue your preparation
Choose a connected learning path or browse more ML fundamentals questions. Read our editorial method and attribution policy.