TOPICS
Search

Law of the Unconscious Statistician


The law of the unconscious statistician, commonly abbreviated LOTUS (Pishro-Nik 2014, §3.2.3; Blitzstein and Hwang 2019, p. 170; Tsun 2020, theorem 3.2.13), states that the expectation value of a function g(X) of a random variable X can be computed directly from the statistical distribution of X, without first finding the statistical distribution of g(X). In terms of the distribution function F_X,

 E[g(X)]=int_(-infty)^inftyg(x)dF_X(x),
(1)

provided the corresponding expectation value exists. For a discrete random variable taking the value x with probability p_X(x), this becomes

 E[g(X)]=sum_(x)g(x)p_X(x),
(2)

while for a continuous random variable with probability density function f_X, it becomes

 E[g(X)]=int_(-infty)^inftyg(x)f_X(x)dx.
(3)

The law is useful because it avoids deriving the statistical distribution of each transformed random variable. For example, if X has the uniform distribution on [0,1], then

 E[X^2]=int_0^1x^2dx=1/3.
(4)

More generally, choices such as g(x)=x^r, g(x)=[x-E[X]]^2, and g(x)=e^(tx) give moments, the variance, and the moment-generating function, respectively. Expected losses, costs, and payoffs can be computed in the same way.

The name jokes about "unconscious" statisticians who use the formula as though it were the definition of E[g(X)], without consciously deriving the statistical distribution of g(X) or noting that the formula is a theorem. The name was already in print as the "theorem of the unconscious statistician" by 1965 (Hillier and Lieberman 1965). Ross (1980) used "law of the unconscious statistician" and gave this explanation in a footnote.


See also

Discrete Distribution, Expectation Value, Moment, Moment-Generating Function, Probability Density Function, Random Variable, Variance

Explore with Wolfram|Alpha

References

Blitzstein, J. K. and Hwang, J. Introduction to Probability, 2nd ed. Boca Raton, FL: CRC Press, p. 170, 2019.Grimmett, G. R. and Stirzaker, D. R. Probability and Random Processes, 3rd ed. Oxford, England: Oxford University Press, 2001.Hillier, F. S. and Lieberman, G. J. Introduction to the Techniques of Operations Research. Stanford, CA: Department of Industrial Engineering, Stanford University, p. 67, 1965.Pishro-Nik, H. §3.2.3 in Introduction to Probability, Statistics, and Random Processes. Blue Bell, PA: Kappa Research, 2014. https://www.probabilitycourse.com/chapter3/3_2_3_functions_random_var.php.Ross, S. M. Introduction to Probability Models, 2nd ed. New York: Academic Press, 1980.Tsun, A. Probability & Statistics with Applications to Computing. p. 89, 2020. https://www.alextsun.com/files/Prob_Stat_for_CS_Book.pdf.

Cite this as:

Weisstein, Eric W. "Law of the Unconscious Statistician." From MathWorld--A Wolfram Resource. https://mathworld.wolfram.com/LawoftheUnconsciousStatistician.html

Subject classifications