Can you explain the linearity of expectation?

Quick Overview

Asks what linearity of expectation states and why it holds even when the random variables are dependent. Tests the short proof, the contrast with the variance of a sum and the expectation of a product, and the indicator-variable technique for expected counts.

Can you explain the linearity of expectation?

Role: Data Scientist

Category: Statistics & Math

Difficulty: easy

Interview Round: Other

Can you explain the linearity of expectation? ```hint Check what it assumes Ask whether the rule needs the variables to be independent. Test it on a case where $Y$ is a function of $X$. ``` ### What a Strong Answer Covers - The statement of the rule, including constants and sums of many variables - Whether independence is required, with a reason or a short proof - How it compares with the variance of a sum and the expectation of a product - The indicator-variable technique for expected counts, with a worked example ### Follow-up Questions - $n$ people check their hats and get them back in a random order. What is the expected number who get their own hat? - What is the expected number of distinct faces you see in $n$ rolls of a fair die? - What is the expected number of draws needed to collect all $n$ equally likely coupon types? - Why is $E[XY] = E[X]\,E[Y]$ not guaranteed, and what condition makes it hold?

Overview: Asks what linearity of expectation states and why it holds even when the random variables are dependent. Tests the short proof, the contrast with the variance of a sum and the expectation of a product, and the indicator-variable technique for expected counts.

PracHub logo
General
Nov 24, 2026
easyData ScientistOtherStatistics & Math
0
0

Can you explain the linearity of expectation?

What a Strong Answer Covers Guidance

  • The statement of the rule, including constants and sums of many variables
  • Whether independence is required, with a reason or a short proof
  • How it compares with the variance of a sum and the expectation of a product
  • The indicator-variable technique for expected counts, with a worked example

Follow-up Questions Guidance

  • nn people check their hats and get them back in a random order. What is the expected number who get their own hat?
  • What is the expected number of distinct faces you see in nn rolls of a fair die?
  • What is the expected number of draws needed to collect all nn equally likely coupon types?
  • Why is E[XY]=E[X] E[Y]E[XY] = E[X]\,E[Y] not guaranteed, and what condition makes it hold?