Expectation of a function of a random variable
Compute the expectation of a transformed random variable using the distribution of the original.
Expectation of a function of a random variable
Law of the unconscious statistician: Let be a random variable with distribution (law) on . If is measurable and is integrable, then
This identity lets you compute expectations by integrating against the distribution of rather than over the original probability space . When has a density with respect to Lebesgue measure (via the Radon–Nikodym theorem ), the right-hand side becomes an ordinary integral of against that density.