Cauchy-Schwarz Inequality

In Vector Space

For vectors in an Inner Product space,

or equivalently,

where the norm is induced by the inner product. The equality holds if and only if and are linearly dependent.

In Probability

For Random Variables , with a finite second moment,

The equality holds if and only if for some constant . This is a special case of In Vector Space as Expectation is just the inner product w.r.t the Probability Measure.

An application of this is Covariance as an Inner Product.

Proofs

First consider the probability space. WLOG, consider nonnegative r.v.s. If , then a.s., and the inequality is trivial. Otherwise, let . Then

From the inequality, the equality holds iff a.s. We can find in a more principled way.

Quadratic

Consider the quadratic:

On a complex field, we replace with where , .

Projection

We decompose as its projection onto the direction of and an orthogonal part . We have

which implies the result.