Sale!

Homework 2 AMATH 563 solved

Original price was: $30.00.Current price is: $25.00.

Category:

Description

5/5 - (1 vote)

Problems
Theory

1. Suppsoe Ξ“ : 𝒳 ×𝒳 β†’ R is a PDS kernel. Prove that βˆ€π‘₯, π‘₯β€² ∈ 𝒳 it holds that |Ξ“(π‘₯, π‘₯β€²
)|
2 ≀ Ξ“(π‘₯, π‘₯)Ξ“(π‘₯
β€²
, π‘₯β€²
).
2. Given a kernel 𝐾 on 𝒳 define its normalized version as
𝐾¯ (π‘₯, π‘₯β€²
) =
⎧
βŽͺ⎨
βŽͺ⎩
0 if 𝐾(π‘₯, π‘₯) = 0 or 𝐾(π‘₯
β€²
, π‘₯β€²
) = 0
𝐾(π‘₯, π‘₯β€²
)
βˆšοΈ€
𝐾(π‘₯, π‘₯)
βˆšοΈ€
𝐾(π‘₯
β€²
, π‘₯β€²)

Otherwise.
Show that if 𝐾 is PDS then so is 𝐾¯ .
3. Show that the following kernels on R
𝑑 are PDS:
β€’ Polynomial kernel: 𝐾(π‘₯, π‘₯β€²
) = (︁
π‘₯
𝑇 π‘₯
β€² + 𝑐
)︁𝛼
for 𝑐 > 0 and 𝛼 ∈ N.
β€’ Exponential kernel: 𝐾(π‘₯, π‘₯β€²
) = exp(π‘₯
𝑇 π‘₯
β€²
).

β€’ RBF kernel: 𝐾(π‘₯, π‘₯β€²
) = exp(βˆ’π›Ύ
2β€–π‘₯ βˆ’ π‘₯
β€²β€–
2
2
).
4. Let Ξ© βŠ† R
𝑑 and let {πœ“π‘—}
𝑛
𝑗=1 be a sequence of continuous functions on Ξ© and {πœ†π‘—}
𝑛

𝑗=1 a sequence of
non-negative numbers. Show that 𝐾(π‘₯, π‘₯β€²
) = βˆ‘οΈ€π‘›
𝑗=1 πœ†π‘—πœ“π‘— (π‘₯)πœ“π‘— (π‘₯
β€²
) is a PDS kernel on Ξ©.

5. Show that: (i) if 𝐾 and 𝐾′ are two reproducing kernels for an RKHS β„‹, then they have to be the
same. (ii) the RKHS of a PDS kernel 𝐾 is unique.

Computation

Download the MNIST training and test .csv files from Canvas and load them on your computer. I suggest
you use Python or MATLAB for this excercise.
β€’ Use Principle Component Analysis (PCA) on the training set to reduce the dimension of your input.
How many modes do you need to preserve 95% of the variance in the training set?

β€’ Extract the digits 1 and 9 from the training set. Use kernel regression to design and train a classifier
to distinguish these digits using three different kernels of your choosing (I suggest RBF, Polynomila,
and linear). It is a good idea to use PCA to reduce your input dimensions here.

Also, you may use
cross validation to tune your kernel/regularization/nugget parameters if you need them. Present the
training and test error of your method.
β€’ Repeat the above experiment for the digits (3, 8), (1, 7), and (5, 2).

β€’ Write a report of a maximum of four pages, outlining your results and findings.