Aditya Makkar
Kernels - Part 0

Introduction

The word "kernel" is heavily overloaded, but for our purposes it is, intuitively, a similarity measure that can be thought of as an inner product in some feature space. Kernel methods provide an elegant, theoretically well-founded, and powerful approach to solving many learning problems.

We usually have the following framework: The input space X\mathcal{X} which contains our observations/inputs/features is either not rich enough (for example, if there is no linear boundary separating the two classes in a binary classification problem) or not convenient (for example, if our inputs are strings), and therefore we want to work is some other space we call feature space H.\mathcal{H}. Suppose we have a map which takes our inputs from X\mathcal{X} to H\mathcal{H}

Φ ⁣:X→H.\begin{aligned} \Phi \colon \mathcal{X} \to \mathcal{H}.\end{aligned}

Then the class of kernels K:H×H→CK : \mathcal{H} \times \mathcal{H} \to \mathbb{C} we are interested in are those for which is it possible to write

K(x,y)=⟨Φ(x),Φ(y)⟩,x,y∈X.\begin{aligned} K(x,y) = \left\langle \Phi(x), \Phi(y) \right\rangle, \quad x,y \in \mathcal{X}.\end{aligned}

What kind of functions KK admit such a representation? We aim to be able to answer this question and many others in this series of articles on kernels.

In this blog post, I aim to introduce the necessary concepts from analysis, linear algebra, and functional analysis so as to understand Reproducing Kernel Hilbert Spaces (RKHS) and a few of their basic properties. In the next blog post I will discuss the kernel trick and some important theorems like Mercer's theorem and Representer theorem.

Background

A topic like this requires quite a bit of background before we can get to the interesting results like the one above. It's always easy to get lazy and assume all the necessary background from the reader and get straight to the meat, but I want to write an article which I would have found useful had I had it when I started learning about kernel theory. With that being said, I am under no illusion and believe that a much better way to learn this background would be to read a functional analysis text if you have the time.

Linear Spaces

Definition 1: A linear space, or alternatively a vector space, over a field F\mathbb{F} (F\mathbb{F} is R\mathbb R or C\mathbb{C} for our purposes) is a set VV of elements called vectors (the elements of F\mathbb{F} are called scalars) satisfying:

  1. To every pair, xx and yy, of vectors in VV there corresponds a vector x+yx+y, called the sum of xx and yy, in such a way that

    1. addition is commutative, x+y=y+xx+y = y+x,

    2. addition is associative, x+(y+z)=(x+y)+zx+(y+z) = (x+y)+z,

    3. there exists in VV a unique vector 00 such that x+0=xx+0=x for every vector x∈Vx \in V, and

    4. to every vector x∈Vx \in V there corresponds a unique vector −x-x such that x+(−x)=0.x+(-x)=0.

  2. To every pair, α∈F\alpha \in \mathbb{F} and x∈Vx \in V, there corresponds a vector αx∈V\alpha x \in V, called the product of α\alpha and xx, in such a way that

    1. multiplication by scalars is associative, i.e., if β∈F,\beta \in \mathbb{F}, then α(βx)=(αβ)x\alpha(\beta x) = (\alpha \beta)x, and

    2. 1x=x1x = x for every vector xx, where 11 denotes the multiplicative identity of the field F.\mathbb{F}.

  3. Finally the distributive properties

    1. α(x+y)=αx+αy\alpha(x+y) = \alpha x + \alpha y, and

    2. (α+β)x=αx+βx(\alpha + \beta) x = \alpha x + \beta x.

Examples

  1. A vector space must contain at least one element, namely 0.0. In fact, the set {0}\{0\} is a vector space over any field F.\mathbb{F}. This is called the trivial vector space.

  2. For any n∈Nn \in \mathbb N, the Euclidean space Rn\mathbb R^n is a vector spaces over R\mathbb R.

  3. For any n∈Nn \in \mathbb N, Cn\mathbb{C}^n is a vector spaces over R\mathbb R or C.\mathbb{C}.

    An interesting question: Is there a way of defining multiplication of real numbers by complex numbers so as to make the additive group R\mathbb{R} a vector space over C\mathbb{C}? (See here for an answer)

  4. The set of all polynomials, with complex coefficients, in one variable is a vector space over C.\mathbb{C}.

  5. The set C[0,1]C[0,1] of all continuous complex-valued functions on the unit interval [0,1][0,1] is a vector space over C.\mathbb{C}.

