In probability theory the expected value (or mathematical expectation, or mean) of a discrete random variable is the sum of the probability of each possible outcome of the experiment multiplied by the outcome value (or payoff). Probability theory is the branch of Mathematics concerned with analysis of random phenomena A random variable is a rigorously defined mathematical entity used mainly to describe Chance and Probability in a mathematical way Thus, it represents the average amount one "expects" as the outcome of the random trial when identical odds are repeated many times. Note that the value itself may not be expected in the general sense - the "expected value" itself may be unlikely or even impossible. In the case of Uncertainty, expectation is what is considered the most likely to happen
Contents |
The expected value from the roll of an ordinary six-sided die is 3. For other uses see either Die or Dice (disambiguation. Dice (the Plural of Die, from Old French 5, which is not among the possible outcomes:

A common application of expected value is to gambling. For example, an American roulette wheel has 38 places where the ball may land, all equally likely. Roulette is a Casino and Gambling game named after the French word meaning "small wheel" A winning bet on a single number pays 35-to-1, meaning that the original stake is not lost, and 35 times that amount is won, so you receive 36 times what you've bet. Considering all 38 possible outcomes, the expected value of the profit resulting from a dollar bet on a single number is the sum of what you may lose times the odds of losing and what you will win times the odds of winning:

The change in your financial holdings is −$1 when you lose, and $35 when you win. Thus one may expect, on average, to lose about five cents for every dollar bet, and the expected value of a one-dollar bet is $0. 9474. In gambling, an event of which the expected value equals the stake (of which the bettor's expected profit is zero) is called a "fair game. "
In general, if
is a random variable defined on a probability space
(where Ω is the sample space and F is the cumulative distribution function of probability, (
)), then the expected value of
(denoted
or sometimes
or
) is defined as

where the Lebesgue integral is employed. A random variable is a rigorously defined mathematical entity used mainly to describe Chance and Probability in a mathematical way A probability space, in Probability theory, is the conventional Mathematical model of Randomness. In Probability theory and Statistics, the cumulative distribution function (CDF, also probability distribution function or just distribution function In Mathematics, the Integral of a non-negative function can be regarded in the simplest case as the Area between the graph of Note that not all random variables have an expected value, since the integral may not exist (e. g. , Cauchy distribution). The Cauchy–Lorentz distribution, named after Augustin Cauchy and Hendrik Lorentz, is a continuous Probability distribution. Two variables with the same probability distribution will have the same expected value, if it is defined. In Probability theory and Statistics, a probability distribution identifies either the probability of each value of an unidentified Random variable

as in the gambling example mentioned above.
If the probability distribution of X admits a probability density function f(x), then the expected value can be computed as

It follows directly from the discrete case definition that if X is a constant random variable, i. In Probability theory and Statistics, a probability distribution identifies either the probability of each value of an unidentified Random variable In Mathematics, a probability density function (pdf is a function that represents a Probability distribution in terms of Integrals Formally a probability WikipediaWikiProject Probability#Standards for a discussionof standards used for probability distribution articles such as this one e. X = b for some fixed real number b, then the expected value of X is also b. In Mathematics, the real numbers may be described informally in several different ways
The expected value of an arbitrary function of X, g(X), with respect to the probability density function f(x) is given by:

The expected value of a constant is equal to the constant itself; i. e. , if 'c' is a constant, then E(c) = c
If X and Y are random variables so that
almost surely, then
. In Probability theory, one says that an event happens almost surely (a
The expected value operator (or expectation operator)
is linear in the sense that



Combining the results from previous three equations, we can see that -


for any two random variables X and Y (which need to be defined on the same probability space) and any real numbers a and b. In Mathematics, a linear map (also called a linear transformation, or linear operator) is a function between two Vector spaces that
For any two discrete random variables X,Y one may define the conditional expectation:

which means that
is a function on y. In Probability theory, a Probability distribution is called discrete if it is characterized by a Probability mass function. In Probability theory, a conditional expectation (also known as conditional expected value or conditional mean is the Expected value of a real random variable with
Then the expectation of X satisfies







Hence, the following equation holds:

The right hand side of this equation is referred to as the iterated expectation and is also sometimes called the tower rule. This proposition is treated in law of total expectation. The proposition in Probability theory known as the law of total expectation, the law of iterated expectations, the tower rule, the smoothing theorem
In the continuous case, the results are completely analogous. In Probability theory and Statistics, a probability distribution identifies either the probability of each value of an unidentified Random variable The definition of conditional expectation would use inequalities, density functions, and integrals to replace equalities, mass functions, and summations, respectively. However, the main result still holds:

If a random variable X is always less than or equal to another random variable Y, the expectation of X is less than or equal to that of Y:
If
, then
.
In particular, since
and
, the absolute value of expectation of a random variable is less than or equal to the expectation of its absolute value:

The following formula holds for any nonnegative real-valued random variable X (such that
), and positive real number α:

In particular, this reduces to:

In general, the expected value operator is not multiplicative, i. e.
is not necessarily equal to
. If multiplicativity occurs, the X and Y variables are said to be uncorrelated (independent variables are a notable case of uncorrelated variables). In Probability theory and Statistics, two real-valued Random variables are said to be uncorrelated if their Covariance is zero In Probability theory, to say that two events are independent intuitively means that the occurrence of one event makes it neither more nor less probable that the other The lack of multiplicativity gives rise to study of covariance and correlation. In Probability theory and Statistics, covariance is a measure of how much two variables change together (the Variance is a special case of the covariance In Probability theory and Statistics, correlation, (often measured as a correlation coefficient) indicates the strength and direction of a linear
In general, the expectation operator and functions of random variables do not commute; that is

A notable inequality concerning this topic is Jensen's inequality, involving expected values of convex (or concave) functions. The Mathematical concept of a function expresses dependence between two quantities one of which is given (the independent variable, argument of the function In Mathematics, commutativity is the ability to change the order of something without changing the end result In Mathematics, Jensen's inequality, named after the Danish mathematician Johan Jensen, relates the value of a Convex function of an Integral
The expected values of the powers of X are called the moments of X; the moments about the mean of X are expected values of powers of
. In Probability theory and Statistics, the k th moment about the Mean (or k th central moment The moments of some random variables can be used to specify their distributions, via their moment generating functions. In Probability theory and Statistics, the moment-generating function of a Random variable X is M_X(t=\operatorname{E}\left(e^{tX}\right
To empirically estimate the expected value of a random variable, one repeatedly measures observations of the variable and computes the arithmetic mean of the results. Estimation is the calculated Approximation of a result which is usable even if Input data may be incomplete or uncertain. In Mathematics and Statistics, the arithmetic Mean (or simply the mean) of a list of numbers is the sum of all the members of the list divided If the expected value exists, this procedure estimates the true expected value in an unbiased manner and has the property of minimizing the sum of the squares of the residuals (the sum of the squared differences between the observations and the estimate). Estimation is the calculated Approximation of a result which is usable even if Input data may be incomplete or uncertain. In Statistics, the difference between an Estimator 's Expected value and the true value of the parameter being estimated is called the bias. In Statistics and optimization, the concepts of statistical error and residual are easily confused with each other In Statistics, an estimator is a function of the observable sample data that is used to estimate an unknown population Parameter (which is called the The law of large numbers demonstrates (under fairly mild conditions) that, as the size of the sample gets larger, the variance of this estimate gets smaller. The law of large numbers (LLN is a theorem in Probability that describes the long-term stability of the mean of a Random variable. The sample size of a Statistical sample is the number of observations that constitute it In Statistics, a sample is a Subset of a population. Typically the population is very large making a Census or a complete Enumeration In Probability theory and Statistics, the variance of a Random variable, Probability distribution, or sample is one measure of In Statistics, an estimator is a function of the observable sample data that is used to estimate an unknown population Parameter (which is called the
In classical mechanics, the center of mass is an analogous concept to expectation. Classical mechanics is used for describing the motion of Macroscopic objects from Projectiles to parts of Machinery, as well as Astronomical objects For example, suppose X is a discrete random variable with values xi and corresponding probabilities pi. Now consider a weightless rod on which are placed weights, at locations xi along the rod and having masses pi (whose sum is one). The point at which the rod balances is
.
Expected values can also be used to compute the variance, by means of the computational formula for the variance

A very important application of the expectation value is in the field of quantum mechanics. In Probability theory and Statistics, the variance of a Random variable, Probability distribution, or sample is one measure of In Probability theory, the computational formula for the Variance Var( X) of a Random variable X is the formula \operatorname{Var}(X Quantum mechanics is the study of mechanical systems whose dimensions are close to the Atomic scale such as Molecules Atoms Electrons The expectation value of a quantum mechanical operator
operating on a quantum state vector
is written as
. In Quantum physics, a quantum state is a mathematical object that fully describes a quantum system. The uncertainty in
can be calculated using the formula
. In Quantum physics, the Heisenberg uncertainty principle states that locating a particle in a small region of space makes the Momentum of the particle uncertain
If X is an
matrix, then the expected value of the matrix is defined as the matrix of expected values:

This is utilized in covariance matrices. In Mathematics, a matrix (plural matrices) is a rectangular table of elements (or entries) which may be Numbers or more generally In Statistics and Probability theory, the covariance matrix is a matrix of Covariances between elements of a vector
It is often useful to update a computed expected value as new data comes in. This can be done as follows, where new_value is the count-th value, and we use the previous estimate
to compute
:
![\operatorname{E}_\mathrm{new}(X) = [(count-1) \cdot \operatorname{E}_\mathrm{prev}(X) + new\_value]/count](../../../../math/7/2/a/72a158c1a1548bb91ba4a412c551c5a8.png)
When a random variable takes only values in {0,1,2,3,. . . } we can use the following formula for computing its expectation:

For example, suppose we toss a coin where the probability of heads is p. How many tosses can we expect until the first heads? Let X be this number. Note that we are counting only the tails and not the heads which ends the experiment; in particular, we can have X = 0. The expectation of X may be computed by
. This is because the number of tosses is at least i exactly when the first i tosses yielded tails. This matches the expectation of a random variable with an Exponential distribution. WikipediaWikiProject Probability#Standards for a discussionof standards used for probability distribution articles such as this one We used the formula for Geometric progression:
. In Mathematics, a geometric progression, also known as a geometric sequence, is a Sequence of Numbers where each term after the first is found