Questions: Linearity of Expectation in Counting

5 questions to test your understanding

Score: 0 / 5
Question 1 Multiple Choice

A student wants to find the expected number of students in a class of 30 who share a birthday with at least one classmate. She reasons: 'I can't use linearity of expectation because whether any two students share a birthday depends on all the other birthdays — the indicator variables are not independent.' Is she correct?

AYes — linearity of expectation requires independence, so this approach would give incorrect results
BNo — linearity of expectation holds even when the random variables being summed are dependent
CPartially — you can use linearity only after conditioning on the most likely birthday
DYes — you must first compute the full joint distribution before applying linearity
Question 2 Multiple Choice

You want to find the expected number of edges in a random subgraph where each of m edges is independently included with probability p. Which approach correctly uses linearity of expectation?

ASum p^k · (1-p)^(m-k) · C(m,k) · k over all k from 0 to m
BDefine Xₑ = 1 if edge e is included, then E[total edges] = Σₑ E[Xₑ] = m·p
CUse linearity only after verifying that the edge indicators are independent of each other
DCompute the variance first to check whether dependence is small enough to ignore
Question 3 True / False

For any random variable X that can be written as a sum of indicator random variables, E[X] equals the sum of the probabilities of each indicator event, regardless of whether those events are independent.

TTrue
FFalse
Question 4 True / False

Because variance has the property Var(X+Y) = Var(X) + Var(Y) mainly when X and Y are independent, the same independence restriction applies to the linearity of expectation.

TTrue
FFalse
Question 5 Short Answer

Explain why linearity of expectation is more powerful than it initially seems. Specifically: what makes it different from the corresponding property of variance, and why does this difference matter for counting problems?

Think about your answer, then reveal below.