Expected Value
In questa pagina 6
The density of the r.v. contains all the information on the variability of the r.v. within its set of values . In practice one looks for summaries of the complete information that can give a partial but still useful description of the variability. The expected value is the simplest such "summary" number for r.v.'s and it is an index of "centrality": it gives a quantitative idea of the "center" around which the r.v. takes values.
Motivation
Example. Giovanni has the following academic record: . The most common summary of performance is the arithmetic mean:
Interpretation. The grades of Giovanni are repeated observations of a r.v. = "Giovanni's grade" taking values in the alphabet . The empirical density of is (see Empirical Probabilities and Diagnostic TestsAn empirical probability measure assigns to each event its observed relative frequency over n repetitions of an experiment, and for diagnostic tests it yields sensitivity and specificity from a contingency table.Empirical Probabilities and Diagnostic Tests →) Note that the arithmetic mean can be written This example motivates the introduction of the parameter called expected value.
Definition
Definition. Let be a discrete r.v. with alphabet and discrete density . The expected value of is
Remark. If is finite, is always well defined. If is countably infinite, then is well defined if the series converges.
Exercise (on the page). Show that can be written as , where is the generalised density. (Hint, not on the page: , the sifting property of the delta.)
Examples.
- : .
- : .
- : (two derivations below).
- : (see Geometric Random VariableThe geometric random variable counts the trial at which the first success occurs in independent binary trials; it has infinite alphabet, density (1-p)^(k-1) p, mean 1/p and the memoryless property.Geometric Random Variable →).
Fundamental theorem
Proof. The last step holds because the sets partition (so the double sum runs once over every ), and on we have .
Remark. In practice this result is not relevant since we do not have access to and , but the result is essential to understand the properties of the expected value. (The proof is written as a sum over , i.e. for a discrete sample space.)
Properties of the expected value
1. Homogeneity. For any , . Proof. By the fundamental theorem, .
2. Additivity. For , . Proof. .
Remark. 1 + 2 are equivalent to (linearity of the expected value).
Degenerate r.v.'s. It is convenient to include in the definition of random variables the degenerate case where takes only one (constant) value: The alphabet contains only one point, , and the discrete density is all concentrated at : . The DF is . Finally Since for all , the expectation can be written , trivial but useful.
Remark. For all r.v. and real numbers : , where is interpreted as a degenerate r.v.
3. Bounds. Proof. ; now multiply by everywhere and add over (the weights add up to 1).
Expected value of the binomial
Exercise. Compute for , with density . The term vanishes, so the sum starts from , where . Pull out and write : since the last sum is the sum of a density over its whole alphabet, i.e. equal to .
Alternative derivation. Recall that can be obtained as with for . By additivity of the expected value,
Mechanical interpretation of
Let , . Consider the alternative graphical representation of the density: dots on the real line at the points , with size proportional to . Interpret the dots as masses of kg, for a total mass of 1 kg. The barycenter of the system of masses is found by imposing the condition that the algebraic sum of moments is zero, therefore So is the center of mass of the density. See also Functions of Random Variables and LOTUSA function g(X) of a discrete random variable is again a discrete random variable whose density is obtained by summing p_X over the preimage, and the LOTUS computes E(g(X)) directly from p_X without finding the density of g(X).Functions of Random Variables and LOTUS → and VarianceThe variance is the expected squared deviation from the expected value and measures how spread out a random variable is; it is non-negative, zero only for constants, scales with the square of a multiplier, ignores shifts, and equals E(X^2) minus the square of E(X).Variance →.
Versione ripasso
Definition. ; always defined if is finite, for countably infinite if the series converges. It is the "center" of the density; it generalises the arithmetic mean with empirical density.
Fundamental theorem. (group the by the level sets ).
Properties.
- . 2. . So (linear).
- Degenerate : , , ; .
- .
Examples. : . : . : , either by cancelling against , shifting the index (the remaining sum is a density, equal to 1) or by , , plus additivity. : .
Mechanical meaning: barycenter of masses at : .
Typical mistakes: forgetting to check convergence of the series when is infinite; dropping the constant when computing .