Expected Value
Suppose that is a discrete random variable. Then we define
Expectation of a Function of a Discrete Random Variable
If is a discrete random variable with probability mass function and , then
whenever the sum is defined.
Moment
The -th moment of a random variable is defined using expected value as , whenever this expectation exists.
Squared Expectation
Suppose is a random variable such that and for all other values. Compute and show it's not equal to
Recall that is simply the composition of the function and the function , denote so that may only take on values and and also and for all other values on the other hand so that so
Expectation is Linear
Suppose that is a random variable and that . Then is also a random variable and
Expectation is Linear for Finite Sums
If have finite expectations and , then
Let
By expectation as an integral,
We first handle two summands. If and have finite expectations, then by additivity of integration,
Also, for ,
because multiplying a function by a constant multiplies its integral by that constant.
Applying these two facts repeatedly to the finite sum gives
Variance
Let be a random variable. The variance of is
whenever this expected value is defined.
Variance as Squares of Expectation
From the definition of variance,
Variance is Not Linear
By the definition of variance,
Covariance
If and have finite second moments, their covariance is
Covariance as Expectation Product
If and have finite second moments, then by covariance,
Expand the product and use linearity of expectation.
Independent Random Variables Factor Expectation
If and are independent and the expectations exist, then
In the discrete case,
which factors into the product of the two expectations. The continuous proof is the analogous factorization of the product density or product measure.
Correlation Coefficient
If and , the correlation coefficient of and is the normalized covariance
Cauchy Schwarz Inequality for Random Variables
If and have finite second moments, then
If , then almost surely and the result is immediate. Otherwise the quadratic has non-positive discriminant as a function of .
Correlation Coefficient is Bounded
If the correlation coefficient is defined, then
Apply Cauchy Schwarz to the centered variables and .
Standard Deviation
Given a random variable , we define the standard deviation of that random variable using variance: