{"id":932,"date":"2022-08-02T14:55:51","date_gmt":"2022-08-02T14:55:51","guid":{"rendered":"https:\/\/www.ethanepperly.com\/?p=932"},"modified":"2024-12-02T17:43:43","modified_gmt":"2024-12-02T17:43:43","slug":"big-ideas-in-applied-math-concentration-inequalities","status":"publish","type":"post","link":"https:\/\/www.ethanepperly.com\/index.php\/2022\/08\/02\/big-ideas-in-applied-math-concentration-inequalities\/","title":{"rendered":"Big Ideas in Applied Math: Concentration Inequalities"},"content":{"rendered":"\n<p><\/p>\n\n\n\n<p>This post is about <a href=\"https:\/\/en.wikipedia.org\/wiki\/Randomized_algorithm\">randomized algorithms<\/a> for problems in computational science and a powerful set of tools, known as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Concentration_inequality\">concentration inequalities<\/a>, which can be used to analyze why they work. I&#8217;ve discussed why randomization can help in solving computational problems in a <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2021\/08\/11\/why-randomized-algorithms\/\">previous post<\/a>; this post continues this discussion by presenting an example of a computational problem where, somewhat surprisingly, a randomized algorithm proves effective. We shall then use concentration inequalities to analyze why this method works.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Triangle Counting<\/h2>\n\n\n\n<p>Let&#8217;s begin our discussion of concentration inequalities by means of an extended example. Consider the following question: How many triangles are there in the Facebook network? That is, how many trios of people are there who are all mutual friends? While seemingly silly at first sight, this is actually a natural and meaningful question about the structure of the Facebook social network and is related to similar questions such as &#8220;How likely are two friends of a person to also be friends with each other?&#8221; <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"253\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-300x253.png\" alt=\"\" class=\"wp-image-1161\" srcset=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-300x253.png 300w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-1024x865.png 1024w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-768x649.png 768w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-1536x1297.png 1536w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/triangle_counting-2048x1730.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure><\/div>\n\n\n<p>If there are <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-75a5652acadcd645b180a972b75a9d09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> people on the Facebook graph, then the natural algorithm of iterating over all <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f0944291a67ccac58f5795aeaf10a116_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#123;&#110;&#32;&#92;&#99;&#104;&#111;&#111;&#115;&#101;&#32;&#51;&#125;&#32;&#92;&#97;&#112;&#112;&#114;&#111;&#120;&#32;&#110;&#94;&#51;&#47;&#54;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"83\" style=\"vertical-align: -7px;\"\/> triplets and checking whether they form a triangle is far too computationally costly for the billions of Facebook accounts. Somehow, we want to do much faster than this, and to achieve this speed we would be willing to settle for an <em>estimate<\/em> of the triangle count up to some error.<\/p>\n\n\n\n<p>There are many approaches to this problem, but let&#8217;s describe a particularly surprising algorithm. Let <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;\"\/> be an <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41c0efe7f3a82ce93dc2542200956ad7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#116;&#105;&#109;&#101;&#115;&#32;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"9\" width=\"43\" style=\"vertical-align: 0px;\"\/> matrix where the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2b80808dc4cfd99921c6014e9b28354b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"14\" style=\"vertical-align: -4px;\"\/>th entry 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;\"\/> is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-27e3598fd2d4f0491067f1afaced92e9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"7\" style=\"vertical-align: 0px;\"\/> if users <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fe087f8cefab0bcb3270609914ada26c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\"\/> are friends and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-54589d9b5610bf48dcf5a1b1f24a67b6_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;\"\/> otherwise<sup class=\"modern-footnotes-footnote \" data-mfn=\"1\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-1\">1<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-1\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"1\">All of the diagonal entries 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;\"\/> are set to zero.<\/span>; this matrix is called the <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Adjacency_matrix\">adjacency matrix<\/a><\/strong> of the Facebook graph. A fact from graph theory is that the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2b80808dc4cfd99921c6014e9b28354b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"14\" style=\"vertical-align: -4px;\"\/>th entry of the <em>cube<\/em> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/> of the 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;\"\/> counts the number of paths from user <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> to user <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fe087f8cefab0bcb3270609914ada26c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\"\/> of length three.<sup class=\"modern-footnotes-footnote \" data-mfn=\"2\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-2\">2<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-2\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"2\">By a path of length three, we mean a sequence of users <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-afd274e3e6acd4b610a9746f3e20218f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#44;&#107;&#44;&#92;&#101;&#108;&#108;&#44;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"55\" style=\"vertical-align: -4px;\"\/> where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-faee2e7f0c813b4f439694335c52bda4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#108;&#108;\" 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-faee2e7f0c813b4f439694335c52bda4_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#108;&#108;\" 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-fe087f8cefab0bcb3270609914ada26c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\"\/> are all friends.<\/span> In particular, the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f40ce342f4b40c852a7fedd867519b07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>th entry of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/> denotes the number of paths from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> to itself of length <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b468322123949661df5f225ed443a185_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, which is <em>twice<\/em> the number of triangles incident on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>. (The paths <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-128e839b675ab12bb5fd3dd7c5c87b89_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#92;&#116;&#111;&#32;&#106;&#32;&#92;&#116;&#111;&#32;&#107;&#32;&#92;&#116;&#111;&#32;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"113\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-d3b3a8792ec483895a4f859b61a068d0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#92;&#116;&#111;&#32;&#107;&#32;&#92;&#116;&#111;&#32;&#106;&#92;&#116;&#111;&#32;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"113\" style=\"vertical-align: -4px;\"\/> are both counted as paths of length 3 for a triangle consisting of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fe087f8cefab0bcb3270609914ada26c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"9\" style=\"vertical-align: -4px;\"\/>, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>.) Therefore, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Trace_(linear_algebra)\">trace<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/>, equal to the sum of its diagonal entries, is <em>six<\/em> times the number of triangles: The <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f40ce342f4b40c852a7fedd867519b07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>th entry of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/> is <em>twice<\/em> the number of triangles incident on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4015d3bcae440238eb2e7a73e66bae43_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> and each triangle <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0c3d62b9f392fa096135f8aced5a9099_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#105;&#44;&#106;&#44;&#107;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"51\" style=\"vertical-align: -5px;\"\/> is counted <em>thrice<\/em> in the <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f40ce342f4b40c852a7fedd867519b07_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"12\" style=\"vertical-align: 0px;\"\/>th, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7843bf01d6a27ac906ef1e5247b23a09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#106;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"17\" style=\"vertical-align: -4px;\"\/>th, and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7fe831db463e6d64f9a560fdd89b0b88_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/>th entries of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/>. In summary, we have<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><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-4793290538c22374180ba637c06c0683_l3.png\" height=\"36\" width=\"168\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#98;&#111;&#120;&#123;&#92;&#35;&#32;&#116;&#114;&#105;&#97;&#110;&#103;&#108;&#101;&#115;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#54;&#125;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#32;&#65;&#94;&#51;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Therefore, the triangle counting problem is equivalent to computing the trace of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/>. Unfortunately, the problem of computing <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-767e0fd02d0f8684f2139fb5c2b8279b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"20\" style=\"vertical-align: 0px;\"\/> is, in general, very computationally costly. Therefore, we seek ways of estimating the trace of a matrix without forming it.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><a href=\"https:\/\/www.ethanepperly.com\/index.php\/2023\/01\/26\/stochastic-trace-estimation\/\">Randomized Trace Estimation<\/a><\/h2>\n\n\n\n<p>Motivated by the triangle counting problem from the previous section, we consider the problem of estimating the trace of a matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/>. We assume that we only have access to the matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/> through <a href=\"https:\/\/en.wikipedia.org\/wiki\/Matrix_multiplication#Square_matrix_and_column_vector\">matrix\u2013vector products<\/a>; that is, we can efficiently compute <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3eea83f3f96f677c8d591498aee963dc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> for a vector <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/>. For instance, in the previous example, the Facebook graph has many fewer friend relations (edges) <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6d890b0f5af56bc2bde465a9af2fd218_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> than the maximum possible amount of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6a6bf36d76b8c61c6730b138a6beb901_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#123;&#110;&#92;&#99;&#104;&#111;&#111;&#115;&#101;&#32;&#50;&#125;&#32;&#92;&#97;&#112;&#112;&#114;&#111;&#120;&#32;&#110;&#94;&#50;&#47;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"82\" style=\"vertical-align: -7px;\"\/>. Therefore, the 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;\"\/> is <a href=\"https:\/\/www.ethanepperly.com\/index.php\/2020\/07\/18\/big-ideas-in-applied-math-sparse-matrices\/\">sparse<\/a>; in particular, matrix\u2013vector multiplications 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;\"\/> can be computed in around <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6d890b0f5af56bc2bde465a9af2fd218_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"15\" style=\"vertical-align: 0px;\"\/> operations. To compute matrix\u2013vector products <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3eea83f3f96f677c8d591498aee963dc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"29\" style=\"vertical-align: 0px;\"\/> with <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-775b5e8620392458fa54ec80d0571b04_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;&#32;&#61;&#32;&#65;&#94;&#51;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"63\" style=\"vertical-align: 0px;\"\/>, we simply compute matrix\u2013vector products 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;\"\/> three times, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fe4783189c165e0df490563fda0b310b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#65;&#120;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#65;&#40;&#65;&#120;&#41;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#65;&#40;&#65;&#40;&#65;&#120;&#41;&#41;&#32;&#61;&#32;&#65;&#94;&#51;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"299\" style=\"vertical-align: -5px;\"\/>.<\/p>\n\n\n\n<p>Here&#8217;s a very nifty idea to estimate the trace of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/> using only matrix\u2013vector products, originally due to <a href=\"https:\/\/membres-ljk.imag.fr\/Didier.Girard\/\">Didier A. Girard<\/a> and <a href=\"https:\/\/researchers.anu.edu.au\/researchers\/hutchinson-mf\">Michael F. Hutchinson<\/a>. Choose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/> to be a <em>random<\/em> vector whose entries are <a href=\"https:\/\/en.wikipedia.org\/wiki\/Independence_(probability_theory)\">independent<\/a> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7b7086fe465164ee1c46f7c8b3f43eaf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#109;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"22\" style=\"vertical-align: 0px;\"\/>-values, where each value <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c9ca90562e16fc4edd6d6a3c649ae81e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#43;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"22\" style=\"vertical-align: -2px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-5bf4edce1009152f2284be30e87eaff0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#45;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"21\" style=\"vertical-align: 0px;\"\/> occurs with equal <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-57df1cddcf96144307d2513419dd8220_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"25\" style=\"vertical-align: -5px;\"\/> probability. Then if one forms the expression <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-de3a4486beaa99fa5b5100a9bf6cc30e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#44;&#106;&#61;&#49;&#125;&#94;&#110;&#32;&#77;&#95;&#123;&#105;&#106;&#125;&#32;&#120;&#95;&#105;&#32;&#120;&#95;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"23\" width=\"190\" style=\"vertical-align: -8px;\"\/>. Since the entries of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-44092f757392a8bd31d874dabe451fd3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#105;\" title=\"Rendered by QuickLaTeX.com\" height=\"11\" width=\"15\" style=\"vertical-align: -3px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b579cb2878b1f34cbedeb81a01abd17c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"16\" style=\"vertical-align: -6px;\"\/> are independent, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Expected_value\">expectation<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cee8578bfec7c012672dba2ccf5e44b1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#105;&#120;&#95;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"32\" style=\"vertical-align: -6px;\"\/> is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-54589d9b5610bf48dcf5a1b1f24a67b6_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;\"\/> for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a8766f0caa5067ca655f2ff4c29adc48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#92;&#110;&#101;&#32;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"38\" style=\"vertical-align: -4px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-27e3598fd2d4f0491067f1afaced92e9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"7\" style=\"vertical-align: 0px;\"\/> for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cfb2b28a640add09ae818ffd8d51500f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#105;&#32;&#61;&#32;&#106;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"38\" style=\"vertical-align: -4px;\"\/>. Consequently, by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Expected_value#Basic_properties\">linearity of expectation<\/a>, the expected value of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> is<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 52px;\"><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-17a6a7cacc94a45f13853dc8f34f1e3a_l3.png\" height=\"52\" width=\"363\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#44;&#106;&#61;&#49;&#125;&#94;&#110;&#32;&#77;&#95;&#123;&#105;&#106;&#125;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#091;&#120;&#95;&#105;&#120;&#95;&#106;&#093;&#32;&#61;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#32;&#61;&#32;&#49;&#125;&#94;&#110;&#32;&#77;&#95;&#123;&#105;&#105;&#125;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>The average value of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> is equal to the trace of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/>! In the language of statistics, we might say that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> is an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bias_of_an_estimator\"><strong>unbiased estimator<\/strong><\/a> for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/>. Thus, the efficiently computable quantity <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> can serve as a (crude) estimate for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/>.<\/p>\n\n\n\n<p>While the expectation of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2dc5d8804f658d2ccc3c567628c8122e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> equals <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/>, any random realization of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> can deviate from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/> by a non-neligible amount. Thus, to reduce the variability of the estimator <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/>, it is appropriate to take an average of multiple copies of this random estimate. Specifically, we draw <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> random vectors with independent random <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7b7086fe465164ee1c46f7c8b3f43eaf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#109;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"22\" style=\"vertical-align: 0px;\"\/> entries <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2b6d5b31000a7cb0d1b5d941c3f3d996_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#120;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"74\" style=\"vertical-align: -4px;\"\/> and compute the averaged trace estimator<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 56px;\"><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-f8d9f8a64ca26ec51b08f3c78fa1087c_l3.png\" height=\"56\" width=\"155\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#84;&#95;&#107;&#32;&#58;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#107;&#125;&#32;&#92;&#115;&#117;&#109;&#95;&#123;&#106;&#61;&#49;&#125;&#94;&#107;&#32;&#120;&#95;&#106;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#95;&#106;&#94;&#123;&#92;&#118;&#112;&#104;&#97;&#110;&#116;&#111;&#109;&#123;&#92;&#116;&#111;&#112;&#125;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>The <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>-sample trace estimator <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-af88e502628e053cdc559ea2e9a0ecd7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: -3px;\"\/> remains an unbiased estimator for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a0a8ef71f6cde480fcbdd954b897768f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#44;&#32;&#84;&#95;&#107;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"103\" style=\"vertical-align: -5px;\"\/>, but with reduced variability. Quantitatively, the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Variance\">variance<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-af88e502628e053cdc559ea2e9a0ecd7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#84;&#95;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: -3px;\"\/> is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> times smaller than the single-sample estimator <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/>:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><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-f10e96b7639f45eb8e38f0a02a6ce251_l3.png\" height=\"36\" width=\"197\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#84;&#95;&#107;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#107;&#125;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>The Girard\u2013Hutchinson trace estimator gives a natural way of estimating the trace of the matrix <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/>, a task which might otherwise be hard without randomness.<sup class=\"modern-footnotes-footnote \" data-mfn=\"3\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-3\">3<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-3\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"3\">To illustrate what randomness is buying us here, it might be instructive to think about how one might try to estimate the trace of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/> via matrix\u2013vector products without the help of randomness.<\/span> For the trace estimator to be a useful tool, an important question remains: How many samples <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> are needed to compute <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/> to a given accuracy? Concentration inequalities answer questions of this nature.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concentration Inequalities<\/h2>\n\n\n\n<p>A <strong>concentration inequality<\/strong> provides a bound on the probability a random quantity is significantly larger or smaller than its typical value. Concentration inequalities are useful because they allow us to prove statements like &#8220;With at least 99% probability, the randomized trace estimator with 100 samples produces an approximation of the trace which is accurate up to error no larger than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0855ad2948ec445224ca70529ac7713d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#48;&#46;&#48;&#48;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"40\" style=\"vertical-align: 0px;\"\/>.&#8221; In other words, concentration inequalities can provide quantitative estimates of the likely size of the error when a randomized algorithm is executed.<\/p>\n\n\n\n<p>In this section, we shall introduce a handful of useful concentration inequalities, which we will apply to the randomized trace estimator in the next section. We&#8217;ll then discuss how these and other concentration inequalities can be <em>derived<\/em> in the following section. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Markov&#8217;s Inequality<\/h3>\n\n\n\n<p>Markov&#8217;s inequality is the most fundamental concentration inequality. When used directly, it is a blunt instrument, requiring little insight to use and producing a crude but sometimes useful estimate. However, as we shall see later, all of the sophisticated concentration inequalities that will follow in this post can be derived from a careful use of Markov&#8217;s inequality.<\/p>\n\n\n\n<p>The wide utility of Markov&#8217;s inequality is a consequence of the minimal assumptions needed for its use. Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> be <em>any<\/em> nonnegative random variable. Markov&#8217;s inequality states that the probability that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> exceeds a level <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9357d7f074d343e8f5599e26b08d9a2f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#32;&#62;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"39\" style=\"vertical-align: -2px;\"\/> is bounded by the expected value of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> over <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>. In equations, we have<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><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-084e49886f208127fcdd1ddb34d428c4_l3.png\" height=\"36\" width=\"140\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#88;&#125;&#123;&#116;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>We stress the fact that we make no assumptions on how the random quantity <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> is generated other than that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> is nonnegative.<\/p>\n\n\n\n<p>As a short example of Markov&#8217;s inequality, suppose we have a randomized algorithm which takes one second on average to run. Markov&#8217;s inequality then shows that the probability the algorithm takes more than 100 seconds to run is at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-288efb61c76ccbc38c7f8465320b8d21_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#49;&#48;&#48;&#32;&#61;&#32;&#49;&#92;&#37;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"90\" style=\"vertical-align: -5px;\"\/>. This small example shows both the power and the limitation of Markov&#8217;s inequality. On the negative side, our analysis suggests that we might have to wait as much as 100 times the average runtime for the algorithm to complete running with 99% probability; this large huge multiple of 100 seems quite pessimistic. On the other hand, we needed no information whatsoever about how the algorithm works to do this analysis. In general, Markov&#8217;s inequality cannot be improved without more assumptions on the random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>.<sup class=\"modern-footnotes-footnote \" data-mfn=\"4\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-4\">4<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-4\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"4\">For instance, imagine an algorithm which 99% of the time completes instantly and 1% of the time takes 100 seconds. This algorithm does have an average runtime of 1 second, but the conclusion of Markov&#8217;s inequality that the runtime of the algorithm can be as much as 100 times the average runtime with 1% probability is true.<\/span>\n\n\n\n<h3 class=\"wp-block-heading\">Chebyshev&#8217;s Inequality and Averages<\/h3>\n\n\n\n<p>The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Variance\">variance<\/a> of a random variable describes the expected size of a random variable&#8217;s deviation from its expected value. As such, we would expect that the variance should provide a bound on the probability a random variable is far from its expectation. This intuition indeed is correct and is manifested by <a href=\"https:\/\/en.wikipedia.org\/wiki\/Chebyshev%27s_inequality\">Chebyshev&#8217;s inequality<\/a>. Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> be a random variable (with finite expected value) and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9357d7f074d343e8f5599e26b08d9a2f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#32;&#62;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"39\" style=\"vertical-align: -2px;\"\/>. Chebyshev&#8217;s inequality states that the probability that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> deviates from its expected value by more than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> is at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-25b7c6c356cf258e21f5f4eff65cdd1c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#41;&#47;&#116;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"80\" style=\"vertical-align: -5px;\"\/>:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 38px;\"><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-627e81497962eaf5ad5f44cc3255cb71_l3.png\" height=\"38\" width=\"229\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#88;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#41;&#125;&#123;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Chebyshev&#8217;s inequality is frequently applied to sums or averages of independent random quantities. Suppose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are <a href=\"https:\/\/en.wikipedia.org\/wiki\/Independent_and_identically_distributed_random_variables\">independent and identically distributed<\/a> random variables with mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2bb68b3a01ca19f92d6d51b28cd559fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"11\" style=\"vertical-align: -4px;\"\/> and variance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> and let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> denote the average<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 37px;\"><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-d77e8614d4317cc2c0e63c6222d60300_l3.png\" height=\"37\" width=\"158\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#88;&#95;&#49;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#88;&#95;&#110;&#125;&#123;&#110;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Since the random variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are independent,<sup class=\"modern-footnotes-footnote \" data-mfn=\"5\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-5\">5<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-5\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"5\">In fact, this calculation works if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are only <a href=\"https:\/\/en.wikipedia.org\/wiki\/Pairwise_independence\">pairwise independent<\/a> or even pairwise <a href=\"https:\/\/en.wikipedia.org\/wiki\/Uncorrelatedness_(probability_theory)\">uncorrelated<\/a>. For algorithmic applications, this means that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> don&#8217;t have to be fully independent of each other; we just need any pair of them to be uncorrelated. This allows many randomized algorithms to be &#8220;<a href=\"https:\/\/en.wikipedia.org\/wiki\/Randomized_algorithm#Derandomization\">derandomized<\/a>&#8220;, reducing the amount of &#8220;true&#8221; randomness needed to execute an algorithm.<\/span> the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Variance#Basic_properties\">properties of variance<\/a> entail that<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><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-27b859308fe1bed49eb765905481ff10_l3.png\" height=\"45\" width=\"582\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#41;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#88;&#95;&#49;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#88;&#95;&#110;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#94;&#50;&#125;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#95;&#49;&#41;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#94;&#50;&#125;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#95;&#110;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#123;&#110;&#125;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>where we use the fact that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee99aa4be550964139f0f73ec03713c7_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#95;&#49;&#41;&#32;&#61;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#95;&#110;&#41;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"238\" style=\"vertical-align: -5px;\"\/>. Therefore, by Chebyshev&#8217;s inequality,<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 39px;\"><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-6ea81f6d131c968a50da4d5277031223_l3.png\" height=\"39\" width=\"181\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#123;&#110;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Suppose we want to estimate the mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2bb68b3a01ca19f92d6d51b28cd559fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"11\" style=\"vertical-align: -4px;\"\/> by <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> up to error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/> and are willing to tolerate a failure probability of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-50f767701973c5f8f4cb8cc6ed459bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"8\" style=\"vertical-align: 0px;\"\/>. Then setting the right-hand side of (5) to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-50f767701973c5f8f4cb8cc6ed459bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"8\" style=\"vertical-align: 0px;\"\/>, Chebyshev&#8217;s inequality suggests that we need at most<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 38px;\"><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-4d7247c42f6afb0c1d951e8a20a3eee2_l3.png\" height=\"38\" width=\"94\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#110;&#32;&#61;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>samples to achieve this goal.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Exponential Concentration: Hoeffding and Bernstein<\/h3>\n\n\n\n<p>How happy should we be with the result (6) of applying Chebyshev&#8217;s inequality the average <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/>? The <a href=\"https:\/\/en.wikipedia.org\/wiki\/Central_limit_theorem\">central limit theorem<\/a> suggests that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> should be approximately normally distributed with mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2bb68b3a01ca19f92d6d51b28cd559fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"11\" style=\"vertical-align: -4px;\"\/> and variance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f549c54a78365e9216479b5856d6baa0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#47;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"38\" style=\"vertical-align: -5px;\"\/>. Normal random variables have an <em>exponentially<\/em> small probability of being more than a few standard deviations above their mean, so it is natural to expect this should be true of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> as well. Specifically, we expect a bound roughly like<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><span class=\"ql-right-eqno\"> (7) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-e6b06ad6262579b6139929146cf55e00_l3.png\" height=\"44\" width=\"257\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#115;&#116;&#97;&#99;&#107;&#114;&#101;&#108;&#123;&#63;&#125;&#123;&#92;&#108;&#101;&#115;&#115;&#97;&#112;&#112;&#114;&#111;&#120;&#125;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#116;&#94;&#50;&#125;&#123;&#50;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Unfortunately, we don&#8217;t have a general result quite this nice without additional assumptions, but there are a diverse array of exponential concentration inequalities available which are quite useful in analyzing sums (or averages) of independent random variables that appear in applications.<\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Hoeffding%27s_inequality#General_case_of_bounded_random_variables\">Hoeffding&#8217;s inequality<\/a> is one such bound. Let <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> be independent (but not necessarily identically distributed) random variables and consider the average <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cfe9c9f320fb28cf1be4b8161ebfd49a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#61;&#32;&#40;&#88;&#95;&#49;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#88;&#95;&#110;&#41;&#47;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"184\" style=\"vertical-align: -5px;\"\/>. Hoeffding&#8217;s inequality makes the assumption that the summands are <em>bounded<\/em>, say within an interval <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-336bb22d4b2092329486008f6665b888_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#091;&#97;&#44;&#98;&#093;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"31\" style=\"vertical-align: -5px;\"\/>.<sup class=\"modern-footnotes-footnote \" data-mfn=\"6\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-6\">6<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-6\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"6\">There are also more general versions of Hoeffding&#8217;s inequality where the bound on each random variable is different.<\/span> Hoeffding&#8217;s inequality then states that<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><span class=\"ql-right-eqno\"> (8) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8634cbfeecc1d6d13ca485b1373d68db_l3.png\" height=\"44\" width=\"321\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#50;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#110;&#116;&#94;&#50;&#125;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Hoeffding&#8217;s inequality is quite similar to the ideal concentration result (7) except with the variance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a08d593eb4b1752cf9df827aaf3ca725_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#110;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"112\" style=\"vertical-align: -5px;\"\/> replaced by the potentially much larger quantity<sup class=\"modern-footnotes-footnote \" data-mfn=\"7\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-7\">7<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-7\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"7\">Note that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> is always smaller than or equal to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-d67af0a781f84c86d4ce54bd5cc68d64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#47;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"77\" style=\"vertical-align: -5px;\"\/>.<\/span> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-d67af0a781f84c86d4ce54bd5cc68d64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#47;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"77\" style=\"vertical-align: -5px;\"\/>.<\/p>\n\n\n\n<p><a href=\"https:\/\/en.wikipedia.org\/wiki\/Bernstein_inequalities_(probability_theory)#Some_of_the_inequalities\">Bernstein&#8217;s inequality<\/a> fixes this deficit in Hoeffding&#8217;s inequality at a small cost. Now, instead of assuming <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are bounded within the interval <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-336bb22d4b2092329486008f6665b888_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#091;&#97;&#44;&#98;&#093;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"31\" style=\"vertical-align: -5px;\"\/>, we make the alternate boundedness assumption <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-06cf721e85a9a99f9e45ac6cdebe4e59_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#88;&#95;&#105;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#44;&#32;&#88;&#95;&#105;&#124;&#32;&#92;&#108;&#101;&#32;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"122\" style=\"vertical-align: -5px;\"\/> for every <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7a056a03686c1a230ddc239d6bbeeee1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#92;&#108;&#101;&#32;&#105;&#92;&#108;&#101;&#32;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"72\" style=\"vertical-align: -3px;\"\/>. We continue to denote <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a08d593eb4b1752cf9df827aaf3ca725_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#61;&#32;&#110;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"112\" style=\"vertical-align: -5px;\"\/> so that if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are identically distributed, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> denotes the variance of each of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/>. Bernstein&#8217;s inequality states that<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><span class=\"ql-right-eqno\"> (9) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-784abb69cbbeaac38b2ea730bbb94ec8_l3.png\" height=\"44\" width=\"339\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#50;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#110;&#116;&#94;&#50;&#47;&#50;&#125;&#123;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#43;&#32;&#66;&#116;&#47;&#51;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>For small values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>, Bernstein&#8217;s inequality yields exactly the kind of concentration that we would hope for from our central limit theorem heuristic (7). However, for large values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>, we have<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 48px;\"><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-ebe6ebe4414670d3534b50202b95ef8e_l3.png\" height=\"48\" width=\"323\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#115;&#116;&#97;&#99;&#107;&#114;&#101;&#108;&#123;&#92;&#109;&#98;&#111;&#120;&#123;&#108;&#97;&#114;&#103;&#101;&#32;&#36;&#116;&#36;&#125;&#125;&#123;&#92;&#108;&#101;&#115;&#115;&#97;&#112;&#112;&#114;&#111;&#120;&#125;&#32;&#50;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#51;&#110;&#116;&#125;&#123;&#50;&#66;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>which is exponentially small in <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> rather than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-724334c5d467a26d1b527b6367f3fa15_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"13\" style=\"vertical-align: 0px;\"\/>. We conclude that Bernstein&#8217;s inequality provides sharper bounds then Hoeffding&#8217;s inequality for smaller values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> but weaker bounds for larger values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Chebyshev vs. Hoeffding vs. Bernstein<\/h3>\n\n\n\n<p>Let&#8217;s return to the situation where we seek to estimate the mean <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2bb68b3a01ca19f92d6d51b28cd559fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"11\" style=\"vertical-align: -4px;\"\/> of independent and identically distributed random variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> each with variance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> by using the averaged value <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cfe9c9f320fb28cf1be4b8161ebfd49a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#61;&#32;&#40;&#88;&#95;&#49;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#88;&#95;&#110;&#41;&#47;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"184\" style=\"vertical-align: -5px;\"\/>. Our goal is to bound how many samples <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-75a5652acadcd645b180a972b75a9d09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> we need to estimate <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2bb68b3a01ca19f92d6d51b28cd559fc_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#117;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"11\" style=\"vertical-align: -4px;\"\/> up to error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a9edbd315820ff37ed07c84042c0c452_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#117;&#32;&#124;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"87\" style=\"vertical-align: -5px;\"\/>, except with failure probability at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-50f767701973c5f8f4cb8cc6ed459bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"8\" style=\"vertical-align: 0px;\"\/>. Using Chebyshev&#8217;s inequality, we showed that (see (7))<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 38px;\"><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-a6547c02f59eb0cba92b77698305f7f6_l3.png\" height=\"38\" width=\"160\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#110;&#32;&#92;&#103;&#101;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#115;&#117;&#102;&#102;&#105;&#99;&#101;&#115;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Now, let&#8217;s try using Hoeffding&#8217;s inequality. Suppose that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are bounded in the interval <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-336bb22d4b2092329486008f6665b888_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#091;&#97;&#44;&#98;&#093;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"31\" style=\"vertical-align: -5px;\"\/>. Then Hoeffding&#8217;s inequality (8) shows that<\/p>\n\n\n<p><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-2f2137a997e82a82696ddc40e3a70246_l3.png\" height=\"39\" width=\"254\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#110;&#32;&#92;&#103;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125;&#123;&#52;&#125;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#108;&#111;&#103;&#40;&#50;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#115;&#117;&#102;&#102;&#105;&#99;&#101;&#115;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Bernstein&#8217;s inequality states that if <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> lie in the interval <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-bada0c6b976891e43bcc4c3b7508e96e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#091;&#92;&#109;&#117;&#45;&#66;&#44;&#92;&#109;&#117;&#43;&#66;&#093;\" title=\"Rendered by QuickLaTeX.com\" height=\"18\" width=\"107\" style=\"vertical-align: -5px;\"\/> for every <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-216d911910e52af1a9765d37a7528b76_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#92;&#108;&#101;&#32;&#105;&#32;&#92;&#108;&#101;&#32;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"72\" style=\"vertical-align: -3px;\"\/>, then<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 38px;\"><span class=\"ql-right-eqno\"> (10) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6e6b4f31e06ec8fa3cdf10f6c052a611_l3.png\" height=\"38\" width=\"363\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#110;&#32;&#92;&#103;&#101;&#32;&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#108;&#111;&#103;&#40;&#50;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;&#32;&#43;&#32;&#66;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#47;&#51;&#92;&#99;&#100;&#111;&#116;&#92;&#108;&#111;&#103;&#40;&#50;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#115;&#117;&#102;&#102;&#105;&#99;&#101;&#115;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Hoeffding&#8217;s and Bernstein&#8217;s inequality show that we need <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-75a5652acadcd645b180a972b75a9d09_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"11\" style=\"vertical-align: 0px;\"\/> roughly proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c186b4f6fa0fb1eb2d8e5989aedde1af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#111;&#103;&#40;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"26\" width=\"49\" style=\"vertical-align: -7px;\"\/> samples are needed rather than proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-594dc4fef6620515eb1eb6fc73513375_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#102;&#114;&#97;&#99;&#123;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"26\" width=\"21\" style=\"vertical-align: -7px;\"\/>. The fact that we need proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-e3f3fe70799415e2f5775ac8081a0641_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"31\" style=\"vertical-align: -5px;\"\/> samples to achieve error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/> is a consequence of the central limit theorem and is something we would not be able to improve with any concentration inequality. What exponential concentration inequalities allow us to do is to improve the dependence on the failure probability from proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f441e579740d4c8f1953f1311f930b96_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"25\" style=\"vertical-align: -5px;\"\/> to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cb23963a87a8f06e7e31e49a1d2499b8_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#111;&#103;&#40;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"62\" style=\"vertical-align: -5px;\"\/>, which is a <em>huge<\/em> improvement.<\/p>\n\n\n\n<p>Hoeffding&#8217;s and Bernstein&#8217;s inequalities both have a small drawback. For Hoeffding&#8217;s inequality, the constant of proportionality is <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-d67af0a781f84c86d4ce54bd5cc68d64_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#47;&#52;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"77\" style=\"vertical-align: -5px;\"\/> rather than the true variance <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> of the summands. Bernstein&#8217;s inequality gives us the &#8220;correct&#8221; constant of proportionality <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a2024a460bf317e5afc96726d79cb6ff_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#115;&#105;&#103;&#109;&#97;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"18\" style=\"vertical-align: 0px;\"\/> but adds a second term proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-138ab05159b486a942d613780a945530_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#111;&#103;&#40;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"25\" width=\"49\" style=\"vertical-align: -6px;\"\/>; for small values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/>, this term is dominated by the term proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c186b4f6fa0fb1eb2d8e5989aedde1af_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#102;&#114;&#97;&#99;&#123;&#92;&#108;&#111;&#103;&#40;&#49;&#47;&#92;&#100;&#101;&#108;&#116;&#97;&#41;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"26\" width=\"49\" style=\"vertical-align: -7px;\"\/> but the second term can be relevant for larger values of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/>.<\/p>\n\n\n\n<p>There are a panoply of additional concentration inequalities than the few we&#8217;ve mentioned. We give a selected overview in the following optional section.<\/p>\n\n\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>Other Concentration Inequalities<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">There are a handful more exponential concentration inequalities for sums of independent random variables such as <a href=\"https:\/\/en.wikipedia.org\/wiki\/Chernoff_bound\">Chernoff&#8217;s inequality<\/a> (very useful for somes of bounded, positive random variables) and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Bennett%27s_inequality\">Bennett&#8217;s inequality<\/a>. There are also generalizations of <a href=\"https:\/\/en.wikipedia.org\/wiki\/Hoeffding's_inequality#General_case_of_sub-Gaussian_random_variables\">Hoeffding&#8217;s<\/a>, Chernoff&#8217;s, and Bernstein&#8217;s inequalities for unbounded random variables with <a href=\"https:\/\/en.wikipedia.org\/wiki\/Sub-Gaussian_distribution\">subgaussian<\/a>&nbsp;and <a href=\"http:\/\/www.stat.cmu.edu\/~arinaldo\/Teaching\/36709\/S19\/Scribed_Lectures\/Feb5_Aleksandr.pdf\">subexponential<\/a>&nbsp;tail decay; these results are documented in Chapter 2 of&nbsp;<a href=\"https:\/\/www.math.uci.edu\/~rvershyn\/\">Roman Vershynin&#8217;s<\/a> excellent book <a href=\"https:\/\/www.math.uci.edu\/~rvershyn\/papers\/HDP-book\/HDP-book.html\"><em>High-Dimensional Probability<\/em><\/a>.<\/p>\n<p>One can also generalize concentration inequalities to so-called <a href=\"https:\/\/en.wikipedia.org\/wiki\/Martingale_(probability_theory)\">martingale<\/a> sequences, which can be very useful for analyzing adaptive algorithms. These inequalities can often have the advantage of bounding the probability that a martingale sequence <em>ever<\/em> deviates by some amount from its applications; these results are called maximal inequalities. Maximal analogs of Markov&#8217;s and Chebyshev&#8217;s inequalities are given by <a href=\"https:\/\/www.stat.cmu.edu\/~aramdas\/martingales18\/L2-martingales.pdf\">Ville&#8217;s inequality<\/a> and <a href=\"https:\/\/en.wikipedia.org\/wiki\/Doob%27s_martingale_inequality#Further_inequalities\">Doob&#8217;s inequality<\/a>. Exponential concentration inequalities include the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Azuma%27s_inequality#A_general_form_of_Azuma's_inequality\">Hoeffding\u2013Azuma inequality<\/a> and <a href=\"https:\/\/www.jstor.org\/stable\/2959268\">Freedman&#8217;s inequality<\/a>.<\/p>\n<p>Finally, we note that there are <em>many<\/em> concentration inequalities for functions of independent random variables other than sums, usually under the assumption that the function is <a href=\"https:\/\/en.wikipedia.org\/wiki\/Lipschitz_continuity\">Lipschitz continuous<\/a>. There are exponential concentration inequalities for <a href=\"https:\/\/en.wikipedia.org\/wiki\/Doob_martingale#McDiarmid's_inequality\">functions with &#8220;bounded differences&#8221;<\/a>, functions of Gaussian random variables, and convex functions of bounded random variables. References for these results include Chapters 3 and 4 of the lecture notes&nbsp;<a href=\"https:\/\/web.math.princeton.edu\/~rvan\/APC550.pdf\"><em>Probability in High Dimension<\/em><\/a> by <a href=\"https:\/\/web.math.princeton.edu\/~rvan\/\">Ramon van Handel<\/a>&nbsp;and the comprehensive monograph&nbsp;<a href=\"https:\/\/oxford.universitypressscholarship.com\/view\/10.1093\/acprof:oso\/9780199535255.001.0001\/acprof-9780199535255\"><em>Concentration Inequalities<\/em><\/a>&nbsp;by <a href=\"https:\/\/stephane-v-boucheron.fr\">St\u00e9phane Boucheron<\/a>, <a href=\"http:\/\/www.econ.upf.edu\/~lugosi\/\">G\u00e1bor Lugosi<\/a>, and <a href=\"http:\/\/massart.pascal.free.fr\/Site\/Home.html\">Pascal Massart<\/a>.<\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Analysis of Randomized Trace Estimation<\/h2>\n\n\n\n<p>Let us apply some of the concentration inequalities we introduced in last section to analyze the randomized trace estimator. Our goal is not to provide the best possible analysis of the trace estimator,<sup class=\"modern-footnotes-footnote \" data-mfn=\"8\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-8\">8<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-8\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"8\">More precise estimation for trace estimation applied to positive semidefinite matrices was developed by <a href=\"https:\/\/epubs.siam.org\/doi\/10.1137\/17M1137541\">Gratton and Titley-Peloquin<\/a>; see Theorem 4.5 of the <a href=\"https:\/\/arxiv.org\/abs\/2002.01387\">following survey<\/a>.<\/span> but to demonstrate how the general concentration inequalities we&#8217;ve developed can be useful &#8220;out of the box&#8221; in analyzing algorithms.<\/p>\n\n\n\n<p>In order to apply Chebyshev&#8217;s and Berstein&#8217;s inequalities, we shall need to compute or bound the variance of the single-sample trace estimtor <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2dc5d8804f658d2ccc3c567628c8122e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/>, where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/> is a random vector of independent <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7b7086fe465164ee1c46f7c8b3f43eaf_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#112;&#109;&#32;&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"22\" style=\"vertical-align: 0px;\"\/>-values. This is a straightforward task using <a href=\"https:\/\/en.wikipedia.org\/wiki\/Variance#Sum_of_correlated_variables\">properties of the variance<\/a>:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 64px;\"><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-ac30a10f02ae1db0ec17e7e9302fbd1b_l3.png\" height=\"64\" width=\"725\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#41;&#32;&#61;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#50;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#60;&#32;&#106;&#125;&#32;&#77;&#95;&#123;&#105;&#106;&#125;&#32;&#120;&#95;&#105;&#32;&#120;&#95;&#106;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#52;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#92;&#110;&#101;&#32;&#106;&#44;&#32;&#92;&#58;&#32;&#107;&#92;&#110;&#101;&#32;&#92;&#101;&#108;&#108;&#125;&#32;&#77;&#95;&#123;&#105;&#106;&#125;&#32;&#77;&#95;&#123;&#107;&#92;&#101;&#108;&#108;&#125;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#67;&#111;&#118;&#125;&#40;&#120;&#95;&#105;&#120;&#95;&#106;&#44;&#120;&#95;&#107;&#120;&#95;&#92;&#101;&#108;&#108;&#41;&#32;&#61;&#32;&#52;&#92;&#115;&#117;&#109;&#95;&#123;&#105;&#32;&#60;&#32;&#106;&#125;&#32;&#77;&#95;&#123;&#105;&#106;&#125;&#94;&#50;&#32;&#92;&#108;&#101;&#32;&#50;&#32;&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;&#94;&#50; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Here, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4e36cea880b8db5488773cc66affed48_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#67;&#111;&#118;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"30\" style=\"vertical-align: 0px;\"\/> is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Covariance\">covariance<\/a> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a4415206544b48cc3a90e08f101f138e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#92;&#99;&#100;&#111;&#116;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"38\" style=\"vertical-align: -5px;\"\/> is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Matrix_norm#Frobenius_norm\">matrix Frobenius norm<\/a>. Chebyshev&#8217;s inequality (5), then gives<\/p>\n\n\n<p><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-f9f7d1318401b1304b95b8c028577720_l3.png\" height=\"39\" width=\"245\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#84;&#95;&#107;&#32;&#45;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;&#94;&#50;&#125;&#123;&#107;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Let&#8217;s now try applying an exponential concentration inequality. We shall use Bernstein&#8217;s inequality, for which we need to bound <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a501ac654aeec42391d3cda40d0c2c8b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#32;&#45;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"125\" style=\"vertical-align: -5px;\"\/>. By the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Min-max_theorem\">Courant\u2013Fischer minimax principle<\/a>, we know that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> is between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8bd78188d7c2d61a4aa0e85470984706_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#105;&#110;&#125;&#40;&#77;&#41;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#124;&#120;&#92;&#124;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"115\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9c03d9d62c5d774f87483b2045ea62bb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#97;&#120;&#125;&#32;&#40;&#77;&#41;&#92;&#99;&#100;&#111;&#116;&#92;&#124;&#120;&#92;&#124;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"117\" style=\"vertical-align: -5px;\"\/> where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4eac93ef64e595b4a161a1860aac9f10_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#105;&#110;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"66\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-2f993d15cf642b79060750b124c8f340_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#97;&#120;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"69\" style=\"vertical-align: -5px;\"\/> are the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Eigenvalues_and_eigenvectors\">smallest and largest eigenvalues<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7987646bca9e9a29db482a42da249179_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#120;&#92;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"24\" style=\"vertical-align: -5px;\"\/> is the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Norm_(mathematics)#Euclidean_norm\">Euclidean norm<\/a> of the vector <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/>. Since all the entries of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/> have absolute value <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-27e3598fd2d4f0491067f1afaced92e9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"7\" style=\"vertical-align: 0px;\"\/>, we have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7abd3a0e75af10c3357b025cc1462f7a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#120;&#92;&#124;&#32;&#61;&#32;&#92;&#115;&#113;&#114;&#116;&#123;&#110;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"75\" style=\"vertical-align: -5px;\"\/> so <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3df8236d51237ef1b20cff071b9d5bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"51\" style=\"vertical-align: 0px;\"\/> is between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3826ac7a039a6901494d4b50bd180086_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#105;&#110;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"77\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-33df675b9c41fd96fb090f50c3325db3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#97;&#120;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"79\" style=\"vertical-align: -5px;\"\/>. Since the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Trace_(linear_algebra)#Trace_equals_sum_of_eigenvalues\">trace equals the sum of the eigenvalues<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-a038471f70ce2efa1e2bb1ab05e0a7ce_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#77;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"19\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/> is also between <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3826ac7a039a6901494d4b50bd180086_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#105;&#110;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"77\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-33df675b9c41fd96fb090f50c3325db3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#110;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#97;&#120;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"79\" style=\"vertical-align: -5px;\"\/>. Therefore,<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 34px;\"><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-4a8dcf5ab510e1f0353c6aacd381927b_l3.png\" height=\"34\" width=\"423\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#108;&#101;&#102;&#116;&#124;&#32;&#120;&#94;&#92;&#116;&#111;&#112;&#32;&#77;&#32;&#120;&#32;&#45;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#108;&#101;&#32;&#110;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#97;&#120;&#125;&#40;&#77;&#41;&#32;&#45;&#32;&#92;&#108;&#97;&#109;&#98;&#100;&#97;&#95;&#123;&#92;&#114;&#109;&#32;&#109;&#105;&#110;&#125;&#40;&#77;&#41;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#108;&#101;&#32;&#50;&#32;&#110;&#32;&#92;&#124;&#77;&#92;&#124;&#44; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6f7c7374d9450ba3b092597ca402f7b1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#92;&#99;&#100;&#111;&#116;&#92;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"27\" style=\"vertical-align: -5px;\"\/> denotes the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Matrix_norm#Norms_induced_by_p-norms\">matrix spectral norm<\/a>. Therefore, by Bernstein&#8217;s inequality (9), we have<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 45px;\"><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-1c8018992a681fb6663b5494e0a61804_l3.png\" height=\"45\" width=\"445\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#108;&#101;&#102;&#116;&#124;&#32;&#84;&#95;&#107;&#32;&#45;&#32;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#50;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#92;&#102;&#114;&#97;&#99;&#123;&#107;&#116;&#94;&#50;&#125;&#123;&#52;&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;&#94;&#50;&#32;&#43;&#32;&#52;&#47;&#51;&#92;&#99;&#100;&#111;&#116;&#32;&#116;&#110;&#92;&#124;&#77;&#92;&#124;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>In particular, (10) shows that<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><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-c32fba7b276d44d44a2e3571f184c03b_l3.png\" height=\"44\" width=\"265\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#107;&#32;&#92;&#103;&#101;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;&#94;&#50;&#125;&#123;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;&#125;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#110;&#92;&#124;&#77;&#92;&#124;&#125;&#123;&#51;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#125;&#123;&#92;&#100;&#101;&#108;&#116;&#97;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>samples suffice to estimate <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ed5574f4532875fc08678a4e4ba807e1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#116;&#114;&#125;&#40;&#77;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"46\" style=\"vertical-align: -5px;\"\/> to error <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/> with failure probability at most <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-50f767701973c5f8f4cb8cc6ed459bad_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#100;&#101;&#108;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"13\" width=\"8\" style=\"vertical-align: 0px;\"\/>. Concentration inequalities easily furnish estimates for the number of samples needed for the randomized trace estimator.<\/p>\n\n\n\n<p>We have now accomplished our main goal of using concentration inequalities to analyze the randomized trace estimator, which in turn can be used to solve the triangle counting problem. We leave some additional comments on trace estimation and triangle counting in the following bonus section.<\/p>\n\n\n<div class=\"su-spoiler su-spoiler-style-default su-spoiler-icon-plus su-spoiler-closed\" data-scroll-offset=\"0\" data-anchor-in-url=\"no\"><div class=\"su-spoiler-title\" tabindex=\"0\" role=\"button\"><span class=\"su-spoiler-icon\"><\/span>More on Trace Estimation and Triangle Counting<\/div><div class=\"su-spoiler-content su-u-clearfix su-u-trim\">To really complete the analysis of the trace estimator in an application (e.g., triangle counting), we would need to obtain bounds on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cc2e559da67cf18470e3d956216a7726_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"44\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9bee8d4a5933de99f9b9eb3ed35300e0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#77;&#92;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"33\" style=\"vertical-align: -5px;\"\/>. Since we often don&#8217;t know good bounds for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-cc2e559da67cf18470e3d956216a7726_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#77;&#92;&#124;&#95;&#123;&#92;&#114;&#109;&#32;&#70;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"44\" style=\"vertical-align: -5px;\"\/> and <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-532780c9f33b3aa9f3f4135bbacb2192_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#124;&#77;&#32;&#92;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"33\" style=\"vertical-align: -5px;\"\/>, one should really use the trace estimator together with an&nbsp;<a href=\"https:\/\/en.wikipedia.org\/wiki\/A_priori_and_a_posteriori\"><em>a posteriori <\/em><\/a>error estimates for the trace estimator, which provide a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Confidence_interval\">confidence interval<\/a> for the trace rather than a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Point_estimation\">point estimate<\/a>; see sections 4.5 and 4.6 in <a href=\"https:\/\/arxiv.org\/abs\/2002.01387\">this survey<\/a>&nbsp;for details.<\/p>\n<p>One can improve on the Girard\u2013Hutchinson trace estimator by using a variance reduction technique. One such variance reduction technique was <a href=\"https:\/\/arxiv.org\/abs\/2010.09649\">recently proposed under the name Hutch++<\/a>, extending ideas by&nbsp;<a href=\"https:\/\/epubs.siam.org\/doi\/abs\/10.1137\/16M1066361?casa_token=PIa-GYPRbigAAAAA:DGkzBIw2V4gfLry9o64YVyKWt_9XVUcnvBhQWhwPeSHEcrd82Pq8GlT_J36uyshD7jX708g\">Arjun Singh Gambhir, Andreas Stathopoulos, and Kostas Orginos<\/a>&nbsp;and <a href=\"https:\/\/doi.org\/10.1007\/s00211-016-0837-7\">Lin Lin<\/a>. In effect, these techniques improve the number of samples <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f65286b751f121928913d4aa91d94ee9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> needed to estimate the trace of a <a href=\"https:\/\/en.wikipedia.org\/wiki\/Definite_matrix\"><em>positive semidefinite<\/em><\/a> 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;\"\/> to <a href=\"https:\/\/en.wikipedia.org\/wiki\/Approximation_error\">relative error<\/a> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-41442d5d9b2bc65add2f9c8896bf168b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"8\" width=\"7\" style=\"vertical-align: 0px;\"\/> to proportional to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-38ba6715f254e0b68b9225c049491707_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"24\" style=\"vertical-align: -5px;\"\/> down from <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-e3f3fe70799415e2f5775ac8081a0641_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#92;&#101;&#112;&#115;&#105;&#108;&#111;&#110;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"31\" style=\"vertical-align: -5px;\"\/>.<\/p>\n<p>Several algorithms have been proposed for triangle counting, many of them randomized. <a href=\"https:\/\/doi.org\/10.1002\/widm.1226\">This survey<\/a>&nbsp;gives a comparison of different methods for the triangle counting problem, and also describes more motivation and applications for the problem.<\/div><\/div>\n\n\n<h2 class=\"wp-block-heading\">Deriving Concentration Inequalities<\/h2>\n\n\n\n<p>Having introduced concentration inequalities and applied them to the randomized trace estimator, we now turn to the question of how to <em>derive<\/em> concentration inequalities. Learning how to derive concentration inequalities is more than a matter of mathematical completeness since one can often obtain better results by &#8220;hand-crafting&#8221; a concentration inequality for a particular application rather than applying a known concentration inequality. (Though standard concentration inequalities like Hoeffding&#8217;s and Bernstein&#8217;s often give perfectly adequate answers with much less work.)<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Markov&#8217;s Inequality<\/h3>\n\n\n\n<p>At the most fundamental level, concentration inequalities require us to bound a <em>probability<\/em> by an <em>expectation<\/em>. In achieving this goal, we shall make a simple observation: The probability that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> is larger than or equal to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> is the expectation of a random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-24c1c191cb7f63d77d7b31addb415fec_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#88;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"71\" style=\"vertical-align: -8px;\"\/>.<sup class=\"modern-footnotes-footnote \" data-mfn=\"9\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-9\">9<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-9\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"9\">More generally, the probability of an event can be written as an expectation of the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Indicator_function\">indicator<\/a> random variable of that event.<\/span> Here, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b6faf48dc221c6bf83d03b9934c2c46c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"60\" style=\"vertical-align: -8px;\"\/> is an <a href=\"https:\/\/en.wikipedia.org\/wiki\/Indicator_function\">indicator<\/a> function which outputs one if its input is larger than or equal to <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> and zero otherwise.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"170\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-300x170.png\" alt=\"\" class=\"wp-image-1173\" style=\"width:500px\" srcset=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-300x170.png 300w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-1024x579.png 1024w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-768x434.png 768w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-1536x868.png 1536w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/indicator-1-2048x1157.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure><\/div>\n\n\n<p>As promised, the probability <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> is larger than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f7c31707f29cc03d143ea78c9833003e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"6\" style=\"vertical-align: 0px;\"\/> is the expectation of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-24c1c191cb7f63d77d7b31addb415fec_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#88;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"71\" style=\"vertical-align: -8px;\"\/>:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> (11) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-070609e7e86c3846db2eec810355d5f4_l3.png\" height=\"21\" width=\"197\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#123;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#091;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#88;&#41;&#093;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>We can now obtain bounds on the probability that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-dbdc6fffafdf0f18149523cd6f9424a1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#92;&#103;&#101;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"46\" style=\"vertical-align: -3px;\"\/> by bounding its corresponding indicator function. In particular, we have the inequality <\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 32px;\"><span class=\"ql-right-eqno\"> (12) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-092aca5916b502fa9baab8dc04bf89d8_l3.png\" height=\"32\" width=\"230\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#120;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#120;&#125;&#123;&#116;&#125;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#102;&#111;&#114;&#32;&#101;&#118;&#101;&#114;&#121;&#32;&#125;&#32;&#120;&#92;&#103;&#101;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"170\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-300x170.png\" alt=\"\" class=\"wp-image-1171\" style=\"width:500px\" srcset=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-300x170.png 300w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-1024x579.png 1024w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-768x434.png 768w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-1536x868.png 1536w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/markov-2-2048x1157.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure><\/div>\n\n\n<p>Since <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> is nonnegative, combining equations (11) and (12) gives Markov&#8217;s inequality:<\/p>\n\n\n<p><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-49a753eda4e591b364f5d4f3e24a0b9b_l3.png\" height=\"42\" width=\"329\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#123;&#32;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#091;&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#88;&#41;&#093;&#32;&#92;&#108;&#101;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#091;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#88;&#125;&#123;&#116;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#093;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#125;&#123;&#116;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<h3 class=\"wp-block-heading\">Chebyshev&#8217;s Inequality<\/h3>\n\n\n\n<p>Before we get to Chebyshev&#8217;s inequality proper, let&#8217;s think about how we can push Markov&#8217;s inequality further. Suppose we find a bound on the indicator function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b6faf48dc221c6bf83d03b9934c2c46c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"60\" style=\"vertical-align: -8px;\"\/> of the form<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 21px;\"><span class=\"ql-right-eqno\"> (13) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6f09666f263fd3acfc545991b8619f72_l3.png\" height=\"21\" width=\"228\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#120;&#41;&#32;&#92;&#108;&#101;&#32;&#102;&#40;&#120;&#41;&#32;&#92;&#109;&#98;&#111;&#120;&#123;&#32;&#102;&#111;&#114;&#32;&#97;&#108;&#108;&#32;&#125;&#32;&#120;&#92;&#103;&#101;&#32;&#48;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>A bound of this form immediately to bounds on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b6e3a11bbb344bfca1a67455432a77f9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"73\" style=\"vertical-align: -5px;\"\/> by (11). To obtain sharp and useful bounds on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-807ec0c42a073ab1d57984fb8fb46bb3_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#123;&#88;&#92;&#103;&#101;&#32;&#116;&#92;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"73\" style=\"vertical-align: -5px;\"\/> we seek bounding functions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-725a8141dc45270bed45aab5f9865f93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> in (13) with three properties:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>For <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-38bc8c4cd76eb41c7f8b1f6a79012322_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#92;&#105;&#110;&#091;&#48;&#44;&#32;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"65\" style=\"vertical-align: -5px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0793029ff5365c08494b5e059840049b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"34\" style=\"vertical-align: -5px;\"\/> should be close to zero,<\/li>\n\n\n\n<li>For <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ccb380747bb37f59a5632a5d8e496477_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#120;&#92;&#105;&#110;&#32;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"75\" style=\"vertical-align: -5px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0793029ff5365c08494b5e059840049b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"34\" style=\"vertical-align: -5px;\"\/> should be close to one, and<\/li>\n\n\n\n<li>We need <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-40d1bb03c4af8e327e8a0a18695e35b0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#102;&#40;&#88;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"54\" style=\"vertical-align: -5px;\"\/> to be easily computable or boundable.<\/li>\n<\/ol>\n\n\n\n<p>These three objectives are in tension with each other. To meet criterion 3, we must restrict our attention to pedestrian functions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-725a8141dc45270bed45aab5f9865f93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> such as powers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6dca140d055bf21ef01c04d9ef7a5ea6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#40;&#120;&#47;&#116;&#41;&#94;&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"104\" style=\"vertical-align: -5px;\"\/> or exponentials <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-363716a18e9571dd0673cd0752a1852f_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#40;&#120;&#45;&#116;&#41;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"159\" style=\"vertical-align: -5px;\"\/> for which we have hopes of computing or bounding <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-40d1bb03c4af8e327e8a0a18695e35b0_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#44;&#32;&#102;&#40;&#88;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"54\" style=\"vertical-align: -5px;\"\/> for random variables <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> we encounter in practical applications. But these candidate functions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-725a8141dc45270bed45aab5f9865f93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> have the undesirable property that making the function smaller on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-82f31211c97221161849c570a04eba90_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#091;&#48;&#44;&#32;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"32\" style=\"vertical-align: -5px;\"\/> (by increasing <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3eff9dcbcd5c19f0c719ef58060e0716_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>) to meet point 1 makes the function larger on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8ffc0c57e645e5c22c72c1e53c84d62c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#40;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"44\" style=\"vertical-align: -5px;\"\/>, detracting from our ability to achieve point 2. We shall eventually come up with a best-possible resolution to this dilemma by formulating this as an optimization problem to determine the best choice of the parameter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-42b512731095893795e4e92b09f4ac76_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#62;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"41\" style=\"vertical-align: -2px;\"\/> to obtain the best possible candidate function of the given form.<\/p>\n\n\n\n<p>Before we get ahead of ourselves, let us use a specific choice for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-725a8141dc45270bed45aab5f9865f93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> different than we used to prove Markov&#8217;s inequality. We readily verify that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0a68bd169bfe19550c4919b287a09478_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#40;&#120;&#47;&#116;&#41;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"104\" style=\"vertical-align: -5px;\"\/> satisfies the bound (13), and thus by (12),<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 46px;\"><span class=\"ql-right-eqno\"> (14) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-328c90d6781359f3d7f6bdc1de348b29_l3.png\" height=\"46\" width=\"234\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#88;&#125;&#123;&#116;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#94;&#50;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#94;&#50;&#125;&#123;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-medium is-resized\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"170\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-300x170.png\" alt=\"\" class=\"wp-image-1172\" style=\"width:500px\" srcset=\"https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-300x170.png 300w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-1024x579.png 1024w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-768x434.png 768w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-1536x868.png 1536w, https:\/\/www.ethanepperly.com\/wp-content\/uploads\/2022\/06\/chebyshev-2-2048x1157.png 2048w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure><\/div>\n\n\n<p>This inequality holds for any nonnegative random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>. In particular, now consider a random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> which we do not assume to be nonnegative. Then <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>&#8216;s deviation from its expectation, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-121a09acca764ccc8505a1ef2bda41aa_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#88;&#45;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"72\" style=\"vertical-align: -5px;\"\/>, is a nonnegative random variable. Thus applying (14) gives<\/p>\n\n\n<p><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-5b0f420c7f81cb10cb1e15bf13e41a45_l3.png\" height=\"39\" width=\"345\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#124;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#124;&#32;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#94;&#50;&#125;&#123;&#116;&#94;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#41;&#125;&#123;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>We have derived Chebyshev&#8217;s inequality! Alternatively, one can derive Chebyshev&#8217;s inequality by noting that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-bcd850d866825120a67b77a87d46576b_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#88;&#45;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#32;&#92;&#103;&#101;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"103\" style=\"vertical-align: -5px;\"\/> if, and only if, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-76c603b56b0781e2a5f59687d40b8d73_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#88;&#45;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#94;&#50;&#32;&#92;&#103;&#101;&#32;&#116;&#94;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"118\" style=\"vertical-align: -5px;\"\/>. Therefore, by Markov&#8217;s inequality,<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 40px;\"><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-52ef0054fbf2217652c15eca6146cc9c_l3.png\" height=\"40\" width=\"519\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#124;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#124;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#94;&#50;&#32;&#92;&#103;&#101;&#32;&#116;&#94;&#50;&#32;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#124;&#32;&#88;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#124;&#94;&#50;&#125;&#123;&#116;&#94;&#50;&#125;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#92;&#111;&#112;&#101;&#114;&#97;&#116;&#111;&#114;&#110;&#97;&#109;&#101;&#123;&#86;&#97;&#114;&#125;&#40;&#88;&#41;&#125;&#123;&#116;&#94;&#50;&#125;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<h3 class=\"wp-block-heading\">The Laplace Transform Method<\/h3>\n\n\n\n<p>We shall now realize the plan outlined earlier where we shall choose an optimal bounding function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-725a8141dc45270bed45aab5f9865f93_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"29\" style=\"vertical-align: -5px;\"\/> from the family of exponential functions <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8208bac12502a179aca08a5e858f09a9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#40;&#120;&#45;&#116;&#41;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"159\" style=\"vertical-align: -5px;\"\/>, where <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-42b512731095893795e4e92b09f4ac76_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#62;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"41\" style=\"vertical-align: -2px;\"\/> is a parameter which we shall optimize over. This method shall allow us to derive exponential concentration inequalities like Hoeffding&#8217;s and Bernstein&#8217;s. Note that the exponential function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-8208bac12502a179aca08a5e858f09a9_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#102;&#40;&#120;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#40;&#120;&#45;&#116;&#41;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"159\" style=\"vertical-align: -5px;\"\/> bounds the indicator function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b6faf48dc221c6bf83d03b9934c2c46c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#102;&#123;&#49;&#125;&#95;&#123;&#091;&#116;&#44;&#92;&#105;&#110;&#102;&#116;&#121;&#41;&#125;&#40;&#92;&#99;&#100;&#111;&#116;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"22\" width=\"60\" style=\"vertical-align: -8px;\"\/> for <em>all<\/em> real numbers <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-b312d649591164b7149ed0756f694a76_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;\"\/>, so we shall no longer require the random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/> to be nonnegative. Therefore, by (11), <\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> (15) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-477fdfd158d45840cb2a70fa3347c155_l3.png\" height=\"19\" width=\"633\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#40;&#88;&#45;&#116;&#41;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#41;&#32;&#92;&#44;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#32;&#43;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>The functions<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><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-4a842724ecc54b5a31fd032672af1abd_l3.png\" height=\"19\" width=\"455\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#109;&#95;&#88;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#41;&#44;&#32;&#92;&#113;&#117;&#97;&#100;&#32;&#92;&#120;&#105;&#95;&#88;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#108;&#111;&#103;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#41;&#32;&#61;&#32;&#92;&#108;&#111;&#103;&#32;&#109;&#95;&#88;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>are known as the <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Moment-generating_function\">moment generating function<\/a><\/strong> and <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/Cumulant#Definition\">cumulant generating function<\/a><\/strong> of the random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>.<sup class=\"modern-footnotes-footnote \" data-mfn=\"10\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-10\">10<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-10\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"10\">These functions are so-named because they are the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Generating_function#Exponential_generating_function_(EGF)\">(exponential) generating functions<\/a> of the (polynomial) <a href=\"https:\/\/en.wikipedia.org\/wiki\/Moment_(mathematics)#Higher_moments\">moments<\/a> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c21983e6070a76cc0bf6ef27055d2cc2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#88;&#94;&#107;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"35\" style=\"vertical-align: 0px;\"\/>, <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-978297d7f0d9df962a246ad841cfa1cb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#107;&#61;&#48;&#44;&#49;&#44;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"103\" style=\"vertical-align: -4px;\"\/>, and the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cumulant\">cumulants<\/a> of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ee8974e4adfbdab75fa43f4df80b4e5d_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"16\" style=\"vertical-align: 0px;\"\/>.<\/span> With these notations, (15) can be written<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> (16) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4c71a12bbd4e96d85d3b6ee88f0bc487_l3.png\" height=\"19\" width=\"388\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#123;&#32;&#88;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#125;&#32;&#92;&#108;&#101;&#92;&#101;&#120;&#112;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#41;&#32;&#109;&#95;&#88;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#101;&#120;&#112;&#92;&#108;&#101;&#102;&#116;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#32;&#43;&#32;&#92;&#120;&#105;&#95;&#88;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>The moment generating function coincides with the <a href=\"https:\/\/en.wikipedia.org\/wiki\/Laplace_transform#Probability_theory\">Laplace transform<\/a> <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6d27f378eeb1840449fd0d6a4c39cc14_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#101;&#120;&#112;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#41;&#32;&#61;&#32;&#109;&#95;&#88;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"182\" style=\"vertical-align: -5px;\"\/> up to the sign of the parameter <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3eff9dcbcd5c19f0c719ef58060e0716_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/>, so one name for this approach to deriving concentration inequalities is the Laplace transform method. (This method is also known as the <a href=\"https:\/\/planetmath.org\/chernoffcramerbound\">Cram\u00e9r\u2013Chernoff method<\/a>.)<\/p>\n\n\n\n<p>The cumulant generating function has an important property for deriving concentration inequalities for sums or averages of independent random variables: If <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/> are independent random variables, than the cumulant generating function is <em>additive<\/em>:<sup class=\"modern-footnotes-footnote \" data-mfn=\"11\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-11\">11<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-11\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"11\">For proof, we compute <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-fa4475c42d6e1acf6847826a72df5098_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#95;&#123;&#92;&#115;&#117;&#109;&#95;&#106;&#32;&#88;&#95;&#106;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#112;&#114;&#111;&#100;&#95;&#106;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#95;&#106;&#41;&#32;&#61;&#32;&#92;&#112;&#114;&#111;&#100;&#95;&#106;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#88;&#95;&#106;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"24\" width=\"352\" style=\"vertical-align: -10px;\"\/>. Taking logarithms proves the additivity.<\/span>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><span class=\"ql-right-eqno\"> (17) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-4a70ee1b900ff059a6329abd89066e5e_l3.png\" height=\"19\" width=\"293\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#120;&#105;&#95;&#123;&#88;&#95;&#49;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#88;&#95;&#110;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#120;&#105;&#95;&#123;&#88;&#95;&#49;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#92;&#120;&#105;&#95;&#123;&#88;&#95;&#110;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<h3 class=\"wp-block-heading\">Proving Hoeffding&#8217;s Inequality<\/h3>\n\n\n\n<p>For us to use the Laplace transform method, we need to either compute or bound the cumulant generating function. Since we are interested in general concentration inequalities which hold under minimal assumptions such as boundedness, we opt for the latter. Suppose <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-e3087dee5c92ac0e966da77febb397b2_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#97;&#92;&#108;&#101;&#32;&#88;&#32;&#92;&#108;&#101;&#32;&#98;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"81\" style=\"vertical-align: -3px;\"\/> and consider the cumulant generating function of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-077fcac00b529da7f89a6ea2f9295278_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#89;&#58;&#61;&#88;&#45;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#88;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"109\" style=\"vertical-align: 0px;\"\/>. Then one can show the cumulant generating function bound<sup class=\"modern-footnotes-footnote \" data-mfn=\"12\" data-mfn-post-scope=\"00000000000005870000000000000000_932\"><a href=\"javascript:void(0)\"  role=\"button\" aria-pressed=\"false\" aria-describedby=\"mfn-content-00000000000005870000000000000000_932-12\">12<\/a><\/sup><span id=\"mfn-content-00000000000005870000000000000000_932-12\" role=\"tooltip\" class=\"modern-footnotes-footnote__note\" tabindex=\"0\" data-mfn=\"12\">The bound (18) is somewhat tricky to establish, but we can establish the same result with a larger constant than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-789baa5e3aba8c31bd52c47b00e60557_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#49;&#47;&#56;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"26\" style=\"vertical-align: -5px;\"\/>. We have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6cd5a2868b3d7910c803b0671fed0378_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#89;&#124;&#32;&#92;&#108;&#101;&#32;&#98;&#45;&#97;&#32;&#61;&#58;&#32;&#99;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"121\" style=\"vertical-align: -5px;\"\/>. Since the function <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-315a9945c9d33b9db144a764e8d97d9c_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#92;&#109;&#97;&#112;&#115;&#116;&#111;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#89;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"99\" style=\"vertical-align: -5px;\"\/> is <a href=\"https:\/\/en.wikipedia.org\/wiki\/Convex_function\">convex<\/a>, we have the bound <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f92369b6f1ac168af053c4ffb8fe0d46_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#89;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#120;&#112;&#40;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#99;&#41;&#32;&#43;&#32;&#40;&#89;&#43;&#99;&#41;&#92;&#116;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#114;&#109;&#123;&#101;&#125;&#94;&#123;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#99;&#125;&#32;&#45;&#92;&#109;&#97;&#116;&#104;&#114;&#109;&#123;&#101;&#125;&#94;&#123;&#45;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#99;&#125;&#125;&#123;&#50;&#99;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"25\" width=\"297\" style=\"vertical-align: -6px;\"\/>. Taking expectations, we have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-6e2af68e305eeba1d816beb211b8c490_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#109;&#95;&#89;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#99;&#111;&#115;&#104;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#99;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"137\" style=\"vertical-align: -5px;\"\/>. One can show by comparing Taylor series that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-d508a2614cd0853cddca5f7a74e315b6_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#99;&#111;&#115;&#104;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#99;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#120;&#112;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#32;&#99;&#94;&#50;&#47;&#50;&#41;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"177\" style=\"vertical-align: -5px;\"\/>. Therefore, we have <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c5fdbf9da178359a8e82b49e90cd5066_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#120;&#105;&#95;&#89;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#99;&#94;&#50;&#47;&#50;&#32;&#61;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#47;&#50;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"233\" style=\"vertical-align: -5px;\"\/>.<\/span>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><span class=\"ql-right-eqno\"> (18) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-355c9a2bdb636816463b4a86171c7346_l3.png\" height=\"36\" width=\"159\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#120;&#105;&#95;&#89;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#56;&#125;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Using the additivity of the cumulant generating function (17), we obtain the bound<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 36px;\"><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-70d67af76a2658ee4eebb3ed8fea8305_l3.png\" height=\"36\" width=\"545\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#120;&#105;&#95;&#123;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#120;&#105;&#95;&#123;&#88;&#95;&#49;&#47;&#110;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#88;&#95;&#49;&#47;&#110;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#43;&#32;&#92;&#99;&#100;&#111;&#116;&#115;&#32;&#43;&#32;&#92;&#120;&#105;&#95;&#123;&#88;&#95;&#110;&#47;&#110;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#88;&#95;&#110;&#47;&#110;&#125;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#92;&#108;&#101;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#56;&#125;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Plugging this into the probability bound (16), we obtain the concentration bound<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 43px;\"><span class=\"ql-right-eqno\"> (19) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-f289e35a62f24f8e0b55e416a566b346_l3.png\" height=\"43\" width=\"385\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#120;&#112;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#32;&#43;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#56;&#125;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>We want to obtain the smallest possible upper bound on this probability, so it behooves us to pick the value of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-42b512731095893795e4e92b09f4ac76_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#62;&#32;&#48;\" title=\"Rendered by QuickLaTeX.com\" height=\"14\" width=\"41\" style=\"vertical-align: -2px;\"\/> which makes the right-hand side of this inequality as small as possible. To do this, we differentiate the contents of the exponential and set to zero, obtaining<\/p>\n\n\n<p><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-48eb7e9b84ceedc001f18d147d5cd87f_l3.png\" height=\"43\" width=\"568\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#102;&#114;&#97;&#99;&#123;&#92;&#109;&#97;&#116;&#104;&#114;&#109;&#123;&#100;&#125;&#125;&#123;&#92;&#109;&#97;&#116;&#104;&#114;&#109;&#123;&#100;&#125;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#116;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#56;&#125;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#32;&#61;&#32;&#45;&#32;&#116;&#32;&#43;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#110;&#125;&#32;&#92;&#99;&#100;&#111;&#116;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#49;&#125;&#123;&#52;&#125;&#32;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#61;&#32;&#48;&#92;&#105;&#109;&#112;&#108;&#105;&#101;&#115;&#32;&#92;&#116;&#104;&#101;&#116;&#97;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#52;&#110;&#116;&#125;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Plugging this value for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-3eff9dcbcd5c19f0c719ef58060e0716_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#116;&#104;&#101;&#116;&#97;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"9\" style=\"vertical-align: 0px;\"\/> into the bound (19) gives A bound for <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> being <em>larger<\/em> than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-e6f2b1d1e2ef22c3b5dae1c9d5a0ffdd_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#43;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"17\" width=\"56\" style=\"vertical-align: -2px;\"\/>:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><span class=\"ql-right-eqno\"> (20) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c4dd285626c78917946443d50ecac567_l3.png\" height=\"44\" width=\"295\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#120;&#112;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#110;&#116;&#94;&#50;&#125;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>To get  the bound on <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-9e736e6d549d0f9f2cc7fb16d3b77a2e_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"17\" style=\"vertical-align: 0px;\"\/> being <em>smaller<\/em> than <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-c88ec48c6257411096f71d9a89f4e568_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"15\" width=\"56\" style=\"vertical-align: 0px;\"\/>, we can apply a small trick. If we apply (20) to the summands <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7f28633511c27828fce770abd809845a_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#45;&#88;&#95;&#49;&#44;&#45;&#88;&#95;&#50;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#45;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"156\" style=\"vertical-align: -4px;\"\/> instead of <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-0d2ec92d1a4771e2014fcc6747221fc1_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#88;&#95;&#49;&#44;&#92;&#108;&#100;&#111;&#116;&#115;&#44;&#88;&#95;&#110;\" title=\"Rendered by QuickLaTeX.com\" height=\"16\" width=\"85\" style=\"vertical-align: -4px;\"\/>, we obtain the bounds<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><span class=\"ql-right-eqno\"> (21) <\/span><span class=\"ql-left-eqno\"> &nbsp; <\/span><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-ae1377da24a0f564a45ed3c64e2daee9_l3.png\" height=\"44\" width=\"309\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#108;&#101;&#32;&#45;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#92;&#108;&#101;&#32;&#92;&#101;&#120;&#112;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#110;&#116;&#94;&#50;&#125;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>We can now combine the <em>upper tail bound<\/em> (19) with the <em>lower tail bound<\/em> (21) to obtain a &#8220;symmetric&#8221; bound on the probability that <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-dab9c6614a4f47879a1506cad751cfbb_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#124;&#32;&#92;&#103;&#101;&#32;&#116;\" title=\"Rendered by QuickLaTeX.com\" height=\"20\" width=\"103\" style=\"vertical-align: -5px;\"\/>. The means of doing often this goes by the fancy name <em><a href=\"https:\/\/en.wikipedia.org\/wiki\/Boole%27s_inequality\">union bound<\/a><\/em>, but the idea is very simple:<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 19px;\"><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-b3121ca1e6bcd153e73e31ac70d7f42b_l3.png\" height=\"19\" width=\"481\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#40;&#92;&#116;&#101;&#120;&#116;&#110;&#111;&#114;&#109;&#97;&#108;&#123;&#65;&#32;&#104;&#97;&#112;&#112;&#101;&#110;&#115;&#32;&#111;&#114;&#32;&#66;&#32;&#104;&#97;&#112;&#112;&#101;&#110;&#115;&#125;&#32;&#41;&#92;&#108;&#101;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#40;&#92;&#116;&#101;&#120;&#116;&#110;&#111;&#114;&#109;&#97;&#108;&#123;&#65;&#32;&#104;&#97;&#112;&#112;&#101;&#110;&#115;&#125;&#41;&#32;&#43;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#40;&#92;&#116;&#101;&#120;&#116;&#110;&#111;&#114;&#109;&#97;&#108;&#123;&#66;&#32;&#104;&#97;&#112;&#112;&#101;&#110;&#115;&#125;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Thus, applying this union bound idea with the upper and lower tail bounds (20) and (21), we obtain Hoeffding&#8217;s inequality, exactly as it appeared above as (8):<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 101px;\"><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-14bb4e768d57c9a2122559a00e739b65_l3.png\" height=\"101\" width=\"458\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125; &#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#124;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#124;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#38;&#61;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#92;&#116;&#101;&#120;&#116;&#110;&#111;&#114;&#109;&#97;&#108;&#123;&#32;&#111;&#114;&#32;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#108;&#101;&#32;&#45;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#92;&#92; &#38;&#92;&#108;&#101;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#103;&#101;&#32;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#32;&#43;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#80;&#125;&#32;&#92;&#108;&#101;&#102;&#116;&#92;&#123;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#45;&#32;&#92;&#109;&#97;&#116;&#104;&#98;&#98;&#123;&#69;&#125;&#32;&#92;&#111;&#118;&#101;&#114;&#108;&#105;&#110;&#101;&#123;&#88;&#125;&#32;&#92;&#108;&#101;&#32;&#45;&#116;&#32;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#92;&#125;&#92;&#92; &#38;&#92;&#108;&#101;&#32;&#50;&#92;&#101;&#120;&#112;&#32;&#92;&#108;&#101;&#102;&#116;&#40;&#32;&#45;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#50;&#110;&#116;&#94;&#50;&#125;&#123;&#40;&#98;&#45;&#97;&#41;&#94;&#50;&#125;&#32;&#92;&#114;&#105;&#103;&#104;&#116;&#41;&#46; &#92;&#101;&#110;&#100;&#123;&#97;&#108;&#105;&#103;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>Voil\u00e0! Hoeffding&#8217;s inequality has been proven! Bernstein&#8217;s inequality is proven essentially the same way except that, instead of (17), we have the cumulant generating function bound<\/p>\n\n\n<p><p class=\"ql-center-displayed-equation\" style=\"line-height: 44px;\"><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-4641108672cc4ad6b195e1a63e5e338b_l3.png\" height=\"44\" width=\"174\" class=\"ql-img-displayed-equation quicklatex-auto-format\" alt=\"&#92;&#98;&#101;&#103;&#105;&#110;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125; &#92;&#120;&#105;&#95;&#89;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#41;&#32;&#61;&#32;&#92;&#102;&#114;&#97;&#99;&#123;&#40;&#92;&#116;&#104;&#101;&#116;&#97;&#94;&#50;&#47;&#50;&#41;&#92;&#86;&#97;&#114;&#40;&#89;&#41;&#125;&#123;&#49;&#45;&#124;&#92;&#116;&#104;&#101;&#116;&#97;&#124;&#47;&#51;&#125; &#92;&#101;&#110;&#100;&#123;&#101;&#113;&#117;&#97;&#116;&#105;&#111;&#110;&#42;&#125;\" title=\"Rendered by QuickLaTeX.com\"\/><\/p><\/p>\n\n\n<p>for a random variable <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-58d456b42236adc71c7788a42a6c7884_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#89;\" title=\"Rendered by QuickLaTeX.com\" height=\"12\" width=\"14\" style=\"vertical-align: 0px;\"\/> with mean zero and satisfying the bound <img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.ethanepperly.com\/wp-content\/ql-cache\/quicklatex.com-7aa808611b3e0130a999227736cb6951_l3.png\" class=\"ql-img-inline-formula quicklatex-auto-format\" alt=\"&#124;&#89;&#124;&#32;&#92;&#108;&#101;&#32;&#66;\" title=\"Rendered by QuickLaTeX.com\" height=\"19\" width=\"60\" style=\"vertical-align: -5px;\"\/>.<\/p>\n\n\n\n<p><strong>Upshot:<\/strong>&nbsp;Randomness can be a very effective tool for solving computational problems, even those which seemingly no connection to probability like triangle counting. Concentration inequalities are a powerful tool for assessing how many samples are needed for an algorithm based on random sampling to work. Some of the most useful concentration inequalities are exponential concentration inequalities like Hoeffding and Bernstein, which show that an average of bounded random quantities are close to their average except with exponentially small probability. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This post is about randomized algorithms for problems in computational science and a powerful set of tools, known as concentration inequalities, which can be used to analyze why they work. I&#8217;ve discussed why randomization can help in solving computational problems in a previous post; this post continues this discussion by presenting an example of a<a class=\"more-link\" href=\"https:\/\/www.ethanepperly.com\/index.php\/2022\/08\/02\/big-ideas-in-applied-math-concentration-inequalities\/\">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":[5,14],"tags":[],"class_list":["post-932","post","type-post","status-publish","format-standard","hentry","category-big-ideas-in-applied-math","category-trace-estimation"],"_links":{"self":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/932","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=932"}],"version-history":[{"count":99,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/932\/revisions"}],"predecessor-version":[{"id":1967,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/posts\/932\/revisions\/1967"}],"wp:attachment":[{"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/media?parent=932"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/categories?post=932"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ethanepperly.com\/index.php\/wp-json\/wp\/v2\/tags?post=932"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}