I knew E[X+Y] = E[X] + E[Y] cold, linearity of expectation, no issues there.
Start by stating the general formulas for expectation and variance of a sum of two random variables, emphasizing that expectation is always additive while variance includes a covariance term. Then explain the role of covariance and how it simplifies to zero when X and Y are independent. Finally, connect this to practical implications in data science, such as A/B testing where independence is often assumed.
Pro tip: Mention that in A/B testing, independence between treatment and control groups is a key assumption, and violating it (e.g., due to network effects) can bias variance estimates and inflate false positives. This shows you understand the practical stakes beyond the math.
Clearly state that E[X + Y] = E[X] + E[Y], which holds for any random variables with finite means, regardless of dependence.
Write Var(X + Y) = Var(X) + Var(Y) + 2Cov(X, Y), and explain that covariance captures how X and Y vary together.
Define Cov(X, Y) = E[XY] - E[X]E[Y]. If X and Y are independent, then E[XY] = E[X]E[Y], so Cov(X, Y) = 0, and Var(X + Y) = Var(X) + Var(Y).
Relate this to A/B testing: when comparing two independent groups, the variance of the difference is the sum of variances. If independence is violated, covariance must be accounted for.
AI-generated suggestions, not part of the candidate's original notes. May be inaccurate — verify before relying on them.