{"id":1777,"date":"2024-11-19T22:13:03","date_gmt":"2024-11-19T22:13:03","guid":{"rendered":"https:\/\/www.ethanepperly.com\/?p=1777"},"modified":"2024-11-21T16:52:35","modified_gmt":"2024-11-21T16:52:35","slug":"note-to-self-sketch-and-solve-with-a-gaussian-embedding","status":"publish","type":"post","link":"https:\/\/www.ethanepperly.com\/index.php\/2024\/11\/19\/note-to-self-sketch-and-solve-with-a-gaussian-embedding\/","title":{"rendered":"Note to Self: Sketch-and-Solve with a Gaussian Embedding"},"content":{"rendered":"\n<p>In the comments to my post <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/11\/13\/does-sketching-work\/\"><em>Does Sketching Work?<\/em><\/a>, I was asked a very interesting question, which I will paraphrase as follows:<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p>Is the <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/11\/13\/does-sketching-work\/#how-can-you-use-sketching\">sketch-and-solve<\/a> least-squares solution <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-079065e99b6d3733e3282fd155722d0e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#42;&#123;&#97;&#114;&#103;&#109;&#105;&#110;&#125;&#95;&#123;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#125;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#40;&#83;&#65;&#41;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#83;&#98;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"206\" style=\"vertical-align: -5px;\"\/> an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bias_of_an_estimator\">unbiased estimate<\/a> of the true <a href=\"https:\/\/en.wikipedia.org\/wiki\/Linear_least_squares\">least squares solution<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-eabf0a2816773c737008ad993f17eae3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#42;&#123;&#97;&#114;&#103;&#109;&#105;&#110;&#125;&#95;&#120;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#120;&#32;&#45;&#32;&#98;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"168\" style=\"vertical-align: -5px;\"\/>?<\/p>\n<\/blockquote>\n\n\n\n<p>In this post, I will answer this question for the special case in which <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> is a Gaussian sketch, and I will also compute the expected least-squares residual <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b9eb4b30f51c95a34cfa13cd4f00259f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#45;&#98;&#125;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"92\" style=\"vertical-align: -5px;\"\/>. Throughout this post, I will assume knowledge of sketching; see my previous <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/11\/13\/does-sketching-work\/\">two<\/a> <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/11\/27\/which-sketch-should-i-use\/\">posts<\/a> for a refresher if needed. For this post, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-11f4f587954b361e7d78940f65b8d70d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"13\" style=\"vertical-align: 0px;\"\/> will have dimensions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-97cff47e97f2cf28bbd3efb3b22a37bd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"42\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> will have dimensions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-aa85e2ca779695b4c8083a0f47261c43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#108;&#108;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"40\" style=\"vertical-align: 0px;\"\/>, and these parameters are related <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-034b9ece6ede5a913cc960683bf70e02_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#103;&#101;&#32;&#92;&#101;&#108;&#108;&#32;&#92;&#103;&#101;&#32;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"75\" style=\"vertical-align: -3px;\"\/>.<\/p>\n\n\n\n<p>I thought I knew the answer to this question\u2014that sketch-and-solve suffers from <em><a href=\"https:\/\/arxiv.org\/abs\/2011.10695\">inversion bias<\/a><\/em>. Indeed, the fact I remembered is that <p class=\"ql-center-displayed-equation\" style=\"line-height: 32px;\"><span class=\"ql-right-eqno\"> (1) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0cd441af1378414d36a71a4405630eab_l3.png\" height=\"32\" width=\"250\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#66;&#105;&#103;&#091;&#92;&#98;&#105;&#103;&#40;&#40;&#83;&#65;&#41;&#94;&#92;&#116;&#111;&#112;&#32;&#40;&#83;&#65;&#41;&#92;&#98;&#105;&#103;&#41;&#94;&#123;&#45;&#49;&#125;&#92;&#66;&#105;&#103;&#093;&#32;&#92;&#110;&#101;&#32;&#92;&#98;&#105;&#103;&#40;&#65;&#94;&#92;&#116;&#111;&#112;&#32;&#65;&#92;&#98;&#105;&#103;&#41;&#94;&#123;&#45;&#49;&#125;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>for the sketching matrices <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> in common use. The issue of the inversion bias (1) is discussed in <a href=\"https:\/\/arxiv.org\/abs\/2011.10695\">this paper<\/a>.<\/p>\n\n\n\n<p>However, the inversion bias (1) does <em>not<\/em> imply that sketch-and-solve is biased. In fact, for a Gaussian sketch<sup class=\"modern-footnotes-footnote \" data-mfn=\"1\" data-mfn-post-scope=\"00000000000005840000000000000000_1777\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005840000000000000000_1777-1\">1<\/a><\/sup><span id=\"mfn-content-00000000000005840000000000000000_1777-1\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"1\">Note that, typically, we use a sketch <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> where the variance of the entries is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9636aa8e8b7707e739988afd7e563172_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"27\" style=\"vertical-align: -5px;\"\/>. The sketch-and-solve solution <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-48666a7c66f1061bfd82ddabc51fab36_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"78\" style=\"vertical-align: -5px;\"\/> does not change under a scaling of the matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>. Thus, we are free to take the entries to have variance one.<\/span> <p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> (2) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4241ac9b0c6ffe780ecf8f59abbb6f2e_l3.png\" height=\"22\" width=\"303\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#83;&#32;&#92;&#105;&#110;&#32;&#92;&#114;&#101;&#97;&#108;&#94;&#123;&#92;&#101;&#108;&#108;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#110;&#125;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#119;&#105;&#116;&#104;&#32;&#125;&#32;&#83;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#115;&#105;&#109;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#78;&#111;&#114;&#109;&#97;&#108;&#125;&#40;&#48;&#44;&#49;&#41;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#32;&#105;&#105;&#100;&#125;&#44;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>sketch-and-solve is <em>unbiased<\/em>.<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong>Theorem (Gaussian sketch-and-solve is unbiased).<\/strong> Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> be a Gaussian sketch (2) and let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-82b2ab6923ce86eb105a1fb622dd7beb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#32;&#92;&#105;&#110;&#32;&#92;&#114;&#101;&#97;&#108;&#94;&#123;&#110;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#100;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"75\" style=\"vertical-align: -1px;\"\/> be a full column-rank matrix. Then <p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> (3) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6c135e0524dca0ed8d764479c79be876_l3.png\" height=\"22\" width=\"157\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#40;&#83;&#98;&#41;&#093;&#32;&#61;&#32;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#46;&#32;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>That is, the sketch-and-solve solution <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-20129488a4dd87aee4ef5c37c88d8e8c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#40;&#83;&#98;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"78\" style=\"vertical-align: -5px;\"\/> is an unbiased estimate for the least-squares solution <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-72d007239bf888ec2dc29864a934308a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"28\" style=\"vertical-align: 0px;\"\/>.<\/p>\n<\/blockquote>\n\n\n\n<p>Here, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9c3eba346ed7d1ef93cd5446d6845382_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#123;&#125;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 3px;\"\/> is the Moore\u2013Penrose pseudoinverse, which effectuates the least-squares solution: <p class=\"ql-center-displayed-equation\" style=\"line-height: 35px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-758a2563a025ea5eb02093ee09e269a2_l3.png\" height=\"35\" width=\"186\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#42;&#123;&#97;&#114;&#103;&#109;&#105;&#110;&#125;&#95;&#123;&#120;&#92;&#105;&#110;&#92;&#114;&#101;&#97;&#108;&#94;&#100;&#125;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#120;&#32;&#45;&#32;&#98;&#125;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>In particular, by the normal equations, we have the relation<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> (4) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-54e18e841ca1d2908256c65ccb31637f_l3.png\" height=\"22\" width=\"143\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#61;&#32;&#40;&#65;&#94;&#92;&#116;&#111;&#112;&#32;&#65;&#41;&#94;&#123;&#45;&#49;&#125;&#32;&#65;&#94;&#92;&#116;&#111;&#112;&#44;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>valid for any matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-11f4f587954b361e7d78940f65b8d70d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"13\" style=\"vertical-align: 0px;\"\/> with full column-rank.<\/p>\n\n\n\n<p>Let us prove this theorem. The Gaussian sketch (1) is orthogonally invariant: that is, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ff1efc793025ac1aba9b87fc274e1fac_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;&#94;&#92;&#116;&#111;&#112;&#32;&#83;&#85;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"52\" style=\"vertical-align: 0px;\"\/> has the same distribution as <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> for any orthogonal matrices <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c7480669f4fca8a251671d27137d0b09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#85;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"13\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8a416b3e64d82c5ac2bf7ce6b503c266_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#86;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/>. Thus, we are free to reparametrize. Let <p class=\"ql-center-displayed-equation\" style=\"line-height: 42px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b86bfeff6ec3786014519ea5b890b2b4_l3.png\" height=\"42\" width=\"112\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#32;&#61;&#32;&#85;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#125;&#123;&#48;&#125;&#86;&#94;&#92;&#116;&#111;&#112;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>be a (full) singular value decomposition of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-11f4f587954b361e7d78940f65b8d70d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"13\" style=\"vertical-align: 0px;\"\/>. Make the changes of variables <p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-77b2e6a2a41be700f4503e57299c9dfb_l3.png\" height=\"21\" width=\"305\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#85;&#94;&#92;&#116;&#111;&#112;&#32;&#65;&#32;&#86;&#44;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#83;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#86;&#94;&#92;&#116;&#111;&#112;&#32;&#83;&#85;&#44;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#98;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#85;&#94;&#92;&#116;&#111;&#112;&#32;&#98;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>After this change of variables, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> still has the same distribution (2) and <p class=\"ql-center-displayed-equation\" style=\"line-height: 42px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-662c1bf602a21154cf1e5355e6fdc115_l3.png\" height=\"42\" width=\"75\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#32;&#61;&#32;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#92;&#83;&#105;&#103;&#109;&#97;&#125;&#123;&#48;&#125;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Partition the reparametrized <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3ab6f6c64ce17f786a81f8cc8fdcec90_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"8\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> conformally with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-11f4f587954b361e7d78940f65b8d70d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"13\" style=\"vertical-align: 0px;\"\/>: <p class=\"ql-center-displayed-equation\" style=\"line-height: 42px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-27fd1fd3e8f3f44834436bb2110fd7ba_l3.png\" height=\"42\" width=\"205\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#98;&#32;&#61;&#32;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#98;&#95;&#49;&#125;&#123;&#98;&#95;&#50;&#125;&#44;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#83;&#32;&#61;&#32;&#92;&#111;&#110;&#101;&#98;&#121;&#116;&#119;&#111;&#123;&#83;&#95;&#49;&#125;&#123;&#83;&#95;&#50;&#125;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Under this change of variables, the least-squares solution is <p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> (5) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b23ab2580fa2fdad9fcfddf3df225fbd_l3.png\" height=\"19\" width=\"102\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#32;&#61;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#98;&#95;&#49;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n\n<p>Now, we are ready to prove the claim (3). Observe that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fc84b0d04ecaf4135f6d697c3f1dae29_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#65;&#32;&#61;&#32;&#83;&#95;&#49;&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"79\" style=\"vertical-align: -3px;\"\/>. Begin by using the normal equations (4) to write out the sketch-and-solve solution <p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-52c84e0a183fe2e46f36f62446379edb_l3.png\" height=\"22\" width=\"308\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;&#32;&#61;&#32;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#116;&#111;&#112;&#32;&#40;&#83;&#65;&#41;&#093;&#94;&#123;&#45;&#49;&#125;&#40;&#83;&#65;&#41;&#94;&#92;&#116;&#111;&#112;&#32;&#40;&#83;&#98;&#41;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Observe that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fc84b0d04ecaf4135f6d697c3f1dae29_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#65;&#32;&#61;&#32;&#83;&#95;&#49;&#92;&#83;&#105;&#103;&#109;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"79\" style=\"vertical-align: -3px;\"\/>. Thus, <p class=\"ql-center-displayed-equation\" style=\"line-height: 42px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2800b69708b037d55eeeb98fa104dd82_l3.png\" height=\"42\" width=\"349\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;&#32;&#61;&#32;&#091;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#83;&#95;&#49;&#94;&#92;&#116;&#111;&#112;&#32;&#83;&#95;&#49;&#92;&#83;&#105;&#103;&#109;&#97;&#093;&#94;&#123;&#45;&#49;&#125;&#92;&#83;&#105;&#103;&#109;&#97;&#32;&#83;&#95;&#49;&#94;&#92;&#116;&#111;&#112;&#32;&#92;&#111;&#110;&#101;&#98;&#121;&#116;&#119;&#111;&#123;&#83;&#95;&#49;&#125;&#123;&#83;&#95;&#50;&#125;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#98;&#95;&#49;&#125;&#123;&#98;&#95;&#50;&#125;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Simplify to obtain<p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3f4f56224702b904c6bf72d965d20386_l3.png\" height=\"22\" width=\"338\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;&#32;&#61;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#40;&#83;&#95;&#49;&#94;&#92;&#116;&#111;&#112;&#32;&#83;&#95;&#49;&#41;&#94;&#123;&#45;&#49;&#125;&#32;&#83;&#95;&#49;&#94;&#92;&#116;&#111;&#112;&#32;&#40;&#83;&#95;&#49;&#98;&#95;&#49;&#32;&#43;&#32;&#83;&#95;&#50;&#32;&#98;&#95;&#50;&#41;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Using the normal equations (4) and the solution formula (5), we obtain <p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> (6) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-49f9435ad832dcae09cd3344a01c4b3e_l3.png\" height=\"23\" width=\"415\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;&#32;&#61;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#98;&#95;&#49;&#32;&#43;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#32;&#83;&#95;&#49;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#83;&#95;&#50;&#98;&#95;&#50;&#32;&#61;&#32;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#32;&#43;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#32;&#83;&#95;&#49;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#83;&#95;&#50;&#98;&#95;&#50;&#46;&#32;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>By the definition (2) of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-bda94e423e715e325be7d6fdb4979e22_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#95;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-687ae2bdc12ecb3fc8afab3915729bf3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;&#95;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: -3px;\"\/> are independent and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-57f5284f6ae7b9df499d484d49926dae_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#091;&#83;&#95;&#50;&#093;&#32;&#61;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"73\" style=\"vertical-align: -5px;\"\/>. Thus, taking expectations, we obtain<p class=\"ql-center-displayed-equation\" style=\"line-height: 23px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f45600345d37f0812e850b8c1a16e030_l3.png\" height=\"23\" width=\"363\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#091;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;&#093;&#32;&#61;&#32;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#32;&#43;&#32;&#92;&#83;&#105;&#103;&#109;&#97;&#94;&#123;&#45;&#49;&#125;&#32;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#091;&#83;&#95;&#49;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#093;&#32;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#091;&#83;&#95;&#50;&#093;&#98;&#95;&#50;&#32;&#61;&#32;&#65;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#98;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>The desired claim (3) is proven.<\/p>\n\n\n\n<p>Note that the solution formula (6) holds for <em>any<\/em> sketching matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>. We only use Gaussianity at the last step, where we invoke three properties (1) <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> is mean zero; (2) <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> is orthogonally invariant; and (3) conditional on the first <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-1b031c8458e71f0e4df82ad61d36c0ca_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"10\" style=\"vertical-align: 0px;\"\/> columns of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>, the last <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7ed7756db65e5407dc0d13f2d715491a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#45;&#100;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"42\" style=\"vertical-align: 0px;\"\/> columns of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b89471a11dd7fd85184a38ddb3ea9145_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#83;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/> are mean-zero.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">The Least-Squares Residual for Gaussian Sketch-and-Solve<\/h2>\n\n\n\n<p>The solution formula (6) can be used to understand other properties of the Gaussian sketch-and-solve solution. In this section, we use (6) to understand the expected squared residual norm <p class=\"ql-center-displayed-equation\" style=\"line-height: 22px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b66ecc55bd4f68677bc892deded4ed12_l3.png\" height=\"22\" width=\"100\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#98;&#125;&#94;&#50;&#44;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7cac18598b0f4eb1c3dca4a4630a4fe7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#61;&#32;&#40;&#83;&#65;&#41;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#40;&#83;&#98;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"112\" style=\"vertical-align: -5px;\"\/> is the sketch-and-solve solution. We write the expected residual norm as <p class=\"ql-center-displayed-equation\" style=\"line-height: 49px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a7dce4f3a10550b2a4c1b24039097db8_l3.png\" height=\"49\" width=\"511\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#98;&#125;&#94;&#50;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#98;&#95;&#49;&#32;&#43;&#32;&#83;&#95;&#49;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#83;&#95;&#50;&#98;&#95;&#50;&#125;&#123;&#48;&#125;&#32;&#45;&#32;&#92;&#116;&#119;&#111;&#98;&#121;&#111;&#110;&#101;&#123;&#98;&#95;&#49;&#125;&#123;&#98;&#95;&#50;&#125;&#125;&#94;&#50;&#32;&#61;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#98;&#95;&#50;&#125;&#94;&#50;&#32;&#43;&#32;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#83;&#95;&#49;&#94;&#92;&#100;&#97;&#103;&#103;&#101;&#114;&#32;&#83;&#95;&#50;&#98;&#95;&#50;&#125;&#94;&#50;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Now, use the <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/06\/22\/low-rank-approximation-toolbox-analysis-of-the-randomized-svd\/#aside-expectation-of-gaussian-inverse-gaussian-matrix-product\">Gaussian\u2013inverse Gaussian matrix product formula<\/a> to compute the expectation, obtaining <p class=\"ql-center-displayed-equation\" style=\"line-height: 43px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-5fffa05a8417a7fa7a7c51d53c765f5f_l3.png\" height=\"43\" width=\"297\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#98;&#125;&#94;&#50;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#49;&#43;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#92;&#101;&#108;&#108;&#45;&#100;&#45;&#49;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#110;&#111;&#114;&#109;&#123;&#98;&#95;&#50;&#125;&#94;&#50;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Finally, we recognize <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f02800eddbd8de80bde4a0a2be828e50_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#110;&#111;&#114;&#109;&#123;&#98;&#95;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> is the optimal least-squares residual <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b259068be78eeda610b4e047ae77fb0f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#105;&#110;&#95;&#120;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#120;&#32;&#45;&#32;&#98;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"110\" style=\"vertical-align: -5px;\"\/>. Thus, we have shown <p class=\"ql-center-displayed-equation\" style=\"line-height: 43px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0aa56378e18dd3b779e91d08c25c07e3_l3.png\" height=\"43\" width=\"370\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#98;&#125;&#94;&#50;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#49;&#43;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#92;&#101;&#108;&#108;&#45;&#100;&#45;&#49;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#109;&#105;&#110;&#95;&#123;&#120;&#92;&#105;&#110;&#92;&#114;&#101;&#97;&#108;&#94;&#100;&#125;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#120;&#45;&#98;&#125;&#94;&#50;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p>Note that this is an <em>exact formula<\/em> for the expected squared residual for the sketch-and-solve solution! Thus, the sketch-and-solve solution has an expected squared residual that factor <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4e3916fed719b87d71090c06fb4cb271_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#32;&#43;&#32;&#100;&#47;&#40;&#92;&#101;&#108;&#108;&#45;&#100;&#45;&#49;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"129\" style=\"vertical-align: -5px;\"\/> larger than the optimal value. In particular, <p class=\"ql-center-displayed-equation\" style=\"line-height: 39px;\"><span class=\"ql-right-eqno\"> &nbsp; <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-423a327d2db81e2aed6aa072386518a2_l3.png\" height=\"39\" width=\"463\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#091;&#92;&#101;&#120;&#112;&#101;&#99;&#116;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#92;&#104;&#97;&#116;&#123;&#120;&#125;&#32;&#45;&#32;&#98;&#125;&#94;&#50;&#32;&#61;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#49;&#43;&#92;&#118;&#97;&#114;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#92;&#109;&#105;&#110;&#95;&#123;&#120;&#92;&#105;&#110;&#92;&#114;&#101;&#97;&#108;&#94;&#100;&#125;&#32;&#92;&#110;&#111;&#114;&#109;&#123;&#65;&#120;&#45;&#98;&#125;&#94;&#50;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#116;&#101;&#120;&#116;&#123;&#119;&#104;&#101;&#110;&#32;&#125;&#32;&#92;&#101;&#108;&#108;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#100;&#125;&#123;&#92;&#118;&#97;&#114;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#125;&#32;&#43;&#32;&#100;&#32;&#43;&#32;&#49;&#46;&#92;&#093;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><strong><em>Remark (Existing literature):<\/em><\/strong> <em>When I originally wrote this post, I had not seen these results anywhere in the literature. Thanks to <a href=\"https:\/\/web.eecs.umich.edu\/~derezin\/\">Micha\u0142 Derezi\u0144ski<\/a>, who provided me with the following references: <a href=\"https:\/\/web.stanford.edu\/class\/ee270\/scribes\/lecture8.pdf\">the following lecture notes<\/a> of <a href=\"https:\/\/stanford.edu\/~pilanci\/\">Mert Pilanci<\/a>, <a href=\"https:\/\/proceedings.mlr.press\/v195\/derezinski23a.html\">equation 1 in this recent paper of Micha\u0142&#8217;s<\/a>, and <a href=\"https:\/\/arxiv.org\/pdf\/2406.11151\">this recent survey<\/a> by Micha\u0142 and <a href=\"https:\/\/www.stat.berkeley.edu\/~mmahoney\/\">Michael Mahoney<\/a>. I find it striking that these basic and beautiful results appear to only have been explicitly recorded very recently. Very big thanks also to <a href=\"https:\/\/sites.google.com\/ucsd.edu\/rwebber\/\">Rob Webber<\/a> for providing help in preparing this post.<\/em><\/p>\n<\/blockquote>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<p><em><strong>Update<\/strong><\/em> <em>(11\/21\/24): After this post was initially released, Mert Pilanci provided me with an <a href=\"https:\/\/arxiv.org\/pdf\/2002.06538\">earlier reference<\/a> (2020); see also <a href=\"https:\/\/arxiv.org\/abs\/2203.09755\">this paper<\/a> for extensions.<\/em> <em>He also mentions an even <a href=\"https:\/\/arxiv.org\/pdf\/1706.03665\">earlier paper<\/a> (2017) that does similar calculations in a statistical setting, but does not obtain exactly these formulas.<\/em> <em>See also <a href=\"https:\/\/arxiv.org\/abs\/1810.06089\">this paper<\/a> for exact and asymptomatically exact formulas for sketch-and-solve in the statistical setting.<\/em><\/p>\n<\/blockquote>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>In the comments to my post Does Sketching Work?, I was asked a very interesting question, which I will paraphrase as follows: Is the sketch-and-solve least-squares solution an unbiased estimate of the true least squares solution of ? In this post, I will answer this question for the special case in which is a Gaussian<a class=\"more-link\" href=\"https:\/\/www.ethanepperly.com\/index.php\/2024\/11\/19\/note-to-self-sketch-and-solve-with-a-gaussian-embedding\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,12],"tags":[],"class_list":["post-1777","post","type-post","status-publish","format-standard","hentry","category-note-to-self","category-sketching"],"_links":{"self":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/1777","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/comments?post=1777"}],"version-history":[{"count":14,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/1777\/revisions"}],"predecessor-version":[{"id":1951,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/1777\/revisions\/1951"}],"wp:attachment":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/media?parent=1777"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/categories?post=1777"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/tags?post=1777"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}