Definition 2: A linear transformation of a linear space VV into a linear space WW is a mapping T:V→WT: V \to W such that
T(αx+βy)=αT(x)+βT(y),(x,y∈V; α,β∈F).\begin{aligned} T(\alpha x + \beta y) = \alpha T(x) + \beta T(y), \quad (x,y \in V;\; \alpha, \beta \in \mathbb{F}).\end{aligned}
Definition 3: In the special case in which WW above is a field, TT is called a linear functional.

Note that we often write TxTx instead of T(x)T(x), if TT is linear, hinting that a linear transformation mapping a finite dimensional vector to another finite dimensional vector space is equivalent to a matrix vector product.

Definition 4: Let μ\mu be a positive measure on an arbitrary measurable space (X,F).(X, \mathcal{F}). We define L1(μ)L^1(\mu) to be the collection of all complex measurable functions ff on XX for which
∫X∣f∣ dμ<∞.\begin{aligned} \int_X |f| \,\mathrm{d}\mu < \infty.\end{aligned}

It can be shown that for every f,g∈L1(μ)f, g \in L^1(\mu) and for every α,β∈C\alpha, \beta \in \mathbb{C}, we have αf+βg∈L1(μ)\alpha f + \beta g \in L^1(\mu), and

∫X(αf+βg) dμ=α∫Xf dμ+β∫Xg dμ.\begin{aligned} \int_X (\alpha f + \beta g) \,\mathrm{d}\mu = \alpha \int_X f \,\mathrm{d}\mu + \beta \int_X g \,\mathrm{d}\mu.\end{aligned}

Thus, L1(μ)L^1(\mu) is a vector space, and the mapping F ⁣:L1(μ)→RF\colon L^1(\mu) \to \mathbb R defined by

F(f)=∫X∣f∣ dμ,f∈L1(μ)\begin{aligned} F(f) = \int_X |f| \,\mathrm{d}\mu, \quad f \in L^1(\mu)\end{aligned}
is a linear functional.

Inner Products and Norms

Definition 5: Let VV be a linear space over C\mathbb{C}, an inner product on VV is a function ⟨⋅,⋅⟩ ⁣:V×V→C\langle \cdot , \cdot \rangle \colon V \times V \to \mathbb{C} such that for all α,β∈C\alpha, \beta \in \mathbb{C}, and all x,y,z∈Vx,y,z \in V, the following are satisfied:

  1. Linearity in the first argument: ⟨αx+βy,z⟩=α⟨x,z⟩+β⟨y,z⟩\langle \alpha x + \beta y, z \rangle = \alpha \langle x,z \rangle + \beta \langle y,z \rangle,

  2. Conjugate symmetry: ⟨x,y⟩=⟨y,x⟩‾\left\langle x,y \right\rangle = \overline{\left\langle y,x \right\rangle},

  3. Positivity: ⟨x,x⟩≥0\left\langle x,x \right\rangle \geq 0,

  4. If ⟨x,x⟩=0\left\langle x,x \right\rangle = 0, then x=0x=0.

A function satisfying only the first three properties is called a semi-inner product on V.V.

An immediate consequence of this definition: for any y∈Vy \in V, the mapping F ⁣:V→CF\colon V \to \mathbb{C} defined by

F(x)=⟨x,y⟩,x∈V\begin{aligned} F(x) = \left\langle x,y \right\rangle, \quad x \in V\end{aligned}

is a linear functional on VV.

Definition 6: If VV be a linear space over C\mathbb{C}, a norm on VV is a non-negative function ∥⋅∥:V→R\left\lVert \cdot \right\rVert : V \to \mathbb R such that for all α∈C\alpha \in \mathbb{C}, and all x,y∈Vx,y \in V, the following are satisfied:

  1. Subadditivity: ∥x+y∥≤∥x∥+∥y∥\left\lVert x+y \right\rVert \leq \left\lVert x \right\rVert + \left\lVert y \right\rVert,

  2. Absolutely homogenous: ∥αx∥=∣α∣∥x∥\left\lVert \alpha x \right\rVert = |\alpha| \left\lVert x \right\rVert,

  3. Positive definite: ∥x∥=0 ⟹ x=0\left\lVert x \right\rVert = 0 \implies x = 0.

Given an inner product, we can define a norm as follows:

∥x∥=⟨x,x⟩.\begin{aligned} \left\lVert x\right\rVert = \sqrt{\left\langle x,x \right\rangle}.\end{aligned}

