{"id":237,"date":"2022-11-10T23:21:12","date_gmt":"2022-11-10T23:21:12","guid":{"rendered":"http:\/\/michaeltsmith.org.uk\/?p=237"},"modified":"2022-11-11T17:30:12","modified_gmt":"2022-11-11T17:30:12","slug":"infinite-bases-for-eq-kernel","status":"publish","type":"post","link":"http:\/\/michaeltsmith.org.uk\/?p=237","title":{"rendered":"Infinite Bases for EQ kernel"},"content":{"rendered":"<p>I understand that the EQ kernel (and other kernels) can be understood via the kernel trick as an infinite number of (appropriate) bases functions. I&#8217;ve not found the actual proof of this online (I&#8217;m sure it&#8217;s somewhere, but I clearly didn&#8217;t know what to search for [edit: Turns out some of it is in the covariance functions chapter in Gaussian Processes for Machine Learning]). It&#8217;s straightforward, but I wanted to see it, so I would know what constants etc I needed my bases to have (lengthscale and height).<\/p>\n<p>Without loss of generality (hopefully) I&#8217;ve just considered the kernel evaluated between <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-ede05c264bba0eda080918aaa09c4658_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"10\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-a5e437be25f29374d30f66cd46adf81c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>. This should be fine as the EQ kernel is stationary.<\/p>\n<p>So:<\/p>\n<p>The EQ kernel: <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-39937281a417264cbd3238b2587ab911_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#40;&#120;&#44;&#48;&#41;&#32;&#61;&#32;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#120;&#94;&#50;&#125;&#123;&#50;&#108;&#94;&#50;&#125;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"30\" width=\"112\" style=\"vertical-align: -5px;\"\/><\/p>\n<p>We believe that an infinite number of Gaussian bases, <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-9171fd043ec75bbaf7f4b778947dfc5a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#95;&#97;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#108;&#94;&#50;&#32;&#92;&#112;&#105;&#125;&#123;&#50;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#125;&#101;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#45;&#97;&#41;&#94;&#50;&#125;&#123;&#108;&#94;&#50;&#125;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"39\" width=\"195\" style=\"vertical-align: -11px;\"\/> will produce the EQ kernel.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-large wp-image-242\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-608x1024.jpg\" alt=\"mathematical derivation\/proof (will copy into latex sometime).\" width=\"525\" height=\"884\" srcset=\"http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-608x1024.jpg 608w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-178x300.jpg 178w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-768x1294.jpg 768w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-911x1536.jpg 911w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-1215x2048.jpg 1215w, http:\/\/michaeltsmith.org.uk\/wp-content\/uploads\/2022\/11\/maths-scaled.jpg 1519w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><\/p>\n<p>For multiple dimensional inputs:<\/p>\n<p>The EQ kernel: <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-0ca13228eebb5ad855d06b6434a809d6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#40;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#120;&#125;&#44;&#48;&#41;&#32;&#61;&#32;&#101;&#94;&#123;&#45;&#92;&#115;&#117;&#109;&#95;&#105;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#120;&#95;&#105;&#125;&#123;&#108;&#95;&#105;&#125;&#41;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"27\" width=\"148\" style=\"vertical-align: -5px;\"\/><\/p>\n<p>We believe that an infinite number of Gaussian bases, <img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/michaeltsmith.org.uk\/wp-content\/ql-cache\/quicklatex.com-89504b26a50248ceed4661ba11541a10_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#104;&#105;&#95;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#97;&#125;&#40;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#120;&#125;&#41;&#32;&#61;&#32;&#92;&#112;&#114;&#111;&#100;&#123;&#108;&#95;&#105;&#125;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#50;&#125;&#125;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#112;&#105;&#125;&#123;&#50;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#123;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#68;&#125;&#123;&#52;&#125;&#125;&#101;&#94;&#123;&#45;&#92;&#115;&#117;&#109;&#95;&#105;&#32;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#120;&#95;&#105;&#45;&#97;&#95;&#105;&#41;&#125;&#123;&#108;&#95;&#105;&#125;&#41;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"32\" width=\"282\" style=\"vertical-align: -7px;\"\/> will produce the EQ kernel.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I understand that the EQ kernel (and other kernels) can be understood via the kernel trick as an infinite number of (appropriate) bases functions. I&#8217;ve not found the actual proof of this online (I&#8217;m sure it&#8217;s somewhere, but I clearly didn&#8217;t know what to search for [edit: Turns out some of it is in the &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/michaeltsmith.org.uk\/?p=237\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Infinite Bases for EQ kernel&#8221;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-237","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/237","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=237"}],"version-history":[{"count":11,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions"}],"predecessor-version":[{"id":252,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=\/wp\/v2\/posts\/237\/revisions\/252"}],"wp:attachment":[{"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=237"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=237"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/michaeltsmith.org.uk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=237"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}