HW10 Solutions
HW10 Solutions
Problem 1. Let K # (x, x′ ) and K ∗ (x, x′ ) be two functions defined on [0, 1] × [0, 1]. Please show the
following: If K # (x, x′ ) and K ∗ (x, x′ ) are kernels, then K(x, x′ ) = K # (x, x′ ) + K ∗ (x, x′ ) is a
kernel.
Solution. To show that K(x, x′ ) = K # (x, x′ ) + K ∗ (x, x′ ) is a kernel, given that both
K # (x, x′ ) and K ∗ (x, x′ ) are kernels, we need to verify that K(x, x′ ) satisfies the definition of
a kernel, namely that it is symmetric and positive semi-definite.
Symmetry of K(x, x′ ): Since K # (x, x′ ) and K ∗ (x, x′ ) are kernels, they are symmetric, i.e.,
n X
X n n X
X n
= ci cj K # (xi , xj ) + ci cj K ∗ (xi , xj ).
i=1 j=1 i=1 j=1
Since both sums on the right-hand side are non-negative (due to the positive semi-definiteness
of K # (x, x′ ) and K ∗ (x, x′ )), their sum is also non-negative:
n X
X n
ci cj K(xi , xj ) ≥ 0.
i=1 j=1
1
Problem 2. Given the definitions of ĉĉ, U , V , λ and Y , show the following formula:
V )−1U T Y
U T U + λV
ĉ = (U
J(c) = Y T Y − Y T U c − cT U T Y + cT U T U c + λcT V c.
To find the minimizer, we take the gradient of J(c) with respect to c and set it to zero:
c = (U T U + λV )−1 U T Y .