A classic result extremely useful in many proofs:

Theorem 1 (Cauchy-Schwarz inequality): In an inner product space VV,
∣⟨x,y⟩∣≤∥x∥∥y∥,x,y∈V.\begin{aligned} |\left\langle x,y \right\rangle| \leq \left\lVert x \right\rVert \lVert y \rVert, \quad x,y \in V.\end{aligned}
Equality holds for y=αxy = \alpha x or y=0y=0.

The proof is not too difficult.

Definition 7: The virtue of norm on a vector space VV is that
d(x,y):=∥x−y∥,x,y∈V\begin{aligned} d(x,y) := \left\lVert x-y \right\rVert, \quad x,y \in V\end{aligned}
defines a metric on VV so that (V,d)(V,d) becomes a metric space.

I will often write just VV instead of (V,d)(V, d) when it's clear from context what the metric dd is.

Definition 8: If 0<p<∞0 < p < \infty, ff is a complex measurable function on XX, and μ\mu is a nonnegative measure on XX, define
∥f∥p:=(∫X∣f∣p dμ)1/p\begin{aligned} \left\lVert f \right\rVert_p := \left( \int_X |f|^p \,\mathrm{d}\mu \right)^{1/p}\end{aligned}
and let Lp(μ)L^p(\mu) consist of all ff for which ∥f∥p<∞.\left\lVert f \right\rVert_p < \infty. We call ∥f∥p\left\lVert f \right\rVert_p the Lp−L^p-norm of f.f.

Hilbert Spaces

Definition 9: An inner product space, or alternatively a pre-Hilbert space, is a linear space with an inner product defined on it.

We need the concept of completeness to define Hilbert space. But before that let me define Cauchy sequences.

Definition 10: Given a metric space (M,d)(M, d), a sequence (xn)n∈N(x_n)_{n \in \mathbb N} of elements in MM is called a Cauchy sequence if for every positive real number ε>0\varepsilon > 0 there exists a positive integer N∈NN \in \mathbb N such that m,n>Nm, n > N implies that d(xm,xn)<ε.d(x_m, x_n) < \varepsilon.

Recall that we say a sequence (xn)n∈N(x_n)_{n \in \mathbb N} in a metric space (M,d)(M, d)converges if there exists a point x∈Mx \in M with the following property: for every ε>0\varepsilon > 0 there exists a positive integer N∈NN \in \mathbb N such that n>Nn > N implies that d(xn,x)<ε.d(x_n, x) < \varepsilon.

It can be shown that every convergent sequence is a Cauchy sequence: Let the sequence (xn)n∈N(x_n)_{n \in \mathbb N} in a metric space (M,d)(M, d) converge to x∈M.x \in M. If ε>0\varepsilon > 0, there is an integer N∈NN \in \mathbb N such that d(xn,x)<εd(x_n, x) < \varepsilon for all n>N.n > N. Hence

d(xn,xm)≤d(xn,x)+d(x,xm)<2ε\begin{aligned} d(x_n, x_m) \leq d(x_n, x) + d(x, x_m) < 2 \varepsilon\end{aligned}
for n,m>N.n,m > N. Thus (xn)n∈N(x_n)_{n \in \mathbb N} is a Cauchy sequence.

The converse is not necessarily true. But if it holds in some space, we anoint the space with a special name.

Definition 11: A metric space (M,d)(M, d) is called complete if every Cauchy sequence of points in MM has a limit that is also in MM or, equivalently, if every Cauchy sequence in MM converges in M.M.
Definition 12: A pre-Hilbert space is called a Hilbert space if it is complete in the metric induced by the norm induced by the inner product.

