Home page for accesible maths C Proofs of additional results

Style control - access keys in brackets

Font (2 3) - + Letter spacing (4 5) - + Word spacing (6 7) - + Line spacing (8 9) - +

3.2 The Law of the Unconscious Statistician

Recall that for a continuous rv, Y,

𝖤⁡[Y]=∫-∞∞u⁢fY⁢(u)⁢du.

If Y=g⁢(X) then how do we know that this is equivalent to

𝖤⁡[Y]=∫-∞∞g⁢(u)⁢fX⁢(u)⁢du⁢?

A similar result is proved for discrete rvs in the notes. For simplicity of exposition, we assume here that the continuous rvs X and Y are non-negative.

We first turn the expectation of Y into a double integral. Reversing the order of integration provides a term 𝖯⁡(Y>t), which is equivalent to 𝖯⁡(g⁢(X)>t); returning to the original order of integration produces the required result. Along the way we will prove that (if Y≥0), 𝖤⁡[Y]=∫0∞SY⁢(t)⁢dt, where SY⁢(y) is the survivor function of Y; this is of interest in its own right.

Unnumbered Figure: First link, Second Link

Using the left figure for the first change of order of integration and the right figure for the second change of order, and recalling that y=∫0y1⁢dt, we have:

𝖤⁡[Y] =∫0∞fY⁢(u)⁢u⁢du
=∫y=0∞∫t=0yfY⁢(u)⁢dt⁢du
=∫t=0∞∫y=t∞fY⁢(u)⁢du⁢dt
=∫t=0∞𝖯⁡(Y>t)⁢dt
=∫t=0∞𝖯⁡(g⁢(X)>t)⁢dt
=∫t=0∞∫x:g⁢(x)>tfX⁢(x)⁢dx⁢dt
=∫x=0∞∫t=0g⁢(x)fX⁢(x)⁢dt⁢dx
=∫x=0∞fX⁢(x)⁢g⁢(x)⁢dx,

as required.