Testwiki:Reference desk/Archives/Mathematics/2023 June 12

From testwiki
Jump to navigation Jump to search

Template:Error:not substituted

{| width = "100%"

|- ! colspan="3" align="center" | Mathematics desk |- ! width="20%" align="left" | < June 11 ! width="25%" align="center"|<< May | June | Jul >> ! width="20%" align="right" |Current desk > |}

Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


June 12

Expected value as integral

For a non-professional, why exactly is the expected value defined as E[X]=xf(x)dx, as is stated here? Ideally, explain step by step please.--Hildeoc (talk) 22:09, 12 June 2023 (UTC)

If the probability density function of a random variable X is given as function on the reals, we can approximate its expected value by partitioning the real number line (,+) into an infinite collection of small intervals [xi,xi+1),i=.... The probability that an outcome of X falls in the interval [xi,xi+1) is P(X[xi,xi+1)). Abbreviating this as pi, the approximation is then given by the sum i=xipi.
Now recall that P(X[xi,xi+1))=xixi+1f(x)dx.
You may see where this is going. The value of ixipi lies between the lower and upper Darboux sums for xf(x)dx for that same partitioning, so as the partitioning gets arbitrarily fine, the approximation tends to the value of that integral.  --Lambiam 05:14, 13 June 2023 (UTC)