Examples

  1. For any n∈Nn \in \mathbb N the sets Rn\mathbb R^n and Cn\mathbb{C}^n are Hilbert spaces if we define the inner product to be the usual inner product ⟨x,y⟩:=∑i=1nxiyi‾.\left\langle x, y \right\rangle := \sum_{i=1}^n x_i \overline{y_i}.

  2. The set C[0,1]C[0,1] of all continuous complex functions on the unit interval [0,1][0,1] defined above is an inner product space if we define

    ⟨f,g⟩:=∫01f(x)g(x)‾ dx,\begin{aligned} \left\langle f,g \right\rangle := \int_0^1 f(x) \overline{g(x)} \,\mathrm{d} x,\end{aligned}

    but is not a Hilbert space. To see the last claim, consider the sequence of continuous functions {fn}\{f_n\} defined by

    fn(x)=max⁡{(2x)n,1}.\begin{aligned} f_n(x) = \max \{(2x)^n, 1\}.\end{aligned}

    It is a Cauchy sequence that does not converge to any point in C[0,1]C[0,1].

  3. L2(μ)L^2(\mu) is a Hilbert space, with inner product

    ⟨f,g⟩:=∫Xf g‾ dμ.\begin{aligned} \left\langle f,g \right\rangle := \int_X f \, \overline{g} \,\mathrm{d}\mu.\end{aligned}
  4. The space of square-summable real-valued sequences, namely

    ℓ2(N):={(xn)n∈N : xn∈R, ∑nxn2<∞}.\begin{aligned} \ell^2(\mathbb N) := \left\{ (x_n)_{n \in \mathbb N} \; : \; x_n \in \mathbb R,\, \sum_n x_n^2 < \infty \right\}.\end{aligned}

    This set, when endowed with the inner product ⟨x,y⟩:=∑n∈Nxnyn\left\langle x,y \right\rangle := \sum_{n \in \mathbb N} x_n y_n, defines a Hilbert space. It will play an important role in our discussion of eigenfunctions for Reproducing Kernel Hilbert spaces.

Definition 13: Consider a linear space F\mathcal{F} of functions each of which is a mapping from a set XX into F.\mathbb{F}. For x∈Xx \in X, a linear evaluation functional is a linear functional ExE_x that is defined as
Ex(f)=f(x),f∈F.\begin{aligned} E_x(f) = f(x), \quad f \in \mathcal{F}.\end{aligned}

In other words, a linear evaluation functional with respect to x∈Xx \in X evaluates each function at x.x.

In general, the evaluation functional is not continuous. This means we can have fn→ff_n \to f but Ex(fn)E_x(f_n) does not converge to Ex(f).E_x(f). Intuitively, this is because Hilbert spaces can contain very unsmooth functions. We will later consider a special type of Hilbert space, Reproducing Kernel Hilbert Space where all evaluation functionals are continuous.

A lemma that will be useful later on:

Lemma 1: Let H\mathcal{H} be a Hilbert space and L ⁣:H→FL\colon \mathcal{H} \to \mathbb{F} be a linear functional. The following statements are equivalent:

  1. LL is continuous.

  2. LL is continuous at 0.0.

  3. LL is continuous at some point.

  4. LL is bounded, i.e., there is a constant c>0c > 0 such that ∣L(f)∣≤c∥f∥|L(f)| \leq c \left\lVert f\right\rVert for every f∈H.f \in \mathcal{H}.

It is clear that (1) ⟹ (2) ⟹ (3)(1) \implies (2) \implies (3), and (4) ⟹ (2).(4) \implies (2). Let's show that (3) ⟹ (1)(3) \implies (1), and (2) ⟹ (4).(2) \implies (4).

(3) ⟹ (1)(3) \implies (1): Suppose LL is continuous at f∈Hf \in \mathcal{H} and gg is any point in H.\mathcal{H}. If gn→gg_n \to g in H\mathcal{H}, then gn−g+f→f.g_n - g + f \to f. By assumption

L(f)=lim⁡n→∞L(gn−g+f)=lim⁡n→∞L(gn)−L(g)+L(f).\begin{aligned} L(f) = \lim_{n \to \infty} L(g_n - g + f) = \lim_{n \to \infty} L(g_n) - L(g) + L(f).\end{aligned}
Hence L(g)=lim⁡n→∞L(gn).L(g) = \lim_{n \to \infty} L(g_n).

(2) ⟹ (4)(2) \implies (4): The definition of continuity at 00 implies that L−1({α∈F:∣α∣<1})L^{-1}(\{\alpha \in \mathbb{F} : |\alpha| < 1\}) contains an open ball centered at 0.0. Let δ>0\delta > 0 be the radius of that open ball centered at 0.0. Then for f∈Hf \in \mathcal{H} and ∥f∥<δ\left\lVert f\right\rVert < \delta we have ∣L(f)∣<1.|L(f)| < 1. If ff is an arbitrary element of H\mathcal{H} and ε>0\varepsilon > 0, then

