Definition. For a scalar function
f:Rn→R
we say a contour or level set of
f
is a parameterized curve
r(t):R→Rn
such that for every point on the curve, the function value is the
same, that is, there is a fixed constant
c∈R
such that
f(r(t))=c(1)
Claim. The gradient
∇f
is orthogonal to the contour at every point.
Proof. Take the derivative of both sides of
(1) with respect to
t.
Thus the gradient is orthogonal to every tangent of the contour, so
moving along the contour moves orthogonally to the gradient. This should
make intuitive sense since the change in the function value after moving
in the direction
Δx
is approximately (to first order Taylor series approximation)
f(x+Δx)≈f(x)+∇f(t)TΔx
Therefore if we want the function value to not change (which is the
definition of a contour), we want the direction of movement to be
orthogonal to the gradient, which is precisely what we have shown
happens.
Positive definite implies Cauchy–Schwarz
A quick derivation of the Cauchy–Schwarz inequality.
Theorem. (Cauchy–Schwarz inequality). Every pair of
vectors
u,v
satisfies
⟨u,u⟩⟨v,v⟩≥⟨u,v⟩2
Proof. For vectors
u,v∈Rn, let
V:=(uv)∈Rn×2
be the matrix with
u
and $ v$ as columns.
where we use that
Θ
is symmetric positive-definite so its determinant is positive.
□
A similar line of reasoning can be used to show that the variance is
positive.
Theorem. For any random variable
X, define its variance as
Var[X]:=E[X2]−E[X]2
Then
Var[X]≥0.
The usual approach is to show that
Var[X]=E[(X−E[X])2]
and then argue that the expectation of a nonnegative quantity must be
nonnegative. Alternatively, it follows directly from
Jensen's inequality
on the convex function
f(x)=x2. We will take a different approach.
Lemma. For any random variable
X, let
μi:=E[Xi]
be its
i-th moment. Then the matrices collecting its moments up to order
n
where we use the linearity of expectation and the definition of
moments. But this is precisely the quadratic form
aTMa
for
a:=(a0,…,ar)
and
Mi,j:=μi+j, matching the definition in (2). Since
aTMa≥0
holds for any
a∈Rr+1,
M
is positive semi-definite by definition.
□
Now to prove the nonnegativity of variance, we need only to apply the
lemma for
r=1.
Proof. Take
M2=(1μ1μ1μ2)=(1E[X]E[X]E[X2]). Since
M2
is positive semi-definite its determinant is nonnegative, so we have
det(M2)=E[X2]−E[X]2≥0, showing
Var[X]≥0.
□
証明は絶対
A joke transcribed from page 9 of
『数学女子: 1』
(著者名:安田まさえ)
.