Linearity of expectation (source code)

= Linearity of expectation

Expectation is linear without requiring independence: $E[aX+bY]=aE[X]+bE[Y]$ whenever the expectations exist.