Definition of Expectation

For discrete random variable

For continuous random variable

LOTUS

LOTUS (Law of the Unconscious Statistician) Theorem:

Lemma: Transformation of probability density

It’s all about sign cancelling

the probability density function is defined as:

given , to transform to probability about , slice .

if is monotonically decrease in

if is monotonically increase in :

take derivative of , apply chain rule:

and both cases generate the same expression:

So for piecewise monotonic :

Proof of LOTUS (continuous)

this leads to LOTUS for continuous variable:

the potential negative sign of also cancel with the potential flipping of integral limit caused by substituting variables in definite integral:

For discrete variable it’s pretty intuitive:

Since:

So:

Properties of Expectation

Linearity

Given by LOTUS and linearity of Riemann Integral

applying LOTUS:

In conclusion:

Sum Rule

Distributivity w.r.t addition

Expectation is also distributable w.r.t addition:

Product Rule

Independency required

Distributivity w.r.t. multiplication while independent

Given , Expectation is distributable w.r.t multiplication: