lacunary - Mathnotes

Expectation

Expected Value

Definition: Expected Value (also: expectation) \@{expected-value}

Let X be a random variable with a probability distribution f(x). The mean or expected value of X is

μ=E(X)=xxf(x)

if X is @discrete, and

μ=E(X)=xf(x)dx

if X is continuous.

The expected value is the "average value" we expect the random variable to take in the long run.

Note that in the discrete case, the expected value is the dot product of the vector of x values and corresponding vector of f(x) values.

Variance

Definition: Standard Deviation \@{standard-deviation}

The positive square root of the variance, σ, is called the standard deviation of X.

Intuition \@{variance-interpretation}

Variance and standard deviation tell us about how spread out the values of X are around its mean.

Theorem: Jensen's Inequality \@{jensens-inequality}

Let X be a random variable with finite expectation E[X], and let φ:RR be a convex function. Then

φ(E[X])E[φ(X)].(a)

If φ is concave, the inequality reverses:

φ(E[X])E[φ(X)].

In either case, equality holds if and only if φ is @affine on the support of X, or X is almost surely constant.

Proof \@{proof-of-jensens-inequality}

We will proceed by induction. Assume X is discrete and takes on n values x1,,xn with probabilities p1,,pn.

Base step, for n=2: Assume X takes on two distinct values, x1 and x2, with probabilities p1=λ,p2=1λ. Then we want to show that

φ(E[X])E[φ(X)]φ(λx1+(1λ)x2)λφ(x1)+(1λ)φ(x2).

The last line is just the definition of a convex function, so it's obviously true.

Inductive step: Assume that (a) holds for any n1 points. Take n points with weights pi summing to 1. Let

w=i=1n1pi=1pn.

Assuming w>0, let qi=pi/w. Then, qi>0,qi=1, so the qi form an (n1)-point distribution. Now, we'll rewrite E[X] to bundle the first n1 terms separately from the last term:

E[X]=i=1npixi=wi=1n1qixi+pnxn=wx+pnxn,(b)

where x=i=1n1qixi. Now, because w+pn=1, (b) is a two-point convex combination of x and xn. From our base case,

φ(i=1npixi)=φ(wx+pnxn)wφ(x)+pnφ(xn).

Now, from our inductive hypothesis we have that

φ(x)=φ(i=1n1qixi)i=1n1qiφ(xi).

Tying it all together we have

φ(E[X])=φ(i=1npixi)wi=1n1qiφ(xi)+pnφ(xn)=i=1n1piφ(xi)+pnφ(xn)=i=1npiφ(xi)=E[φ(X)].

TODO: show the equality case only holds when the support is affine.