Expectation, and moments of a random variable

Suppose a random variable X, from which N samples are known (X1,X2,X3, ..., Xn) . Expectation is defined with the following expression:

Ex=limNX1+X2+X3+XNN=-xpX(x)dx

Moments

For any positive integer r, the r-th moment of the random variable characterized by the PDF px(X) are given by the following expression:

μr=Exr=-xrpX(x)dx

For discrete random variables, the moments are calculated as:

μr=Exr=   i=1n xtrP(X=xi)

The first moment defines the mean of the random variable (μ), while the second, the mean squared value.

Moments can be defined about a given number, for example, the mean. Moments about the mean are known as central moments, and calculated as follows:

μ0r=E(x-μ)r=-(x-μ)rpX(x)dx

For discrete random variables, the central moments are calculated as follows:

μ0r=   i=1n (xi-μ)rP(X=xi)

The Variance σx2 is a measure of dispersion around the mean value. It is the central moment for r=2.

σx2= Ex - μ2 = -(x-μ)2pX(x)dx

In the case of discrete random variables, it is calculated as follows:

σx2=  n=-1N (xi- μ)2P(X = xi)
Project

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

This resource was developed as part of an Erasmus+ project, funded with support from the European Commission under grant agreement 2016-1-SE01-KA203-22064.

The project was a collaboration between:

  Creative Commons License

This resource has been released under Creative Commons license CC-BY-SA 4.0.

Contact

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

If you would like more information on this resource please contact:

  • Academic content – The University of Alcalá (www.uah.es/en/)
  • Technical resource development – The University of the Highlands and Islands Educational Development Unit - EDU (edu@uhi.ac.uk)
Disclaimer

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Except where otherwise noted, this website is licensed under Creative Commons license CC-BY-SA 4.0. All images used under permission remain the copyright of the license holder.

PDF

  • University of Boras logo
  • UHI logo
  • Alcala University logo
  • Digital connextions logo

Download a copy of this resource in PDF format.

You can also print individual pages by printing directly from the browser.

×