The expected value or expectation of a Random variable is a generalization of a weighted average over all possible values the variable can take. It is what the word "mean" typically refers to in the context of statistics, though there's many other possible meanings, such as the arithmetic mean. It is the first raw moment of the Probability distribution. The name "expectation" refers to both the value itself and the operator that is applied onto . It is also commonly denoted with the letter .
The name can be misleading: the expected value is not the most likely value (that would be the mode). It is strictly theoretical and may not even be an allowed value of the random variable: for instance, the expected value of a fair six-sided die is 3.5, which is not even on the die.
The definition differs between discrete and continuous variables, and also between countable and uncountable outcomes.
Discrete variable with finite outcomes#
Given a discrete random variable with a finite set of possible outcomes , with a Probability mass function , the expected value is
which is just the average weighted by the probability of an outcome.
Discrete variable with countably infinite outcomes#
In the same conditions as above, but with a countably infinite set of outcomes , the expected value can be easily defined by extending the sum as an infinite series:
The Riemann series theorem states that the convergence value of some series with both positive and negative terms depends on the order in which the terms are given in. Since random variables are just that, random, it isn't possible to determine what order the terms are given in. Thus, this definition only holds if the series converges absolutely, in which case the order is not important. If the series is not absolutely convergent, this definition may not hold. If it doesn't (i.e. the series diverges), it is said that the variable does not have finite expectation.
Continuous variable#
Given a continuous random variable with a Probability density function , the expected value is
Similarly to the series above, integrals may diverge, in which case the variable does not have finite expectation.
Multiple variables#
The expected value is not defined for multiple variables. However, it is possible to find the expected value of one variable among many from the joint distribution function.
For continuous random variables with JDF , the expected value of is
Properties#
The expectation has some useful properties:
- If then .
- It is linear: , where and are constants. This follows from the linearity of a series or integral.
- It is monotonous: If , then .
- If , then .
- If then .
- If for a constant , then . As a consequence, since the expectation is a constant, the expectation operator is idempotent: .
- in general. It is guaranteed to be equal if and are independent variables, but could theoretically be true even if they are dependent.
Expected value arrays#
When dealing with a random vector , the expected value vector or mean vector is the vector of expected values:
In this case, the linearity properties looks like
where is an matrix and is an -dimensional vector. Similar nomenclature applies to the expected value matrix.