Exercise Statistics for Data Science:Kernel SVM, Übungen von Statistische Datenanalyse

Toggle sidebar
bg1
Statistics for Data Science
Lecture: Prof. Dr. Alois Pichler
Exercises: M.Sc. Ruben Schlotter
Exercise 9
Problem 1. Suppose that the random variable Xis normally distributed with mean µand
covariance matrix
ΣX
. Furthermore suppose that the random variable
Y
conditional on
X
has the
distribution
Y|X∼ N (AX +b,ΣY).
Show that
X|Y∼ N ΣA>Σ−1(Y−b)+Σ−1
Xµ,Σ
Y∼ N Aµ+b,ΣY+AΣXA>,
where Σ=Σ−1
X+A>Σ−1
YA−1.
Problem 2. Suppose that k1(x,x0)and k2(x,x0)are valid kernel functions. Show that
k(x,x0)=ck1(x,x0)
k(x,x0)=f(x)k1(x,x0)f(x0)
k(x,x0)=q(k1(x,x0))
k(x,x0)=exp (k1(x,x0))
k(x,x0)=k1(x,x0)+k2(x,x0)
k(x,x0)=k1(x,x0) · k2(x,x0)
k(x,x0)=k3(Φ(x),Φ(x0))
k(x,x0)=x>Ax 0
are also valid kernels.
Here,
c>
0,
f
is an arbitrary function,
q
is a polynomial function with nonnegative coefficients,
Φ
is a function mapping
x
into
RM
and
k3
is a valid kernel in
RM
. Furthermore
A
is a symmetric
positive semidefinite matrix.
From last year
Problem 3.
Describe a situation in which AUC and
F1
-score may give very different results and
explain why.
pf2

Unvollständige Textvorschau

Nur auf Docsity: Lade Exercise Statistics for Data Science:Kernel SVM und mehr Übungen als PDF für Statistische Datenanalyse herunter!

Statistics for Data Science

Lecture: Prof. Dr. Alois Pichler Exercises: M.Sc. Ruben Schlotter

Exercise 9

Problem 1. Suppose that the random variable X is normally distributed with mean μ and covariance matrix ΣX. Furthermore suppose that the random variable Y conditional on X has the distribution Y | X ∼ N (AX + b, ΣY ).

Show that

X | Y ∼ N

A>Σ−^1 (Y − b) + Σ− X^1 μ

Y ∼ N

Aμ + b, ΣY + AΣX A>

where Σ =

Σ− X^1 + A>Σ Y− 1 A

Problem 2. Suppose that k 1 (x, x′) and k 2 (x, x′) are valid kernel functions. Show that

k(x, x′) = ck 1 (x, x′) k(x, x′) = f (x)k 1 (x, x′) f (x′) k(x, x′) = q (k 1 (x, x′)) k(x, x′) = exp (k 1 (x, x′)) k(x, x′) = k 1 (x, x′) + k 2 (x, x′) k(x, x′) = k 1 (x, x′) · k 2 (x, x′) k(x, x′) = k 3 (Φ(x), Φ(x′)) k(x, x′) = x>^ Ax′

are also valid kernels. Here, c > 0 , f is an arbitrary function, q is a polynomial function with nonnegative coefficients, Φ is a function mapping x into RM^ and k 3 is a valid kernel in RM^. Furthermore A is a symmetric positive semidefinite matrix.

From last year

Problem 3. Describe a situation in which AUC and F 1 -score may give very different results and explain why.

Problem 4. Using the WDBC dataset provided on the website and classify using the soft margin SVM method. Calculate the performance measures discussed last week and plot the ROC curve by varying the regularization parameter λ in

min in w,b

n

’^ n

i= 1

max

0 , 1 − yi (wT^ xi − b)

λ 2

‖w‖^2.

You may use a kernel function, as discussed in Section 5.8.2 and 5.8.3 in the script.