∥δf∥f∥+ε∥<δ.\begin{aligned} \left\lVert \frac{\delta f}{\left\lVert f \right\rVert + \varepsilon} \right\rVert < \delta.\end{aligned}
Hence,
1>∣L(δf∥f∥+ε)∣=δ∥f∥+ε∣L(f)∣.\begin{aligned} 1 > \left\lvert L\left( \frac{\delta f}{\left\lVert f\right\rVert + \varepsilon} \right) \right\rvert = \frac{\delta }{\left\lVert f \right\rVert + \varepsilon} |L(f)|.\end{aligned}
Letting ε→0\varepsilon \to 0 we see that (4)(4) holds with c=1/δ.c = 1/\delta.

Orthonormal Bases

We generalize the idea of orthonormal basis that is familiar from linear algebra to infinite dimensional case. This will be needed when we discuss Mercer's theorem.

Definition 14: A collection of vectors {vα : α∈A}\{v_{\alpha} \, : \, \alpha \in A \} in a Hilbert space H\mathcal{H} for some index set AA is called orthonormal if it satisfies ⟨vα,vβ⟩=δαβ\left\langle v_{\alpha},v_{\beta}\right\rangle = \delta_{\alpha \beta} where δαβ\delta_{\alpha \beta} is the Kronecker delta, which equals 11 if α=β\alpha = \beta and 00 otherwise.
Definition 15: A collection of vectors {vα : α∈A}\{v_{\alpha} \, : \, \alpha \in A \} in a Hilbert space H\mathcal{H} is called complete if for any u∈Hu \in \mathcal{H}, ⟨u,vα⟩=0\left\langle u, v_{\alpha} \right\rangle = 0 for all α∈A\alpha \in A implies that u=0.u = 0.
Definition 16: An orthonormal basis is a complete orthonormal system.

Note, we can also define an orthonormal basis as a maximal orthonormal set in H.\mathcal{H}. To say {vα}α∈A\{v_{\alpha}\}_{\alpha \in A} is maximal means that no vector of H\mathcal{H} can be added to {vα}α∈A\{v_{\alpha}\}_{\alpha \in A} in such a way that the resulting set is still orthonormal. This happens precisely when there is no u≠0u \neq 0 in H\mathcal{H} that is orthogonal to every element of {vα}α∈A.\{v_{\alpha}\}_{\alpha \in A}.

Separable Hilbert Spaces

Another key idea we need is that of separability. Let us define that now.

Definition 17: A topological space is called separable if it contains a countable, dense subset; that is, there exists a sequence (xn)n∈N(x_{n})_{n \in \mathbb N} of elements of the space such that every nonempty open subset of the space contains at least one element of the sequence.

The notion of separability is closely related to the second-countability of a topological space. Recall that a space is second-countable if it has a countable basis for its topology. It is easy to see that a second-countable space is separable. For a metric space, the converse also holds, and thus the two notions are equivalent.

Definition 18: A Hilbert space is separable if and only if it has a countable orthonormal basis. It follows that any separable, infinite-dimensional Hilbert space is isometric to the space ℓ2(N)\ell^2(\mathbb N) of square-summable sequences.

We will be dealing with separable Hilbert spaces in our discussion.

Riesz Representation Theorem

We now come to a very important theorem called the Riesz representation theorem. The name Riesz has many theorems attached to it, but the one relevant to us is the following:

Theorem 2: For each continuous linear functional LL on a Hilbert space H\mathcal{H}, there exists a unique g∈Hg \in \mathcal{H} such that
L(f)=⟨f,g⟩,f∈H.\begin{aligned} L(f) = \left\langle f,g \right\rangle, \quad f \in \mathcal{H}.\end{aligned}

I'll skip the proof as it's not easy and will unnecessarily make this article abstruse.

Side-note: In the mathematical treatment of quantum mechanics, this theorem can be seen as a justification for the popular bra–ket notation.

Reproducing Kernel Hilbert Spaces (RKHS)

Definition 19: Let X\mathcal{X} be a set. We will call a set H\mathcal{H} of functions from X\mathcal{X} to F\mathbb{F} a Reproducing Kernel Hilbert Space (RKHS) on X\mathcal{X} if

  1. H\mathcal{H} is a vector space,

  2. H\mathcal{H} is endowed with an inner product, ⟨⋅,⋅⟩\langle\cdot,\cdot\rangle, with respect to which H\mathcal{H} is a Hilbert space,

  3. for every x∈Xx \in \mathcal{X}, the linear evaluation functional Ex:H→FE_x : \mathcal{H} \to \mathbb{F}, is bounded (or, equivalently, continuous, as dictated by Lemma-1).

