Two events and are independent if knowing one happened tells you nothing about the other. Formally:
Equivalently, . Independence is a strong assumption — verify it, don't assume it.
The expectation of a random variable is its probability-weighted average. For discrete ,
For continuous with density ,
The single most useful property of expectation is linearity:
This holds whether or not and are independent. Many problems that look impossible become easy once you write the answer as a sum of indicator variables and apply linearity.