If H\mathcal{H} is an RKHS on X\mathcal{X}, then an application of the Riesz representation theorem shows that the linear evaluation functional is given by the inner product with a unique vector in H.\mathcal{H}. Therefore, for each x∈Xx \in \mathcal{X}, there exists a unique vector kx∈Hk_x \in \mathcal{H}, such that for every f∈Hf \in \mathcal{H},

f(x)=Ex(f)=⟨f,kx⟩.\begin{aligned} f(x) = E_x(f) = \left\langle f,k_x \right\rangle.\end{aligned}
Definition 20: The function kxk_x just defined is called the reproducing kernel for the point x.x. The function K ⁣:X×X→FK\colon \mathcal{X} \times \mathcal{X} \to \mathbb{F} defined by
K(x,y)=ky(x)\begin{aligned} K(x,y) = k_y(x)\end{aligned}
is called the reproducing kernel for H.\mathcal{H}.

Note that we have

K(x,y)=ky(x)=⟨ky,kx⟩=⟨ky,kx⟩‾=K(y,x)‾.\begin{aligned} K(x,y) = k_y(x) = \left\langle k_y, k_x\right\rangle = \overline{\left\langle k_y, k_x\right\rangle} = \overline{K(y,x)}.\end{aligned}

Also,

∥Ey∥2=∥ky∥2=⟨ky,ky⟩=K(y,y).\begin{aligned} \left\lVert E_y \right\rVert^2 = \left\lVert k_y \right\rVert^2 = \left\langle k_y, k_y \right\rangle = K(y,y).\end{aligned}

Example

The first question that comes to mind is if any reproducing kernel Hilbert spaces exist. The following example answers this question in the affirmative.

We saw before that Cn\mathbb{C}^n is a Hilbert space. We can show that Cn\mathbb{C}^n is in fact an RKHS. Let X={1,2,…,n}\mathcal{X} = \{1, 2, \ldots, n\}, then we can view v∈Cv \in \mathbb{C} as a function V ⁣:X→CV \colon \mathcal{X} \to \mathbb{C}, where V(j)=vj.V(j) = v_j. The linear evaluation functionals are of course bounded for every x∈Xx \in \mathcal{X} and we have

V(j)=vj=⟨V,ej⟩,j∈X,\begin{aligned} V(j) = v_j = \left\langle V,e_j \right\rangle , \quad j \in \mathcal{X},\end{aligned}
where eje_j is a vector with 11 at jthj^{\text{th}} position and 00 everywhere else. Therefore, the reproducing kernel for the point x∈Xx \in \mathcal{X} is exe_x and the reproducing kernel can be thought as the identity matrix.

Can there be multiple reproducing kernels for an RKHS? The following theorem answers this question.

Theorem 3: If an RKHS H\mathcal{H} of functions on a set X\mathcal{X} admits a reproducing kernel, KK, then KK is uniquely determined by H.\mathcal{H}.
Suppose that there exists another reproducing kernel K′K' for H.\mathcal{H}. Then
∥ky−ky′∥=⟨ky−ky′,ky−ky′⟩=⟨ky−ky′,ky⟩−⟨ky−ky′,ky′⟩=(ky−ky′)(y)−(ky−ky′)(y)=0\begin{aligned} \left\lVert k_y - k'_y \right\rVert = \left\langle k_y - k'_y, k_y - k'_y \right\rangle = \left\langle k_y - k'_y, k_y \right\rangle - \left\langle k_y - k'_y, k'_y \right\rangle = (k_y - k'_y)(y) - (k_y - k'_y)(y) = 0 \end{aligned}
for any y∈X.y \in \mathcal{X}. In other words, ky(x)=ky′(x)k_y(x) = k'_y(x) for every x∈Xx \in \mathcal{X} by the positive definite property of norms and hence the kernel is unique.

Epilogue

We covered quite a lot of ground in this blog post but I didn't even define a kernel as we commonly use in machine learning! In the next post I will do that and cover its fundamental properties.

Some resources I recommend to go into more depth on what's covered here are:

  1. Halmos, P: Finite-Dimensional Vector Spaces.

  2. Rudin, W: Real and Complex Analysis. (Chapter - 4)

  3. Rudin, W: Functional Analysis.

  4. Conway, J: A course in functional analysis.