{"id": "ch10_lemma_10_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\[\\triangle_{n}(\\mathcal{C})=\\sup_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}.\\] We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}, {"local_id": "T2", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T3", "statement": "Let \\(\\xi,\\nu\\) - random variables.Assume that\n\\[\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma\\geq 1,t\\geq 0\\) ,and \\(\\gamma > 0\\) . Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x)=(x-a)_{+}\\) .Then\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\(\\phi(x)=(x-a)_{+}\\) ,we have \\(\\phi(\\xi)\\geq\\phi(t)\\) whenever \\(\\xi \\geq t .\\)\n\\[\\begin{array}{ r l }&{\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\mathbb{P}\\left(\\phi(\\xi)\\geq\\phi(t)\\right)}\\\\ &{\\qquad\\leq\\displaystyle\\frac{\\mathbb{E}\\phi(\\xi)}{\\phi(t)}\\leq\\frac{\\mathbb{E}\\phi(\\nu)}{\\phi(t)}=\\frac{\\mathbb{E}\\left(\\nu-a\\right)_{+}}{(t-a)_{+}}}\\end{array}\\]\nFurthermore,\n\\[\\begin{array}{ r l }{\\displaystyle\\mathbb{E}(\\nu-a)_{+}=}&{\\mathbb{E}\\int_{0}^{(\\nu-a)_{+}}\\mathrm{1}d x}\\\\ &{=\\mathbb{E}\\int_{0}^{\\infty}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{E}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left((\\nu-a)_{+}\\geq x\\right)d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left(\\nu\\geq a+x\\right)d x}\\\\ &{\\leq\\int_{0}^{\\infty}\\Gamma e^{-\\gamma(a+x)}d x=\\frac{\\Gamma e^{-\\gamma a}}{\\gamma}.}\\end{array}\\]\nHence,\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}=\\frac{\\Gamma\\cdot e\\cdot e^{-\\gamma t}}{1}=\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\]\nwhere we chose optimal \\(\\begin{array}{ r }{a=t-\\frac{1}{\\gamma}}\\end{array}\\) to minimize \\(\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}\\)"}]}}, {"local_id": "T4", "statement": "Let \\(x=(x_{1},\\ldots,x_{n}),x^{\\prime}=(x_{1}^{\\prime},\\ldots,x_{n}^{\\prime})\\) . If for functions \\(\\varphi_{1}(x,x^{\\prime}),\\varphi_{2}(x,x^{\\prime}),\\varphi_{3}(x,x^{\\prime})\\)\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\varphi_{1}(x,x^{\\prime})\\geq\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma e^{-\\gamma t}}\\end{array}\\]\nthen\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}(x,x^{\\prime})\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.}\\end{array}\\]\n(i.e. if the inequality holds, then it holds with averaging over one of the copies)", "proof": {"steps": [{"n": 1, "claim": "First, note that \\(\\begin{array}{ r }{\\sqrt{a b}=\\operatorname*{inf}_{\\delta>0}(\\delta a+\\frac{b}{4\\delta})}\\end{array}\\) with \\(\\begin{array}{ r }{\\delta_{*}=\\sqrt{\\frac{b}{4 a}}}\\end{array}\\) achieving the infima."}, {"n": 2, "claim": "Hence,\n\\[\\begin{array}{ c }{{\\{\\varphi_{1}\\geq\\varphi_{2}+\\sqrt{\\varphi_{3}t}\\}=\\{\\exists\\delta>0,\\varphi_{1}\\geq\\varphi_{2}+\\delta\\varphi_{3}+\\displaystyle\\frac{t}{4\\delta}\\}}}\\\\ {{=\\{\\exists\\delta>0,(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta\\geq t\\}}}\\\\ {{=\\{\\underbrace{\\sup_{\\delta>0}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}_{\\nu}\\geq t\\}}}\\end{array}\\]\nand similarly\n\\[\\big\\{\\mathbb{E}_{x^{\\prime}}\\varphi_{1}\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}t}\\big\\}=\\big\\{\\underbrace{\\sup_{\\delta>0}(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}-\\mathbb{E}_{x^{\\prime}}\\varphi_{2}-\\delta\\mathbb{E}_{x^{\\prime}}\\varphi_{3})4\\delta}_{\\xi}\\geq t\\big\\}.\\]\nBy assumption, \\(\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\) ."}, {"n": 3, "claim": "We want to prove \\(\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\) ."}, {"n": 4, "claim": "By the previous lemma, we only need to check whether \\(\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\)\n\\[\\begin{array}{ l }{\\displaystyle\\xi=\\operatorname*{sup}_{\\delta>0}\\mathbb{E}_{x^{\\prime}}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle\\quad\\leq\\mathbb{E}_{x^{\\prime}}\\operatorname*{sup}_{\\delta>0}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle=\\mathbb{E}_{x^{\\prime}}\\nu}\\end{array}\\]\nThus,\n\\[\\phi(\\xi)\\leq\\phi(\\mathbb{E}_{x^{\\prime}}\\nu)\\leq\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)\\]\nby Jensen's inequality (\\(\\phi\\) is convex)."}, {"n": 5, "claim": "Hence,\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)=\\mathbb{E}\\phi(\\nu).\\]"}]}}], "target_local_id": "T2", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Generalization & Learnability", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch13_proposition_13_2__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nConvex set. A set \\(K\\subseteq\\mathbb{R}^n\\) is convex if the line segment between any two points in \\(K\\) is also contained in \\(K\\). Formally, for all \\(x,y\\in K\\) and all scalars \\(\\gamma\\in[0,1]\\) we have \\(\\gamma x+(1-\\gamma)y\\in K\\).\n\nStrong convexity. A function \\(f\\colon\\Omega\\to\\mathbb{R}\\) is \\emph{\\(\\alpha\\)-strongly convex} if, for all \\(x,y\\in\\Omega\\), the following inequality holds for some \\(\\alpha>0\\): \\[ f(y) \\geqslant f(x) + g(x)^\\top(y-x) + \\frac{\\alpha}{2}\\left\\lVert x-y\\right\\rVert^2 \\]\n\nUniform stability. The uniform stability of an algorithm \\(A\\) is defined as\n\\[\n\\Delta_{\\sup}(A) = \\sup_{S, S' \\in (X\\times Y)^m } \\sup_{i \\in [m]} |\\ell(A(S), z_i') - \\ell(A(S^{(i)}, z_i')|\n\\]\n\nLocal minimum. A point \\(x^*\\) is an unconstrained \\textit{local minimum} if there exists \\(\\epsilon > 0\\) such that \\(f(x^*) \\leqslant f(x)\\) for all \\(x\\) with \\(\\|x - x^*\\| < \\epsilon\\).", "theorems": [{"local_id": "T1", "statement": "If \\(f\\) is in addition \\(\\alpha\\)-strongly convex w.r.t to \\(\\|\\cdot\\|_{[1-\\gamma]}\\), then we get\n\\[\n\\mathbb{E}[f(x_{t+1}) - \\arg\\min_{x \\in \\mathbb{R}^{n}} f(x)] \\leqslant \\left(1 - \\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^\\gamma}\\right)^t (f(x_1) - f(x^*)) \\ .\n\\]", "proof": {"steps": [{"n": 1, "claim": "We need the following lemma:\n\nLemma 12.4. Let \\(f\\) be an \\(\\alpha\\)-strongly convex function w.r.t. a norm \\(\\|\\cdot\\|\\). Then, \\(f(x) - f(x^{*}) \\leqslant \\frac{1}{2\\alpha}\\|\\nabla f(x)\\|_{*}^{2}\\)."}, {"n": 2, "claim": "Lemma 12.4 shows that\n\\[\n\\|\\nabla f(x_s)\\|^{*2}_{[1-\\gamma]} \\geqslant 2 \\alpha \\delta_s \\ .\n\\]\nOn the other hand, Theorem 12.2 showed that\n\\[\n\\delta_{t+1} - \\delta_t \\leqslant -\\frac{\\|\\nabla f(x_t)\\|^{*2}_{[1-\\gamma]}}{2\\sum_{i=1}^n \\beta_i^{\\gamma}}\n\\]\nCombining these two, we get\n\\begin{align*}\n\\delta_{t+1} - \\delta_t &\\leqslant -\\frac{\\alpha \\delta_t}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\\\\n\\delta_{t+1} &\\leqslant \\delta_t \\left(1 -\\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\right)~.\n\\end{align*}\nApplying the above inequality recursively and recalling that \\(\\delta_t = \\mathbb{E}[f(x_t) - f(x^*)]\\) gives the result."}]}}, {"local_id": "T2", "statement": "Assume \\(\\ell(w, z)\\) is \\(\\alpha\\)-strongly convex over the domain \\(\\Omega\\) and \\(L\\)-Lipschitz. Let \\(\\hat w_S = \\arg \\min_{w\\in \\Omega} \\frac{1}{m} \\sum_{i=1}^m \\ell(w, z_i)\\) denote the empirical risk minimizer (ERM). Then, ERM satisfies\n\\[\n\\Delta_{\\sup} (\\text{ERM}) \\leqslant \\frac{4L^2}{\\alpha m}\\,.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Denote by \\(\\hat w_S\\) the empirical risk minimizer on a sample \\(S.\\) Fix arbitrary samples \\(S,S'\\) of size \\(m\\) and an index \\(i\\in[m].\\) We need to show that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nOn one hand, by strong convexity we know that\n\\[\nR_S(\\hat w_{S^{(i)}}) - R_S(\\hat w_{S}) \\geqslant \\frac{\\alpha}{2} \\| \\hat w_{S} - \\hat w_{S^{(i)}} \\|^2 \\,.\n\\]\nOn the other hand,\n\\begin{align*}\n&R_S(\\hat w_{S^{(i)}})-R_S(\\hat w_{S})\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}\\sum_{i\\neq j}(\\ell(\\hat w_{S^{(i)}},z_j)-\\ell(\\hat w_{S},z_j))\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))+\\left(R_{S^{(i)}}(\\hat w_{S^{(i)}})-R_{S^{(i)}}(\\hat w_{S})\\right)\\\\\n&\\leqslant\\frac{1}{m}|\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i)| +\\frac{1}{m}|(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))|\\\\\n&\\leqslant\\frac{2L}{m}\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\,.\n\\end{align*}\nHere, we used that\n\\[\nR_{S^{(i)}}(\\hat w_{S^{(i)}}) - R_{S^{(i)}}(\\hat w_{S})) \\leqslant 0\n\\]\nand the fact that \\(\\ell\\) is \\(L\\)-Lipschitz."}, {"n": 2, "claim": "Putting it all together \\(\\| \\hat w_{S^{(i)}} - \\hat w_{S} \\| \\leqslant \\frac{4 L}{\\alpha m}\\). Then by the Lipschitz condition we have that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant L\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nHence, \\(\\Delta_{\\sup}(\\text{ERM}) \\leqslant \\frac{4 L ^ 2}{\\alpha m}\\)."}]}}, {"local_id": "T3", "statement": "Let \\(x^*\\) be an unconstrained local minimum of \\(f\\colon \\mathbb{R}^n \\to \\mathbb{R}\\) and assume \\(f\\) is continuously differentiable (\\(C^1\\)) in an open set containing \\(x^*\\). Then\n\\begin{enumerate}\n \\item \\(\\nabla f(x^*) = 0\\) (First-Order Necessary Condition)\n \\item If in addition \\(f\\) is twice continuously differentiable in an open set around \\(x^*\\), then \\(\\nabla^2 f(x^*) \\succeq 0\\). (Second Order Necessary Condition)\n\\end{enumerate}", "proof": {"steps": [{"n": 1, "claim": "Fix any direction \\(d \\in \\mathbb{R}^n\\).\n\\begin{enumerate}\n \\item \\(g(\\alpha) := f(x^* + \\alpha d)\\). Then\n \\[\n 0 \\leqslant \\lim_{\\alpha \\to 0} \\frac{f(x^* + \\alpha d) - f(x^*)}{\\alpha} = \\frac{\\partial g(0)}{\\partial \\alpha} = d^\\top \\nabla f(x^*)\n \\]\n The inequality follows because \\(x^*\\) is a local minimum, \\(0 \\leqslant f(x^* + \\alpha d) - f(x^*)\\) for sufficiently small \\(\\alpha\\). So, we can construct a sequence with only positive \\(\\alpha\\) that converges to \\(x^*\\) such that each element \\(0 \\leqslant \\frac{f(x^* + \\alpha_n d) - f(x^*)}{\\alpha_n}\\) which implies that statement given that \\(f\\) is locally differentiable. Since \\(d\\) is arbitrary, this implies that \\(\\nabla f(x^*) = 0\\).\n \\item First we represent \\(f(x^* + \\alpha d) - f(x^*)\\) using the 2nd order Taylor expansion.\n \\[\n f(x^* + \\alpha d) - f(x^*) = \\alpha \\nabla f(x^*)^\\top d + \\frac{\\alpha^2}{2} d^\\top \\nabla^2 f(x^*) d + o(\\alpha^2) = \\frac{\\alpha^2}{2} d^\\top \\nabla^2 f(x^*) d + o(\\alpha^2)\n \\]\n Now we do the following\n \\[\n 0 \\leqslant \\lim_{\\alpha \\to 0} \\frac{f(x^* + \\alpha d) - f(x^*)}{\\alpha^2} = \\lim_{\\alpha \\to 0} \\frac{1}{2} d^\\top \\nabla^2 f(x^*) d + \\frac{o(\\alpha^2)}{\\alpha^2} = \\frac{1}{2} d^\\top \\nabla^2 f(x^*) d\n \\]\n Because \\(d\\) is arbitrary, this implies that \\(\\nabla^2 f(x^*) \\succeq 0\\) (Positive semidefinite).\n\\end{enumerate}"}]}}, {"local_id": "T4", "statement": "Let \\(\\Omega \\subseteq \\mathbb{R}^d\\) be a closed convex set. Let \\(\\mathcal{A}\\) denote the affine set \\(\\{x : Ax = b\\}\\) for some \\(A \\in \\mathbb{R}^{n \\times d}\\) and \\(b \\in \\mathbb{R}^n\\). Suppose that the set \\(\\operatorname{ri}(\\Omega) \\cap \\mathcal{A}\\) is non-empty. Then for any \\(x \\in \\Omega \\cap \\mathcal{A}\\), \\[\\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x) = \\mathcal{N}_{\\Omega}(x) + \\{A^\\top \\lambda : \\lambda \\in \\mathbb{R}^n\\}\\,.\\]", "proof": {"steps": [{"n": 1, "claim": "The ``\\(\\supseteq\\)'' assertion is straightforward."}, {"n": 2, "claim": "To see this, suppose \\(z \\in \\Omega \\cap \\mathcal{A}\\) and note that \\(z-x \\in \\operatorname{null}(A)\\) so that \\((z-x)^\\top A^\\top \\lambda = \\lambda^\\top A(z-x) = 0\\) for all \\(\\lambda \\in \\mathbb{R}^n\\)."}, {"n": 3, "claim": "If \\(u \\in \\mathcal{N}_{\\Omega}(x)\\), then \\((z-x)^\\top u \\leqslant 0\\), so for \\(\\lambda \\in \\mathbb{R}^n\\), we have \\[\\langle z-x, u + A^\\top \\lambda \\rangle = \\langle z-x, u \\rangle \\leqslant 0\\] implying that \\(u + A^\\top \\lambda \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 4, "claim": "For the reverse inclusion, let \\(v \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 5, "claim": "Then we have \\[v^\\top (z-x) \\leqslant 0 \\text{ for all } z \\in \\Omega \\cap \\mathcal{A}.\\] Now define the sets \\[\\begin{aligned} C_1 &= \\left\\{ (y,\\mu) \\in \\mathbb{R}^{d+1} : y = z-x,\\,\\, z \\in \\Omega,\\,\\, \\mu \\leqslant v^\\top y \\right\\}\\\\ C_2 &= \\left\\{ (y,\\mu) \\in \\mathbb{R}^{d+1} : y \\in \\operatorname{ker}(A),\\,\\, \\mu = 0 \\right\\}\\,. \\end{aligned}\\] Note that \\(\\operatorname{ri}(C_1) \\cap C_2 = \\emptyset\\) because otherwise there would exist a \\((\\hat{y},\\hat{\\mu})\\) such that \\[v^\\top \\hat{y} > \\hat{\\mu} = 0\\] and \\(\\hat{y} \\in \\mathcal{T}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 6, "claim": "This would contradict our assumption that \\(v \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 7, "claim": "Since their intersection is empty, we can properly separate \\(\\operatorname{ri}(C_1)\\) from \\(C_2\\)."}, {"n": 8, "claim": "Indeed, since \\(C_2\\) is a subspace and \\(C_1\\) has nonempty relative interior, there must be a \\((w,\\gamma)\\) such that \\[\\inf_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} < \\sup_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} \\leqslant 0\\] while \\[w^\\top u = 0 \\text{ for all } u \\in \\ker(A).\\] In particular, this means that \\(w = A^\\top \\lambda\\) for some \\(\\lambda \\in \\mathbb{R}^n\\)."}, {"n": 9, "claim": "Now, \\(\\gamma\\) must be nonnegative, as otherwise, \\[\\sup_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} = \\infty\\] (which can be seen by letting \\(\\mu\\) tend to negative infinity)."}, {"n": 10, "claim": "If \\(\\gamma = 0\\), then \\[\\sup_{y \\in C_1} w^\\top y \\leqslant 0\\] but the set \\(\\{y : w^\\top y = 0\\}\\) does not contain the set \\(\\{z-x : z \\in \\Omega\\}\\) as the infimum is strictly negative."}, {"n": 11, "claim": "This means that the relative interior of \\(\\Omega - \\{x\\}\\) cannot intersect the kernel of \\(A\\) which contradicts our assumptions."}, {"n": 12, "claim": "Thus, we can conclude that \\(\\gamma\\) is strictly positive."}, {"n": 13, "claim": "By homogeneity, we may as well assume that \\(\\gamma = 1\\)."}, {"n": 14, "claim": "To complete the argument, note that we now have \\[(w+v)^\\top (z-x) \\leqslant 0 \\text{ for all } z \\in \\Omega.\\] This means that \\(v+w \\in \\mathcal{N}_{\\Omega}(x)\\) and we have already shown that \\(w = A^\\top \\lambda\\)."}, {"n": 15, "claim": "Thus, \\[v = (v+w)-w \\in \\mathcal{N}_{\\Omega}(x) + \\mathcal{N}_{\\mathcal{A}}(x)\\,.\\]"}]}}, {"local_id": "T5", "statement": "For any function \\(\\varphi(x,z)\\), \\[\\min_x \\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z)\\,.\\]", "proof": {"steps": [{"n": 1, "claim": "The proof is essentially tautological. Note that we always have \\[\\varphi(x,z) \\geqslant \\min_x \\varphi(x,z).\\] Taking the maximization with respect to the second argument verifies that \\[\\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z) \\quad \\forall x\\,.\\] Now, minimizing the left hand side with respect to \\(x\\) proves \\[\\min_x \\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z)\\] which is precisely our assertion."}]}}], "target_local_id": "T4", "topic_domain": "Optimization", "topic_subtopic": "Convex Analysis & Duality", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch13_theorem_13_15__correct", "context": "theorem 13.11: We have for any \\(\\lambda>0\\), with probability at least \\(1-\\delta\\), for all \\(n\\geq 1\\) and \\(f\\in\\mathcal{F}\\): \\[\\left[-\\sum_{i=1}^{n} f(Z_i)-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_i^{(y)}}e^{-\\lambda f(Z_i)}\\right]\\leq\\inf_{\\epsilon>0}\\left[2n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_\\infty)/\\delta)}{\\lambda}\\right].\\]\n\nShared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).\n\ndefinition 4.1. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite\nset \\(\\mathcal{G}(\\epsilon) \\subset \\mathcal{V}\\) is an \\(\\epsilon\\)-cover (or \\(\\epsilon\\)-net) of \\(\\mathcal{G} \\subset \\mathcal{V}\\) if, for all \\(\\phi \\in \\mathcal{G}\\), there exists \\(\\phi' \\in \\mathcal{G}(\\epsilon)\\) so that \\(d(\\phi', \\phi) \\leq \\epsilon\\). The \\(\\epsilon\\)-covering number of \\(\\mathcal{G}\\) with metric \\(d\\) is the smallest cardinality \\(N(\\epsilon, \\mathcal{G}, d)\\) of such \\(\\mathcal{G}(\\epsilon)\\). The number \\(\\ln N(\\epsilon, \\mathcal{G}, d)\\) is called the \\(\\epsilon\\)-entropy.\nFor a function class \\(\\mathcal{G}\\) with seminorm \\(L_{p}(\\mathcal{D})\\) in (3.19), we denote the corresponding \\(L_{p}(\\mathcal{D})\\)-covering number as \\(N(\\epsilon, \\mathcal{G}, L_{p}(\\mathcal{D}))\\). When \\(1 \\leq p \\leq q\\), we have\n\\[\nN(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{D}))\\leq N(\\epsilon,\\mathcal{G},L_{q}(\\mathcal{D})).\n\\]\nIt is easy to verify the following relationship, which implies that \\( L_{p}(\\mathcal{D}) \\) bracketing cover is a stronger requirement than \\( L_{p}(\\mathcal{D}) \\) cover.\n\nPacking Number. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite subset \\(\\mathcal{G}(\\epsilon)\\subset \\mathcal{G}\\) is an \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\) if \\(d(\\phi,\\phi^{\\prime})>\\epsilon\\) for all \\(\\phi,\\phi^{\\prime}\\in\\mathcal{G}(\\epsilon)\\). The \\(\\epsilon\\)-packing number of \\(\\mathcal{G}\\), denoted by \\(M(\\epsilon,\\mathcal{G},d)\\), is the largest cardinality of \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\).\nThe following results illustrate the equivalence between covering number and packing number. One advantage of using an \\(\\epsilon\\) packing of \\(\\mathcal{G}\\) instead of an \\(\\epsilon\\) cover of \\(\\mathcal{G}\\) is that all members in the \\(\\epsilon\\) packing also belong to \\(\\mathcal{G}\\). There if members in \\(\\mathcal{G}\\) satisfy certain assumptions such as the variance condition, then members of its \\(\\epsilon\\) packing also satisfy such assumptions. For this reason, we will use packing numbers instead of covering numbers in some of the theoretical analysis in later chapters.", "theorems": [{"local_id": "T1", "statement": "Assume that for all \\( f \\in \\mathcal{F} \\) and \\( Z_{t}: -f(Z_{t}) + \\mathbb{E}_{Z_{t}^{(y)}}f(Z_{t}) \\leq b \\), and the following variance condition holds for all \\( f \\in \\mathcal{F} \\) and \\( S_{t} \\):\n\\[\n\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})],\n\\]\nthen with probability at least \\(1 - \\delta\\), for all \\(f \\in \\mathcal{F}\\):\n\\[\n\\begin{array}{l}\\left(1-\\lambda c_{1}\\phi(\\lambda b)\\right)\\sum_{t=1}^{n}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq\\sum_{t=1}^{n}f(Z_{t})+\\lambda n c_{0}^{2}\\phi(\\lambda b)\\\\ +\\inf_{\\epsilon>0}\\left[2 n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}\\right],\\\\ \\end{array}\n\\]\nwhere \\(\\phi (z) = (e^{z} - z - 1) / z^{2}\\)", "proof": {"steps": [{"n": 1, "claim": "Note that by employing the moment estimation of Bennett's inequality in Lemma 2.20, we obtain\n\\[\n\\begin{array}{l}\\frac{1}{\\lambda}\\ln\\mathbb{E}_{Z_{t}^{(y)}}e^{-\\lambda f(Z_{t})}\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)[c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]].\\\\ \\end{array}\n\\]\nWe can now obtain the desired bound from Theorem 13.11."}]}}, {"local_id": "T2", "statement": "Let \\(\\{(X_t, \\epsilon_t)\\}\\) be a filtered sequence in \\(\\mathcal{X} \\times \\mathbb{R}\\) so that \\(\\epsilon_t\\) is conditional zero-mean sub-Gaussian noise: for all \\(\\lambda \\in \\mathbb{R}\\),\n\\[\n\\ln\\mathbb{E}\\left[e^{\\lambda\\epsilon_{t}}\\mid X_{t},\\mathcal{S}_{t-1}\\right]\\leq\\frac{\\lambda^{2}}{2}\\sigma^{2},\n\\]\nwhere \\( S_{t-1} \\) denotes the history data. Assume that \\( Y_t = f_*(X_t) + \\epsilon_t \\), with \\( f_*(x) \\in \\mathcal{F}: \\mathcal{X} \\to \\mathbb{R} \\). Let \\( \\hat{f}_t \\) be an approximate ERM solution for some \\( \\epsilon' > 0 \\):\n\\[\n\\left(\\sum_{s=1}^{t}\\left(\\hat{f}_{t}\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}\\leq\\min_{f\\in\\mathcal{F}}\\left(\\sum_{s=1}^{t}\\left(f\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}+\\sqrt{t}\\epsilon^{\\prime}.\n\\]\nThen with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\):\n\\[\n\\sum_{s=1}^{t}(\\hat{f}_{t}(X_{t})-f_{*}(X_{t}))^{2}\\leq\\inf_{\\epsilon>0}\\left[8 t(\\epsilon+\\epsilon^{\\prime})(\\sigma+2\\epsilon+2\\epsilon^{\\prime})+12\\sigma^{2}\\ln\\frac{2 N(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})}{\\delta}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\eta = \\sigma^{-2} / 4\\), and for \\(f \\in \\mathcal{F}\\), let\n\\[\n\\phi(f,Z_{t})=\\left[\\left(f(X_{t})-Y_{t}\\right)^{2}-\\left(f_{*}(X_{t})-Y_{t}\\right)^{2}\\right].\n\\]\nLet \\(\\mathcal{F}_{\\epsilon}\\) be an \\(\\epsilon \\| \\cdot \\|_{\\infty}\\) cover of \\(\\mathcal{F}\\) with \\(N = N(\\epsilon, \\mathcal{F}, \\| \\cdot \\|_{\\infty})\\) members."}, {"n": 2, "claim": "Given any \\(f \\in \\mathcal{F}_{\\epsilon}\\),\n\\[\n\\begin{array}{l}\\ln\\mathbb{E}_{Y_{t}|X_{t},S_{t-1}}\\exp(-\\eta\\phi(f,Z_{t}))\\\\ = -\\eta\\left(f\\left(X_{t}\\right)-f_{*}\\left(X_{t}\\right)\\right)^{2}\\\\ +\\ln\\mathbb{E}_{Y_{t}\\mid X_{t},S_{t-1}}\\exp(-2\\eta(f(X_{t})-f_{*}(X_{t}))(f_{*}(X_{t})-Y_{t}))\\\\ \\leq-\\eta(f(X_{t})-f_{*}(X_{t}))^{2}+\\frac{4\\eta^{2}\\sigma^{2}}{2}(f(X_{t})-f_{*}(X_{t}))^{2}\\\\ = -\\frac{\\left(f(X_{t})-f_{*}(X_{t})\\right)^{2}}{8\\sigma^{2}}.\\\\ \\end{array}\n\\]\nThe inequality used the sub-Gaussian noise assumption."}, {"n": 3, "claim": "It follows from Theorem 13.11 that with probability at least \\( 1 - \\delta / 2 \\), for all \\( f \\in \\mathcal{F}_{\\epsilon} \\) and \\( t \\geq 0 \\):"}, {"n": 4, "claim": "\\[\n\\sum_{i=1}^{t}-\\eta\\phi(f,Z_{i})\\leq-\\sum_{i=1}^{t}\\frac{\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}}{8\\sigma^{2}}+\\ln(2 N/\\delta).\\tag{13.5}\n\\]\nUsing Exercise 13.3, we have with probability at least \\(1 - \\delta /2\\), for all \\(t\\geq 0\\)\n\\[\n\\underbrace{\\sum_{i=1}^{t}\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}}_{A}\\leq 2 t\\sigma^{2}+3\\sigma^{2}\\ln(2/\\delta).\\tag{13.6}\n\\]\nIt follows that with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\) and \\(f \\in \\mathcal{F}_{\\epsilon}\\), both (13.5)\nand (13.6) hold."}, {"n": 5, "claim": "Now, let \\( f \\in \\mathcal{F}_{\\epsilon} \\) so that \\( \\| \\hat{f}_t - f \\|_{\\infty} \\leq \\epsilon \\)."}, {"n": 6, "claim": "This implies that\n\\[\n\\begin{array}{l}\\sum_{i=1}^{t}\\left[(f(X_{i})-Y_{i})^{2}-(f_{*}(X_{i})-Y_{i})^{2}\\right]\\leq\\left(\\sqrt{\\sum_{i=1}^{t}(\\hat{f}_{t}(X_{i})-Y_{i})^{2}}+\\sqrt{t}\\epsilon\\right)^{2}-A\\\\ \\leq\\left(\\sqrt{A}+\\sqrt{t}(\\epsilon+\\epsilon^{\\prime})\\right)^{2}-A\\\\ \\stackrel{(a)}{\\leq}(\\epsilon^{\\prime}+\\epsilon)^{2}t+2\\sqrt{t}(\\epsilon^{\\prime}+\\epsilon)\\sigma\\sqrt{2 t+3\\ln(2/\\delta)}\\\\ \\leq 4\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}t+3\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)+\\sigma^{2}\\ln(2/\\delta).\\tag{13.7}\\\\ \\end{array}\n\\]\nIn the above derivations, the first inequality used \\( |f(X_i) - Y_i| \\leq |\\hat{f}_t(X_i) - Y_i| + \\epsilon \\) for all \\( i \\)."}, {"n": 7, "claim": "The second inequality used the fact that \\( \\hat{f}_t \\) is approximate ERM. (a) follows from (13.6)."}, {"n": 8, "claim": "The last inequality used \\( 2a\\sigma \\sqrt{2b + 3c} \\leq 3a\\sigma \\sqrt{b} + 3a^2 + \\sigma^2 c \\)."}, {"n": 9, "claim": "We thus obtain\n\\[\n\\begin{array}{l}\\left(\\sum_{i=1}^{t}(\\hat{f}(X_{i})-f_{*}(X_{i}))^{2}\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(\\sum_{i=1}^{t}\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}\\right)^{1/2}\\quad(\\text{t r i a n g l e i n e q u a l i t y})\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+8\\sigma^{2}\\sum_{i=1}^{t}\\eta\\phi(f,Z_{i})\\right)^{1/2}\\quad(\\text{f r o m}(13. 5))\\\\ =\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+2\\sum_{i=1}^{t}\\left[\\left(f\\left(X_{i}\\right)-Y_{i}\\right)^{2}-\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}\\right]\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(10\\sigma^{2}\\ln(2N/\\delta)+8t\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}+6\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)\\right)^{1/2}\\quad(\\text{f r o m}(13. 7))\\\\ \\leq\\left(12\\sigma^{2}\\ln(2N/\\delta)+16t(\\epsilon+\\epsilon^{\\prime})^{2}+8\\sigma t(\\epsilon+\\epsilon^{\\prime})\\right)^{1/2},\\\\ \\end{array}\n\\]\nwhere the last inequality used \\(\\sqrt{a} +\\sqrt{b}\\leq \\sqrt{6a + 1.2b}\\) ."}, {"n": 10, "claim": "This implies the bound."}]}}, {"local_id": "T3", "statement": "Consider a sequence of real-valued random (measurable) functions \\(\\xi_1(S_1),\\ldots,\\xi_T(S_T)\\). Let \\(\\tau \\leq T\\) be a stopping time so that \\(\\mathbb{1}(t\\leq \\tau)\\) is measurable in \\(S_{t}\\). We have\n\\[\n\\mathbb{E}_{\\mathcal{S}_{T}}\\exp\\left(\\sum_{i=1}^{\\tau}\\xi_{i}-\\sum_{i=1}^{\\tau}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\xi_{i}}\\right)=1.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We prove the lemma by induction on \\( T \\). When \\( T = 0 \\), the equality is trivial."}, {"n": 2, "claim": "Assume that the claim holds at \\( T - 1 \\) for some \\( T \\geq 1 \\)."}, {"n": 3, "claim": "Now we will prove the equation at time \\( T \\) using the induction hypothesis."}, {"n": 4, "claim": "Note that \\(\\tilde{\\xi}_i = \\xi_i\\mathbb{1}(i\\leq \\tau)\\) is measurable in \\(S_{i}\\)."}, {"n": 5, "claim": "We have\n\\[\n\\sum_{i=1}^{\\tau}\\xi_{i}-\\sum_{i=1}^{\\tau}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\xi_{i}}=\\sum_{i=1}^{T}\\tilde{\\xi}_{i}-\\sum_{i=1}^{T}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\tilde{\\xi}_{i}}.\n\\]\nIt follows that\n\\[\n\\begin{array}{l}\\mathbb{E}_{Z_{1},\\dots,Z_{T}}\\exp\\left(\\sum_{i=1}^{\\tau}\\xi_{i}-\\sum_{i=1}^{\\tau}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\xi_{i}}\\right)\\\\ =\\mathbb{E}_{Z_{1},\\dots,Z_{T}}\\exp\\left(\\sum_{i=1}^{T}\\tilde{\\xi}_{i}-\\sum_{i=1}^{T}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\tilde{\\xi}_{i}}\\right)\\\\ =\\mathbb{E}_{Z_{1},\\ldots,Z_{n-1},Z_{T}^{(x)}}\\left[\\exp\\left(\\sum_{i=1}^{T-1}\\tilde{\\xi}_{i}-\\sum_{i=1}^{T-1}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\tilde{\\xi}_{i}}\\right)\\underbrace{\\mathbb{E}_{Z_{T}^{(y)}}\\exp(\\tilde{\\xi}_{T}-\\ln\\mathbb{E}_{Z_{T}^{(y)}}e^{\\tilde{\\xi}_{T}})}_{=1}\\right]\\\\ =\\mathbb{E}_{Z_{1},\\dots,Z_{T-1}}\\exp\\left(\\sum_{i=1}^{T-1}\\tilde{\\xi}_{i}-\\sum_{i=1}^{T-1}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\tilde{\\xi}_{i}}\\right)\\\\ =\\mathbb{E}_{Z_{1},\\dots,Z_{T-1}}\\exp\\left(\\sum_{i=1}^{\\min(\\tau,T-1)}\\xi_{i}-\\sum_{i=1}^{\\min(\\tau,T-1)}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\xi_{i}}\\right)=1.\\\\ \\end{array}\n\\]\nNote that the last equation follows from the induction hypothesis, and the fact that \\(\\min(\\tau,T-1)\\) is a stopping time \\(\\leq T - 1\\)."}]}}, {"local_id": "T4", "statement": "Consider a sequence of random functions \\(\\xi_1(S_1),\\ldots,\\xi_t(S_t),\\ldots\\) with filtration \\(\\{\\mathcal{F}_t\\}\\). We have for any \\(\\delta \\in (0,1)\\) and \\(\\lambda >0\\):\n\\[\n\\operatorname*{Pr}\\left[\\exists n>0: -\\sum_{i=1}^{n}\\xi_{i}\\geq\\frac{\\ln(1/\\delta)}{\\lambda}+\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda\\xi_{i}}\\right]\\leq\\delta .\n\\]\nMoreover, consider a sequence of \\(\\{z_t\\in \\mathbb{R}\\}\\) adapted to \\(\\{\\mathcal{F}_t\\}\\), and events \\(A_{t}\\) on \\(\\mathcal{F}_t\\):\n\\[\n\\ln\\Pr\\left[\\exists n>0:\\sum_{i=1}^{n}\\xi_{i}\\leq z_{n}\\&\\mathcal{S}_{n}\\in A_{n}\\right]\\leq\\inf_{\\lambda>0}\\sup_{n>0}\\sup_{\\mathcal{S}_{n}\\in A_{n}}\\left[\\lambda z_{n}+\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda\\xi_{i}}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "We will prove the result for a finite time sequence \\(\\xi_1(S_1),\\ldots,\\xi_T(S_T)\\)."}, {"n": 2, "claim": "It implies the desired result by letting \\(T\\to \\infty\\)."}, {"n": 3, "claim": "Let\n\\[\n\\xi_{\\tau}(\\lambda)= -\\sum_{i=1}^{\\tau}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda\\xi_{i}}-\\lambda\\sum_{i=1}^{\\tau}\\xi_{i},\n\\]\nwhere \\(\\tau\\) is a stopping time, then we have from Lemma 13.1:"}, {"n": 4, "claim": "\\(\\mathbb{E}e^{\\xi_{\\tau}(\\lambda)} = 1\\). Now for any given sequence of \\(\\tilde{z}_n(S_n)\\) and \\(A_{n}\\), define the stopping time \\(\\tau\\) as either \\(T\\), or the first time step \\(n\\) so that\n\\[\n\\xi_{n}(\\lambda)\\geq-\\tilde{z}_{n}\\left(\\mathcal{S}_{n}\\right)\\&\\mathcal{S}_{n}\\in A_{n}\n\\]\nfor each sequence \\(S_T\\)."}, {"n": 5, "claim": "It follows that\n\\[\n\\begin{array}{l}\\Pr\\left(\\exists n:\\xi_{n}(\\lambda)\\geq-\\tilde{z}_{n}\\left(\\mathcal{S}_{n}\\right)\\&\\mathcal{S}_{n}\\in A_{n}\\right)\\inf_{n>0,\\mathcal{S}_{n}\\in A_{n}}e^{-\\tilde{z}_{n}\\left(\\mathcal{S}_{n}\\right)}\\\\ \\leq\\mathbb{E}\\left[e^{\\xi_{\\tau}(\\lambda)+\\tilde{z}_{\\tau}\\left(\\mathcal{S}_{\\tau}\\right)}\\mathbb{1}\\left(\\mathcal{S}_{\\tau}\\in A_{\\tau}\\right)\\right]\\inf_{n>0,\\mathcal{S}_{n}\\in A_{n}}e^{-\\tilde{z}_{n}\\left(\\mathcal{S}_{n}\\right)}\\\\ \\leq\\mathbb{E}\\left[e^{\\xi_{\\tau}(\\lambda)+\\tilde{z}_{\\tau}\\left(\\mathcal{S}_{\\tau}\\right)}\\mathbb{1}\\left(\\mathcal{S}_{\\tau}\\in A_{\\tau}\\right)e^{-\\tilde{z}_{\\tau}\\left(\\mathcal{S}_{\\tau}\\right)}\\right]\\\\ \\leq\\mathbb{E}e^{\\xi_{\\tau}(\\lambda)}=1.\\\\ \\end{array}\n\\]\nTherefore we obtain\n\\[\n\\begin{array}{l}\\ln\\operatorname*{Pr}\\left[\\exists n>0: -\\lambda\\sum_{i=1}^{n}\\xi_{i}\\geq-\\tilde{z}_{n}(\\mathcal{S}_{n})+\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda\\xi_{i}}\\&\\mathcal{S}_{n}\\in A_{n}\\right]\\\\ \\leq\\sup_{n>0:\\mathcal{S}_{n}\\in A_{n}}\\tilde{z}_{n}(\\mathcal{S}_{n}).\\\\ \\end{array}\n\\]\nLet \\(\\tilde{z}(\\mathcal{S}_n) = \\ln \\delta\\), we obtain the first inequality."}, {"n": 6, "claim": "Let\n\\[\n\\tilde{z}_{n}(\\mathcal{S}_{n})=\\lambda z_{n}+\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda\\xi_{i}},\n\\]\nwe obtain the second inequality."}]}}, {"local_id": "T5", "statement": "We have for any \\(\\lambda >0\\), with probability at least \\(1 - \\delta\\), for all \\(n\\geq 1\\) and \\(f\\in \\mathcal{F}\\):\n\\[\n\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\leq\\inf_{\\epsilon>0}\\left[2 n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{F}_{\\epsilon} \\subset \\mathcal{F}\\) be an \\(\\epsilon\\) maximal packing of \\(\\mathcal{F}\\), with \\(|\\mathcal{F}_{\\epsilon}| \\leq M(\\epsilon, \\mathcal{F}, \\| \\cdot \\|_{\\infty})\\)."}, {"n": 2, "claim": "We obtain from Theorem 13.2, and the uniform bound over \\(\\mathcal{F}_{\\epsilon}\\) that with probability at least \\(1 - \\delta\\):"}, {"n": 3, "claim": "\\[\n\\sup_{f\\in\\mathcal{F}_{\\epsilon}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\leq\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}.\n\\]\nSince \\(\\mathcal{F}_{\\epsilon}\\) is also an \\(\\epsilon L_{\\infty}\\) cover of \\(\\mathcal{F}\\) (see Theorem 5.2), we obtain\n\\[\n\\begin{array}{l}\\sup_{f\\in\\mathcal{F}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\\\ \\leq 2 n\\epsilon+\\sup_{f\\in\\mathcal{F}_{\\epsilon}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right].\\\\ \\end{array}\n\\]\nThis implies the bound."}]}}], "target_local_id": "T2", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch13_theorem_13_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\[\\triangle_{n}(\\mathcal{C})=\\sup_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}.\\] We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T2", "statement": "Let \\(\\xi,\\nu\\) - random variables.Assume that\n\\[\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma\\geq 1,t\\geq 0\\) ,and \\(\\gamma > 0\\) . Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x)=(x-a)_{+}\\) .Then\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\(\\phi(x)=(x-a)_{+}\\) ,we have \\(\\phi(\\xi)\\geq\\phi(t)\\) whenever \\(\\xi \\geq t .\\)\n\\[\\begin{array}{ r l }&{\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\mathbb{P}\\left(\\phi(\\xi)\\geq\\phi(t)\\right)}\\\\ &{\\qquad\\leq\\displaystyle\\frac{\\mathbb{E}\\phi(\\xi)}{\\phi(t)}\\leq\\frac{\\mathbb{E}\\phi(\\nu)}{\\phi(t)}=\\frac{\\mathbb{E}\\left(\\nu-a\\right)_{+}}{(t-a)_{+}}}\\end{array}\\]\nFurthermore,\n\\[\\begin{array}{ r l }{\\displaystyle\\mathbb{E}(\\nu-a)_{+}=}&{\\mathbb{E}\\int_{0}^{(\\nu-a)_{+}}\\mathrm{1}d x}\\\\ &{=\\mathbb{E}\\int_{0}^{\\infty}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{E}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left((\\nu-a)_{+}\\geq x\\right)d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left(\\nu\\geq a+x\\right)d x}\\\\ &{\\leq\\int_{0}^{\\infty}\\Gamma e^{-\\gamma(a+x)}d x=\\frac{\\Gamma e^{-\\gamma a}}{\\gamma}.}\\end{array}\\]\nHence,\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}=\\frac{\\Gamma\\cdot e\\cdot e^{-\\gamma t}}{1}=\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\]\nwhere we chose optimal \\(\\begin{array}{ r }{a=t-\\frac{1}{\\gamma}}\\end{array}\\) to minimize \\(\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}\\)"}]}}, {"local_id": "T3", "statement": "The number \\(\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\) of subsets picked out by C is bounded by the number of subsets shattered by C.", "proof": {"steps": [{"n": 1, "claim": "Without loss of generality, we restrict C to \\({\\mathcal{C}}: =\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}\\) , and we have \\(\\operatorname{card}({\\mathcal{C}})=\\) \\(\\Delta_{n}({\\mathcal{C}},x_{1},\\cdots,x_{n})\\)\nWe will say that C is hereditary if and only if whenever \\(B\\subseteq C\\in{\\mathcal{C}},B\\in{\\mathcal{C}}\\) .If C is hereditary, then every \\(C\\in{\\mathcal{C}}\\) is shattered by C,and the lemma is obvious."}, {"n": 2, "claim": "Otherwise,we will transform \\({\\mathcal{C}}\\to{\\mathcal{C}}^{\\prime}\\) ,hereditary, without changing the cardinality of C and without increasing the number of shattered subsets."}, {"n": 3, "claim": "Define the operators \\(T_{i}\\) for \\(i=1,\\cdots,n\\) as the following,\n\\[\\begin{array}{ r c l }{T_{i}(C)}&{=}&{\\left\\{\\begin{array}{ l l }{C-\\{x_{i}\\}}&{\\mathrm{~i f~}C-\\{x_{i}\\}\\mathrm{~i s~n o t~i n~}\\mathcal{C}}\\\\ {C}&{\\mathrm{~o t h e r w i s e}}\\end{array}\\right.}\\\\ {T_{i}(\\mathcal{C})}&{=}&{\\{T_{i}(C):C\\in\\mathcal{C}\\}.}\\end{array}\\]\nIt follows that card \\(T_{i}({\\mathcal{C}})=\\operatorname{card}{\\mathcal{C}}\\) Moreover, every \\(A\\subseteq\\{x_{1},\\cdots,x_{n}\\}\\) that is shattered by \\(T_{i}(\\mathcal{C})\\) is also shattered by \\({\\mathcal{C}}.{\\mathrm{~I f~}}x_{i}\\notin A .\\) ,then \\(\\forall C\\in\\mathcal{C},A\\bigcap C=A\\bigcap T_{i}(C)\\) , thus C and \\(T_{i}(\\mathcal{C})\\) both or neither shatter A."}, {"n": 4, "claim": "On the other hand, if \\(x_{i}\\in A\\) and A is shattered by \\(T_{i}(\\mathcal{C})\\) , then \\(\\forall B\\subseteq A,\\exists C\\in{\\mathcal{C}}\\) ,such that \\(B\\bigcup\\{x_{i}\\}=A\\bigcap T_{i}(C)\\) This means that \\(x_{i}\\in T_{i}(C)\\) ,and that \\(C\\backslash\\{x_{i}\\}\\in\\mathcal{C}\\) Thus both \\(B\\bigcup\\{x_{i}\\}\\) and \\(B\\backslash\\{x_{i}\\}\\) are picked out by C."}, {"n": 5, "claim": "Since either \\(B=B\\cup\\{x_{i}\\}\\) or \\(B=B\\backslash\\{x_{i}\\}\\) , B is picked out by C."}, {"n": 6, "claim": "Thus A is shattered by C. Apply the operator \\(T=T_{1}\\circ\\dots\\circ T_{n}\\) until \\(T^{k+1}({\\mathcal{C}})=T^{k}({\\mathcal{C}})\\) ."}, {"n": 7, "claim": "This will happen for at most \\(\\scriptstyle\\sum_{C\\in{\\mathcal{C}}}\\operatorname{card}(C)\\) times,since \\(\\begin{array}{ r }{\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(T_{i}(C))<\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(C)\\mathrm{~i f~}T_{i}(\\mathcal{C})\\neq\\mathcal{C}}\\end{array}\\) ,The resulting collection \\(\\scriptstyle{\\mathcal{C}}^{\\prime}\\) is hereditary."}, {"n": 8, "claim": "This proves the lemma."}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T4", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch14_theorem_14_15__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 2.11. A sub-Gaussian random variable \\(X\\) has quadratic logarithmic moment generating function for all \\(\\lambda \\in \\mathbb{R}\\):\n\\[\n\\ln\\mathbb{E}e^{\\lambda X}\\leq\\lambda\\mu+\\frac{\\lambda^{2}}{2}b.\\tag{2.10}\n\\]\nUsing (2.10), we can obtain an upper bound of the rate function for sub-Gaussian random variables, which imply the following tail inequality.\n\nIn the setting of general online (nonconvex) optimization, the Gibbs distribution can be defined after time \\(t\\) as follows\n\\[\np_t(w) \\propto p_0(w) \\exp \\left(-\\eta \\sum_{s=1}^{t} \\ell_s(w)\\right), \\tag{14.9}\n\\]\nwhere \\(p_0(w)\\) is a prior on \\(\\Omega\\).\n\nHedge Algorithm. Hedge Algorithm\nInput: \\(T\\), prior \\(p_{0}(w)\\) on \\(\\Omega\\), learning rate \\(\\eta > 0\\)\n1 Randomly draw \\(w_{0} \\sim p_{0}(w)\\)\n2 for \\(t = 1, 2, \\ldots, T\\) do\n3 \\quad Observe loss \\(\\ell_{t}(w_{t-1})\\)\n4 \\quad Randomly draw \\(w_{t} \\sim p_{t}(w)\\) according to \\((14.9)\\)\n\nWe have the following result for the Hedge algorithm, using conditions similar to those of Theorem 7.17.\n\nOnline Gradient Descent. Algorithm 14.3: Online Gradient Descent\nInput: Sequence of loss functions \\(\\ell_1,\\dots,\\ell_T\\) defined on \\(\\Omega\\) Output: \\(\\hat{w}\\) \n1 Let \\(w_{0} = 0\\) \n2 for \\(t=1,2,\\ldots,T\\) do \n3 Observe loss \\(\\ell_t(w_{t - 1})\\) \n4 Let \\(\\tilde{w}_t = w_{t - 1} - \\eta_t\\nabla \\ell_t(w_{t - 1})\\) \n5 Let \\(w_{t} = \\arg \\min_{w\\in \\Omega}\\| w - \\tilde{w}_{t}\\|_{2}^{2}\\) \n6 Let \\(\\hat{w} = T^{-1}\\sum_{t = 1}^{T}w_{t - 1}\\) or \\(\\hat{w} = w_{s}\\) for a random \\(s\\) from O to \\(T - 1\\) Return: \\(\\hat{w}\\)\n\nexample 14.10. Consider the structured-SVM loss of Example 9.32, where\n\\[\n\\phi(w,z)=\\max_{\\ell}[\\gamma(y,\\ell)-w^{\\top}(\\psi(x,y)-\\psi(x,\\ell))].\n\\]\nIf \\( \\| \\psi(x, y) - \\psi(, \\ell) \\|_2 \\leq B \\), then we can take \\( G = B \\). Using Theorem 14.5, we obtain\n\\[\n\\frac{1}{T}\\sum_{t=1}^{T}\\phi(w_{t-1},Z_{t})\\leq\\frac{1}{T}\\sum_{t=1}^{T}\\phi(w,Z_{t})+\\frac{\\|w_{0}-w\\|_{2}^{2}}{2\\eta T}+\\frac{\\eta}{2}B^{2}.\n\\]\nBy taking expectation, and using Jensen's inequality with \\(\\lambda = 1 / (\\eta T)\\), we obtain\n\\[\n\\mathbb{E}_{\\mathcal{S}_{T}}\\mathbb{E}_{Z\\sim\\mathcal{D}}\\phi(\\hat{w},Z)\\leq\\mathbb{E}_{Z\\sim\\mathcal{D}}\\phi(w,Z)+\\frac{\\lambda}{2}\\|w_{0}-w\\|_{2}^{2}+\\frac{1}{2\\lambda T}B^{2}.\n\\]\nFor \\( L_{2} \\) regularization (or kernel methods), one can obtain a better bound using strong convexity. Observe that for regularized loss, we take\n\\[\n\\ell_{t}(w)=\\phi\\left(w,Z_{t}\\right)+\\frac{\\lambda}{2}\\|w-w_{0}\\|_{2}^{2}.\\tag{14.8}\n\\]\nIf \\(\\phi (w,z)\\) is convex in \\(w\\), then \\(\\ell_t(w)\\) is \\(\\lambda\\) strongly convex.\nThe following result holds for strongly convex loss functions, and the specific learning rate schedule was proposed by (Shalev-Shwartz et al., 2011) to solve SVMs.\n\ndefinition 6.35. Given \\(\\mathcal{D}\\) and \\(\\mathcal{F}\\), and consider a localization function \\(h: \\mathcal{F} \\to \\mathbb{R}\\) such that \\(b_0 = \\inf_{f \\in \\mathcal{F}} h(f) > -\\infty\\). Define localized function class \\(\\mathcal{F}^h(b) = \\{f \\in \\mathcal{F}: h(f) \\leq b\\}\\) for all \\(b > b_0\\). For any \\(\\alpha > 0\\), the rate function with respect to localization \\(h\\) is defined as\n\\[\n\\bar{r}_{n}^{h}(\\alpha,\\mathcal{F},\\mathcal{D})=\\sup\\left\\{r:r\\leq\\inf_{r^{\\prime}>\\max(r,\\alpha b_{0})}\\epsilon_{n}\\left(\\mathcal{F}^{h}\\big(r^{\\prime}/\\alpha\\big),\\mathcal{D}\\right)\\right\\}.\n\\]\nWe note that the requirement of \\( r' > \\alpha b_0 \\) in Definition 6.35 is only to make sure that \\( \\mathcal{F}^h(r'/\\alpha) \\) is always non-empty, and thus \\( \\epsilon_n(\\mathcal{F}^h(r'/\\alpha), \\mathcal{D}) \\) is well-defined.\n\ndefinition 6.6. Consider any known data-dependent offset function \\( h(w, S_n) \\). Define the uniform convergence complexity of a function class \\( \\mathcal{G} \\) with offset \\( h \\) as\n\\[\n\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\sup_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})].\\tag{6.2}\n\\]\nThis quantity measures the one-sided expected uniform convergence of function class \\(\\mathcal{G}\\) with offset function \\(h(w, S_n)\\).\nWe note that\n\\[\n\\epsilon_{n}(\\mathcal{G},\\mathcal{D})=\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D}),\\qquad \\text{w i t h} h=0.\n\\]\nWe have the following generalization of Theorem 6.2, with a similar proof.", "theorems": [{"local_id": "T1", "statement": "Given any function \\(U(w)\\), we have\n\\[\n\\min_{p\\in\\Delta(\\Omega)}\\left[\\mathbb{E}_{w\\sim p}U(w)+\\mathrm{KL}(p| |p_{0})\\right]= -\\ln\\mathbb{E}_{w\\sim p_{0}}\\exp(-U(w)),\n\\]\nand the solution is achieved by the Gibbs distribution \\( q(w) \\propto p_0(w) \\exp(-U(w)) \\). Here \\( \\Delta(\\Omega) \\) denotes the set of probability distributions on \\( \\Omega \\).", "proof": {"steps": [{"n": 1, "claim": "Let \\(C = \\mathbb{E}_{w\\sim p_0}\\exp (-U(w))\\) . Then we have\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p}U(w)+\\operatorname{KL}(p| |p_{0})=\\mathbb{E}_{w\\sim p}\\ln\\frac{p(w)}{p_{0}(w)\\exp(-U(w))}\\\\ =\\mathbb{E}_{w\\sim p}\\ln\\frac{p(w)}{Cq(w)}\\geq-\\ln C.\\\\ \\end{array}\n\\]\nThe inequality used the fact that \\(\\mathrm{KL}(p||q) \\geq 0\\), and the equality holds when \\(p(w) = q(w)\\)."}]}}, {"local_id": "T2", "statement": "Assume that for all \\(t\\):\n\\[\n\\sup_{w\\in\\Omega}\\ell_{t}(w)-\\inf_{w\\in\\Omega}\\ell_{t}(w)\\leq M,\n\\]\nthen Algorithm 14.4 has regret\n\\[\n\\sum_{t=1}^{T}\\mathbb{E}_{w_{t-1}\\sim p_{t-1}(\\cdot)}\\ell_{t}(w_{t-1})\\leq\\inf_{p\\in\\Delta(\\Omega)}\\left[\\mathbb{E}_{w\\sim p}\\sum_{t=1}^{T}\\ell_{t}(w)+\\frac{1}{\\eta}\\mathrm{KL}(p| |p_{0})\\right]+\\frac{\\eta TM^{2}}{8},\n\\]\nwhere \\(\\Delta (\\Omega)\\) denotes the set of probability distributions on \\(\\Omega\\)", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\nZ_{t}= -\\ln\\mathbb{E}_{w\\sim p_{0}}\\exp\\left(-\\eta\\sum_{s=1}^{t}\\ell_{s}(w)\\right)\n\\]\nbe the log-partition function for observations up to time \\( t \\)."}, {"n": 2, "claim": "We have\n\\[\n\\begin{array}{l}Z_{t-1}-Z_{t}=\\ln\\mathbb{E}_{w\\sim p_{t-1}}\\exp(-\\eta\\ell_{t}(w))\\\\ \\leq-\\eta\\mathbb{E}_{w\\sim p_{t-1}}\\ell_{t}(w)+\\frac{\\eta^{2}M^{2}}{8},\\\\ \\end{array}\n\\]\nwhere the first equation is simple algebra, and the inequality follows from the estimate of logarithmic moment generation function in Lemma 2.15."}, {"n": 3, "claim": "By summing\nover \\(t = 1\\) to \\(T\\), and noticing that \\(Z_{0} = 0\\), we obtain\n\\[\n\\sum_{t=1}^{T}\\mathbb{E}_{w_{t-1}\\sim p_{t-1}(\\cdot)}\\ell_{t}(w_{t-1})\\leq\\frac{1}{\\eta}Z_{T}+\\frac{\\eta T M^{2}}{8}.\n\\]\nThe desired bound follows by applying Proposition 7.16 to reformulate the log-partition function \\( Z_{T} \\)."}]}}, {"local_id": "T3", "statement": "The rate function in Definition 6.35 is always non-negative.", "proof": {"steps": [{"n": 1, "claim": "Note that \\(\\mathcal{F}^h (r' / \\alpha)\\neq \\emptyset\\) when \\(r^\\prime >\\max (0,\\alpha b_0)\\). Since \\(\\epsilon_{n}(\\mathcal{F}^{h}(r^{\\prime} / \\alpha),\\mathcal{D})\\) is always non-negative, with \\(r = 0\\), we have \\(r\\leq \\epsilon_n(\\mathcal{F}^h (r' / \\alpha),\\mathcal{D})\\) when \\(r^\\prime >\\) \\(\\max (r,\\alpha b_0)\\)"}]}}, {"local_id": "T4", "statement": "Consider a random variable \\(X \\in [0,1]\\) and \\(\\mathbb{E}X = \\mu\\). We have the following inequality:\n\\[\n\\ln\\mathbb{E}e^{\\lambda X}\\leq\\ln [(1-\\mu)e^{0}+\\mu e^{\\lambda}]\\leq\\lambda\\mu+\\lambda^{2}/8.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( h_L(\\lambda) = \\mathbb{E}e^{\\lambda X} \\) and \\( h_R(\\lambda) = (1 - \\mu)e^0 + \\mu e^\\lambda \\)."}, {"n": 2, "claim": "We know that \\( h_L(0) = h_R(0) \\). Moreover, when \\( \\lambda \\geq 0 \\):"}, {"n": 3, "claim": "\\[\nh_{L}^{\\prime}(\\lambda)=\\mathbb{E}X e^{\\lambda X}\\leq\\mathbb{E}X e^{\\lambda}=\\mu e^{\\lambda}=h_{R}^{\\prime}(\\lambda),\n\\]\nand similarly \\(h_L'(\\lambda) \\geq h_R'(\\lambda)\\) when \\(\\lambda \\leq 0\\)."}, {"n": 4, "claim": "This proves the first inequality. Now we let\n\\[\nh(\\lambda)=\\ln [(1-\\mu)e^{0}+\\mu e^{\\lambda}].\n\\]\nIt implies that\n\\[\nh^{\\prime}(\\lambda)=\\frac{\\mu e^{\\lambda}}{(1-\\mu)e^{0}+\\mu e^{\\lambda}},\n\\]\nand\n\\[\n\\begin{array}{l}h^{\\prime\\prime}(\\lambda)=\\frac{\\mu e^{\\lambda}}{(1-\\mu)e^{0}+\\mu e^{\\lambda}}-\\frac{(\\mu e^{\\lambda})^{2}}{[(1-\\mu)e^{0}+\\mu e^{\\lambda}]^{2}}\\\\ =\\left|h^{\\prime}(\\lambda)\\right|\\left(1-\\left|h^{\\prime}(\\lambda)\\right|\\right)\\leq 1/4.\\\\ \\end{array}\n\\]\nUsing Taylor expansion, we obtain the inequality \\( h(\\lambda) \\leq h(0) + \\lambda h'(0) + \\lambda^2 / 8 \\), which proves the second inequality."}]}}, {"local_id": "T5", "statement": "Consider the regularized loss function (14.8) with \\( w_0 = 0 \\), where \\( \\phi(w, z) \\) is convex in \\( w \\), and \\( G \\) Lipschitz in \\( w \\). Moreover assume that \\( d(\\Omega) = \\sup \\{ \\| w \\|_2 : w \\in \\Omega \\} \\). If \\( Z_1, \\ldots, Z_T \\sim \\mathcal{D} \\) are independent samples, then we can obtain the following expected oracle inequality for Algorithm 14.3 if we take learning rate in Theorem 14.11:\n\\[\n\\mathbb{E}_{\\mathcal{S}_{T}}\\mathbb{E}_{\\mathcal{D}}\\phi(\\hat{w},Z)+\\frac{\\lambda}{2}\\|\\hat{w}\\|_{2}^{2}\\leq\\inf_{w\\in\\Omega}\\left[\\mathbb{E}_{\\mathcal{D}}\\phi(w,Z)+\\frac{\\lambda}{2}\\|w\\|_{2}^{2}\\right]+\\frac{\\ln(e T)}{2\\lambda T}[G+\\lambda d(\\Omega)]^{2}.\n\\]\nWe can also obtain the following expected oracle inequality for Algorithm 14.3 if we take learning rate in Theorem 14.12 with\n\\[\n\\hat{w}^{\\prime}=\\sum_{t=1}^{T}\\frac{2(t+1)}{T^{2}+3 T}w_{t-1},\n\\]\nthen\n\\[\n\\mathbb{E}_{\\mathcal{S}_{T}}\\mathbb{E}_{\\mathcal{D}}\\phi(\\hat{w}^{\\prime},Z)+\\frac{\\lambda}{2}\\|\\hat{w}^{\\prime}\\|_{2}^{2}\\leq\\inf_{w\\in\\Omega}\\left[\\mathbb{E}_{\\mathcal{D}}\\phi(w,Z)+\\frac{\\lambda}{2}\\|w\\|_{2}^{2}\\right]+\\frac{2[G+\\lambda d(\\Omega)]^{2}}{\\lambda(T+3)}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Note that \\(\\ell_t(w)\\) is \\(\\lambda\\)-strongly convex in \\(w\\)."}, {"n": 2, "claim": "Moreover, it is \\(G + \\lambda d(\\Omega)\\) Lipschitz."}, {"n": 3, "claim": "We simply take expectation and apply Jensen's inequality to obtain the desired bounds."}]}}], "target_local_id": "T2", "topic_domain": "Online Learning & RL", "topic_subtopic": "Online Learning & Regret", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch15_lemma_15_2__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\[\\triangle_{n}(\\mathcal{C})=\\sup_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}.\\] We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Let \\(\\xi,\\nu\\) - random variables.Assume that\n\\[\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma\\geq 1,t\\geq 0\\) ,and \\(\\gamma > 0\\) . Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x)=(x-a)_{+}\\) .Then\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\(\\phi(x)=(x-a)_{+}\\) ,we have \\(\\phi(\\xi)\\geq\\phi(t)\\) whenever \\(\\xi \\geq t .\\)\n\\[\\begin{array}{ r l }&{\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\mathbb{P}\\left(\\phi(\\xi)\\geq\\phi(t)\\right)}\\\\ &{\\qquad\\leq\\displaystyle\\frac{\\mathbb{E}\\phi(\\xi)}{\\phi(t)}\\leq\\frac{\\mathbb{E}\\phi(\\nu)}{\\phi(t)}=\\frac{\\mathbb{E}\\left(\\nu-a\\right)_{+}}{(t-a)_{+}}}\\end{array}\\]\nFurthermore,\n\\[\\begin{array}{ r l }{\\displaystyle\\mathbb{E}(\\nu-a)_{+}=}&{\\mathbb{E}\\int_{0}^{(\\nu-a)_{+}}\\mathrm{1}d x}\\\\ &{=\\mathbb{E}\\int_{0}^{\\infty}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{E}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left((\\nu-a)_{+}\\geq x\\right)d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left(\\nu\\geq a+x\\right)d x}\\\\ &{\\leq\\int_{0}^{\\infty}\\Gamma e^{-\\gamma(a+x)}d x=\\frac{\\Gamma e^{-\\gamma a}}{\\gamma}.}\\end{array}\\]\nHence,\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}=\\frac{\\Gamma\\cdot e\\cdot e^{-\\gamma t}}{1}=\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\]\nwhere we chose optimal \\(\\begin{array}{ r }{a=t-\\frac{1}{\\gamma}}\\end{array}\\) to minimize \\(\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}\\)"}]}}, {"local_id": "T2", "statement": "Setup. Fix \\(f_1,\\dots,f_d:\\mathcal{X}\\to\\mathbb{R}\\) and let \\(\\mathcal{C}=\\left\\{\\left\\{x:\\sum_{k=1}^{d}\\alpha_k f_k(x)>0\\right\\}:\\alpha_1,\\dots,\\alpha_d\\in\\mathbb{R}\\right\\}\\).\n\nThen \\(VC(\\mathcal{C})\\le d\\).", "proof": {"steps": [{"n": 1, "claim": "Observation: For any \\(\\{x_{1},\\dots,x_{d+1}\\}\\) if we cannot shatter \\(\\{x_{1},\\dots,x_{d+1}\\}\\longleftrightarrow\\exists I\\subseteq\\{1\\dots d+1\\}\\) s.t. we cannot pick out \\(\\{x_{i},i\\in I\\}\\) ."}, {"n": 2, "claim": "If we can pick out \\(\\{x_{i},i\\in I\\}\\) , then for some \\(C\\in{\\mathcal{C}}\\) there are \\(\\alpha_{1},\\ldots,\\alpha_{d}\\) s.t."}, {"n": 3, "claim": "\\(\\textstyle\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x)>0\\) for \\(i \\in I\\) and \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x)\\le 0}\\end{array}\\) for \\(i \\notin I\\)."}, {"n": 4, "claim": "Denote\n\\[\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{1}),\\ldots,\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{d+1})\\right)=F(\\alpha)\\in\\mathbb{R}^{d+1}.\\]\nBy linearity,\n\\[F(\\alpha)=\\sum_{k=1}^{d}\\alpha_{k}\\left(f_{k}(x_{1}),\\ldots,f(x_{d+1})\\right)=\\sum_{k=1}^{d}\\alpha_{k}F_{k}\\subseteq H\\subset\\mathbb{R}^{d+1}\\]\nand H is a d-dim subspace."}, {"n": 5, "claim": "Hence, \\(\\exists\\phi\\neq 0,\\phi\\cdot h=0,\\forall h\\in H\\) (\\(\\phi\\) orthogonal to H)."}, {"n": 6, "claim": "Let \\(I=\\{i:\\phi_{i}>0\\}\\) where \\(\\phi=\\left(\\phi_{1},\\ldots,\\phi_{d+1}\\right)\\) ."}, {"n": 7, "claim": "If \\(I=\\emptyset\\) then take \\(-\\phi\\) instead of \\(\\phi\\) so that \\(\\phi\\) has positive coordinates.\nClaim: We cannot pick out \\(\\{x_{i},i\\in I\\}\\) .Suppose we can: then \\(\\exists\\alpha_{1},\\dotsc,\\alpha_{d}\\) s.t. \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})>0}\\end{array}\\) for \\(i\\in I\\) and \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\le 0}\\end{array}\\) for \\(i \\not \\in I\\). But \\(\\phi\\cdot F(\\alpha)=0\\) and so\n\\[\\phi_{1}\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{1})+\\ldots+\\phi_{d+1}\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{d+1})=0 .\\]\nHence,\n\\[\\sum_{i\\in I}\\underbrace{\\phi_{i}\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\right)}_{>0}=\\sum_{i\\notin I}\\underbrace{(-\\phi_{i})}_{\\geq 0}\\underbrace{\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\right)}_{\\leq 0}.\\]\nContradiction."}]}}, {"local_id": "T3", "statement": "Let \\(x=(x_{1},\\ldots,x_{n}),x^{\\prime}=(x_{1}^{\\prime},\\ldots,x_{n}^{\\prime})\\) . If for functions \\(\\varphi_{1}(x,x^{\\prime}),\\varphi_{2}(x,x^{\\prime}),\\varphi_{3}(x,x^{\\prime})\\)\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\varphi_{1}(x,x^{\\prime})\\geq\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma e^{-\\gamma t}}\\end{array}\\]\nthen\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}(x,x^{\\prime})\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.}\\end{array}\\]\n(i.e. if the inequality holds, then it holds with averaging over one of the copies)", "proof": {"steps": [{"n": 1, "claim": "First, note that \\(\\begin{array}{ r }{\\sqrt{a b}=\\operatorname*{inf}_{\\delta>0}(\\delta a+\\frac{b}{4\\delta})}\\end{array}\\) with \\(\\begin{array}{ r }{\\delta_{*}=\\sqrt{\\frac{b}{4 a}}}\\end{array}\\) achieving the infima."}, {"n": 2, "claim": "Hence,\n\\[\\begin{array}{ c }{{\\{\\varphi_{1}\\geq\\varphi_{2}+\\sqrt{\\varphi_{3}t}\\}=\\{\\exists\\delta>0,\\varphi_{1}\\geq\\varphi_{2}+\\delta\\varphi_{3}+\\displaystyle\\frac{t}{4\\delta}\\}}}\\\\ {{=\\{\\exists\\delta>0,(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta\\geq t\\}}}\\\\ {{=\\{\\underbrace{\\sup_{\\delta>0}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}_{\\nu}\\geq t\\}}}\\end{array}\\]\nand similarly\n\\[\\big\\{\\mathbb{E}_{x^{\\prime}}\\varphi_{1}\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}t}\\big\\}=\\big\\{\\underbrace{\\sup_{\\delta>0}(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}-\\mathbb{E}_{x^{\\prime}}\\varphi_{2}-\\delta\\mathbb{E}_{x^{\\prime}}\\varphi_{3})4\\delta}_{\\xi}\\geq t\\big\\}.\\]\nBy assumption, \\(\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\) ."}, {"n": 3, "claim": "We want to prove \\(\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\) ."}, {"n": 4, "claim": "By the previous lemma, we only need to check whether \\(\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\)\n\\[\\begin{array}{ l }{\\displaystyle\\xi=\\operatorname*{sup}_{\\delta>0}\\mathbb{E}_{x^{\\prime}}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle\\quad\\leq\\mathbb{E}_{x^{\\prime}}\\operatorname*{sup}_{\\delta>0}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle=\\mathbb{E}_{x^{\\prime}}\\nu}\\end{array}\\]\nThus,\n\\[\\phi(\\xi)\\leq\\phi(\\mathbb{E}_{x^{\\prime}}\\nu)\\leq\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)\\]\nby Jensen's inequality (\\(\\phi\\) is convex)."}, {"n": 5, "claim": "Hence,\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)=\\mathbb{E}\\phi(\\nu).\\]"}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T3", "topic_domain": "Probability & Concentration", "topic_subtopic": "Functional & Supremum Concentration", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch17_theorem_17_4__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nContextual Bandit Problem. In contextual bandit, we consider a context space \\(\\mathcal{X}\\) and an action space \\(\\mathcal{A}\\). Given context \\(x \\in \\mathcal{X}\\), we take an action \\(a \\in \\mathcal{A}\\), and observe a reward \\(r \\in \\mathbb{R}\\) that can depend on \\((x, a)\\). The contextual bandit problem is a repeated game: at each time step \\(t\\):\n- The player observes a sample \\( x_{t} \\in \\mathcal{X} \\)\n- The player chooses precisely one action (or arm) \\(a_{t} \\in \\mathcal{A}\\)\n- The reward \\( r_t \\) is revealed.\nNote that in this chapter, we will follow the convention in the bandit literature of using \\(\\mathcal{A}\\) to denote the action space instead of the learning algorithm. We may also introduce the notation of policy for contextual bandits. Using the notation of Section 13.4, a bandit learning algorithm returns a policy \\(\\hat{q}(\\mathcal{S}_{t-1})\\) based on the history \\(\\mathcal{S}_{t-1}\\).\n\ndefinition 17.2. A policy \\(\\pi\\) for contextual bandit is a map \\(\\mathcal{X} \\to \\Delta(\\mathcal{A})\\), where \\(\\Delta(\\mathcal{A})\\) denotes probability measures over \\(\\mathcal{A}\\) with an appropriately defined \\(\\sigma\\)-algebra. One may also write it as a conditional distribution \\(\\pi(a|x)\\), and the policy draws \\(a \\sim \\pi(\\cdot|x)\\) when it observes context \\(x\\). A contextual bandit algorithm \\(\\hat{q}\\) maps historic observations\n\\[\n\\mathcal{S}_{t-1}=\\left\\{\\left(x_{1},a_{1},r_{1}\\right),\\dots,\\left(x_{t-1},a_{t-1},r_{t-1}\\right)\\right\\}\n\\]\nto a policy \\(\\pi_t = \\hat{q}(\\cdot | \\mathcal{S}_{t-1})\\) at each time step \\(t\\), and pulls an arm \\(a_t \\sim \\pi_t(\\cdot | x_t)\\) based on the observation \\(x_t\\). In this chapter, we will also write the history dependent policy as \\(a_t \\sim \\hat{q}(a_t | x_t, \\mathcal{S}_{t-1})\\).\nThe contextual bandit problem includes the multi-armed bandit problem as a special case if we take \\( x = x_0 \\) to be a fixed context for all time steps.\nSimilar to the case of multi-armed bandit problem, we may also consider the adversarial setting with an oblivious adversary as follows. At each time step \\( t \\), we have the information of all rewards \\( [r_t(a) : a \\in \\mathcal{A}] \\), but only reveals the value\nof \\( r_t(a_t) \\) for the chosen arm \\( a_t \\). The goal is to maximize the expected cumulative reward\n\\[\n\\sum_{t=1}^{T}\\mathbb{E}_{a_{t}\\sim\\pi_{t}}[r_{t}(a_{t})].\n\\]\nIf we are given a policy class \\(\\Pi\\), then regret of a contextual bandit algorithm with respect to \\(\\Pi\\) can be written as\n\\[\n\\operatorname{REG}_{T}=\\sup_{\\pi\\in\\Pi}\\sum_{t=1}^{T}\\mathbb{E}_{a_{t}\\sim\\pi}[r_{t}(a_{t})]-\\sum_{t=1}^{T}\\mathbb{E}_{a_{t}\\sim\\pi_{t}}[r_{t}(a_{t})].\\tag{17.1}\n\\]\nIf we consider the stochastic contextual bandit setting with unknown value functions\n\\[\nf_{*}(x,a)=\\mathbb{E}[r|x,a],\\qquad f_{*}(x)=\\max_{a\\in\\mathcal{A}}f(x,a)\n\\]\nthat do not change over time, then the goal becomes to maximize the expected reward\n\\[\n\\sum_{t=1}^{T}\\mathbb{E}_{a_{t}\\sim\\pi_{t}}[f_{*}(x_{t},a_{t})].\n\\]\nThe regret of the algorithm that produces policy sequence \\(\\{\\pi_t\\}\\) is:\n\\[\n\\operatorname{REG}_{T}=\\sum_{t=1}^{T}\\mathbb{E}_{a_{t}\\sim\\pi_{t}}\\left[f_{*}\\left(x_{t}\\right)-f_{*}\\left(x_{t},a_{t}\\right)\\right].\\tag{17.2}\n\\]\n\ndefinition 17.7. Stochastic linear contextual bandit (or stochastic contextual bandit with linear payoff) is a contextual bandit problem, where the reward at each time step \\( t \\) is given by\n\\[\nr_{t}(a)=r_{t}(x_{t},a)=w_{*}^{\\top}\\psi(x_{t},a)+\\epsilon_{t}(x_{t},a),\\tag{17.8}\n\\]\nwhere \\(\\epsilon_t(x, a)\\) is a zero-mean random variable. We assume that \\(\\mathcal{H}\\) is a known inner product space, \\(w_* \\in \\mathcal{H}\\) is the unknown model parameter, and the feature vector \\(\\psi(x, a) \\in \\mathcal{H}\\) is known.\nIn the stochastic linear bandit model, the number of arms can be either infinite or finite, and an UCB style algorithm is presented in Algorithm 17.2. Note that the algorithm selects an arm which has the largest confidence bound adjusted reward. This methodology is referred to as the optimism in the face of uncertainty, and is a direct generalization of upper confidence bound (UCB) for MAB. Therefore we call Algorithm 17.2 linear UCB, although it is also referred to as OFUL (optimism in the face of uncertainty linear bandit) in the literature (Abbasi-yadjkori et al., 2011).\n\nEXP4. Algorithm 17.1: EXP4\nInput: \\(K,T,\\mathcal{G},p_0(\\cdot),\\gamma \\in (0,1],\\eta >0,b\\geq 0\\) \n1 Let \\(u_{0}(w) = 1\\) \n2 for \\(t=1,2,\\ldots,T\\) do \n3 Observe \\(x_{t}\\) \n4 for \\(a=1,\\dots,K\\) do \n5 Let \\(\\hat{\\pi}_t(a) = (1 - \\gamma)\\mathbb{E}_{w\\sim p_{t - 1}(w)}\\hat{q}_t(a|w,x_t) + \\gamma /K\\) \n6 Sample \\(a_{t}\\) according to \\(\\hat{\\pi}_t(\\cdot)\\) \n7 Pull arm \\(a_{t}\\) and observe reward \\(r_t(a_t)\\in [0,1]\\) \n8 Let \\(\\hat{r}_t(w,x_t,a_t) = \\hat{q}_t(a_t|w,x_t)(r_t(a_t) - b) / \\hat{\\pi}_t(a_t)\\) \n9 Let \\(u_{t}(w) = u_{t - 1}(w)\\exp (\\eta \\hat{r}_{t}(w,x_{t},a_{t}))\\) \n10 Let \\(p_t(w) = p_0(w)u_t(w) / \\mathbb{E}_{w\\sim p_0(w)}u_t(w)\\)\n\nNote that conditioned on the history, the estimator \\(\\hat{r}_t(w,x_t,a_t)\\) is a random estimator that depends on the partial reward \\(r_t(a_t)\\) received for \\(a_t \\sim \\hat{\\pi}_t(a)\\). Moreover, it is an unbiased estimator of the following shifted reward of \\(w\\), according to policy \\(\\hat{q}_t(\\cdot|w,x_t)\\):\n\\[\n\\mathbb{E}_{a_t \\sim \\hat{\\pi}_t} \\hat{r}_t(w,x_t,a_t) = \\mathbb{E}_{a \\sim \\hat{q}_t(a|w,x_t)} (r_t(a) - b). \\tag{17.3}\n\\]\nwhich relies on the full reward vector \\([r_t(a)]\\) at time step \\(t\\) over all arms \\(a\\).\n\nLinear UCB Algorithm. Algorithm 17.2: Linear UCB Algorithm\nInput: \\(\\lambda, T, \\{\\beta_t\\}\\) \n1 Let \\(A_0 = \\lambda I\\) \n2 Let \\(w_0 = 0\\) \n3 Let \\(b_0 = 0\\) \n4 for \\(t = 1, 2, \\dots, T\\) do \n5 Observe \\(x_t\\) \n6 Let \\(a_t \\in \\arg \\max_a \\left[ w_{t-1}^\\top \\psi(x_t, a) + \\beta_{t-1} \\sqrt{\\psi(x_t, a)^\\top A_{t-1}^{-1} \\psi(x_t, a)} \\right]\\) \n7 Pull arm \\(a_t\\) and observe reward \\(r_t(x_t, a_t)\\) \n8 Let \\(b_t = b_{t-1} + r_t(x_t, a_t) \\psi(x_t, a_t)\\) \n9 Let \\(A_t = A_{t-1} + \\psi(x_t, a_t) \\psi(x_t, a_t)^\\top\\) \n10 Let \\(w_t = A_t^{-1} b_t\\)", "theorems": [{"local_id": "T1", "statement": "Let \\(\\eta = \\gamma / K\\) and \\(b = 0\\). Assume that the uniform random policy belongs to \\(\\Omega\\) and \\(|\\Omega| = N < \\infty\\). Let \\(p_0(w)\\) be the uniform prior over \\(\\Omega\\), then\n\\[\nG_{*}-\\mathbb{E}\\sum_{t=1}^{T}r_{t}(a_{t})\\leq(e-1)\\gamma G_{*}+\\frac{K\\ln N}{\\gamma},\n\\]\nwhere the expectation is with respect to the randomization of the algorithm, and\n\\[\nG_{*}=\\arg\\max_{w}\\sum_{t=1}^{T}\\mathbb{E}\\left.\\mathbb{E}_{a\\sim\\hat{q}_{t}(\\cdot|w,x_{t})}[r_{t}(a)]\\right..\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have \\(\\eta \\hat{r}_t(w,x_t,a_t)\\leq 1\\), and thus \\(c(\\eta,b)=e-2\\)."}, {"n": 2, "claim": "Note that the uniform random policy belongs to \\(\\Omega\\) implies that\n\\[\n\\frac{1}{K}\\sum_{t=1}^{T}\\sum_{a=1}^{K}r_{t}(a)\\leq G_{*}.\n\\]\nWe consider Theorem 17.4, with \\( q \\) defined as \\( q(w) = \\mathbb{1}(w = w_{*}) \\), where \\( w_{*} \\) achieves the maximum of \\( G_{*} \\)."}, {"n": 3, "claim": "This implies\n\\[\n\\mathbb{E}\\sum_{t=1}^{T}r_{t}(a_{t})\\geq(1-\\gamma)\\left[G_{*}-\\frac{K}{\\gamma}\\ln N\\right]-(e-2)\\gamma G_{*}.\n\\]\nThis implies the bound."}]}}, {"local_id": "T2", "statement": "Assume that in the stochastic linear bandit model, \\(r_t(x_t, a_t) \\in [0,1]\\) and \\(\\|w_*\\|_2 \\leq B\\) for some constant \\(B\\). Let \\(\\mu_t(x, a) = \\mathbb{E}_{\\epsilon_t(x,a)} r_t(x,a) = w_*^\\top \\psi(x,a)\\). Let \\(a_*(x) \\in \\arg \\max_a \\mu_t(x,a)\\) be the optimal arm for each context \\(x\\). Then in Algorithm 17.2, with probability at least \\(1 - \\delta\\),\n\\[\n\\mathbb{E}\\sum_{t=1}^{T}[\\mu_{t}(x_{t},a_{*}(x_{t}))-\\mu_{t}(x_{t},a_{t})]\\leq 3\\sqrt{\\ln|A_{T}/\\lambda|\\sum_{t=1}^{T}\\beta_{t-1}^{2}}+2\\ln|A_{T}/\\lambda|,\n\\]\nwhere \\(\\{\\beta_t\\}\\) is any sequence that satisfies (17.9).", "proof": {"steps": [{"n": 1, "claim": "We have for \\(t \\geq 1\\): \\[\n\\begin{array}{l}w_{*}^{\\top}\\psi(x_{t},a_{*}(x_{t}))\\\\ \\leq w_{t-1}^{\\top}\\psi(x_{t},a_{*}(x_{t}))+\\beta_{t-1}\\sqrt{\\psi(x_{t},a_{*}(x_{t}))^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{*}(x_{t}))}\\\\ \\leq w_{t-1}^{\\top}\\psi(x_{t},a_{t})+\\beta_{t-1}\\sqrt{\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})}\\\\ \\leq w_{*}^{\\top}\\psi(x_{t},a_{t})+2\\beta_{t-1}\\sqrt{\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})},\\\\ \\end{array}\n\\]\nwhere the first and the third inequalities used Lemma 17.8."}, {"n": 2, "claim": "The second inequality is due to the UCB choice of \\( a_{t} \\) in Algorithm 17.2."}, {"n": 3, "claim": "Let \\( E_{t} \\) be the event of \\( \\| \\psi (x_{t},a_{t})\\|_{A_{t - 1}^{- 1}}\\leq 1 \\)."}, {"n": 4, "claim": "Since \\( w_{*}^{\\top}\\psi (x_{t},a)\\in [0,1] \\), we have\n\\[\nw_{*}^{\\top}\\psi(x_{t},a_{*}(x_{t}))-w_{*}^{\\top}\\psi(x_{t},a_{t})\\leq 2\\beta_{t-1}\\|\\psi(x_{t},a_{t})\\|_{A_{t-1}^{-1}}\\mathbb{1}(E_{t})+\\mathbb{1}(E_{t}^{c}).\n\\]\nBy summing over \\( t = 1 \\) to \\( t = T \\), we obtain\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\left[\\mu_{t}\\left(x_{t},a_{*}\\left(x_{t}\\right)\\right)-\\mu_{t}\\left(x_{t},a_{t}\\right)\\right]\\\\ \\leq 2\\sum_{t=1}^{T}\\beta_{t-1}\\|\\psi\\left(x_{t},a_{t}\\right)\\|_{A_{t-1}^{-1}}\\mathbb{1}\\left(E_{t}\\right)+\\sum_{t=1}^{T}\\mathbb{1}\\left(E_{t}^{c}\\right)\\\\ \\leq 2\\sum_{t=1}^{T}\\beta_{t-1}\\sqrt{\\frac{2\\|\\psi(x_{t},a_{t})\\|_{A_{t-1}^{-1}}^{2}}{1+\\|\\psi(x_{t},a_{t})\\|_{A_{t-1}^{-1}}^{2}}}+2\\sum_{t=1}^{T}\\frac{\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})}{1+\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})}\\\\ \\leq 3\\sqrt{\\sum_{t=1}^{T}\\beta_{t-1}^{2}}\\sqrt{\\sum_{t=1}^{T}\\frac{\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})}{1+\\psi(x_{t},a_{t})^{\\top}A_{t-1}^{-1}\\psi(x_{t},a_{t})}}+2\\ln|A_{T}/\\lambda|.\\\\ \\end{array}\n\\]\nThe second inequality used simple algebraic inequalities under \\( E_{t} \\) and \\( E_{t}^{c} \\)."}, {"n": 5, "claim": "The third inequality used the Cauchy-Schwartz inequality and Lemma 13.9."}, {"n": 6, "claim": "We can now apply Lemma 13.9 again to obtain the desired bound."}]}}, {"local_id": "T3", "statement": "Given any function \\(U(w)\\), we have\n\\[\n\\min_{p\\in\\Delta(\\Omega)}\\left[\\mathbb{E}_{w\\sim p}U(w)+\\mathrm{KL}(p| |p_{0})\\right]= -\\ln\\mathbb{E}_{w\\sim p_{0}}\\exp(-U(w)),\n\\]\nand the solution is achieved by the Gibbs distribution \\( q(w) \\propto p_0(w) \\exp(-U(w)) \\). Here \\( \\Delta(\\Omega) \\) denotes the set of probability distributions on \\( \\Omega \\).", "proof": {"steps": [{"n": 1, "claim": "Let \\(C = \\mathbb{E}_{w\\sim p_0}\\exp (-U(w))\\) . Then we have\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p}U(w)+\\operatorname{KL}(p| |p_{0})=\\mathbb{E}_{w\\sim p}\\ln\\frac{p(w)}{p_{0}(w)\\exp(-U(w))}\\\\ =\\mathbb{E}_{w\\sim p}\\ln\\frac{p(w)}{Cq(w)}\\geq-\\ln C.\\\\ \\end{array}\n\\]\nThe inequality used the fact that \\(\\mathrm{KL}(p||q) \\geq 0\\), and the equality holds when \\(p(w) = q(w)\\)."}]}}, {"local_id": "T4", "statement": "Assume that in the stochastic linear bandit model, \\(\\| w_{*}\\|_{\\mathcal{H}}\\leq B\\) for some constant \\(B\\), and in Algorithm 17.2, assume that \\(\\{\\beta_t\\}\\) is any sequence so that\n\\[\n\\Pr\\left[\\forall 0\\leq t\\leq T:\\beta_{t}\\geq\\sqrt{\\lambda}B+\\left\\|\\sum_{s=1}^{t}\\epsilon_{s}\\left(x_{s},a_{s}\\right)\\psi\\left(x_{s},a_{s}\\right)\\right\\|_{A_{t}^{-1}}\\right]\\geq 1-\\delta .\\tag{17.9}\n\\]\nThen with probability at least \\(1 - \\delta\\), for all \\(t = 0, \\dots, T\\) and \\(u \\in \\mathcal{H}\\):\n\\[\n\\left|u^{\\top}\\left(w_{t}-w_{*}\\right)\\right|\\leq\\beta_{t}\\sqrt{u^{\\top}A_{t}^{-1}u}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}u^{\\top}\\left(w_{t}-w_{*}\\right)=u^{\\top}A_{t}^{-1}\\sum_{s=1}^{t}r_{s}\\left(x_{s},a_{s}\\right)\\psi\\left(x_{s},a_{s}\\right)-u^{\\top}w_{*}\\\\ =u^{\\top}A_{t}^{-1}\\sum_{s=1}^{t}\\epsilon_{s}\\left(x_{s},a_{s}\\right)\\psi\\left(x_{s},a_{s}\\right)-\\lambda u^{\\top}A_{t}^{-1}w_{*}\\\\ \\leq\\|u\\|_{A_{t}^{-1}}\\left\\|\\sum_{s=1}^{t}\\epsilon_{s}\\left(x_{s},a_{s}\\right)\\psi\\left(x_{s},a_{s}\\right)\\right\\|_{A_{t}^{-1}}+\\lambda\\|u\\|_{A_{t}^{-1}}\\|w_{*}\\|_{A_{t}^{-1}}\\\\ \\leq\\|u\\|_{A_{t}^{-1}}\\left[\\left\\|\\sum_{s=1}^{t}\\epsilon_{s}\\left(x_{s},a_{s}\\right)\\psi\\left(x_{s},a_{s}\\right)\\right\\|_{A_{t}^{-1}}+\\sqrt{\\lambda}B\\right]\\leq\\beta_{t}\\|u\\|_{A_{t}^{-1}}.\\\\ \\end{array}\n\\]\nThe second equality used (17.8)."}, {"n": 2, "claim": "The first inequality used the Cauchy-Schwartz\ninequality."}, {"n": 3, "claim": "The last inequality used the definition of \\(\\beta_{t}\\)."}, {"n": 4, "claim": "This implies the desired bound."}]}}, {"local_id": "T5", "statement": "For any \\(K\\), \\(T \\geq 0\\), and any \\(\\gamma \\in (0,1]\\), \\(\\eta > 0\\) and \\(b \\geq 0\\). Consider any expert class \\(\\mathcal{G} = \\{[\\hat{q}_t(\\cdot | w, x)]_{t=1,2,\\ldots} : w \\in \\Omega\\}\\) with prior \\(p_0(w)\\). Let\n\\[\nR_{T}(w)=\\mathbb{E}\\sum_{t=1}^{T}\\mathbb{E}_{a\\sim\\hat{q}_{t}(\\cdot|w,x_{t})}r_{t}(a)\n\\]\nbe the reward of expert \\( w \\). Then the expected reward of Algorithm 17.1 satisfies:\n\\[\n\\begin{array}{l}\\mathbb{E}\\sum_{t=1}^{T}r_{t}(a_{t})\\geq(1-\\gamma)\\max_{q}\\left[\\mathbb{E}_{w\\sim q}R_{T}(w)-\\frac{1}{\\eta}\\mathrm{KL}(q| |p_{0})\\right]\\\\ -c(\\eta,b)\\eta\\sum_{t=1}^{T}\\sum_{a=1}^{K}|r_{t}(a)-b|,\\\\ \\end{array}\n\\]\nwhere the expectation is with respect to the randomization of the algorithm,\n\\[\nc(\\eta,b)=\\phi(z_{0})\\max(b,1-b),\\quad z_{0}=\\max(0,\\eta(1-b)K/\\gamma),\n\\]\nand \\(\\phi (z) = (e^{z} - 1 - z) / z^{2}\\)", "proof": {"steps": [{"n": 1, "claim": "The proof is similar to that of Theorem 16.17. By the definition of \\(\\hat{\\pi}_t(a_t)\\), we have\n\\[\n\\tilde{\\rho}_{t}\\left(a_{t}\\right)=\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{q}_{t}\\left(a_{t}\\mid w,x_{t}\\right)/\\hat{\\pi}_{t}\\left(a_{t}\\right)\\leq 1/(1-\\gamma).\\tag{17.4}\n\\]\nTherefore\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{r}_{t}(w,x_{t},a_{t})=\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{q}_{t}(a_{t}|w,x_{t})[r_{t}(a_{t})-b]/\\hat{\\pi}_{t}(a_{t})\\\\ \\leq\\frac{1}{1-\\gamma}r_{t}\\left(a_{t}\\right)-\\tilde{\\rho}_{t}\\left(a_{t}\\right)b.\\tag{17.5}\\\\ \\end{array}\n\\]\nThe first equation used the definition of \\(\\hat{r}\\)."}, {"n": 2, "claim": "The inequality used (17.4). Moreover\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{r}_{t}(w,x_{t},a_{t})^{2}\\\\ =\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{q}_{t}\\left(a_{t}\\mid w,x_{t}\\right)^{2}\\left(\\left(r_{t}\\left(a_{t}\\right)-b\\right)/\\hat{\\pi}_{t}\\left(a_{t}\\right)\\right)^{2}\\\\ \\leq\\max(b,1-b)\\mathbb{E}_{w\\sim p_{t-1}(w)}\\hat{q}_{t}\\left(a_{t}|w,x_{t}\\right)\\left(\\left|r_{t}\\left(a_{t}\\right)-b\\right| /\\hat{\\pi}_{t}\\left(a_{t}\\right)^{2}\\right)\\\\ \\leq\\frac{\\max(b,1-b)}{1-\\gamma}\\left(\\left|r_{t}\\left(a_{t}\\right)-b\\right| /\\hat{\\pi}_{t}\\left(a_{t}\\right)\\right).\\tag{17.6}\\\\ \\end{array}\n\\]\nThe first equation used the definition of \\(\\hat{r}\\)."}, {"n": 3, "claim": "The first inequality used \\(|r_t(a_t) - b| \\leq \\max(b, 1 - b)\\)."}, {"n": 4, "claim": "The second inequality used (17.4). If we let\n\\[\nW_{t}=\\mathbb{E}_{w\\sim p_{0}(w)}u_{t}(w),\n\\]\nthen\n\\[\n\\begin{array}{l}\\ln\\frac{W_{t}}{W_{t-1}}=\\ln\\mathbb{E}_{w\\sim p_{0}(w)}\\frac{u_{t}(w)}{W_{t-1}}\\\\ =\\ln\\mathbb{E}_{w\\sim p_{t-1}(w)}\\exp(\\eta\\hat{r}_{t}(w,x_{t},a_{t}))\\\\ \\leq\\ln\\mathbb{E}_{w\\sim p_{t-1}(w)}\\left[1+\\left(\\eta\\hat{r}_{t}\\left(w,x_{t},a_{t}\\right)\\right)+\\phi\\left(z_{0}\\right)\\left(\\eta\\hat{r}_{t}\\left(w,x_{t},a_{t}\\right)\\right)^{2}\\right]\\\\ \\leq\\mathbb{E}_{w\\sim p_{t-1}(w)}\\left(\\eta\\hat{r}_{t}\\left(w,x_{t},a_{t}\\right)\\right)+\\phi\\left(z_{0}\\right)\\mathbb{E}_{w\\sim p_{t-1}(w)}\\left(\\eta\\hat{r}_{t}\\left(w,x_{t},a_{t}\\right)\\right)^{2}\\\\ \\leq\\frac{\\eta}{1-\\gamma}r_{t}(a_{t})-\\eta\\tilde{\\rho}_{t}(a_{t})b+\\frac{c(\\eta,b)\\eta^{2}}{(1-\\gamma)}\\frac{|r_{t}(a_{t})-b|}{\\hat{\\pi}_{t}(a_{t})}.\\\\ \\end{array}\n\\]\nThe second equality used the definition of \\( u_{t} \\)."}, {"n": 5, "claim": "The first inequality used \\( \\exp (z) \\leq \\)\n\\(1 + z + \\phi (z_0)z^2\\) when \\(z = \\eta \\hat{r}_t(w,x_t,a_t)\\leq z_0\\); the second inequality used \\(\\ln (1 + z)\\leq\\) \\(z\\); and the third inequality used (17.5) and (17.6)."}, {"n": 6, "claim": "Now we can sum over \\( t = 1 \\) to \\( t = T \\), and obtain:"}, {"n": 7, "claim": "\\[\n\\ln\\frac{W_{T}}{W_{0}}\\leq\\frac{\\eta}{1-\\gamma}\\sum_{t=1}^{T}r_{t}(a_{t})-\\eta b\\sum_{t=1}^{T}\\tilde{\\rho}_{t}(a_{t})+\\frac{c(\\eta,b)\\eta^{2}}{(1-\\gamma)}\\sum_{t=1}^{T}\\frac{|r_{t}(a_{t})-b|}{\\hat{\\pi}_{t}(a_{t})}.\n\\]\nNote that \\( W_0 = 1 \\)."}, {"n": 8, "claim": "We can take expectation with respect to the randomization of the algorithm, and obtain\n\\[\n\\begin{array}{l}\\mathbb{E}\\ln\\mathbb{E}_{w\\sim p_{0}(w)}\\exp\\left(\\eta\\sum_{t=1}^{T}\\hat{r}_{t}(w,x_{t},a_{t})\\right)\\\\ \\leq\\frac{\\eta}{1-\\gamma}\\mathbb{E}\\sum_{t=1}^{T}r_{t}\\left(a_{t}\\right)-\\eta T b+\\frac{c(\\eta,b)\\eta^{2}}{(1-\\gamma)}\\mathbb{E}\\sum_{t=1}^{T}\\sum_{a=1}^{K}\\left|r_{t}(a)-b\\right|.\\tag{17.7}\\\\ \\end{array}\n\\]\nThe derivation also used \\(\\mathbb{E}\\tilde{\\rho}_t(a_t) = \\mathbb{E}\\mathbb{E}_{a_t\\sim \\hat{\\pi}_t}\\tilde{\\rho}_t(a_t) = 1\\) and\n\\[\n\\mathbb{E}\\frac{|r_{t}(a_{t})-b|}{\\hat{\\pi}_{t}(a_{t})}=\\mathbb{E}\\mathbb{E}_{a_{t}\\sim\\hat{\\pi}_{t}}\\frac{|r_{t}(a_{t})-b|}{\\hat{\\pi}_{t}(a_{t})}=\\mathbb{E}\\sum_{a=1}^{K}|r_{t}(a)-b|.\n\\]\nWe can lower bound the left hand side of (17.7) as:"}, {"n": 9, "claim": "\\[\n\\begin{array}{l}\\mathbb{E}\\ln\\mathbb{E}_{w\\sim p_{0}(w)}\\exp\\left(\\eta\\sum_{t=1}^{T}\\hat{r}_{t}(w,x_{t},a_{t})\\right)\\\\ =\\mathbb{E}\\max_{q}\\left[\\mathbb{E}_{w\\sim q}\\eta\\sum_{t=1}^{T}\\hat{r}_{t}(w,x_{t},a_{t})-\\operatorname{KL}(q| |p_{0})\\right]\\\\ \\geq\\max_{q}\\left[\\mathbb{E}_{w\\sim q}\\eta\\mathbb{E}\\sum_{t=1}^{T}\\hat{r}_{t}(w,x_{t},a_{t})-\\mathrm{KL}(q| |p_{0})\\right]\\\\ =\\max_{q}\\left[\\mathbb{E}_{w\\sim q}\\eta [R_{T}(w)-bT]-\\mathrm{KL}(q| |p_{0})\\right].\\\\ \\end{array}\n\\]\nThe first equality used Proposition 7.16."}, {"n": 10, "claim": "The last equation used (17.3) and the definition of \\( R_{T} \\)."}, {"n": 11, "claim": "By plugging this estimate into the left hand side of (17.7), we obtain the desired result."}]}}], "target_local_id": "T5", "topic_domain": "Online Learning & RL", "topic_subtopic": "Bandits", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch18_theorem_18_14__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nassumption 18.12. Given a candidate value function class \\(\\mathcal{F}\\) of functions \\(f = \\{f^{h}(x^{h},a^{h}):\\mathcal{X}\\times \\mathcal{A}\\to \\mathbb{R}\\}\\), with \\(f^{H + 1}(\\cdot) = 0\\). We assume that (realizable assumption)\n\\[\nQ_{*}=f_{*}\\in\\mathcal{F}.\n\\]\nMoreover, we assume that \\( f^1(x^1) \\in [0, 1] \\) and \\( r^h + f^{h+1}(x^{h+1}) \\in [0, 1] \\) (\\( h \\geq 1 \\)).\nBellman error plays an important role in the analysis of reinforcement learning algorithms. For value function based approach to reinforcement learning, we would like to approximate Bellman error by minimizing least squares loss\n\\[\n\\left(f^{h}\\left(x^{h},a^{h}\\right)-r^{h}-f^{h+1}\\left(x^{h+1}\\right)\\right)^{2}.\\tag{18.2}\n\\]\nBy taking conditional expectation with respect to \\((x^{h},a^{h})\\), we obtain\n\\[\n\\begin{array}{l}\\mathbb{E}_{r^{h},x^{h+1}\\mid x^{h},a^{h}}\\left(f^{h}\\left(x^{h},a^{h}\\right)-r^{h}-f^{h+1}\\left(x^{h+1}\\right)\\right)^{2}\\\\ =\\mathcal{E}^{h}(f,x^{h},a^{h})^{2}+\\mathbb{E}_{r^{h},x^{h+1}|x^{h},a^{h}}\\Bigg(\\underbrace{r^{h}+f^{h+1}(x^{h+1})-(\\mathcal{T}^{h}f)(x^{h},a^{h})}_{f \\text{- d e p e n d e n t z e r o - m e a n n o i s e}}\\Bigg)^{2}.\\\\ \\end{array}\n\\]\nSince noise variance depends on \\( f \\), if we use (18.2) to estimate \\( f \\), we will favor \\( f \\) with smaller noise variance, which may not have zero Bellman error. To overcome this issue, one can estimate the noise variance term, and then subtract it from (18.2) to obtain the term \\( \\mathcal{E}^h (f,x^h,a^h)^2 \\). This requires an additional assumption referred to as Bellman completeness (or simply completeness).\n\nPacking Number. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite subset \\(\\mathcal{G}(\\epsilon)\\subset \\mathcal{G}\\) is an \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\) if \\(d(\\phi,\\phi^{\\prime})>\\epsilon\\) for all \\(\\phi,\\phi^{\\prime}\\in\\mathcal{G}(\\epsilon)\\). The \\(\\epsilon\\)-packing number of \\(\\mathcal{G}\\), denoted by \\(M(\\epsilon,\\mathcal{G},d)\\), is the largest cardinality of \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\).\nThe following results illustrate the equivalence between covering number and packing number. One advantage of using an \\(\\epsilon\\) packing of \\(\\mathcal{G}\\) instead of an \\(\\epsilon\\) cover of \\(\\mathcal{G}\\) is that all members in the \\(\\epsilon\\) packing also belong to \\(\\mathcal{G}\\). There if members in \\(\\mathcal{G}\\) satisfy certain assumptions such as the variance condition, then members of its \\(\\epsilon\\) packing also satisfy such assumptions. For this reason, we will use packing numbers instead of covering numbers in some of the theoretical analysis in later chapters.\n\ndefinition 18.10. We say \\( f \\) is a candidate \\( Q \\)-function if \\( f = \\{f^{h}(x^{h},a^{h}) : \\mathcal{X} \\times \\mathcal{A} \\to \\mathbb{R} : h \\in [H + 1]\\} \\), with \\( f^{H + 1}(\\cdot) = 0 \\). Define\n\\[\nf^{h}(x^{h})=\\arg\\max_{a\\in\\mathcal{A}}f^{h}(x^{h},a),\n\\]\nand define its greedy policy \\(\\pi_f\\) as a deterministic policy that satisfies\n\\[\n\\pi_{f}^{h}(x^{h})\\in\\arg\\max_{a\\in\\mathcal{A}}f^{h}(x^{h},a).\n\\]\nGiven an MDP \\(M\\), we also define the Bellman operator of \\(f\\) as\n\\[\n\\left(\\mathcal{T}^{h}f\\right)\\left(x^{h},a^{h}\\right)=\\mathbb{E}_{r^{h},x^{h+1}\\mid x^{h},a^{h}}\\left[r^{h}+f^{h+1}\\left(x^{h+1}\\right)\\right],\n\\]\nand its Bellman error as\n\\[\n\\mathcal{E}^{h}(f,x^{h},a^{h})=f^{h}\\left(x^{h},a^{h}\\right)-\\left(\\mathcal{T}^{h}f\\right)\\left(x^{h},a^{h}\\right),\n\\]\nwhere the conditional expectation is with respect to the MDP \\(M\\).\n\nBellman Completeness. A candidate value function class \\(\\mathcal{F}\\) is complete with respect to another candidate value function class \\(\\mathcal{G}\\) if for any \\(h\\in [H]\\), \\(f\\in \\mathcal{F}\\), there exists \\(g\\in \\mathcal{G}\\) so that for all \\(h\\in [H]\\):\n\\[\ng^{h}(x^{h},a^{h})=(\\mathcal{T}^{h}f)(x^{h},a^{h})=\\mathbb{E}_{r^{h},x^{h+1}|x^{h},a^{h}}\\left[r^{h}+f^{h+1}(x^{h+1})\\right].\n\\]\nWe say \\(\\mathcal{F}\\) is complete if \\(\\mathcal{F}\\) is complete with respect to itself.\nNote that if \\(\\mathcal{F}\\) is complete with respect to \\(\\mathcal{G}\\), then we may use the solution of\n\\[\n\\min_{g^{h}\\in\\mathcal{G}^{h}}\\sum_{s=1}^{t}\\left(g^{h}\\left(x_{s}^{h},a_{s}^{h}\\right)-r_{s}^{h}-f^{h+1}\\left(x_{s}^{h+1}\\right)\\right)^{2}\n\\]\nto estimate \\((\\mathcal{T}^h f)(x^h,a^h)\\), which can be used to cancel the variance term in (18.2). This motivates the following loss function\n\\[\n\\begin{array}{l}L^{h}(f,g,x^{h},a^{h},r^{h},x^{h+1})=\\left[\\left(f^{h}\\left(x^{h},a^{h}\\right)-r^{h}-f^{h+1}\\left(x^{h+1}\\right)\\right)^{2}\\right.\\\\ \\left.-\\left(g^{h}\\left(x^{h},a^{h}\\right)-r^{h}-f^{h+1}\\left(x^{h+1}\\right)\\right)^{2}\\right].\\tag{18.3}\\\\ \\end{array}\n\\]\nThe following result is a counterpart of Theorem 13.15.\n\nLinear MDP. Let \\(\\mathcal{H} = \\{\\mathcal{H}^h\\}\\) be a sequence of vector spaces with inner products \\(\\langle \\cdot, \\cdot \\rangle\\). An MDP \\(M = \\mathrm{MDP}(\\mathcal{X}, \\mathcal{A}, P)\\) is a linear MDP with feature maps \\(\\phi = \\{\\phi^h(x^h, a^h) : \\mathcal{X} \\times \\mathcal{A} \\to \\mathcal{H}^h\\}_{h=1}^H\\) if for all \\(h \\in [H]\\), there exist a map \\(\\nu^h(x^{h+1}) : \\mathcal{X} \\to \\mathcal{H}^h\\) and \\(\\theta^h \\in \\mathcal{H}^h\\), such that\n\\[\nd P^{h}\\left(x^{h+1}\\mid x^{h},a^{h}\\right)=\\left\\langle\\nu^{h}\\left(x^{h+1}\\right),\\phi^{h}\\left(x^{h},a^{h}\\right)\\right\\rangle d\\mu^{h+1}\\left(x^{h+1}\\right),\n\\]\n\\[\n\\mathbb{E}\\left[r^{h}\\mid x^{h},a^{h}\\right]=\\langle\\theta^{h},\\phi^{h}\\left(x^{h},a^{h}\\right)\\rangle .\n\\]\nHere \\(\\langle \\cdot, \\cdot \\rangle\\) denotes the inner product in \\(\\mathcal{H}^h\\) for different \\(h\\), and the conditional probability measure \\(dP^h(\\cdot | x^h, a^h)\\) is absolute continuous with respect to a measure \\(d\\mu^{h+1}(\\cdot)\\) with density \\(\\langle \\nu^h(x^{h+1}), \\phi^h(x^h, a^h) \\rangle\\). In general, we assume that \\(\\nu^h(\\cdot)\\) and \\(\\theta^h\\) are unknown. We may assume \\(\\phi(\\cdot)\\) to be either known or unknown.\n\ndefinition 18.8. The optimal value functions starting at step \\( h \\) are given by\n\\[\nQ_{*}^{h}(x^{h},a^{h})=\\sup_{\\pi}Q_{\\pi}^{h}(x^{h},a^{h}),\\qquad V_{*}^{h}(x^{h})=\\sup_{\\pi}V_{\\pi}^{h}(x^{h}).\n\\]\nWe also define the optimal value as \\( V_{*} = \\mathbb{E}_{x^{1}}V_{*}^{1}(x^{1}) \\).\nIn the following, for notation simplicity, we assume that the solution to\n\\[\n\\operatorname*{argmax}_{a\\in\\mathcal{A}}Q_{*}^{h}(x^{h},a)\n\\]\ncan be achieved by some \\( a \\in \\mathcal{A} \\) so that greedy policy in the Theorem 18.9 can be properly defined. The following theorem describes key properties of optimal value functions and optimal policy for reinforcement learning. The proof is straightforward, and we leave it as an exercise.\n\nV-type Bellman Eluder Coefficient. Given a candidate \\(Q\\) function class \\(\\mathcal{F}\\), its V-type Bellman eluder coefficient \\(\\mathrm{EC}_V^h(\\epsilon,\\mathcal{F},T)\\) at step \\(h\\geq 1\\) is the smallest number \\(d\\) so that for any filtered sequence \\(\\{f_t,(x_t,r_t,a_t)\\sim \\pi_{f_t}\\}_{t = 1}^T\\)\n\\[\n\\mathbb{E}\\sum_{t=2}^{T}\\mathcal{E}^{h}(f_{t},x_{t}^{h},a_{t}^{h})\\leq\\sqrt{d\\mathbb{E}\\sum_{t=2}^{T}\\left(\\epsilon+\\sum_{s=1}^{t-1}\\mathbb{E}_{\\tilde{x}\\sim\\pi_{f_{s}}}\\mathcal{E}^{h}(f_{t},\\tilde{x}^{h},\\pi_{f_{t}}(\\tilde{x}^{h}))^{2}\\right)}.\n\\]\nIn order to bound the \\(Q\\)-type Bellman eluder coefficient, we need to assume in Proposition 18.20 that the \\(Q\\) function class can be embedded in a linear vector space. This is not necessary for the \\(V\\)-type Bellman eluder coefficient, which allows general nonlinear \\(Q\\) function class.\nWe note that for linear MDP, from the proof of Proposition 18.18, we know that for any \\( h \\geq 2 \\), there exists \\( u^{h - 1}(f) \\in \\mathcal{H}^{h - 1} \\) so that\n\\[\n\\mathbb{E}_{x^{h}\\mid x^{h-1},a^{h-1}}\\mathcal{E}^{h}(f,x^{h},\\pi_{f}(x^{h}))=\\langle u^{h-1}(f),\\phi^{h-1}(x^{h-1},a^{h-1})\\rangle .\n\\]\nIf moreover, we assume that \\((x^{h - 1},a^{h - 1})\\sim \\pi^{\\prime}\\), where \\(\\pi^\\prime\\) is referred to as a roll-in policy, then we have the following decomposition,\n\\[\n\\mathbb{E}_{x^{h}\\sim\\pi^{\\prime}}\\mathcal{E}^{h}(f,x^{h},\\pi_{f}(x^{h}))=\\langle u^{h-1}(f),\\phi^{h-1}(\\pi^{\\prime})\\rangle,\n\\]\nwhere \\(\\phi^{h - 1}(\\pi^{\\prime}) = \\mathbb{E}_{x^{h - 1},a^{h - 1}\\sim \\pi^{\\prime}}\\phi^{h - 1}(x^{h - 1},a^{h - 1})\\)\nOne may expand this property and define Bellman factorizable MDPs as follows, which includes linear MDP as a special case.\n\ndefinition 18.30. The coverage coefficient \\(\\mathrm{CC}^h(\\epsilon,\\tilde{\\pi},\\mathcal{F})\\) (for \\(\\epsilon >0\\)) of a random policy \\(\\tilde{\\pi}\\) at step \\(h\\) is defined as\n\\[\n\\mathrm{CC}^{h}(\\epsilon,\\tilde{\\pi},\\mathcal{F})=\\sup_{f\\in\\mathcal{F},x^{h}\\in\\mathcal{X}}\\frac{\\mathcal{E}^{h}(f,x^{h},\\pi_{f}(x^{h}))^{2}}{\\epsilon+\\mathbb{E}_{a^{h}\\sim\\tilde{\\pi}^{h}(\\cdot|x^{h})}\\mathcal{E}^{h}(f,x^{h},a^{h})^{2}}.\n\\]\nWe note that Definition 18.30 is consistent with Definition 17.35, which can be regarded as a conditional version of Definition 9.42. Therefore we may employ\na conditional \\( G \\)-optimal design \\( \\tilde{\\pi}^h(a^h|x^h) \\) by conditioning on \\( x^h \\). The following result shows that if Bellman error is linearly embeddable (with possibly unknown feature map), then good coverage coefficient can be obtained using nonlinear \\( G \\)-optimal design. It is a direct consequence of Theorem 9.44.\n\n\\(V\\)-type Bellman Error UCB Algorithm. Algorithm 18.3: \\(V\\)-type Bellman Error UCB Algorithm\nInput: \\(\\lambda, T, \\mathcal{F}, \\mathcal{G}, \\tilde{\\pi}\\) \n1 Let \\(\\mathcal{F}_0 = \\{f_0\\}\\) \n2 Let \\(\\beta_0 = 0\\) \n3 for \\(t = 1, 2, \\ldots, T\\) do \n4 Observe \\(x_t^1\\) \n5 Let \\(f_t \\in \\arg \\max_{f \\in \\mathcal{F}_{t-1}} f(x_t^1)\\) \n6 Let \\(\\pi_t = \\pi_{f_t}\\) \n7 Draw \\(h_t \\sim [H]\\) uniformly at random \n8 Play policy \\(\\pi_t\\) and observe trajectory \\((x_t, a_t, r_t)\\) up to \\(x_t^{h_t}\\) \n9 Play random policy \\(a_t^{h_t} \\sim \\tilde{\\pi}^{h_t}(\\cdot | x_t^{h_t})\\), and observe \\((r_t^{h_t}, x_t^{h_t+1})\\) \n10 Let \n\\[ \\mathcal{F}_t = \\left\\{ f \\in \\mathcal{F} : \\sup_{g \\in \\mathcal{G}} \\sum_{s=1}^t L^{h_s}(f, g, x_s^{h_s}, a_s^{h_s}, r_s^{h_s}, x_s^{h_s+1}) \\leq \\beta_t^2 \\right\\} \\] with appropriately chosen \\(\\beta_t\\), where \\(L^h(\\cdot)\\) is defined according to (18.3).\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).\n\ndefinition 2.11. A sub-Gaussian random variable \\(X\\) has quadratic logarithmic moment generating function for all \\(\\lambda \\in \\mathbb{R}\\):\n\\[\n\\ln\\mathbb{E}e^{\\lambda X}\\leq\\lambda\\mu+\\frac{\\lambda^{2}}{2}b.\\tag{2.10}\n\\]\nUsing (2.10), we can obtain an upper bound of the rate function for sub-Gaussian random variables, which imply the following tail inequality.", "theorems": [{"local_id": "T1", "statement": "In Algorithm 18.3, we let\n\\[\n\\tilde{d}=\\sum_{h=1}^{H}\\operatorname{EC}_{V}^{h}(\\epsilon,\\mathcal{F},T)\\max(1,\\operatorname{CC}^{h}(\\epsilon^{\\prime},\\tilde{\\pi},\\mathcal{F})),\n\\]\nthen\n\\[\n\\mathbb{E}\\sum_{h=1}^{H}\\sum_{t=2}^{T}\\mathcal{E}^{h}(f_{t},x_{t}^{h},a_{t}^{h})\\leq\\sqrt{\\tilde{d}\\mathbb{E}\\sum_{t=2}^{T}\\left(\\epsilon H+\\epsilon^{\\prime}H T+\\sum_{s=1}^{t-1}\\sum_{h=1}^{H}\\bar{\\mathcal{E}}^{h}(f_{t},\\pi_{f_{s}},\\tilde{\\pi})^{2}\\right)},\n\\]\nwhere\n\\[\n\\bar{\\mathcal{E}}^{h}(f,\\pi,\\tilde{\\pi})^{2}=\\mathbb{E}_{\\tilde{x}^{h}\\sim\\pi}\\mathbb{E}_{a^{h}\\sim\\tilde{\\pi}(\\cdot|x^{h})}\\mathcal{E}^{h}(f_{t},x^{h},a^{h})^{2}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( d_1^h = \\operatorname{EC}_V^h(\\epsilon, \\mathcal{F}, T) \\), and \\( d_2^h = \\operatorname{CC}^h(\\epsilon', \\tilde{\\pi}, \\mathcal{F}) \\)."}, {"n": 2, "claim": "We obtain\n\\[\n\\begin{array}{l}\\mathbb{E}\\sum_{h=1}^{H}\\sum_{t=2}^{T}\\mathcal{E}^{h}\\left(f_{t},x_{t}^{h},a_{t}^{h}\\right)\\leq\\sum_{h=1}^{H}\\sqrt{d_{1}^{h}\\mathbb{E}\\sum_{t=2}^{T}\\left(\\epsilon+\\sum_{s=1}^{t-1}\\mathbb{E}_{\\tilde{x}\\sim\\pi_{f_{s}}}\\mathcal{E}^{h}\\left(f_{t},\\tilde{x}^{h},\\pi_{f_{t}}(\\tilde{x}^{h})\\right)^{2}\\right)}\\\\ \\leq\\sum_{h=1}^{H}\\sqrt{d_{1}^{h}\\mathbb{E}\\sum_{t=2}^{T}\\left(\\epsilon+d_{2}^{h}\\sum_{s=1}^{t-1}\\left(\\epsilon^{\\prime}+\\bar{\\mathcal{E}}^{h}\\left(f_{t},\\pi_{f_{s}},\\tilde{\\pi}\\right)^{2}\\right)\\right)}\\\\ \\leq\\sum_{h=1}^{H}\\sqrt{d_{1}^{h}\\max(1,d_{2}^{h})\\mathbb{E}\\left.\\sum_{t=2}^{T}\\left(\\epsilon+\\epsilon^{\\prime}T+\\sum_{s=1}^{t-1}\\bar{\\mathcal{E}}^{h}(f_{t},\\pi_{f_{s}},\\tilde{\\pi})^{2}\\right)\\right.}.\\\\ \\end{array}\n\\]\nThe first inequality used Definition 18.27."}, {"n": 3, "claim": "The second inequality used Definition 18.30. We then use the Cauchy Schwartz inequality to obtain the result."}]}}, {"local_id": "T2", "statement": "Consider a random variable \\(X \\in [0,1]\\) and \\(\\mathbb{E}X = \\mu\\). We have the following inequality:\n\\[\n\\ln\\mathbb{E}e^{\\lambda X}\\leq\\ln [(1-\\mu)e^{0}+\\mu e^{\\lambda}]\\leq\\lambda\\mu+\\lambda^{2}/8.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( h_L(\\lambda) = \\mathbb{E}e^{\\lambda X} \\) and \\( h_R(\\lambda) = (1 - \\mu)e^0 + \\mu e^\\lambda \\)."}, {"n": 2, "claim": "We know that \\( h_L(0) = h_R(0) \\). Moreover, when \\( \\lambda \\geq 0 \\):"}, {"n": 3, "claim": "\\[\nh_{L}^{\\prime}(\\lambda)=\\mathbb{E}X e^{\\lambda X}\\leq\\mathbb{E}X e^{\\lambda}=\\mu e^{\\lambda}=h_{R}^{\\prime}(\\lambda),\n\\]\nand similarly \\(h_L'(\\lambda) \\geq h_R'(\\lambda)\\) when \\(\\lambda \\leq 0\\)."}, {"n": 4, "claim": "This proves the first inequality. Now we let\n\\[\nh(\\lambda)=\\ln [(1-\\mu)e^{0}+\\mu e^{\\lambda}].\n\\]\nIt implies that\n\\[\nh^{\\prime}(\\lambda)=\\frac{\\mu e^{\\lambda}}{(1-\\mu)e^{0}+\\mu e^{\\lambda}},\n\\]\nand\n\\[\n\\begin{array}{l}h^{\\prime\\prime}(\\lambda)=\\frac{\\mu e^{\\lambda}}{(1-\\mu)e^{0}+\\mu e^{\\lambda}}-\\frac{(\\mu e^{\\lambda})^{2}}{[(1-\\mu)e^{0}+\\mu e^{\\lambda}]^{2}}\\\\ =\\left|h^{\\prime}(\\lambda)\\right|\\left(1-\\left|h^{\\prime}(\\lambda)\\right|\\right)\\leq 1/4.\\\\ \\end{array}\n\\]\nUsing Taylor expansion, we obtain the inequality \\( h(\\lambda) \\leq h(0) + \\lambda h'(0) + \\lambda^2 / 8 \\), which proves the second inequality."}]}}, {"local_id": "T3", "statement": "Assume that assumption 18.12 holds, \\(\\mathcal{F}\\) is complete with respect to \\(\\mathcal{G}\\), and \\(g^{h}(\\cdot)\\in [0,1]\\) for all \\(g\\in \\mathcal{G}\\). Consider (18.3), and let\n\\[\n\\mathcal{F}_{t}=\\left\\{f\\in\\mathcal{F}:\\sup_{g\\in\\mathcal{G}}\\sum_{h=1}^{H}\\sum_{s=1}^{t}L^{h}(f,g,x_{s}^{h},a_{s}^{h},r_{s}^{h},x_{s}^{h+1})\\leq\\beta_{t}^{2}\\right\\},\n\\]\nwhere\n\\[\n\\beta_{t}^{2}\\geq 4\\epsilon t(4+\\epsilon)H+2\\ln\\left(16 M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})^{2}M(\\epsilon,\\mathcal{G},\\|\\cdot\\|_{\\infty})/\\delta^{2}\\right),\n\\]\nwith \\( M(\\cdot) \\) denotes the \\( \\| \\cdot \\|_{\\infty} \\) packing number, and \\( \\| f \\|_{\\infty} = \\sup_{h,x,a} |f^{h}(x,a)| \\).\nThen with probability at least \\(1 - \\delta\\), for all \\(t \\leq n\\): \\(Q_{*} \\in \\mathcal{F}_{t}\\) and for all \\(f \\in \\mathcal{F}_{t}\\):\n\\[\n\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\mathcal{E}^{h}\\left(f,x_{s}^{h},a_{s}^{h}\\right)^{2}\\leq 4\\beta_{t}^{2}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{F}_{\\epsilon}\\) be an \\(\\epsilon \\| \\cdot \\|_{\\infty}\\) packing subset of \\(\\mathcal{F}\\) of size \\(M_1\\), and let \\(\\mathcal{G}_{\\epsilon}\\) be an \\(\\epsilon \\| \\cdot \\|_{\\infty}\\) packing subset of \\(\\mathcal{G}\\) of size \\(M_2\\)."}, {"n": 2, "claim": "For all \\( f \\in \\mathcal{F} \\) and \\( g \\in \\mathcal{G} \\) (or \\( g \\in \\mathcal{F} \\)), we introduce the simplified notations\n\\[\n\\epsilon_{s}^{h}(f)=r_{s}^{h}+f_{s}^{h+1}\\left(x_{s}^{h+1}\\right)-\\left(\\mathcal{T}^{h}f\\right)\\left(x_{s}^{h},a_{s}^{h}\\right),\n\\]\n\\[\n\\Delta_{s}^{h}(f,g)=((\\mathcal{T}^{h}f)(x_{s}^{h},a_{s}^{h})-g^{h}(x_{s}^{h},a_{s}^{h})).\n\\]\nWe have the following sub-Gaussian inequality (see Lemma 2.15) for any fixed \\( f_{\\epsilon} \\in \\mathcal{F}_{\\epsilon} \\), \\( h \\in [H] \\), and \\( \\rho \\in \\mathbb{R} \\):"}, {"n": 3, "claim": "\\[\n\\ln\\mathbb{E}_{r_{s}^{h},x_{s}^{h+1}|x_{s}^{h},a_{s}^{h}}\\exp(\\rho\\epsilon_{s}^{h}(f_{\\epsilon}))\\leq\\frac{\\rho^{2}}{8}.\n\\]\nUsing this logarithmic moment generating function, we can now obtain the following statement from Theorem 13.11, by taking a uniform bound over \\(\\mathcal{G}_{\\epsilon} \\times \\mathcal{F}_{\\epsilon}\\) and consider both under and over estimation (for the absolute value on the left hand side)."}, {"n": 4, "claim": "With probability at least \\(1 - \\delta / 2\\): for all \\(f_{\\epsilon} \\in \\mathcal{F}_{\\epsilon}\\), \\(g_{\\epsilon} \\in \\mathcal{G}_{\\epsilon}\\) and \\(t \\geq 0\\)\n\\[\n\\underbrace{\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}\\left(f_{\\epsilon},g_{\\epsilon}\\right)\\epsilon_{s}^{h}\\left(f_{\\epsilon}\\right)\\right|}_{A}\\leq\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\frac{\\Delta_{s}^{h}\\left(f_{\\epsilon},g_{\\epsilon}\\right)^{2}}{8}+\\ln\\left(4 M_{1}M_{2}/\\delta\\right).\\tag{18.4}\n\\]\nIn the following for each \\(f \\in \\mathcal{F}\\) we choose \\(f_{\\epsilon} \\in \\mathcal{F}_{\\epsilon}\\) so that \\(\\| f - f_{\\epsilon} \\|_{\\infty} \\leq \\epsilon\\)."}, {"n": 5, "claim": "Similarly for each \\(g \\in \\mathcal{G}\\) we choose \\(g_{\\epsilon} \\in \\mathcal{G}_{\\epsilon}\\) so that \\(\\| g - g_{\\epsilon} \\|_{\\infty} \\leq \\epsilon\\)."}, {"n": 6, "claim": "Then\n\\[\n\\begin{array}{l}\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,g)\\epsilon_{s}^{h}(f)\\right|\\\\ \\leq\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,g)\\epsilon_{s}^{h}\\left(f_{\\epsilon}\\right)\\right| +2\\epsilon\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left|\\Delta_{s}^{h}(f,g)\\right|\\\\ \\leq\\underbrace{\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f_{\\epsilon},g_{\\epsilon})\\epsilon_{s}^{h}(f_{\\epsilon})\\right|}_{A}+4H\\epsilon t.\\\\ \\end{array}\n\\]\nThe first inequality used \\( |\\epsilon_s^h (f) - \\epsilon_s^h (f_\\epsilon)|\\leq 2\\epsilon \\)."}, {"n": 7, "claim": "The second inequality used the \\( \\epsilon \\)-covering property \\( |\\Delta_s^h(f,g)-\\Delta_s^h(f_\\epsilon,g_\\epsilon)|\\leq 2\\epsilon \\), \\( |\\epsilon_s^h (f_\\epsilon)|\\leq 1 \\), and \\( |\\Delta_s^h (f,g)|\\leq 1 \\)."}, {"n": 8, "claim": "We also have\n\\[\n\\begin{array}{l}A\\leq\\frac{1}{8}\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}\\left(f_{\\epsilon},g_{\\epsilon}\\right)^{2}+\\ln\\left(4 M_{1}M_{2}/\\delta\\right)\\\\ \\leq\\frac{1}{8}\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left(\\left|\\Delta_{s}^{h}(f,g)\\right| +2\\epsilon\\right)^{2}+\\ln\\left(4 M_{1}M_{2}/\\delta\\right)\\\\ \\leq\\frac{1}{4}\\sum_{s=1}^{t}\\sum_{h=1}^{H}(\\Delta_{s}^{h}(f,g))^{2}+\\epsilon^{2}H t+\\ln(4 M_{1}M_{2}/\\delta).\\\\ \\end{array}\n\\]\nThe first inequality used (18.4)."}, {"n": 9, "claim": "The second inequality used the \\(\\epsilon\\)-covering property \\(|\\Delta_s^h(f,g)-\\Delta_s^h(f_\\epsilon,g_\\epsilon)|\\leq 2\\epsilon\\)."}, {"n": 10, "claim": "The last inequality used standard algebra inequalities \\(|a + 2\\epsilon |^2 /8\\leq (a^2 /4) + \\epsilon^2\\) to simplify the terms."}, {"n": 11, "claim": "That is, we have shown that with probability at least \\(1 - \\delta / 2\\): for all \\(f \\in \\mathcal{F}\\) and \\(g \\in \\mathcal{G}\\) and \\(t \\geq 0\\):"}, {"n": 12, "claim": "\\[\n\\begin{array}{l}\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,g)\\epsilon_{s}^{h}(f)\\right|\\leq\\frac{1}{4}\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,g)^{2}\\\\ +\\epsilon tH(4+\\epsilon)+\\ln\\left(4M_{1}M_{2}/\\delta\\right).\\qquad(18. 5)\\\\ \\end{array}\n\\]\nSimilarly, with probability at least \\(1 - \\delta /2\\): for all \\(f\\in \\mathcal{F}\\) and \\(t\\geq 0\\)\n\\[\n\\begin{array}{l}\\left|\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,f)\\epsilon_{s}^{h}(f)\\right|\\leq\\frac{1}{4}\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\Delta_{s}^{h}(f,f)^{2}\\\\ +\\epsilon t H(4+\\epsilon)+\\ln\\left(4 M_{1}/\\delta\\right).\\tag{18.6}\\\\ \\end{array}\n\\]\nWe have with probability at least \\(1 - \\delta\\), both (18.5) and (18.6) hold."}, {"n": 13, "claim": "We obtain with probability at least \\(1 - \\delta\\): for all \\(t \\geq 0\\), \\(f \\in \\mathcal{F}\\), \\(g \\in \\mathcal{G}\\):"}, {"n": 14, "claim": "\\[\n\\begin{array}{l}\\left|\\sum_{h=1}^{H}\\sum_{s=1}^{t}\\left[\\Delta_{s}^{h}(f,f)-\\Delta_{s}^{h}(f,g)\\right]\\epsilon_{s}^{h}(f)\\right|\\\\ \\leq\\frac{1}{4}\\sum_{h=1}^{H}\\sum_{s=1}^{t}\\left[\\Delta_{s}^{h}(f,f)^{2}+\\Delta_{s}^{h}(f,g)^{2}\\right]+0. 5\\beta_{t}^{2}.\\tag{18.7}\\\\ \\end{array}\n\\]\nTherefore\n\\[\n\\begin{array}{l}\\sum_{s=1}^{t}\\sum_{h=1}^{H}L^{h}(f,g,x_{s}^{h},a_{s}^{h},r_{s}^{h},x_{s}^{h+1})\\\\ =\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left[\\Delta_{s}^{h}(f,f)^{2}-\\Delta_{s}^{h}(f,g)^{2}+2[\\Delta_{s}^{h}(f,f)-\\Delta_{s}^{h}(f,g)]\\epsilon_{s}^{h}(f)\\right]\\\\ \\geq\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left[0. 5\\Delta_{s}^{h}(f,f)^{2}-1. 5\\Delta_{s}^{h}(f,g)^{2}\\right]-\\beta_{t}^{2},\\quad(\\text{b y})\\\\ \\end{array}\n\\]\nand\n\\[\n\\begin{array}{l}\\sum_{s=1}^{t}\\sum_{h=1}^{H}L^{h}\\left(Q_{*},g,x_{s}^{h},a_{s}^{h},r_{s}^{h},x_{s}^{h+1}\\right)\\\\ =\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left[\\Delta_{s}^{h}(Q_{*},Q_{*})^{2}-\\Delta_{s}^{h}(Q_{*},g)^{2}+2\\left[\\Delta_{s}^{h}(Q_{*},Q_{*})-\\Delta_{s}^{h}(Q_{*},g)\\right]\\epsilon_{s}^{h}(f)\\right]\\\\ \\leq\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\left[1. 5\\Delta_{s}^{h}(Q_{*},Q_{*})^{2}-0. 5\\Delta_{s}^{h}(Q_{*},g)^{2}\\right]+\\beta_{t}^{2}.\\quad \\tag{by(18.7)}\\\\ \\end{array}\n\\]\nTaking sup over \\( g \\in \\mathcal{G} \\), and note that \\( \\Delta_s^h(Q_*, Q_*) = 0 \\), and that \\( \\mathcal{F} \\) is complete with respect to \\( \\mathcal{G} \\), we obtain\n\\[\n\\sup_{g\\in\\mathcal{G}}\\sum_{s=1}^{t}\\sum_{h=1}^{H}L^{h}\\left(Q_{*},g,x_{s}^{h},a_{s}^{h},r_{s}^{h},x_{s}^{h+1}\\right)\\leq\\beta_{t}^{2},\n\\]\n\\[\n\\sup_{g\\in\\mathcal{G}}\\sum_{s=1}^{t}\\sum_{h=1}^{H}L^{h}(f,g,x_{s}^{h},a_{s}^{h},r_{s}^{h},x_{s}^{h+1})\\geq 0. 5\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\underbrace{\\Delta_{s}^{h}(f,f)^{2}}_{\\mathcal{E}^{h}(f,x_{s}^{h},a_{s}^{h})^{2}}-\\beta_{t}^{2}.\n\\]\nIn the two displayed inequalities, the first implies that \\( Q_{*} \\in \\mathcal{F}_{t} \\)."}, {"n": 15, "claim": "The second implies that if \\( f \\in \\mathcal{F}_{t} \\), then\n\\[\n\\beta_{t}^{2}\\geq 0. 5\\sum_{s=1}^{t}\\sum_{h=1}^{H}\\mathcal{E}^{h}(f,x_{s}^{h},a_{s}^{h})^{2}-\\beta_{t}^{2},\n\\]\nwhich implies the second result of the theorem."}]}}, {"local_id": "T4", "statement": "We have for any \\(\\lambda >0\\), with probability at least \\(1 - \\delta\\), for all \\(n\\geq 1\\) and \\(f\\in \\mathcal{F}\\):\n\\[\n\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\leq\\inf_{\\epsilon>0}\\left[2 n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{F}_{\\epsilon} \\subset \\mathcal{F}\\) be an \\(\\epsilon\\) maximal packing of \\(\\mathcal{F}\\), with \\(|\\mathcal{F}_{\\epsilon}| \\leq M(\\epsilon, \\mathcal{F}, \\| \\cdot \\|_{\\infty})\\)."}, {"n": 2, "claim": "We obtain from Theorem 13.2, and the uniform bound over \\(\\mathcal{F}_{\\epsilon}\\) that with probability at least \\(1 - \\delta\\):"}, {"n": 3, "claim": "\\[\n\\sup_{f\\in\\mathcal{F}_{\\epsilon}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\leq\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}.\n\\]\nSince \\(\\mathcal{F}_{\\epsilon}\\) is also an \\(\\epsilon L_{\\infty}\\) cover of \\(\\mathcal{F}\\) (see Theorem 5.2), we obtain\n\\[\n\\begin{array}{l}\\sup_{f\\in\\mathcal{F}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right]\\\\ \\leq 2 n\\epsilon+\\sup_{f\\in\\mathcal{F}_{\\epsilon}}\\left[-\\sum_{i=1}^{n}f(Z_{i})-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{-\\lambda f(Z_{i})}\\right].\\\\ \\end{array}\n\\]\nThis implies the bound."}]}}, {"local_id": "T5", "statement": "In a linear MDP with feature map \\(\\phi^h (x^h,a^h)\\) on vector spaces \\(\\mathcal{H}^h\\) \\((h\\in [H])\\). Consider the linear candidate \\(Q\\) function class\n\\[\n\\mathcal{F}=\\left\\{\\langle w^{h},\\phi^{h}(x^{h},a^{h})\\rangle:w^{h}\\in\\mathcal{H}^{h},h\\in [H]\\right\\}.\n\\]\nAny function \\( g^{h + 1}(x^{h + 1}) \\) on \\( \\mathcal{X} \\) satisfies\n\\[\n\\left(\\mathcal{T}^{h}g^{h+1}\\right)\\left(x^{h},a^{h}\\right)\\in\\mathcal{F}.\n\\]\nIt implies that \\(\\mathcal{F}\\) is complete, and \\(Q_{*} \\in \\mathcal{F}\\). Moreover, \\(\\forall f \\in \\mathcal{F}\\),\n\\[\n\\mathcal{E}^{h}(f,x^{h},a^{h})\\in\\mathcal{F}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\nu_{g}^{h}=\\int g^{h+1}(x^{h+1})\\nu^{h}(x^{h+1})d\\mu^{h+1}(x^{h+1}).\n\\]\nWe have\n\\[\n\\begin{array}{l}\\mathbb{E}_{x^{h+1}\\mid x^{h},a^{h}}g^{h+1}\\left(x^{h+1}\\right)=\\int g^{h+1}\\left(x^{h+1}\\right)\\langle\\nu^{h}\\left(x^{h+1}\\right),\\phi^{h}\\left(x^{h},a^{h}\\right)\\rangle d\\mu^{h+1}\\left(x^{h+1}\\right)\\\\ =\\langle u_{g}^{h},\\phi^{h}(x^{h},a^{h})\\rangle .\\\\ \\end{array}\n\\]\nThis implies that\n\\[\n\\left(\\mathcal{T}^{h}g\\right)\\left(x^{h},a^{h}\\right)=\\left\\langle\\theta^{h}+u_{g}^{h},\\phi^{h}\\left(x^{h},a^{h}\\right)\\right\\rangle\\in\\mathcal{F}.\n\\]\nSince \\( Q_{*}^{h}(x^{h},a^{h}) = (\\mathcal{T}^{h}Q_{*})(x^{h},a^{h}) \\), we know \\( Q_{*}^{h}(x^{h},a^{h})\\in \\mathcal{F} \\)\nSimilarly, since \\((\\mathcal{T}^h f)(x^h,a^h)\\in \\mathcal{F}\\), we know that \\(f\\in \\mathcal{F}\\) implies\n\\[\n\\mathcal{E}^{h}(f,x^{h},a^{h})=f^{h}\\left(x^{h},a^{h}\\right)-\\left(\\mathcal{T}^{h}f\\right)\\left(x^{h},a^{h}\\right)\\in\\mathcal{F}.\n\\]\nThis proves the desired result."}]}}], "target_local_id": "T3", "topic_domain": "Online Learning & RL", "topic_subtopic": "Reinforcement Learning", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch36_lemma_36_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 36.1. \\[d(A_{1},A_{2},x)=\\operatorname*{inf}\\{c a r d\\{i\\leq n:x_{i}\\neq y_{i}^{1}\\ a n d\\ x_{i}\\neq y_{i}^{2}\\},y^{1}\\in A_{1},y^{2}\\in A_{2}\\}\\]\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\(\\triangle_{n}(\\mathcal{C})=\\operatorname*{sup}_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}\\). We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Let \\(\\xi,\\nu\\) - random variables.Assume that\n\\[\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma\\geq 1,t\\geq 0\\) ,and \\(\\gamma > 0\\) . Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x)=(x-a)_{+}\\) .Then\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\(\\phi(x)=(x-a)_{+}\\) ,we have \\(\\phi(\\xi)\\geq\\phi(t)\\) whenever \\(\\xi \\geq t .\\)\n\\[\\begin{array}{ r l }&{\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\mathbb{P}\\left(\\phi(\\xi)\\geq\\phi(t)\\right)}\\\\ &{\\qquad\\leq\\displaystyle\\frac{\\mathbb{E}\\phi(\\xi)}{\\phi(t)}\\leq\\frac{\\mathbb{E}\\phi(\\nu)}{\\phi(t)}=\\frac{\\mathbb{E}\\left(\\nu-a\\right)_{+}}{(t-a)_{+}}}\\end{array}\\]\nFurthermore,\n\\[\\begin{array}{ r l }{\\displaystyle\\mathbb{E}(\\nu-a)_{+}=}&{\\mathbb{E}\\int_{0}^{(\\nu-a)_{+}}\\mathrm{1}d x}\\\\ &{=\\mathbb{E}\\int_{0}^{\\infty}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{E}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left((\\nu-a)_{+}\\geq x\\right)d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left(\\nu\\geq a+x\\right)d x}\\\\ &{\\leq\\int_{0}^{\\infty}\\Gamma e^{-\\gamma(a+x)}d x=\\frac{\\Gamma e^{-\\gamma a}}{\\gamma}.}\\end{array}\\]\nHence,\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}=\\frac{\\Gamma\\cdot e\\cdot e^{-\\gamma t}}{1}=\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\]\nwhere we chose optimal \\(\\begin{array}{ r }{a=t-\\frac{1}{\\gamma}}\\end{array}\\) to minimize \\(\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}\\)"}]}}, {"local_id": "T2", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}, {"local_id": "T3", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T4", "statement": "Let \\(0\\leq g_{1},g_{2}\\leq 1,g_{i}:\\mathcal{X}\\mapsto [0,1]\\) . Then\n\\[\\int\\operatorname*{min}\\left(2,{\\frac{1}{g_{1}(x)}},{\\frac{1}{g_{2}(x)}}\\right)d P(x)\\cdot\\int g_{1}(x)d P(x)\\cdot\\int g_{2}(x)d P(x)\\leq 1\\]", "proof": {"steps": [{"n": 1, "claim": "Notice that log \\(x \\leq x - 1\\)\nSo enough to show\n\\[\\int\\operatorname*{min}\\left(2,{\\frac{1}{g_{1}}},{\\frac{1}{g_{2}}}\\right)d P+\\int g_{1}d P+\\int g_{2}d P\\leq 3\\]\nwhich is the same as\n\\[\\int\\left[\\operatorname*{min}\\left(2,\\frac{1}{g_{1}},\\frac{1}{g_{2}}\\right)+g_{1}+g_{2}\\right]d P\\leq 3\\]\nIt's enough to show\n\\[\\operatorname*{min}\\left(2,\\frac{1}{g_{1}},\\frac{1}{g_{2}}\\right)+g_{1}+g_{2}\\leq 3 .\\]\nIf min is equal to 2, then \\(\\begin{array}{ r }{g_{1},g_{2}\\le\\frac{1}{2}}\\end{array}\\) and the sum is less than 3."}, {"n": 2, "claim": "If min is equal to \\(\\frac{1}{g_{1}}\\) ,then \\(\\begin{array}{ r }{g_{1}\\ge\\frac{1}{2}}\\end{array}\\) and \\(\\begin{array}{ r }{g_{1}\\geq g_{2},\\mathrm{~s o~}\\operatorname*{min}+g_{1}+g_{2}\\leq\\frac{1}{g_{1}}+2 g_{1}\\leq 3 .}\\end{array}\\)"}]}}], "target_local_id": "T4", "topic_domain": "Others", "topic_subtopic": "Analysis & Geometry", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch41_theorem_41_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\(\\triangle_{n}(\\mathcal{C})=\\operatorname*{sup}_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}\\). We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be independent random variables with values in a measurable space \\(\\mathcal{X}\\), let \\(\\mathcal{F}\\) be a finite class of measurable functions \\(f:\\mathcal{X}\\to[0,1]\\), write \\(f_i:=f(X_i)\\), and set \\(Z=\\sup_{f\\in\\mathcal{F}}\\sum_{i=1}^{n}f_i\\) with \\(\\mathbb{E}Z>0\\).\n\nLet \\(\\mathcal{F}\\) be a finite set of functions \\(|{\\mathcal{F}}| <\\infty .\\forall f=(f_{1},\\cdots,f_{n})\\in{\\mathcal{F}},0\\leq f_{i}\\leq 1,Z=\\) \\(\\textstyle\\operatorname*{sup}_{f}\\sum_{i=1}^{n}f_{i}\\) , and define h as \\(h(u)=(1+u)\\log(1+u)-u\\) where \\(u \\geq 0\\) Then \\(\\mathbb{P}(Z\\geq\\mathbb{E}Z+x)\\leq e^{-\\mathbb{E}Z\\cdot h(x/\\mathbb{E}Z)}\\)", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[Z\\quad=\\quad\\operatorname*{sup}_{f\\in{\\mathcal{F}}}\\sum_{i=1}^{n}f_{i}\\ {\\stackrel{\\mathrm{d e f .}}{=}}\\ \\sum_{i=1}^{n}f_{i}^{\\circ}\\]\n\\[Z^{i}\\quad=\\quad\\operatorname*{sup}_{f\\in{\\mathcal{F}}}\\sum_{j\\neq i}f_{j}.\\]\nIt follows that \\(0\\leq Z-Z^{i}\\leq f_{i}^{\\circ}\\leq 1\\) ."}, {"n": 2, "claim": "Since \\(\\phi=e^{x}-x-1\\) is a convex function of \\(x,\\)\n\\[\\phi(-\\lambda(Z-Z^{i}))=\\phi(-\\lambda\\cdot(Z-Z^{i})+0\\cdot(1-(Z-Z^{i})))\\leq(Z-Z^{i})\\phi(-\\lambda)\\]\nand\n\\[\\begin{array}{ r c l }{\\mathbb{E}\\left(\\lambda Z e^{\\lambda Z}\\right)-\\mathbb{E}e^{\\lambda Z}\\log\\mathbb{E}e^{\\lambda Z}}&{\\leq}&{\\mathbb{E}\\left(e^{\\lambda Z}\\displaystyle\\sum_{i=1}^{n}\\phi\\left(-\\lambda(Z-Z^{i})\\right)\\right)}\\\\ &{\\leq}&{\\mathbb{E}\\left(e^{\\lambda Z}\\phi(-\\lambda)\\displaystyle\\sum_{i}\\left(Z-Z^{i}\\right)\\right)}\\\\ &{\\leq}&{\\phi(-\\lambda)\\mathbb{E}\\left(e^{\\lambda Z}\\cdot\\displaystyle\\sum_{i}f_{i}^{\\circ}\\right)}\\\\ &{=}&{\\phi(-\\lambda)\\mathbb{E}\\left(Z\\cdot e^{\\lambda Z}\\right).}\\end{array}\\]\nSet \\(\\tilde{Z}=Z-\\mathbb{E}Z\\ (\\mathrm{i . e .}\\) , center Z),and we get\n\\[\\begin{array}{ r l r }{\\mathbb{E}\\left(\\lambda\\tilde{Z}e^{\\lambda\\tilde{Z}}\\right)-\\mathbb{E}e^{\\lambda\\tilde{Z}}\\log\\mathbb{E}e^{\\lambda\\tilde{Z}}}&{\\leq}&{\\phi(-\\lambda)\\mathbb{E}\\left(Z\\cdot e^{\\lambda\\tilde{Z}}\\right)=\\phi(-\\lambda)\\mathbb{E}\\left(\\left(\\tilde{Z}+\\mathbb{E}Z\\right)\\cdot e^{\\lambda\\tilde{Z}}\\right)}\\\\ {(\\lambda-\\phi(-\\lambda))\\mathbb{E}\\left(\\tilde{Z}e^{\\lambda\\tilde{Z}}\\right)-\\mathbb{E}e^{\\lambda\\tilde{Z}}\\log\\mathbb{E}e^{\\lambda\\tilde{Z}}}&{\\leq}&{\\phi(-\\lambda)\\cdot\\mathbb{E}Z\\cdot\\mathbb{E}e^{\\lambda\\tilde{Z}}.}\\end{array}\\]\nLet \\(v=\\mathbb{E}Z,F(\\lambda)=\\mathbb{E}e^{\\lambda\\tilde{Z}}\\) , 亚 = logF,and we get\n\\[\\begin{array}{ r c l }{{(\\lambda-\\phi(-\\lambda)){\\displaystyle\\frac{F_{\\lambda}^{\\prime}(\\lambda)}{F(\\lambda)}}-\\log F(\\lambda)}}&{{\\le}}&{{v\\phi(-\\lambda)}}\\\\ {{(\\lambda-\\phi(-\\lambda)){(\\log F(\\lambda))}_{\\lambda}^{\\prime}-\\log F(\\lambda)}}&{{\\le}}&{{v\\phi(-\\lambda).}}\\end{array}\\tag{41.1}\\]\nSolving the differential equation\n\\[(\\lambda-\\phi(-\\lambda))\\left(\\underbrace{\\log F(\\lambda)}_{\\Psi_{0}}\\right)_{\\lambda}^{\\prime}-\\underbrace{\\log F(\\lambda)}_{\\Psi_{0}}=v\\phi(-\\lambda),\\tag{41.2}\\]\nyields \\(\\Psi_{0}=v\\cdot\\phi(\\lambda)\\) ."}, {"n": 3, "claim": "We will proceed to show that 亚 satisfying 41.1 has the property \\(\\Psi\\leq\\Psi_{0}\\)\n\\[\\begin{array}{ r l r }{\\mathrm{Substract~41.2~from~41.1,~and~let~\\Psi\\Psi_1=\\Psi-\\Psi_0~}}&{}&\\\\ {(1-e^{-\\lambda})\\Psi_{1}^{\\prime}-\\Psi_{1}}&{\\le}&{0}\\end{array}\\]\n\\[\\begin{array}{ r c l }{\\displaystyle\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\frac{1}{e^{\\lambda}-1}=1-e^{-\\lambda}\\mathrm{,a n d}\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\frac{e^{\\lambda}}{(e^{\\lambda}-1)^{2}}=1}&&\\\\ {\\displaystyle\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\underbrace{\\Bigg(\\frac{1}{e^{\\lambda}-1}\\Psi_{1}^{\\prime}-\\frac{e^{\\lambda}}{\\big(e^{\\lambda}-1\\big)^{2}}\\Psi_{1}\\Bigg)}_{\\big(\\frac{\\Psi_{1}}{e^{\\lambda}-1}\\big)_{\\lambda}^{\\prime}}}&{\\le}&{0}\\end{array}\\]\n\\[{\\frac{\\Psi_{1}(\\lambda)}{e^{\\lambda}-1}}~\\leq~\\operatorname*{lim}_{\\lambda\\to 0}{\\frac{\\Psi_{1}(\\lambda)}{e^{\\lambda}-1}}=0 .\\]\nIt follows that \\(\\Psi\\leq v\\phi(\\lambda)\\) ,and \\(F=\\mathbb{E}e^{\\lambda\\tilde{Z}}\\leq e^{v\\phi(\\lambda)}\\) ."}, {"n": 4, "claim": "By Chebychev's inequality, \\(\\mathbb{P}\\left(Z\\geq\\mathbb{E}Z+t\\right)\\leq e^{-\\lambda t+v\\phi\\left(\\lambda\\right)}\\) Minimizing over all \\(\\lambda > 0\\) ,we get \\(\\mathbb{P}\\left(Z\\geq\\mathbb{E}Z+t\\right)\\leq e^{-v\\cdot h\\left(t/v\\right)}\\) where \\(h(x)=(1+x)\\cdot\\log(1+x)-x.\\)"}]}}, {"local_id": "T2", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T3", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be independent random variables with values in a measurable space \\(\\mathcal{X}\\), let \\(\\mathcal{F}\\) be a finite class of measurable functions on \\(\\mathcal{X}\\), and write \\(f_i:=f(X_i)\\) for \\(f\\in\\mathcal{F}\\).\n\nLet \\(\\mathcal{F}\\) be a finite set of functions \\(| \\mathcal F | < \\infty\\) .For any \\(f=(f_{1},\\cdot\\cdot\\cdot,f_{n})\\in{\\mathcal{F}},a_{i}\\leq f_{i}\\leq b_{i}\\) \\(\\begin{array}{ r }{L=\\operatorname*{sup}_{f}\\sum_{i=1}^{n}\\left(b_{i}-a_{i}\\right)^{2}}\\end{array}\\) ,and \\(Z=\\operatorname*{sup}_{f}\\sum_{i=1}^{n}f_{i}\\) . Then \\(\\mathbb{P}(Z\\geq\\mathbb{E}Z+\\sqrt{2 L t})\\leq e^{-t}\\)", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\\begin{array}{ r c l }{Z^{i}}&{=}&{\\displaystyle\\operatorname*{sup}_{f\\in\\mathcal{F}}\\left(a_{i}+\\sum_{j\\neq i}f_{j}\\right)}\\end{array}\\]\n\\[Z=\\operatorname*{sup}_{f\\in{\\mathcal{F}}}\\sum_{i=1}^{n}f_{i}{\\stackrel{\\mathrm{d e f .}}{=}}\\sum_{i=1}^{n}f_{i}^{\\circ}.\\]\nIt follows that\n\\[0\\leq Z-Z^{i}\\leq\\sum_{i}f_{i}^{\\circ}-\\sum_{j\\neq i}f_{j}^{\\circ}-a_{i}=f_{i}^{\\circ}-a_{i}\\leq b_{i}(f^{\\circ})-a_{i}(f^{\\circ}).\\]\nSince \\(\\begin{array}{ r }{\\frac{\\phi(x)}{x^{2}}=\\frac{e^{x}-x-1}{x^{2}}}\\end{array}\\) is increasing in R and lin \\(\\begin{array}{ r }{1_{x\\to 0}\\frac{\\phi(x)}{x^{2}}\\to\\frac{1}{2}}\\end{array}\\) , it follows that \\(\\forall x<0,\\phi(x)\\leq{\\textstyle{\\frac{1}{2}}}x^{2}\\) 2,and\n\\[\\begin{array}{ r c l }{\\displaystyle\\mathbb{E}e^{\\lambda Z}\\lambda Z-\\mathbb{E}e^{\\lambda Z}\\log\\mathbb{E}e^{\\lambda Z}}&{\\leq}&{\\displaystyle\\mathbb{E}e^{\\lambda Z}\\sum_{i}\\phi\\left(-\\lambda(Z-Z^{i})\\right)}\\\\ &&{\\leq}&{\\displaystyle\\frac{1}{2}\\mathbb{E}e^{\\lambda Z}\\sum_{i}\\lambda^{2}(Z-Z^{i})^{2}}\\\\ &&{\\leq}&{\\displaystyle\\frac{1}{2}L\\lambda^{2}\\mathbb{E}e^{\\lambda Z}.}\\end{array}\\]\nCenter \\(Z,\\) and we get\n\\[\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}\\lambda(Z-\\mathbb{E}Z)-\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}\\log\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}\\ \\le\\ \\frac{1}{2}L\\lambda^{2}\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}.\\]\nLet \\(F(\\lambda)=\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}\\) ."}, {"n": 2, "claim": "It follows that \\(F_{\\lambda}^{\\prime}(\\lambda)=\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}(Z-\\mathbb{E}Z)\\) and\n\\[\\begin{array}{ r c l }{\\lambda F_{\\lambda}^{\\prime}(\\lambda)-F(\\lambda)\\log F(\\lambda)}&{\\le}&{\\frac{1}{2}L\\lambda^{2}F(\\lambda)}\\\\ {\\displaystyle\\frac{1}{\\lambda}\\frac{P_{\\lambda}^{\\prime}(\\lambda)}{F(\\lambda)}-\\frac{1}{\\lambda^{2}}\\log F(\\lambda)}&{\\le}&{\\frac{1}{2}L}\\\\ {\\displaystyle(\\frac{1}{\\lambda}\\log F(\\lambda))_{\\lambda}^{\\prime}}&{\\le}&{\\frac{1}{2}L}\\\\ {\\displaystyle\\frac{1}{\\lambda}\\log F(\\lambda)}&{=}&{\\frac{1}{t}\\log F(t)\\vert_{t 0}+\\int_{0}^{\\lambda}(\\frac{1}{t}\\log F(t))_{t}^{\\prime}d t}\\\\ &{\\le}&{\\displaystyle\\frac{1}{2}L\\lambda}\\\\ {F(\\lambda)}&{\\le}&{\\displaystyle\\exp(\\frac{1}{2}L\\lambda^{2}).}\\end{array}\\]\nBy Chebychev inequality, and minimize over \\(\\lambda,\\) we get\n\\[\\begin{array}{ r l r }{\\mathbb{P}(Z\\geq\\mathbb{E}Z+t)}&{{}\\leq}&{e^{-\\lambda t}\\mathbb{E}e^{\\lambda(Z-\\mathbb{E}Z)}}\\end{array}\\]\n\\[\\begin{array}{ r l }{\\leq}&{{}e^{-\\lambda t}e^{\\frac{1}{2}L\\lambda^{2}}}\\end{array}\\]\n\\[\\begin{array}{ r c l }{\\operatorname*{minimize}\\operatorname{over}\\lambda}&{}&{}\\\\ {\\mathbb{P}(Z\\geq\\mathbb{E}Z+t)}&{\\leq}&{e^{-t^{2}/(2L)}}\\end{array}\\]\n"}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T3", "topic_domain": "Probability & Concentration", "topic_subtopic": "Functional & Supremum Concentration", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch41_theorem_41_2__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\(\\triangle_{n}(\\mathcal{C})=\\operatorname*{sup}_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}\\). We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T2", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be independent random variables with values in a measurable space \\(\\mathcal{X}\\), let \\(\\mathcal{F}\\) be a finite class of measurable functions \\(f:\\mathcal{X}\\to[0,1]\\), write \\(f_i:=f(X_i)\\), and set \\(Z=\\sup_{f\\in\\mathcal{F}}\\sum_{i=1}^{n}f_i\\) with \\(\\mathbb{E}Z>0\\).\n\nLet \\(\\mathcal{F}\\) be a finite set of functions \\(|{\\mathcal{F}}| <\\infty .\\forall f=(f_{1},\\cdots,f_{n})\\in{\\mathcal{F}},0\\leq f_{i}\\leq 1,Z=\\) \\(\\textstyle\\operatorname*{sup}_{f}\\sum_{i=1}^{n}f_{i}\\) , and define h as \\(h(u)=(1+u)\\log(1+u)-u\\) where \\(u \\geq 0\\) Then \\(\\mathbb{P}(Z\\geq\\mathbb{E}Z+x)\\leq e^{-\\mathbb{E}Z\\cdot h(x/\\mathbb{E}Z)}\\)", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[Z\\quad=\\quad\\operatorname*{sup}_{f\\in{\\mathcal{F}}}\\sum_{i=1}^{n}f_{i}\\ {\\stackrel{\\mathrm{d e f .}}{=}}\\ \\sum_{i=1}^{n}f_{i}^{\\circ}\\]\n\\[Z^{i}\\quad=\\quad\\operatorname*{sup}_{f\\in{\\mathcal{F}}}\\sum_{j\\neq i}f_{j}.\\]\nIt follows that \\(0\\leq Z-Z^{i}\\leq f_{i}^{\\circ}\\leq 1\\) ."}, {"n": 2, "claim": "Since \\(\\phi=e^{x}-x-1\\) is a convex function of \\(x,\\)\n\\[\\phi(-\\lambda(Z-Z^{i}))=\\phi(-\\lambda\\cdot(Z-Z^{i})+0\\cdot(1-(Z-Z^{i})))\\leq(Z-Z^{i})\\phi(-\\lambda)\\]\nand\n\\[\\begin{array}{ r c l }{\\mathbb{E}\\left(\\lambda Z e^{\\lambda Z}\\right)-\\mathbb{E}e^{\\lambda Z}\\log\\mathbb{E}e^{\\lambda Z}}&{\\leq}&{\\mathbb{E}\\left(e^{\\lambda Z}\\displaystyle\\sum_{i=1}^{n}\\phi\\left(-\\lambda(Z-Z^{i})\\right)\\right)}\\\\ &{\\leq}&{\\mathbb{E}\\left(e^{\\lambda Z}\\phi(-\\lambda)\\displaystyle\\sum_{i}\\left(Z-Z^{i}\\right)\\right)}\\\\ &{\\leq}&{\\phi(-\\lambda)\\mathbb{E}\\left(e^{\\lambda Z}\\cdot\\displaystyle\\sum_{i}f_{i}^{\\circ}\\right)}\\\\ &{=}&{\\phi(-\\lambda)\\mathbb{E}\\left(Z\\cdot e^{\\lambda Z}\\right).}\\end{array}\\]\nSet \\(\\tilde{Z}=Z-\\mathbb{E}Z\\ (\\mathrm{i . e .}\\) , center Z),and we get\n\\[\\begin{array}{ r l r }{\\mathbb{E}\\left(\\lambda\\tilde{Z}e^{\\lambda\\tilde{Z}}\\right)-\\mathbb{E}e^{\\lambda\\tilde{Z}}\\log\\mathbb{E}e^{\\lambda\\tilde{Z}}}&{\\leq}&{\\phi(-\\lambda)\\mathbb{E}\\left(Z\\cdot e^{\\lambda\\tilde{Z}}\\right)=\\phi(-\\lambda)\\mathbb{E}\\left(\\left(\\tilde{Z}+\\mathbb{E}Z\\right)\\cdot e^{\\lambda\\tilde{Z}}\\right)}\\\\ {(\\lambda-\\phi(-\\lambda))\\mathbb{E}\\left(\\tilde{Z}e^{\\lambda\\tilde{Z}}\\right)-\\mathbb{E}e^{\\lambda\\tilde{Z}}\\log\\mathbb{E}e^{\\lambda\\tilde{Z}}}&{\\leq}&{\\phi(-\\lambda)\\cdot\\mathbb{E}Z\\cdot\\mathbb{E}e^{\\lambda\\tilde{Z}}.}\\end{array}\\]\nLet \\(v=\\mathbb{E}Z,F(\\lambda)=\\mathbb{E}e^{\\lambda\\tilde{Z}}\\) , 亚 = logF,and we get\n\\[\\begin{array}{ r c l }{{(\\lambda-\\phi(-\\lambda)){\\displaystyle\\frac{F_{\\lambda}^{\\prime}(\\lambda)}{F(\\lambda)}}-\\log F(\\lambda)}}&{{\\le}}&{{v\\phi(-\\lambda)}}\\\\ {{(\\lambda-\\phi(-\\lambda)){(\\log F(\\lambda))}_{\\lambda}^{\\prime}-\\log F(\\lambda)}}&{{\\le}}&{{v\\phi(-\\lambda).}}\\end{array}\\tag{41.1}\\]\nSolving the differential equation\n\\[(\\lambda-\\phi(-\\lambda))\\left(\\underbrace{\\log F(\\lambda)}_{\\Psi_{0}}\\right)_{\\lambda}^{\\prime}-\\underbrace{\\log F(\\lambda)}_{\\Psi_{0}}=v\\phi(-\\lambda),\\tag{41.2}\\]\nyields \\(\\Psi_{0}=v\\cdot\\phi(\\lambda)\\) ."}, {"n": 3, "claim": "We will proceed to show that 亚 satisfying 41.1 has the property \\(\\Psi\\leq\\Psi_{0}\\)\n\\[\\begin{array}{ r l r }{\\mathrm{Substract~41.2~from~41.1,~and~let~\\Psi\\Psi_1=\\Psi-\\Psi_0~}}&{}&\\\\ {(1-e^{-\\lambda})\\Psi_{1}^{\\prime}-\\Psi_{1}}&{\\le}&{0}\\end{array}\\]\n\\[\\begin{array}{ r c l }{\\displaystyle\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\frac{1}{e^{\\lambda}-1}=1-e^{-\\lambda}\\mathrm{,a n d}\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\frac{e^{\\lambda}}{(e^{\\lambda}-1)^{2}}=1}&&\\\\ {\\displaystyle\\big(e^{\\lambda}-1\\big)\\big(1-e^{-\\lambda}\\big)\\underbrace{\\Bigg(\\frac{1}{e^{\\lambda}-1}\\Psi_{1}^{\\prime}-\\frac{e^{\\lambda}}{\\big(e^{\\lambda}-1\\big)^{2}}\\Psi_{1}\\Bigg)}_{\\big(\\frac{\\Psi_{1}}{e^{\\lambda}-1}\\big)_{\\lambda}^{\\prime}}}&{\\le}&{0}\\end{array}\\]\n\\[{\\frac{\\Psi_{1}(\\lambda)}{e^{\\lambda}-1}}~\\leq~\\operatorname*{lim}_{\\lambda\\to 0}{\\frac{\\Psi_{1}(\\lambda)}{e^{\\lambda}-1}}=0 .\\]\nIt follows that \\(\\Psi\\leq v\\phi(\\lambda)\\) ,and \\(F=\\mathbb{E}e^{\\lambda\\tilde{Z}}\\leq e^{v\\phi(\\lambda)}\\) ."}, {"n": 4, "claim": "By Chebychev's inequality, \\(\\mathbb{P}\\left(Z\\geq\\mathbb{E}Z+t\\right)\\leq e^{-\\lambda t+v\\phi\\left(\\lambda\\right)}\\) Minimizing over all \\(\\lambda > 0\\) ,we get \\(\\mathbb{P}\\left(Z\\geq\\mathbb{E}Z+t\\right)\\leq e^{-v\\cdot h\\left(t/v\\right)}\\) where \\(h(x)=(1+x)\\cdot\\log(1+x)-x.\\)"}]}}, {"local_id": "T3", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}, {"local_id": "T4", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. copies of a random variable \\(X\\) with \\(0\\le X\\le 1\\) and \\(\\mu=\\mathbb{E}X\\), and let \\(0 0\\)\n\\[\\begin{array}{ r c l }{\\displaystyle\\mathbb{P}\\left(\\sum_{i=1}^{n}X_{i}\\geq n(\\mu+t)\\right)}&{\\leq}&{e^{-\\lambda n(\\mu+t)}\\mathbb{E}e^{\\lambda\\sum X_{i}}}\\\\ &&{=}&{e^{-\\lambda n(\\mu+t)}\\left(\\mathbb{E}e^{\\lambda X}\\right)^{n}}\\\\ &&{\\leq}&{e^{-\\lambda n(\\mu+t)}\\left(1-\\mu+\\mu e^{\\lambda}\\right)^{n}}\\end{array}\\]\nTake derivative w.r.t. 入:"}, {"n": 2, "claim": "\\[\\begin{array}{ c }{{-n(\\mu+t)e^{-\\lambda n(\\mu+t)}(1-\\mu+\\mu e^{\\lambda})^{n}+n(1-\\mu+\\mu e^{\\lambda})^{n-1}\\mu e^{\\lambda}e^{-\\lambda n(\\mu+t)}=0}}\\\\ {{{}}}\\\\ {{-(\\mu+t)(1-\\mu+\\mu e^{\\lambda})+\\mu e^{\\lambda}=0}}\\\\ {{{}}}\\\\ {{e^{\\lambda}=\\displaystyle\\frac{(1-\\mu)(\\mu+t)}{\\mu(1-\\mu-t)}.}}\\end{array}\\]\nSubstituting,\n\\[\\begin{array}{ r c l }{\\mathbb{P}\\left(\\displaystyle\\sum_{i=1}^{n}X_{i}\\geq n(\\mu+t)\\right)}&{\\leq}&{\\displaystyle\\left(\\left(\\frac{\\mu(1-\\mu-t)}{(1-\\mu)(\\mu+t)}\\right)^{\\mu+t}\\left(1-\\mu+\\frac{(1-\\mu)(\\mu+t)}{1-\\mu-t}\\right)\\right)^{n}}\\\\ &{=}&{\\displaystyle\\left(\\left(\\frac{\\mu}{\\mu+t}\\right)^{\\mu+t}\\left(\\frac{1-\\mu}{1-\\mu-t}\\right)^{1-\\mu-t}\\right)^{n}}\\\\ &{=}&{\\displaystyle\\exp\\left(-n\\left((\\mu+t)\\log\\frac{\\mu+t}{\\mu}+(1-\\mu-t)\\log\\frac{1-\\mu-t}{1-\\mu}\\right)\\right),}\\end{array}\\]\ncompleting the proof."}]}}], "target_local_id": "T2", "topic_domain": "Probability & Concentration", "topic_subtopic": "Functional & Supremum Concentration", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch4_theorem_4_18__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nEmpirical Rademacher complexity. Given a dataset \\(S = \\{z_1, \\dots, z_n\\}\\), the empirical Rademacher complexity is defined as\n\\[\nR_S(\\mathcal{F}) \\stackrel{\\Delta}{=} \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right].\n\\]\n\\(R_S(\\mathcal{F})\\) is a function of both the function class \\(\\mathcal{F}\\) and the dataset \\(S\\).\n\n\\(\\kappa\\)-Lipschitz functions. Let \\(\\kappa \\geq 0\\) and let \\(\\|\\cdot\\|\\) be a norm on the domain \\(D\\). A function \\(L : D \\to \\mathbb{R}\\) is said to be \\(\\kappa\\)-Lipschitz with respect to \\(\\|\\cdot\\|\\) if for all \\(\\theta, \\theta' \\in D\\),\n\\[\n|L(\\theta) - L(\\theta')| \\leq \\kappa\\,\\|\\theta - \\theta'\\|.\n\\]\n\nEpsilon-cover. \\(\\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\mathcal{Q}\\) with respect to metric \\(\\rho\\) if for all \\(v' \\in \\mathcal{Q}\\), there exists \\(v \\in \\mathcal{C}\\) such that \\(\\rho(v,v')\\le \\epsilon\\).\n\nCovering number. The covering number is defined as the minimum size of an \\(\\epsilon\\)-cover, or explicitly:\n\\[\nN(\\epsilon, \\mathcal{Q}, \\rho) \\stackrel{\\Delta}{=} (\\text{min size of } \\epsilon\\text{-cover of } \\mathcal{Q} \\text{ w.r.t. metric } \\rho).\n\\]\n\n\\(\\epsilon\\)-cover. Let \\(\\epsilon > 0\\). An \\(\\epsilon\\)-cover of a set \\(S\\) with respect to a distance metric \\(\\rho\\) is a subset \\(C \\subseteq S\\) such that for all \\(x \\in S\\) there exists \\(x' \\in C\\) with \\(\\rho(x, x') \\leq \\epsilon\\), or equivalently,\n\\[\nS \\subseteq \\bigcup_{x \\in C} \\mathrm{Ball}(x, \\epsilon, \\rho), \\quad \\text{where} \\quad \\mathrm{Ball}(x, \\epsilon, \\rho) \\triangleq \\{x' : \\rho(x, x') \\leq \\epsilon\\}.\n\\]\n\nRademacher complexity. Let \\(\\mathcal{F}\\) be a family of functions mapping \\(Z \\mapsto \\mathbb{R}\\), and let \\(P\\) be a distribution over \\(Z\\). The (average) Rademacher complexity of \\(\\mathcal{F}\\) is defined as\n\\[\nR_n(F) \\triangleq \\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\mathbb{E}_{\\sigma_1, \\dots, \\sigma_n \\overset{\\text{iid}}{\\sim}\\{ \\pm 1 \\}} \\left[ \\sup_{f\\in F} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] \\right],\n\\]\nwhere \\(\\sigma_1, \\dots, \\sigma_n\\) are independent Rademacher random variables, i.e. each taking on the value of \\(1\\) or \\(-1\\) with probability \\(1/2\\).\n\nSub-Gaussian Random Variables. A random variable \\(X\\) with finite mean \\(\\mu\\) is sub-Gaussian with parameter \\(\\sigma\\) if\n\\[ \\mathbb{E} \\left[ e^{\\lambda(X - \\mu)} \\right] \\leq e^{\\sigma^2\\lambda^2 / 2}, \\quad \\forall\\lambda\\in\\mathbb{R}. \\]\nWe say that \\(X\\) is \\(\\sigma\\)-sub-Gaussian and say it has variance proxy \\(\\sigma^2\\).", "theorems": [{"local_id": "T1", "statement": "Suppose \\(\\phi\\) is \\(\\kappa\\)-Lipschitz, and \\(\\rho = L_2(P_n)\\). Then,\n\\[\n\\log N(\\epsilon, \\phi \\circ \\mathcal{F}, \\rho) \\le \\log N(\\epsilon / \\kappa, \\mathcal{F}, \\rho).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{C}\\) denote an \\(\\epsilon/\\kappa\\)-cover for \\(\\mathcal{F}\\). Then \\(\\phi \\circ \\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\phi \\circ \\mathcal{F}\\):\n\\[\n\\rho(\\phi \\circ f', \\phi \\circ f) = \\sqrt{\\frac{1}{n} \\sum (\\phi(f'(z_i)) - \\phi(f(z_i)))^2} \\le \\sqrt{\\frac{1}{n} \\cdot \\kappa^2 \\sum(f'(z_i) - f(z_i))^2} \\le \\kappa \\cdot \\frac{\\epsilon}{\\kappa} = \\epsilon.\n\\]"}]}}, {"local_id": "T2", "statement": "\\[\n\\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\sup_{f\\in F} \\left[ \\frac{1}{n} \\sum^n_{i=1} f(z_i) - \\mathbb{E}_{z\\sim P} [f(z)] \\right]\\right] \\leq 2 R_n(\\mathcal{F}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We use a technique called symmetrization. We first fix \\(z_1, \\dots, z_n\\) and draw \\(z_1', \\dots, z_n' \\overset{\\text{iid}}{\\sim} P\\)."}, {"n": 2, "claim": "Then we can rewrite the term in the expectation on the LHS:"}, {"n": 3, "claim": "\\[\n\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}[f]\\right)=\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right]\\right)\n=\\sup_{f\\in\\mathcal{F}}\\left(\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right]\\right)\n\\leq\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right)\\right].\n\\]\n\nThe last inequality is because in general,\n\\[\n\\sup_u \\left(\\mathbb{E}_v[g(u,v)]\\right) \\leq \\mathbb{E}_v \\left[\\sup_u (g(u,v))\\right]\n\\]\nsince the \\(\\sup\\) over \\(u\\) becomes vacuous after we replace \\(u\\) with \\(u'\\)."}, {"n": 4, "claim": "Taking the expectation over \\(z_1, \\dots, z_n\\): \\[\n\\mathbb{E}_{z_1,\\dots,z_n}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}[f]\\right)\\right]\n\\leq\\mathbb{E}_{z_i,z_i'}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}(f(z_i)-f(z_i'))\\right)\\right]\n=\\mathbb{E}_{z_i,z_i'}\\left[\\mathbb{E}_{\\sigma_i}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}\\sigma_i\\left(f(z_i)-f(z_i')\\right)\\right)\\right]\\right]\n\\leq\\mathbb{E}_{z_i,z_i',\\sigma_i}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}\\sigma_if(z_i)\\right)+\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}-\\sigma_if(z_i')\\right)\\right]\n=2R_n(\\mathcal{F}),\n\\]\nwhere the second equality is because \\(\\sigma_i(f(z_i) - f(z_i')) \\stackrel{d}{=} f(z_i) - f(z_i')\\) since \\(f(z_i) - f(z_i')\\) has a symmetric distribution."}, {"n": 5, "claim": "The last equality holds since \\(-\\sigma_i \\overset{d}{=} \\sigma_i\\) and \\(z_i, z_i'\\) are drawn iid from the same distribution."}]}}, {"local_id": "T3", "statement": "Let \\(B, \\epsilon > 0\\), and let \\(S = \\{x \\in \\mathbb{R}^p : \\|x\\|_2 \\leq B\\}\\). Then there exists an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm with at most \\(\\max\\!\\left(\\left(\\dfrac{3B\\sqrt{p}}{\\epsilon}\\right)^p,\\, 1\\right)\\) elements.", "proof": {"steps": [{"n": 1, "claim": "If \\(\\epsilon > B\\sqrt{p}\\), then \\(S\\) is trivially contained in the ball of radius \\(\\epsilon\\) centered at the origin, so the \\(\\epsilon\\)-cover has size 1."}, {"n": 2, "claim": "Assume \\(\\epsilon \\leq B\\sqrt{p}\\). Set\n\\[\nC = \\left\\{x \\in S : x_i = k_i \\frac{\\epsilon}{\\sqrt{p}},\\; k_i \\in \\mathbb{Z},\\; |k_i| \\leq \\frac{B\\sqrt{p}}{\\epsilon}\\right\\},\n\\]\ni.e., \\(C\\) is the set of grid points in \\(\\mathbb{R}^p\\) of width \\(\\tfrac{\\epsilon}{\\sqrt{p}}\\) that are contained in \\(S\\)."}, {"n": 3, "claim": "We claim \\(C\\) is an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm: for every \\(x \\in S\\) there exists a grid point \\(x' \\in C\\) with \\(|x_i - x_i'| \\leq \\tfrac{\\epsilon}{\\sqrt{p}}\\) for each \\(i\\), so\n\\[\n\\|x - x'\\|_2 = \\sqrt{\\sum_{i=1}^p |x_i - x_i'|^2} \\leq \\sqrt{p \\cdot \\frac{\\epsilon^2}{p}} = \\epsilon.\n\\]\nBounding the size of \\(C\\): each \\(k_i\\) has at most \\(2\\tfrac{B\\sqrt{p}}{\\epsilon} + 1\\) choices, so\n\\[\n|C| \\leq \\left(\\frac{2B\\sqrt{p}}{\\epsilon} + 1\\right)^p \\leq \\left(\\frac{3B\\sqrt{p}}{\\epsilon}\\right)^p.\n\\]"}]}}, {"local_id": "T4", "statement": "Suppose for all \\(f \\in \\mathcal{F}\\), \\(0 \\leq f(z) \\leq 1\\). Then, with probability at least \\(1-\\delta\\),\n\\[\n\\sup_{f\\in \\mathcal{F}} \\left[ \\frac{1}{n} \\sum^n_{i=1} f(z_i) - \\mathbb{E}[f(z)] \\right] \\leq 2 R_S(\\mathcal{F}) + 3\\sqrt{\\frac{\\log{(2/\\delta)}}{2n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Define\n\\[\ng(z_1, \\dots, z_n) \\triangleq \\sup_{f\\in F} \\left[ \\frac{1}{n} \\sum^{n}_{i=1} f(z_i) - \\mathbb{E}[f(z)]\\right].\n\\]\n\nWe prove the theorem in 4 steps."}, {"n": 2, "claim": "Step 1: We bound \\(g\\) using McDiarmid's Inequality."}, {"n": 3, "claim": "To use McDiarmid's Inequality, we check that the bounded difference condition holds:"}, {"n": 4, "claim": "\\[\ng(z_1,\\dots,z_n)-g(z_1,\\dots,z_i',\\dots,z_n)\n\\leq\\sup_{f\\in\\mathcal{F}}\\left[\\frac{1}{n}\\sum^{n}_{j=1}f(z_j)-\\mathbb{E}[f(z)]\\right]-\\sup_{f\\in\\mathcal{F}}\\left[\\left(\\frac{1}{n}\\sum^{n}_{j=1,j\\neq i}f(z_j)\\right)+\\frac{f(z_i')}{n}-\\mathbb{E}[f(z)]\\right]\n\\leq\\sup_{f\\in\\mathcal{F}}\\left[\\frac{1}{n}\\sum^{n}_{j=1}f(z_j)-\\left(\\frac{1}{n}\\sum^{n}_{j=1,j\\neq i}f(z_j)\\right)-\\frac{f(z_i')}{n}\\right]\n=\\sup_{f\\in\\mathcal{F}}\\left[\\frac{1}{n}\\left(f(z_i)-f(z_i')\\right)\\right]\n\\leq\\frac{1}{n}.\n\\]\nThe first inequality holds because in general \\(\\sup_f A(f) - \\sup_f B(f) \\leq \\sup_f [A(f) - B(f)]\\), and the last inequality holds since \\(f\\) is bounded by \\([0,1]\\)."}, {"n": 5, "claim": "We can thus apply McDiarmid's Inequality with parameters \\(c_1 = \\dots = c_n = 1/n\\):"}, {"n": 6, "claim": "\\[\n\\mathbb{P}\\left[g(z_1,\\dots,z_n)\\geq\\mathbb{E}_{z_1,\\dots,z_n\\overset{\\text{iid}}{\\sim}P}[g]+\\epsilon\\right]\\leq\\exp\\!\\left(\\frac{-2\\epsilon^2}{\\sum^n_{i=1}c_i^2}\\right)=\\exp(-2n\\epsilon^2).\n\\]"}, {"n": 7, "claim": "Step 2: We apply the referenced theorem to get\n\\[\n\\mathbb{E}_{z_1,\\dots, z_n \\overset{\\text{iid}}{\\sim} P}[g] \\leq 2R_n(\\mathcal{F}).\n\\]"}, {"n": 8, "claim": "Step 3: Define\n\\[\n\\tilde{g}(z_1, \\dots, z_n) = R_S(\\mathcal{F}) \\triangleq \\mathbb{E}_{\\sigma_i}\\left[\\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i)\\right].\n\\]\n\nUsing a similar argument to that of Step 1, \\(\\tilde{g}\\) satisfies the bounded difference condition:"}, {"n": 9, "claim": "\\[\n\\tilde{g}(z_1, \\dots, z_n) - \\tilde{g}(z_1, \\dots, z_i', \\dots, z_n)\n\\leq \\mathbb{E}_{\\sigma_i} \\left[\\sup_{f\\in F} \\left[ \\frac{1}{n} \\sum^{n}_{j=1} \\sigma_j f(z_j) \\right] - \\sup_{f\\in F} \\left[ \\left(\\frac{1}{n} \\sum^{n}_{j=1, j \\neq i} \\sigma_j f(z_j)\\right) + \\frac{1}{n} \\sigma_if(z_i')\\right]\\right]\n\\leq \\mathbb{E}_{\\sigma_i}\\left[\\sup_{f\\in F} \\left(\\frac{1}{n} \\sigma_i(f(z_i) - f(z_i'))\\right)\\right]\n\\leq \\frac{1}{n},\n\\]\nsince the term inside the \\(\\sup\\) is always upper bounded by 1."}, {"n": 10, "claim": "We can thus apply McDiarmid's Inequality with parameters \\(c_1 = \\dots = c_n = 1/n\\):"}, {"n": 11, "claim": "\\[\n\\mathbb{P}\\left[ \\tilde{g} - \\mathbb{E}[\\tilde{g}] \\geq \\epsilon \\right] \\leq \\exp(-2n \\epsilon^2), \\quad\\text{and}\\quad \\mathbb{P}\\left[ \\tilde{g} - \\mathbb{E}[\\tilde{g}] \\leq -\\epsilon \\right] \\leq \\exp(-2n \\epsilon^2).\n\\]"}, {"n": 12, "claim": "Step 4: We set \\(\\delta\\) such that \\(\\exp(-2n \\epsilon^2) = \\delta/2\\), implying \\(\\epsilon = \\sqrt{\\frac{\\log(2/\\delta)}{2n}}\\)."}, {"n": 13, "claim": "Then, with probability \\(\\geq 1 - \\delta\\),\n\\[\n\\sup_{f\\in \\mathcal{F}} \\left[ \\frac{1}{n} \\sum^n_{i=1} f(z_i) - \\mathbb{E}[f]\\right] = g \\leq \\mathbb{E}[g] + \\epsilon \\leq 2R_n(\\mathcal{F}) + \\epsilon \\leq 2(R_S(\\mathcal{F}) + \\epsilon) + \\epsilon = 2R_S(\\mathcal{F}) + 3\\epsilon,\n\\]\nas required."}]}}, {"local_id": "T5", "statement": "Suppose \\(f : \\mathbb{R}^n \\to \\mathbb{R}\\) satisfies the bounded difference condition: there exist constants \\(c_1, \\ldots, c_n \\in \\mathbb{R}\\) such that for all real numbers \\(x_1, \\ldots, x_n\\) and \\(x_i'\\),\n\\[\n|f(x_1, \\ldots, x_n) - f(x_1, \\ldots, x_{i-1}, x_i', x_{i+1}, \\ldots, x_n)| \\leq c_i.\n\\]\nThen, for any independent random variables \\(X_1, \\ldots, X_n\\),\n\\[\n\\mathbb{P}\\left[f(X_1, \\ldots, X_n) - \\mathbb{E}[f(X_1, \\ldots, X_n)] \\geq t\\right] \\leq \\exp\\left(-\\frac{2t^2}{\\sum_{i=1}^n c_i^2}\\right).\n\\]\nMoreover, \\(f(X_1, \\ldots, X_n)\\) is \\(O\\!\\left(\\sqrt{\\sum_{i=1}^n c_i^2}\\right)\\)-sub-Gaussian.", "proof": {"steps": [{"n": 1, "claim": "The idea is to take \\(f(X_1,\\dots,X_n) - \\mathbb{E}[f(X_1,\\dots,X_n)]\\) and break it into manageable components by conditioning on portions of the sample."}, {"n": 2, "claim": "Define: \\[\nZ_0 = \\mathbb{E}[f(X_1,\\dots,X_n)] \\quad (\\text{constant}),\n\\]\n\\[\nZ_1 = \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1] \\quad (\\text{a function of }X_1),\n\\]\n\\[\n\\vdots\n\\]\n\\[\nZ_i = \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1,\\dots,X_i] \\quad (\\text{a function of }X_1,\\dots,X_i),\n\\]\n\\[\n\\vdots\n\\]\n\\[\nZ_n = f(X_1,\\dots,X_n).\n\\]\nBy the law of total expectation, \\(\\mathbb{E}[Z_i] = \\mathbb{E}[f(X_1,\\dots,X_n)] = Z_0\\) for all \\(i\\)."}, {"n": 3, "claim": "Hence \\(\\mathbb{E}[D_i] = 0\\), where \\(D_i = Z_i - Z_{i-1}\\)."}, {"n": 4, "claim": "We can write the quantity of interest as a telescoping sum:"}, {"n": 5, "claim": "\\[\nZ_n - Z_0 = \\sum_{i=1}^n D_i.\n\\]\nConditional on \\(X_1,\\dots,X_{i-1}\\), \\(D_i\\) is a bounded random variable."}, {"n": 6, "claim": "Let\n\\[\nA_i = \\inf_x \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1,\\dots,X_{i-1}, X_i = x] - \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1,\\dots,X_{i-1}],\n\\]\n\\[\nB_i = \\sup_x \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1,\\dots,X_{i-1}, X_i = x] - \\mathbb{E}[f(X_1,\\dots,X_n) \\mid X_1,\\dots,X_{i-1}].\n\\]\nClearly \\(A_i \\leq D_i \\leq B_i\\)."}, {"n": 7, "claim": "By independence,\n\\[\nB_i - A_i \\leq \\sup_{x_{1:i-1}}\\sup_{x,x'} \\int \\left(f(x_1,\\dots,x_{i-1},x,x_{i+1},\\dots,x_n) - f(x_1,\\dots,x_{i-1},x',x_{i+1},\\dots,x_n)\\right)dP(x_{i+1},\\dots,x_n) \\leq c_i.\n\\]\nUsing this bound and the properties of conditional expectation,\n\\[\n\\mathbb{E}\\left[e^{\\lambda(Z_n - Z_0)}\\right] = \\mathbb{E}\\left[e^{\\lambda\\sum_{i=1}^n (Z_i - Z_{i-1})}\\right]\n\\]\n\\[\n= \\mathbb{E}\\left[\\mathbb{E}\\left[e^{\\lambda(Z_n - Z_{n-1})}\\,\\Big|\\,X_1,\\dots,X_{n-1}\\right]e^{\\lambda\\sum_{i=1}^{n-1}(Z_i - Z_{i-1})}\\right]\n\\]\n\\[\n\\leq e^{\\lambda^2 c_n^2/8}\\,\\mathbb{E}\\left[e^{\\lambda\\sum_{i=1}^{n-1}(Z_i - Z_{i-1})}\\right]\n\\]\n\\[\n\\leq \\cdots \\leq e^{\\lambda^2(\\sum_{i=1}^n c_i^2)/8}.\n\\]\nThe tail bound follows by the tail bound for sub-Gaussian random variables."}]}}], "target_local_id": "T4", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Generalization & Learnability", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch4_theorem_4_25__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nEmpirical Rademacher complexity. Given a dataset \\(S = \\{z_1, \\dots, z_n\\}\\), the empirical Rademacher complexity is defined as\n\\[\nR_S(\\mathcal{F}) \\stackrel{\\Delta}{=} \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right].\n\\]\n\\(R_S(\\mathcal{F})\\) is a function of both the function class \\(\\mathcal{F}\\) and the dataset \\(S\\).\n\nCovering number. The covering number is defined as the minimum size of an \\(\\epsilon\\)-cover, or explicitly:\n\\[\nN(\\epsilon, \\mathcal{Q}, \\rho) \\stackrel{\\Delta}{=} (\\text{min size of } \\epsilon\\text{-cover of } \\mathcal{Q} \\text{ w.r.t. metric } \\rho).\n\\]\n\nEpsilon-cover. \\(\\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\mathcal{Q}\\) with respect to metric \\(\\rho\\) if for all \\(v' \\in \\mathcal{Q}\\), there exists \\(v \\in \\mathcal{C}\\) such that \\(\\rho(v,v')\\le \\epsilon\\).\n\n\\(\\kappa\\)-Lipschitz functions. Let \\(\\kappa \\geq 0\\) and let \\(\\|\\cdot\\|\\) be a norm on the domain \\(D\\). A function \\(L : D \\to \\mathbb{R}\\) is said to be \\(\\kappa\\)-Lipschitz with respect to \\(\\|\\cdot\\|\\) if for all \\(\\theta, \\theta' \\in D\\),\n\\[\n|L(\\theta) - L(\\theta')| \\leq \\kappa\\,\\|\\theta - \\theta'\\|.\n\\]\n\n\\(\\epsilon\\)-cover. Let \\(\\epsilon > 0\\). An \\(\\epsilon\\)-cover of a set \\(S\\) with respect to a distance metric \\(\\rho\\) is a subset \\(C \\subseteq S\\) such that for all \\(x \\in S\\) there exists \\(x' \\in C\\) with \\(\\rho(x, x') \\leq \\epsilon\\), or equivalently,\n\\[\nS \\subseteq \\bigcup_{x \\in C} \\mathrm{Ball}(x, \\epsilon, \\rho), \\quad \\text{where} \\quad \\mathrm{Ball}(x, \\epsilon, \\rho) \\triangleq \\{x' : \\rho(x, x') \\leq \\epsilon\\}.\n\\]\n\nRademacher complexity. Let \\(\\mathcal{F}\\) be a family of functions mapping \\(Z \\mapsto \\mathbb{R}\\), and let \\(P\\) be a distribution over \\(Z\\). The (average) Rademacher complexity of \\(\\mathcal{F}\\) is defined as\n\\[\nR_n(F) \\triangleq \\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\mathbb{E}_{\\sigma_1, \\dots, \\sigma_n \\overset{\\text{iid}}{\\sim}\\{ \\pm 1 \\}} \\left[ \\sup_{f\\in F} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] \\right],\n\\]\nwhere \\(\\sigma_1, \\dots, \\sigma_n\\) are independent Rademacher random variables, i.e. each taking on the value of \\(1\\) or \\(-1\\) with probability \\(1/2\\).\n\nEvaluation-vector set Q. For a sample \\(S = \\{z_1, \\ldots, z_n\\}\\) and a function class \\(\\mathcal{F}\\) of real-valued functions on \\(Z\\), define\n\\[\n\\mathcal{Q} = \\{(f(z_1), \\ldots, f(z_n)) \\in \\mathbb{R}^n : f \\in \\mathcal{F}\\}.\n\\]\nThus \\(|\\mathcal{Q}|\\), membership \\(v \\in \\mathcal{Q}\\), and the Euclidean norm \\(\\|v\\|_2\\) are taken for these evaluation vectors.", "theorems": [{"local_id": "T1", "statement": "Let \\(\\mathcal{F}\\) be a family of functions \\(Z \\mapsto [-1,1]\\). Then\n\\[\nR_S(\\mathcal{F})\\le\\inf_{\\epsilon>0}\\left(\\epsilon+\\sqrt{\\frac{2\\log N(\\epsilon,\\mathcal{F},L_2(P_n))}{n}}\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Fix any \\(\\epsilon > 0\\). Let \\(\\mathcal{C}\\) be the minimal \\(\\epsilon\\)-cover of \\(\\mathcal{Q}\\) with respect to the metric \\(\\rho(v,v') = \\frac{1}{\\sqrt{n}} \\|v-v'\\|_2\\). Note that \\(|\\mathcal{C}| = N(\\epsilon, \\mathcal{Q}, \\frac{1}{\\sqrt{n}} \\|\\cdot\\|_2) = N(\\epsilon, \\mathcal{F}, L_2(P_n))\\)."}, {"n": 2, "claim": "We aim to bound \\(R_S(\\mathcal{F}) = \\mathbb{E}_\\sigma[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle]\\) by approximating \\(v\\) with \\(v' \\in \\mathcal{C}\\)."}, {"n": 3, "claim": "In particular, for every point \\(v \\in \\mathcal{Q}\\), choose \\(v' \\in \\mathcal{C}\\) such that \\(\\rho(v, v') \\leq \\epsilon\\) and \\(z\\) is small (specifically, \\(\\frac{1}{\\sqrt{n}} \\|z\\|_2 \\le \\epsilon\\))."}, {"n": 4, "claim": "This gives\n\\[\n\\frac{1}{n} \\langle v, \\sigma \\rangle = \\frac{1}{n} \\langle v', \\sigma \\rangle + \\frac{1}{n} \\langle v - v', \\sigma \\rangle \\le \\frac{1}{n} \\langle v', \\sigma \\rangle + \\frac{1}{n} \\|z\\|_2 \\|\\sigma\\|_2 \\le \\frac{1}{n} \\langle v', \\sigma \\rangle + \\epsilon,\n\\]\nwhere \\(z \\stackrel{\\Delta}{=} v - v'\\), using Cauchy-Schwarz and the fact that \\(\\|z\\|_2 \\le \\sqrt{n}\\epsilon\\) and \\(\\|\\sigma\\|_2 \\le \\sqrt{n}\\)."}, {"n": 5, "claim": "Taking the expectation of the supremum on both sides gives\n\\[\nR_S(\\mathcal{F}) = \\mathbb{E}_\\sigma \\left[\\sup_{v\\in \\mathcal{Q}} \\frac{1}{n} \\langle v,\\sigma \\rangle \\right] \\le \\mathbb{E}_\\sigma \\left[\\sup_{v'\\in \\mathcal{C}} \\left(\\frac{1}{n} \\langle v',\\sigma \\rangle + \\epsilon\\right)\\right] = \\epsilon + \\mathbb{E}_\\sigma \\left[\\sup_{v'\\in \\mathcal{C}} \\frac{1}{n} \\langle v',\\sigma \\rangle\\right] \\le \\epsilon + \\sqrt{ \\frac{2\\log |\\mathcal{C}|}{n} },\n\\]\nby Massart's lemma (the referenced result)."}, {"n": 6, "claim": "Since the argument holds for any \\(\\epsilon > 0\\), taking the infimum over all \\(\\epsilon\\) yields \\(R_S(\\mathcal{F})\\le\\inf_{\\epsilon>0}\\left(\\epsilon+\\sqrt{\\frac{2\\log N(\\epsilon,\\mathcal{F},L_2(P_n))}{n}}\\right)\\)."}]}}, {"local_id": "T2", "statement": "Suppose \\(\\phi\\) is \\(\\kappa\\)-Lipschitz, and \\(\\rho = L_2(P_n)\\). Then,\n\\[\n\\log N(\\epsilon, \\phi \\circ \\mathcal{F}, \\rho) \\le \\log N(\\epsilon / \\kappa, \\mathcal{F}, \\rho).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{C}\\) denote an \\(\\epsilon/\\kappa\\)-cover for \\(\\mathcal{F}\\). Then \\(\\phi \\circ \\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\phi \\circ \\mathcal{F}\\):\n\\[\n\\rho(\\phi \\circ f', \\phi \\circ f) = \\sqrt{\\frac{1}{n} \\sum (\\phi(f'(z_i)) - \\phi(f(z_i)))^2} \\le \\sqrt{\\frac{1}{n} \\cdot \\kappa^2 \\sum(f'(z_i) - f(z_i))^2} \\le \\kappa \\cdot \\frac{\\epsilon}{\\kappa} = \\epsilon.\n\\]"}]}}, {"local_id": "T3", "statement": "Let \\(\\mathcal{F}\\) be a collection of functions mapping \\(Z \\mapsto \\mathbb{R}\\) and define \\(\\mathcal{F}' = \\{f'(z) = f(z) + c_0 \\mid f\\in \\mathcal{F}\\}\\) for some \\(c_0\\in\\mathbb{R}\\). Then \\(R_S(\\mathcal{F}) = R_S(\\mathcal{F}')\\) and \\(R_n(\\mathcal{F}) = R_n(\\mathcal{F}')\\).", "proof": {"steps": [{"n": 1, "claim": "We prove that empirical Rademacher complexity is translation invariant."}, {"n": 2, "claim": "\\[\nR_S(\\mathcal{F}') = \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f'\\in \\mathcal{F}'} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i (f(z_i)+c_0) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\frac{1}{n} \\sum^n_{i=1} \\sigma_i c_0 + \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[\\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] = R_S(\\mathcal{F}),\n\\]\nwhere the penultimate equality follows because \\(\\mathbb{E}_{\\sigma_1,\\dots,\\sigma_n} \\frac{1}{n}\\sum_{i=1}^n \\sigma_i c_0 = 0\\), since the \\(\\sigma_i\\)'s are Rademacher random variables."}]}}, {"local_id": "T4", "statement": "If \\(\\mathcal{F}\\) is a function class from \\(Z \\mapsto \\mathbb{R}\\), then\n\\[\nR_S(\\mathcal{F}) \\leq 12\\int_{0}^{\\infty}\\sqrt{\\frac{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}{n}}\\,d\\epsilon.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\epsilon_0 = \\sup_{f\\in \\mathcal{F}} \\max_i |f(z_i)|\\), so that for all \\(v \\in \\mathcal{Q}\\),\n\\[\n\\epsilon_0 \\ge \\sqrt{\\frac{1}{n} \\sum_{i=1}^n f(z_i)^2} = \\sqrt{\\frac{1}{n} \\|v\\|_2^2}.\n\\]\n\nDefine \\(\\epsilon_j = 2^{-j}\\epsilon_0\\) and let \\(\\mathcal{C}_j\\) be an \\(\\epsilon_j\\)-cover of \\(\\mathcal{Q}\\)."}, {"n": 2, "claim": "Then \\(\\mathcal{C}_0\\) is the coarsest cover of \\(\\mathcal{Q}\\), and as \\(j\\) increases we obtain progressively more fine-grained covers \\(\\mathcal{C}_j\\)."}, {"n": 3, "claim": "We next use this sequence of covers to define a telescoping series that equals \\(v\\)."}, {"n": 4, "claim": "For \\(v \\in \\mathcal{Q}\\), let \\(u_i\\) denote the nearest neighbor of \\(v\\) in \\(\\mathcal{C}_i\\)."}, {"n": 5, "claim": "Note that by definition \\(\\rho(u, v_j) \\leq \\epsilon_j\\)."}, {"n": 6, "claim": "Taking \\(u_0 = 0\\), it follows that as \\(j \\to \\infty\\), \\(\\epsilon_j \\to 0\\) and \\(u_j \\to v\\)."}, {"n": 7, "claim": "Thus,\n\\[\nv = (u_1 - u_0) + (u_2 - u_1) + (u_3 - u_2) + \\cdots = \\sum_{i=1}^\\infty (u_i - u_{i-1}).\n\\]\n\nSubstituting this telescoping expansion into the Rademacher complexity,\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle\\right] = \\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\sum_{i=1}^\\infty \\langle u_i - u_{i-1}, \\sigma \\rangle\\right] \\le \\sum_{i=1}^\\infty \\mathbb{E}\\left[ \\sup_{u_i \\in \\mathcal{C}_i,\\, u_{i-1} \\in \\mathcal{C}_{i-1}} \\frac{1}{n}\\langle u_i - u_{i-1}, \\sigma \\rangle\\right].\n\\]\n\nEach term is a Rademacher complexity over the finite space \\(\\mathcal{C}_i \\times \\mathcal{C}_{i-1}\\), so we apply Massart's lemma (the referenced result)."}, {"n": 8, "claim": "We first bound \\(\\frac{1}{\\sqrt{n}} \\|u_i - u_{i-1}\\|_2\\):"}, {"n": 9, "claim": "\\[\n\\frac{1}{\\sqrt{n}} \\|u_i - u_{i-1}\\|_2 \\le \\frac{1}{\\sqrt{n}} \\left(\\|u_i - v\\|_2 + \\|u_{i-1} - v\\|_2\\right) \\le \\epsilon_i + \\epsilon_{i-1} = 3\\epsilon_i,\n\\]\nsince \\(\\epsilon_{i-1} = 2\\epsilon_i\\)."}, {"n": 10, "claim": "Applying Massart's lemma with \\(M = 3\\epsilon_i\\) and \\(|\\mathcal{Q}| = |\\mathcal{C}_i \\times \\mathcal{C}_{i-1}| \\leq |\\mathcal{C}_i| \\cdot |\\mathcal{C}_{i-1}|\\),\n\\[\n\\mathbb{E}\\left[\\sup_{u_i \\in \\mathcal{C}_i,\\, u_{i-1} \\in \\mathcal{C}_{i-1}} \\frac{1}{n} \\langle u_i - u_{i-1}, \\sigma \\rangle \\right] \\le \\sqrt{\\frac{2(3\\epsilon_i)^2 \\log(|\\mathcal{C}_i| \\cdot |\\mathcal{C}_{i-1}|)}{n}} \\le \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log |\\mathcal{C}_i|},\n\\]\nusing \\(|\\mathcal{C}_i| \\ge |\\mathcal{C}_{i-1}|\\)."}, {"n": 11, "claim": "Thus,\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle \\right] \\le \\sum_{i=1}^\\infty \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))}.\n\\]\n\nTo relate this sum to the integral, note that \\(\\epsilon_i - \\epsilon_{i+1} = \\frac{\\epsilon_i}{2}\\) and that \\(\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))\\) is monotone decreasing in \\(\\epsilon\\), so the right Riemann sum underestimates the integral:"}, {"n": 12, "claim": "\\[\n(\\epsilon_i - \\epsilon_{i+1}) \\sqrt{\\log |\\mathcal{C}_i|} \\leq \\int_{\\epsilon_{i+1}}^{\\epsilon_i} \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon.\n\\]\nTherefore,\n\\[\n\\sum_{i=1}^\\infty \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))} = \\frac{12}{\\sqrt{n}} \\sum_{i=1}^\\infty (\\epsilon_i - \\epsilon_{i+1}) \\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))} \\leq \\frac{12}{\\sqrt{n}} \\int_{0}^{\\epsilon_0} \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon.\n\\]\nSince \\(\\log N(\\epsilon, \\mathcal{F}, L_2(P_n)) = 0\\) for all \\(\\epsilon > \\epsilon_0\\), we extend the upper limit to \\(\\infty\\) and obtain\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle \\right] \\le \\frac{12}{\\sqrt{n}} \\int_{0}^\\infty \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon = 12\\int_{0}^{\\infty}\\sqrt{\\frac{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}{n}}\\,d\\epsilon.\n\\]"}]}}, {"local_id": "T5", "statement": "Let \\(B, \\epsilon > 0\\), and let \\(S = \\{x \\in \\mathbb{R}^p : \\|x\\|_2 \\leq B\\}\\). Then there exists an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm with at most \\(\\max\\!\\left(\\left(\\dfrac{3B\\sqrt{p}}{\\epsilon}\\right)^p,\\, 1\\right)\\) elements.", "proof": {"steps": [{"n": 1, "claim": "If \\(\\epsilon > B\\sqrt{p}\\), then \\(S\\) is trivially contained in the ball of radius \\(\\epsilon\\) centered at the origin, so the \\(\\epsilon\\)-cover has size 1."}, {"n": 2, "claim": "Assume \\(\\epsilon \\leq B\\sqrt{p}\\). Set\n\\[\nC = \\left\\{x \\in S : x_i = k_i \\frac{\\epsilon}{\\sqrt{p}},\\; k_i \\in \\mathbb{Z},\\; |k_i| \\leq \\frac{B\\sqrt{p}}{\\epsilon}\\right\\},\n\\]\ni.e., \\(C\\) is the set of grid points in \\(\\mathbb{R}^p\\) of width \\(\\tfrac{\\epsilon}{\\sqrt{p}}\\) that are contained in \\(S\\)."}, {"n": 3, "claim": "We claim \\(C\\) is an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm: for every \\(x \\in S\\) there exists a grid point \\(x' \\in C\\) with \\(|x_i - x_i'| \\leq \\tfrac{\\epsilon}{\\sqrt{p}}\\) for each \\(i\\), so\n\\[\n\\|x - x'\\|_2 = \\sqrt{\\sum_{i=1}^p |x_i - x_i'|^2} \\leq \\sqrt{p \\cdot \\frac{\\epsilon^2}{p}} = \\epsilon.\n\\]\nBounding the size of \\(C\\): each \\(k_i\\) has at most \\(2\\tfrac{B\\sqrt{p}}{\\epsilon} + 1\\) choices, so\n\\[\n|C| \\leq \\left(\\frac{2B\\sqrt{p}}{\\epsilon} + 1\\right)^p \\leq \\left(\\frac{3B\\sqrt{p}}{\\epsilon}\\right)^p.\n\\]"}]}}], "target_local_id": "T1", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch4_theorem_4_26__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nEmpirical Rademacher complexity. Given a dataset \\(S = \\{z_1, \\dots, z_n\\}\\), the empirical Rademacher complexity is defined as\n\\[\nR_S(\\mathcal{F}) \\stackrel{\\Delta}{=} \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right].\n\\]\n\\(R_S(\\mathcal{F})\\) is a function of both the function class \\(\\mathcal{F}\\) and the dataset \\(S\\).\n\nCovering number. The covering number is defined as the minimum size of an \\(\\epsilon\\)-cover, or explicitly:\n\\[\nN(\\epsilon, \\mathcal{Q}, \\rho) \\stackrel{\\Delta}{=} (\\text{min size of } \\epsilon\\text{-cover of } \\mathcal{Q} \\text{ w.r.t. metric } \\rho).\n\\]\n\n\\(\\kappa\\)-Lipschitz functions. Let \\(\\kappa \\geq 0\\) and let \\(\\|\\cdot\\|\\) be a norm on the domain \\(D\\). A function \\(L : D \\to \\mathbb{R}\\) is said to be \\(\\kappa\\)-Lipschitz with respect to \\(\\|\\cdot\\|\\) if for all \\(\\theta, \\theta' \\in D\\),\n\\[\n|L(\\theta) - L(\\theta')| \\leq \\kappa\\,\\|\\theta - \\theta'\\|.\n\\]\n\nEpsilon-cover. \\(\\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\mathcal{Q}\\) with respect to metric \\(\\rho\\) if for all \\(v' \\in \\mathcal{Q}\\), there exists \\(v \\in \\mathcal{C}\\) such that \\(\\rho(v,v')\\le \\epsilon\\).\n\n\\(\\epsilon\\)-cover. Let \\(\\epsilon > 0\\). An \\(\\epsilon\\)-cover of a set \\(S\\) with respect to a distance metric \\(\\rho\\) is a subset \\(C \\subseteq S\\) such that for all \\(x \\in S\\) there exists \\(x' \\in C\\) with \\(\\rho(x, x') \\leq \\epsilon\\), or equivalently,\n\\[\nS \\subseteq \\bigcup_{x \\in C} \\mathrm{Ball}(x, \\epsilon, \\rho), \\quad \\text{where} \\quad \\mathrm{Ball}(x, \\epsilon, \\rho) \\triangleq \\{x' : \\rho(x, x') \\leq \\epsilon\\}.\n\\]\n\nRademacher complexity. Let \\(\\mathcal{F}\\) be a family of functions mapping \\(Z \\mapsto \\mathbb{R}\\), and let \\(P\\) be a distribution over \\(Z\\). The (average) Rademacher complexity of \\(\\mathcal{F}\\) is defined as\n\\[\nR_n(F) \\triangleq \\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\mathbb{E}_{\\sigma_1, \\dots, \\sigma_n \\overset{\\text{iid}}{\\sim}\\{ \\pm 1 \\}} \\left[ \\sup_{f\\in F} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] \\right],\n\\]\nwhere \\(\\sigma_1, \\dots, \\sigma_n\\) are independent Rademacher random variables, i.e. each taking on the value of \\(1\\) or \\(-1\\) with probability \\(1/2\\).\n\nEvaluation-vector set Q. For a sample \\(S = \\{z_1, \\ldots, z_n\\}\\) and a function class \\(\\mathcal{F}\\) of real-valued functions on \\(Z\\), define\n\\[\n\\mathcal{Q} = \\{(f(z_1), \\ldots, f(z_n)) \\in \\mathbb{R}^n : f \\in \\mathcal{F}\\}.\n\\]\nThus \\(|\\mathcal{Q}|\\), membership \\(v \\in \\mathcal{Q}\\), and the Euclidean norm \\(\\|v\\|_2\\) are taken for these evaluation vectors.", "theorems": [{"local_id": "T1", "statement": "\\[\n\\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\sup_{f\\in F} \\left[ \\frac{1}{n} \\sum^n_{i=1} f(z_i) - \\mathbb{E}_{z\\sim P} [f(z)] \\right]\\right] \\leq 2 R_n(\\mathcal{F}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We use a technique called symmetrization. We first fix \\(z_1, \\dots, z_n\\) and draw \\(z_1', \\dots, z_n' \\overset{\\text{iid}}{\\sim} P\\)."}, {"n": 2, "claim": "Then we can rewrite the term in the expectation on the LHS:"}, {"n": 3, "claim": "\\[\n\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}[f]\\right)=\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right]\\right)\n=\\sup_{f\\in\\mathcal{F}}\\left(\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right]\\right)\n\\leq\\mathbb{E}_{z_1',\\dots,z_n'}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\frac{1}{n}\\sum^n_{i=1}f(z_i')\\right)\\right].\n\\]\n\nThe last inequality is because in general,\n\\[\n\\sup_u \\left(\\mathbb{E}_v[g(u,v)]\\right) \\leq \\mathbb{E}_v \\left[\\sup_u (g(u,v))\\right]\n\\]\nsince the \\(\\sup\\) over \\(u\\) becomes vacuous after we replace \\(u\\) with \\(u'\\)."}, {"n": 4, "claim": "Taking the expectation over \\(z_1, \\dots, z_n\\): \\[\n\\mathbb{E}_{z_1,\\dots,z_n}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}f(z_i)-\\mathbb{E}[f]\\right)\\right]\n\\leq\\mathbb{E}_{z_i,z_i'}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}(f(z_i)-f(z_i'))\\right)\\right]\n=\\mathbb{E}_{z_i,z_i'}\\left[\\mathbb{E}_{\\sigma_i}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}\\sigma_i\\left(f(z_i)-f(z_i')\\right)\\right)\\right]\\right]\n\\leq\\mathbb{E}_{z_i,z_i',\\sigma_i}\\left[\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}\\sigma_if(z_i)\\right)+\\sup_{f\\in\\mathcal{F}}\\left(\\frac{1}{n}\\sum^n_{i=1}-\\sigma_if(z_i')\\right)\\right]\n=2R_n(\\mathcal{F}),\n\\]\nwhere the second equality is because \\(\\sigma_i(f(z_i) - f(z_i')) \\stackrel{d}{=} f(z_i) - f(z_i')\\) since \\(f(z_i) - f(z_i')\\) has a symmetric distribution."}, {"n": 5, "claim": "The last equality holds since \\(-\\sigma_i \\overset{d}{=} \\sigma_i\\) and \\(z_i, z_i'\\) are drawn iid from the same distribution."}]}}, {"local_id": "T2", "statement": "Let \\(\\mathcal{F}\\) be a collection of functions mapping \\(Z \\mapsto \\mathbb{R}\\) and define \\(\\mathcal{F}' = \\{f'(z) = f(z) + c_0 \\mid f\\in \\mathcal{F}\\}\\) for some \\(c_0\\in\\mathbb{R}\\). Then \\(R_S(\\mathcal{F}) = R_S(\\mathcal{F}')\\) and \\(R_n(\\mathcal{F}) = R_n(\\mathcal{F}')\\).", "proof": {"steps": [{"n": 1, "claim": "We prove that empirical Rademacher complexity is translation invariant."}, {"n": 2, "claim": "\\[\nR_S(\\mathcal{F}') = \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f'\\in \\mathcal{F}'} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i (f(z_i)+c_0) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\frac{1}{n} \\sum^n_{i=1} \\sigma_i c_0 + \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[\\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] = R_S(\\mathcal{F}),\n\\]\nwhere the penultimate equality follows because \\(\\mathbb{E}_{\\sigma_1,\\dots,\\sigma_n} \\frac{1}{n}\\sum_{i=1}^n \\sigma_i c_0 = 0\\), since the \\(\\sigma_i\\)'s are Rademacher random variables."}]}}, {"local_id": "T3", "statement": "Let \\(B, \\epsilon > 0\\), and let \\(S = \\{x \\in \\mathbb{R}^p : \\|x\\|_2 \\leq B\\}\\). Then there exists an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm with at most \\(\\max\\!\\left(\\left(\\dfrac{3B\\sqrt{p}}{\\epsilon}\\right)^p,\\, 1\\right)\\) elements.", "proof": {"steps": [{"n": 1, "claim": "If \\(\\epsilon > B\\sqrt{p}\\), then \\(S\\) is trivially contained in the ball of radius \\(\\epsilon\\) centered at the origin, so the \\(\\epsilon\\)-cover has size 1."}, {"n": 2, "claim": "Assume \\(\\epsilon \\leq B\\sqrt{p}\\). Set\n\\[\nC = \\left\\{x \\in S : x_i = k_i \\frac{\\epsilon}{\\sqrt{p}},\\; k_i \\in \\mathbb{Z},\\; |k_i| \\leq \\frac{B\\sqrt{p}}{\\epsilon}\\right\\},\n\\]\ni.e., \\(C\\) is the set of grid points in \\(\\mathbb{R}^p\\) of width \\(\\tfrac{\\epsilon}{\\sqrt{p}}\\) that are contained in \\(S\\)."}, {"n": 3, "claim": "We claim \\(C\\) is an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm: for every \\(x \\in S\\) there exists a grid point \\(x' \\in C\\) with \\(|x_i - x_i'| \\leq \\tfrac{\\epsilon}{\\sqrt{p}}\\) for each \\(i\\), so\n\\[\n\\|x - x'\\|_2 = \\sqrt{\\sum_{i=1}^p |x_i - x_i'|^2} \\leq \\sqrt{p \\cdot \\frac{\\epsilon^2}{p}} = \\epsilon.\n\\]\nBounding the size of \\(C\\): each \\(k_i\\) has at most \\(2\\tfrac{B\\sqrt{p}}{\\epsilon} + 1\\) choices, so\n\\[\n|C| \\leq \\left(\\frac{2B\\sqrt{p}}{\\epsilon} + 1\\right)^p \\leq \\left(\\frac{3B\\sqrt{p}}{\\epsilon}\\right)^p.\n\\]"}]}}, {"local_id": "T4", "statement": "Suppose \\(\\phi\\) is \\(\\kappa\\)-Lipschitz, and \\(\\rho = L_2(P_n)\\). Then,\n\\[\n\\log N(\\epsilon, \\phi \\circ \\mathcal{F}, \\rho) \\le \\log N(\\epsilon / \\kappa, \\mathcal{F}, \\rho).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{C}\\) denote an \\(\\epsilon/\\kappa\\)-cover for \\(\\mathcal{F}\\). Then \\(\\phi \\circ \\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\phi \\circ \\mathcal{F}\\):\n\\[\n\\rho(\\phi \\circ f', \\phi \\circ f) = \\sqrt{\\frac{1}{n} \\sum (\\phi(f'(z_i)) - \\phi(f(z_i)))^2} \\le \\sqrt{\\frac{1}{n} \\cdot \\kappa^2 \\sum(f'(z_i) - f(z_i))^2} \\le \\kappa \\cdot \\frac{\\epsilon}{\\kappa} = \\epsilon.\n\\]"}]}}, {"local_id": "T5", "statement": "If \\(\\mathcal{F}\\) is a function class from \\(Z \\mapsto \\mathbb{R}\\), then\n\\[\nR_S(\\mathcal{F}) \\leq 12\\int_{0}^{\\infty}\\sqrt{\\frac{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}{n}}\\,d\\epsilon.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\epsilon_0 = \\sup_{f\\in \\mathcal{F}} \\max_i |f(z_i)|\\), so that for all \\(v \\in \\mathcal{Q}\\),\n\\[\n\\epsilon_0 \\ge \\sqrt{\\frac{1}{n} \\sum_{i=1}^n f(z_i)^2} = \\sqrt{\\frac{1}{n} \\|v\\|_2^2}.\n\\]\n\nDefine \\(\\epsilon_j = 2^{-j}\\epsilon_0\\) and let \\(\\mathcal{C}_j\\) be an \\(\\epsilon_j\\)-cover of \\(\\mathcal{Q}\\)."}, {"n": 2, "claim": "Then \\(\\mathcal{C}_0\\) is the coarsest cover of \\(\\mathcal{Q}\\), and as \\(j\\) increases we obtain progressively more fine-grained covers \\(\\mathcal{C}_j\\)."}, {"n": 3, "claim": "We next use this sequence of covers to define a telescoping series that equals \\(v\\)."}, {"n": 4, "claim": "For \\(v \\in \\mathcal{Q}\\), let \\(u_i\\) denote the nearest neighbor of \\(v\\) in \\(\\mathcal{C}_i\\)."}, {"n": 5, "claim": "Note that by definition \\(\\rho(u, v_j) \\leq \\epsilon_j\\)."}, {"n": 6, "claim": "Taking \\(u_0 = 0\\), it follows that as \\(j \\to \\infty\\), \\(\\epsilon_j \\to 0\\) and \\(u_j \\to v\\)."}, {"n": 7, "claim": "Thus,\n\\[\nv = (u_1 - u_0) + (u_2 - u_1) + (u_3 - u_2) + \\cdots = \\sum_{i=1}^\\infty (u_i - u_{i-1}).\n\\]\n\nSubstituting this telescoping expansion into the Rademacher complexity,\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle\\right] = \\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\sum_{i=1}^\\infty \\langle u_i - u_{i-1}, \\sigma \\rangle\\right] \\le \\sum_{i=1}^\\infty \\mathbb{E}\\left[ \\sup_{u_i \\in \\mathcal{C}_i,\\, u_{i-1} \\in \\mathcal{C}_{i-1}} \\frac{1}{n}\\langle u_i - u_{i-1}, \\sigma \\rangle\\right].\n\\]\n\nEach term is a Rademacher complexity over the finite space \\(\\mathcal{C}_i \\times \\mathcal{C}_{i-1}\\), so we apply Massart's lemma (the referenced result)."}, {"n": 8, "claim": "We first bound \\(\\frac{1}{\\sqrt{n}} \\|u_i - u_{i-1}\\|_2\\):"}, {"n": 9, "claim": "\\[\n\\frac{1}{\\sqrt{n}} \\|u_i - u_{i-1}\\|_2 \\le \\frac{1}{\\sqrt{n}} \\left(\\|u_i - v\\|_2 + \\|u_{i-1} - v\\|_2\\right) \\le \\epsilon_i + \\epsilon_{i-1} = 3\\epsilon_i,\n\\]\nsince \\(\\epsilon_{i-1} = 2\\epsilon_i\\)."}, {"n": 10, "claim": "Applying Massart's lemma with \\(M = 3\\epsilon_i\\) and \\(|\\mathcal{Q}| = |\\mathcal{C}_i \\times \\mathcal{C}_{i-1}| \\leq |\\mathcal{C}_i| \\cdot |\\mathcal{C}_{i-1}|\\),\n\\[\n\\mathbb{E}\\left[\\sup_{u_i \\in \\mathcal{C}_i,\\, u_{i-1} \\in \\mathcal{C}_{i-1}} \\frac{1}{n} \\langle u_i - u_{i-1}, \\sigma \\rangle \\right] \\le \\sqrt{\\frac{2(3\\epsilon_i)^2 \\log(|\\mathcal{C}_i| \\cdot |\\mathcal{C}_{i-1}|)}{n}} \\le \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log |\\mathcal{C}_i|},\n\\]\nusing \\(|\\mathcal{C}_i| \\ge |\\mathcal{C}_{i-1}|\\)."}, {"n": 11, "claim": "Thus,\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle \\right] \\le \\sum_{i=1}^\\infty \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))}.\n\\]\n\nTo relate this sum to the integral, note that \\(\\epsilon_i - \\epsilon_{i+1} = \\frac{\\epsilon_i}{2}\\) and that \\(\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))\\) is monotone decreasing in \\(\\epsilon\\), so the right Riemann sum underestimates the integral:"}, {"n": 12, "claim": "\\[\n(\\epsilon_i - \\epsilon_{i+1}) \\sqrt{\\log |\\mathcal{C}_i|} \\leq \\int_{\\epsilon_{i+1}}^{\\epsilon_i} \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon.\n\\]\nTherefore,\n\\[\n\\sum_{i=1}^\\infty \\frac{6\\epsilon_i}{\\sqrt{n}}\\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))} = \\frac{12}{\\sqrt{n}} \\sum_{i=1}^\\infty (\\epsilon_i - \\epsilon_{i+1}) \\sqrt{\\log N(\\epsilon_i, \\mathcal{F}, L_2(P_n))} \\leq \\frac{12}{\\sqrt{n}} \\int_{0}^{\\epsilon_0} \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon.\n\\]\nSince \\(\\log N(\\epsilon, \\mathcal{F}, L_2(P_n)) = 0\\) for all \\(\\epsilon > \\epsilon_0\\), we extend the upper limit to \\(\\infty\\) and obtain\n\\[\n\\mathbb{E}\\left[\\sup_{v \\in \\mathcal{Q}} \\frac{1}{n} \\langle v, \\sigma \\rangle \\right] \\le \\frac{12}{\\sqrt{n}} \\int_{0}^\\infty \\sqrt{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}\\,d\\epsilon = 12\\int_{0}^{\\infty}\\sqrt{\\frac{\\log N(\\epsilon, \\mathcal{F}, L_2(P_n))}{n}}\\,d\\epsilon.\n\\]"}]}}], "target_local_id": "T5", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch4_theorem_4_8__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\n\\(\\kappa\\)-Lipschitz functions. Let \\(\\kappa \\geq 0\\) and let \\(\\|\\cdot\\|\\) be a norm on the domain \\(D\\). A function \\(L : D \\to \\mathbb{R}\\) is said to be \\(\\kappa\\)-Lipschitz with respect to \\(\\|\\cdot\\|\\) if for all \\(\\theta, \\theta' \\in D\\),\n\\[\n|L(\\theta) - L(\\theta')| \\leq \\kappa\\,\\|\\theta - \\theta'\\|.\n\\]\n\nRisk and empirical-risk minimizer setup for finite hypothesis classes. Let \\(\\mathcal{H}\\) be a finite hypothesis class and let \\(\\ell\\) be a loss function with \\(0 \\leq \\ell((x,y),h) \\leq 1\\). For \\(h \\in \\mathcal{H}\\), define the population risk\n\\[\nL(h) = \\mathbb{E}_{(x,y) \\sim \\mathcal{D}}[\\ell((x,y),h)].\n\\]\nGiven \\(n\\) iid samples \\((x^{(1)},y^{(1)}), \\dots, (x^{(n)},y^{(n)})\\) from \\(\\mathcal{D}\\), define the empirical risk\n\\[\n\\widehat{L}(h) = \\frac{1}{n}\\sum_{i=1}^n \\ell((x^{(i)},y^{(i)}),h).\n\\]\nLet \\(\\hat{h} \\in \\arg\\min_{h \\in \\mathcal{H}} \\widehat{L}(h)\\) be an empirical-risk minimizer and let \\(h^* \\in \\arg\\min_{h \\in \\mathcal{H}} L(h)\\) be a population-risk minimizer.\n\nEpsilon-cover. \\(\\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\mathcal{Q}\\) with respect to metric \\(\\rho\\) if for all \\(v' \\in \\mathcal{Q}\\), there exists \\(v \\in \\mathcal{C}\\) such that \\(\\rho(v,v')\\le \\epsilon\\).\n\nCovering number. The covering number is defined as the minimum size of an \\(\\epsilon\\)-cover, or explicitly:\n\\[\nN(\\epsilon, \\mathcal{Q}, \\rho) \\stackrel{\\Delta}{=} (\\text{min size of } \\epsilon\\text{-cover of } \\mathcal{Q} \\text{ w.r.t. metric } \\rho).\n\\]\n\nEmpirical Rademacher complexity. Given a dataset \\(S = \\{z_1, \\dots, z_n\\}\\), the empirical Rademacher complexity is defined as\n\\[\nR_S(\\mathcal{F}) \\stackrel{\\Delta}{=} \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right].\n\\]\n\\(R_S(\\mathcal{F})\\) is a function of both the function class \\(\\mathcal{F}\\) and the dataset \\(S\\).\n\nRademacher complexity. Let \\(\\mathcal{F}\\) be a family of functions mapping \\(Z \\mapsto \\mathbb{R}\\), and let \\(P\\) be a distribution over \\(Z\\). The (average) Rademacher complexity of \\(\\mathcal{F}\\) is defined as\n\\[\nR_n(F) \\triangleq \\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\mathbb{E}_{\\sigma_1, \\dots, \\sigma_n \\overset{\\text{iid}}{\\sim}\\{ \\pm 1 \\}} \\left[ \\sup_{f\\in F} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] \\right],\n\\]\nwhere \\(\\sigma_1, \\dots, \\sigma_n\\) are independent Rademacher random variables, i.e. each taking on the value of \\(1\\) or \\(-1\\) with probability \\(1/2\\).\n\n\\(\\epsilon\\)-cover. Let \\(\\epsilon > 0\\). An \\(\\epsilon\\)-cover of a set \\(S\\) with respect to a distance metric \\(\\rho\\) is a subset \\(C \\subseteq S\\) such that for all \\(x \\in S\\) there exists \\(x' \\in C\\) with \\(\\rho(x, x') \\leq \\epsilon\\), or equivalently,\n\\[\nS \\subseteq \\bigcup_{x \\in C} \\mathrm{Ball}(x, \\epsilon, \\rho), \\quad \\text{where} \\quad \\mathrm{Ball}(x, \\epsilon, \\rho) \\triangleq \\{x' : \\rho(x, x') \\leq \\epsilon\\}.\n\\]", "theorems": [{"local_id": "T1", "statement": "Let \\(B, \\epsilon > 0\\), and let \\(S = \\{x \\in \\mathbb{R}^p : \\|x\\|_2 \\leq B\\}\\). Then there exists an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm with at most \\(\\max\\!\\left(\\left(\\dfrac{3B\\sqrt{p}}{\\epsilon}\\right)^p,\\, 1\\right)\\) elements.", "proof": {"steps": [{"n": 1, "claim": "If \\(\\epsilon > B\\sqrt{p}\\), then \\(S\\) is trivially contained in the ball of radius \\(\\epsilon\\) centered at the origin, so the \\(\\epsilon\\)-cover has size 1."}, {"n": 2, "claim": "Assume \\(\\epsilon \\leq B\\sqrt{p}\\). Set\n\\[\nC = \\left\\{x \\in S : x_i = k_i \\frac{\\epsilon}{\\sqrt{p}},\\; k_i \\in \\mathbb{Z},\\; |k_i| \\leq \\frac{B\\sqrt{p}}{\\epsilon}\\right\\},\n\\]\ni.e., \\(C\\) is the set of grid points in \\(\\mathbb{R}^p\\) of width \\(\\tfrac{\\epsilon}{\\sqrt{p}}\\) that are contained in \\(S\\)."}, {"n": 3, "claim": "We claim \\(C\\) is an \\(\\epsilon\\)-cover of \\(S\\) with respect to the \\(\\ell_2\\)-norm: for every \\(x \\in S\\) there exists a grid point \\(x' \\in C\\) with \\(|x_i - x_i'| \\leq \\tfrac{\\epsilon}{\\sqrt{p}}\\) for each \\(i\\), so\n\\[\n\\|x - x'\\|_2 = \\sqrt{\\sum_{i=1}^p |x_i - x_i'|^2} \\leq \\sqrt{p \\cdot \\frac{\\epsilon^2}{p}} = \\epsilon.\n\\]\nBounding the size of \\(C\\): each \\(k_i\\) has at most \\(2\\tfrac{B\\sqrt{p}}{\\epsilon} + 1\\) choices, so\n\\[\n|C| \\leq \\left(\\frac{2B\\sqrt{p}}{\\epsilon} + 1\\right)^p \\leq \\left(\\frac{3B\\sqrt{p}}{\\epsilon}\\right)^p.\n\\]"}]}}, {"local_id": "T2", "statement": "Let \\(\\mathcal{F}\\) be a collection of functions mapping \\(Z \\mapsto \\mathbb{R}\\) and define \\(\\mathcal{F}' = \\{f'(z) = f(z) + c_0 \\mid f\\in \\mathcal{F}\\}\\) for some \\(c_0\\in\\mathbb{R}\\). Then \\(R_S(\\mathcal{F}) = R_S(\\mathcal{F}')\\) and \\(R_n(\\mathcal{F}) = R_n(\\mathcal{F}')\\).", "proof": {"steps": [{"n": 1, "claim": "We prove that empirical Rademacher complexity is translation invariant."}, {"n": 2, "claim": "\\[\nR_S(\\mathcal{F}') = \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f'\\in \\mathcal{F}'} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i (f(z_i)+c_0) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\frac{1}{n} \\sum^n_{i=1} \\sigma_i c_0 + \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right]\n= \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[\\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] = R_S(\\mathcal{F}),\n\\]\nwhere the penultimate equality follows because \\(\\mathbb{E}_{\\sigma_1,\\dots,\\sigma_n} \\frac{1}{n}\\sum_{i=1}^n \\sigma_i c_0 = 0\\), since the \\(\\sigma_i\\)'s are Rademacher random variables."}]}}, {"local_id": "T3", "statement": "Setup. Throughout, the parameter \\(\\theta\\) ranges over \\(S=\\{\\theta\\in\\mathbb{R}^p:\\|\\theta\\|_2\\le B\\}\\) for some \\(B>0\\).\n\nSuppose \\(\\ell((x,y), \\theta) \\in [0,1]\\), and \\(\\ell((x,y), \\theta)\\) is \\(\\kappa\\)-Lipschitz in \\(\\theta\\) with respect to the \\(\\ell_2\\)-norm for all \\((x, y)\\). Then, with probability at least \\(1-O(\\exp(-\\Omega(p)))\\), we have\n\\[\n\\forall \\theta, \\quad |\\widehat{L}(\\theta)- L(\\theta)| \\leq O\\!\\left(\\sqrt{\\frac{p \\max(\\ln(\\kappa Bn), 1)}{n}}\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Fix parameters \\(\\delta, \\epsilon>0\\) (we will specify their values later). Let \\(C\\) be the \\(\\epsilon\\)-cover of our parameter space \\(S\\) with respect to the \\(\\ell_2\\)-norm constructed in the referenced lemma. Define event \\(E = \\left\\{ \\forall \\theta \\in C, \\; |\\widehat{L}(\\theta) - L(\\theta)| \\le \\delta \\right\\}\\). By Theorem 4.1, we have \\(\\mathbb{P}(E) \\ge 1 - 2|C|\\exp(-2n\\delta^2)\\)."}, {"n": 2, "claim": "Now for any \\(\\theta \\in S\\), we can pick some \\(\\theta_0 \\in C\\) such that \\(\\|\\theta-\\theta_0\\|_2 \\le \\epsilon\\)."}, {"n": 3, "claim": "Since \\(L\\) and \\(\\widehat{L}\\) are \\(\\kappa\\)-Lipschitz functions (this follows from the Lipschitzness of \\(\\ell\\)), we have\n\\[\n|L(\\theta) - L(\\theta_0)| \\le \\kappa \\|\\theta-\\theta_0\\|_2 \\le \\kappa \\epsilon, \\quad\\text{and}\\quad |\\widehat{L}(\\theta) - \\widehat{L}(\\theta_0)| \\le \\kappa \\|\\theta-\\theta_0\\|_2 \\le \\kappa \\epsilon.\n\\]\n\nTherefore, conditional on \\(E\\), we have\n\\[\n|\\widehat{L}(\\theta) - L(\\theta)| \\le |\\widehat{L}(\\theta)-\\widehat{L}(\\theta_0)| + |\\widehat{L}(\\theta_0) - L(\\theta_0)| + |L(\\theta_0) - L(\\theta)| \\le 2 \\kappa\\epsilon+\\delta.\n\\]\n\nSet \\(\\epsilon = \\delta / (2 \\kappa)\\) so that conditional on \\(E\\),\n\\[\n|\\widehat{L}(\\theta) - L(\\theta)| \\le 2\\delta.\n\\]\n\nThe event \\(E\\) happens with probability \\(1 - 2|C|\\exp(-2n\\delta^2) = 1 - 2 \\exp(\\ln{|C|} - 2n\\delta^2)\\)."}, {"n": 4, "claim": "From the referenced remark, \\(\\ln{|C|} \\leq p \\ln{ (3B\\sqrt{p} / (\\delta / (2\\kappa))) }\\)."}, {"n": 5, "claim": "If we ignore the log term and assume \\(\\ln{|C|} \\leq p\\), then:"}, {"n": 6, "claim": "\\[\n2|C| \\exp(-2n\\delta^2) = 2\\exp(\\ln{|C|} - 2n\\delta^2) \\leq 2\\exp(p - 2p) = 2\\exp(-p).\n\\]\n\nSince we cannot drop the log term in \\(\\ln{|C|} \\leq p \\ln{ (3B\\sqrt{p} / (\\delta / (2\\kappa))) }\\), we set \\(\\delta = \\sqrt{\\frac{c_0 p \\max(1, \\ln{(\\kappa Bn)})}{n}}\\) with \\(c_0 = 36\\)."}, {"n": 7, "claim": "Then,\n\\[\n\\ln{|C|} - 2n\\delta^2 \\leq p \\ln\\!\\left(\\frac{6B \\kappa \\sqrt{p}}{\\delta}\\right) - 2n\\delta^2 \\leq p \\ln\\!\\left(\\frac{6B\\kappa \\sqrt{n}}{ \\sqrt{c_0 \\max(1, \\ln{(\\kappa Bn)})} }\\right) - 2n \\frac{c_0p}{n} \\ln(\\kappa Bn)\n\\leq p\\ln\\!\\left(B\\kappa \\sqrt{n}\\right) - 72 p \\ln(\\kappa Bn)\n\\leq p \\ln(B\\kappa n) - 72 p \\ln(B\\kappa n) \\leq -p,\n\\]\nsince \\(\\ln (B\\kappa n) \\geq 1\\) for large enough \\(n\\)."}, {"n": 8, "claim": "Therefore, with probability greater than \\(1 - O(e^{-p})\\), we have\n\\[\n|\\widehat{L}(\\theta) - L(\\theta)| \\leq 2\\delta = O\\!\\left(\\sqrt{\\frac{p}{n}\\max(1,\\ln(\\kappa Bn))}\\right).\n\\]"}]}}, {"local_id": "T4", "statement": "Suppose \\(\\phi\\) is \\(\\kappa\\)-Lipschitz, and \\(\\rho = L_2(P_n)\\). Then,\n\\[\n\\log N(\\epsilon, \\phi \\circ \\mathcal{F}, \\rho) \\le \\log N(\\epsilon / \\kappa, \\mathcal{F}, \\rho).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{C}\\) denote an \\(\\epsilon/\\kappa\\)-cover for \\(\\mathcal{F}\\). Then \\(\\phi \\circ \\mathcal{C}\\) is an \\(\\epsilon\\)-cover of \\(\\phi \\circ \\mathcal{F}\\):\n\\[\n\\rho(\\phi \\circ f', \\phi \\circ f) = \\sqrt{\\frac{1}{n} \\sum (\\phi(f'(z_i)) - \\phi(f(z_i)))^2} \\le \\sqrt{\\frac{1}{n} \\cdot \\kappa^2 \\sum(f'(z_i) - f(z_i))^2} \\le \\kappa \\cdot \\frac{\\epsilon}{\\kappa} = \\epsilon.\n\\]"}]}}, {"local_id": "T5", "statement": "Suppose that the hypothesis class \\(\\mathcal{H}\\) is finite and the loss function \\(\\ell\\) is bounded in \\([0,1]\\), i.e. \\(0 \\leq \\ell((x,y),h) \\leq 1\\). Then for all \\(\\delta\\) with \\(0 < \\delta < \\tfrac{1}{2}\\), with probability at least \\(1 - \\delta\\),\n\\[\n|L(h) - \\widehat{L}(h)| \\leq \\sqrt{\\frac{\\ln|\\mathcal{H}| + \\ln(2/\\delta)}{2n}} \\qquad \\forall h \\in \\mathcal{H}.\n\\]\nAs a corollary,\n\\[\nL(\\hat{h}) - L(h^{*}) \\leq \\sqrt{\\frac{2(\\ln|\\mathcal{H}| + \\ln(2/\\delta))}{n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "The proof proceeds in two steps: (1) use concentration inequalities to prove the bound for a fixed \\(h \\in \\mathcal{H}\\), then (2) apply a union bound across all \\(h \\in \\mathcal{H}\\). (Recall that if \\(E_1, \\dots, E_k\\) are a finite set of events, then \\(\\mathbb{P}(E_1 \\cup \\dots \\cup E_k) \\leq \\sum_{i=1}^k \\mathbb{P}(E_i)\\).)\n\nFix \\(\\epsilon > 0\\)."}, {"n": 2, "claim": "Applying Hoeffding's inequality to \\(\\ell((x^{(i)}, y^{(i)}), h)\\) with \\(a_i = 0\\), \\(b_i = 1\\):"}, {"n": 3, "claim": "\\[\n\\mathbb{P}\\left(|\\widehat{L}(h) - L(h)| \\geq \\epsilon\\right) \\leq 2\\exp\\left(-\\frac{2n^2\\epsilon^2}{n}\\right) = 2\\exp(-2n\\epsilon^2).\n\\]\nTo obtain a bound holding for all \\(h \\in \\mathcal{H}\\), apply the union bound with \\(E_h = \\{|\\widehat{L}(h) - L(h)| \\geq \\epsilon\\}\\):"}, {"n": 4, "claim": "\\[\n\\mathbb{P}\\left(\\exists h \\text{ s.t. } |\\widehat{L}(h) - L(h)| \\geq \\epsilon\\right) \\leq \\sum_{h \\in \\mathcal{H}} \\mathbb{P}\\left(|\\widehat{L}(h) - L(h)| \\geq \\epsilon\\right) \\leq 2|\\mathcal{H}|\\exp(-2n\\epsilon^2).\n\\]\nSetting \\(2|\\mathcal{H}|\\exp(-2n\\epsilon^2) = \\delta\\) gives\n\\[\n\\epsilon = \\sqrt{\\frac{\\ln|\\mathcal{H}| + \\ln(2/\\delta)}{2n}},\n\\]\nwhich proves the uniform bound."}, {"n": 5, "claim": "The excess risk bound follows by taking\n\\[\n\\epsilon = \\sqrt{\\frac{2(\\ln|\\mathcal{H}| + \\ln(2/\\delta))}{n}}\n\\]\nand using\n\\[\n\\mathbb{P}\\left(|L(\\hat{h}) - L(h^*)| \\geq \\epsilon\\right) \\leq \\mathbb{P}\\left(2\\sup_{h \\in \\mathcal{H}}|\\widehat{L}(h) - L(h)| \\geq \\epsilon\\right) \\leq 2|\\mathcal{H}|\\exp\\left(-\\frac{n\\epsilon^2}{2}\\right).\n\\]"}]}}], "target_local_id": "T3", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Generalization & Learnability", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch6_theorem_6_16__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 6.6. Consider any known data-dependent offset function \\( h(w, S_n) \\). Define the uniform convergence complexity of a function class \\( \\mathcal{G} \\) with offset \\( h \\) as\n\\[\n\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\sup_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})].\\tag{6.2}\n\\]\nThis quantity measures the one-sided expected uniform convergence of function class \\(\\mathcal{G}\\) with offset function \\(h(w, S_n)\\).\nWe note that\n\\[\n\\epsilon_{n}(\\mathcal{G},\\mathcal{D})=\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D}),\\qquad \\text{w i t h} h=0.\n\\]\nWe have the following generalization of Theorem 6.2, with a similar proof.\n\ndefinition 6.11. Consider a function class \\(\\mathcal{G} = \\{\\phi(w, Z) : w \\in \\Omega\\}\\), and let \\(h\\) be an offset function of the following form\n\\[\nh(w,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{i=1}^{n}h(w,Z_{i}),\\quad h(w,z)=h_{0}(w)+h_{1}(w,z).\\tag{6.3}\n\\]\nGiven \\( S_{n}=\\{Z_{1},\\ldots,Z_{n}\\} \\), the (one-sided) empirical Rademacher complexity of \\( \\mathcal{G} \\) with offset \\( h \\) decomposition (6.3) is defined as\n\\[\nR^{h}(\\mathcal{G},\\mathcal{S}_{n})=\\mathbb{E}_{\\sigma}\\sup_{w\\in\\Omega}\\left[\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}[\\phi(w,Z_{i})+0. 5h_{1}(w,Z_{i})]-0. 5h(w,\\mathcal{S}_{n})\\right],\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R^{h}(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nWe note that the standard Rademacher complexity can be regarded as a special case of the offset Rademacher complexity with \\( h(\\cdot) = h_0(\\cdot) = h_1(\\cdot) = 0 \\):\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})=R^{0}(\\mathcal{G},\\mathcal{S}_{n}),\\quad R_{n}(\\mathcal{G},\\mathcal{D})=R_{n}^{0}(\\mathcal{G},\\mathcal{D}).\n\\]\nIt should be pointed out that the decomposition of \\( h \\) in (6.3) may not be unique, and the offset Rademacher complexity relies on the specific decomposition used.\nAs shown in Example 6.10, we allow distribution dependent offset in the definition of uniform convergence complexity. We also allow distribution dependent offset in the definition of offset Rademacher complexity.\nThe following result shows that for some cases, offset Rademacher complexity can be obtained easily for some function classes.\n\ndefinition 6.17. Given a function \\( h(w, S_n) \\), we define\n\\[\n\\Delta_{n}h(w)=\\sup\\{n\\cdot|h(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n}^{\\prime})|: |\\mathcal{S}_{n}\\cap\\mathcal{S}_{n}^{\\prime}| =n-1\\}.\n\\]\n\ndefinition 3.8. We define\n\\[\n\\phi(w,z)=L\\left(f(w,x),y\\right)-L_{*}(x,y),\\tag{3.4}\n\\]\nfor \\( w \\in \\Omega \\) and \\( z = (x, y) \\in \\mathcal{Z} = \\mathcal{X} \\times \\mathcal{Y} \\), and a pre-chosen \\( L_{*}(x, y) \\) of \\( z = (x, y) \\) that does not depend on \\( w \\).\nFor training data \\( S_{n}=\\{Z_{i}=(X_{i},Y_{i}):i=1,\\ldots,n\\} \\), we define the training loss for \\( w\\in \\Omega \\) as\n\\[\n\\phi(w,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i}).\\tag{3.5}\n\\]\nMoreover, for a distribution \\(\\mathcal{D}\\) on \\(\\mathcal{Z}\\), we define the test loss for \\(w \\in \\Omega\\) as:\n\\[\n\\phi(w,\\mathcal{D})=\\mathbb{E}_{Z\\sim\\mathcal{D}}\\phi(w,Z).\\tag{3.6}\n\\]\nSince \\( L_{*}(x,y) \\) does not depend on \\( w \\), the ERM solution with respect to the loss \\( L(\\cdot) \\) is equivalent to the ERM solution with respect to \\( \\phi (w,\\cdot) \\). Therefore with the simplified notations, the approximate ERM method (3.3) is a special case of the following method:\n\\[\n\\phi(\\hat{w},\\mathcal{S}_{n})\\leq\\inf_{w\\in\\Omega}\\phi(w,\\mathcal{S}_{n})+\\epsilon^{\\prime}.\\tag{3.7}\n\\]\nIn general, we may simply take \\( L_{*}(x,y) = 0 \\) in (3.4). However, for some applications, we may choose a non-zero \\( L_{*}(x,y) \\) so that\n\\[\nL(f(w,x),y)-L_{*}(x,y)\n\\]\nhas a small variance. For least squares loss, this can be achieved with \\( L_{*}(x,y) = L(f_{*}(x),y) \\) where \\( f_{*}(x) \\) is the optimal prediction function that minimizes the test loss as shown in Example 3.9. The smaller variance, combined with Bernstein's inequality, implies better generalization bound (see Section 3.6 for more details).\n\ndefinition 8.1. Consider a loss function \\(\\phi(f, z): \\mathcal{F} \\times \\mathcal{Z} \\to \\mathbb{R}\\), and a model family \\(\\{\\mathcal{A}(\\theta, S_n): \\Theta \\times \\mathcal{Z}^n \\to \\mathcal{F}, n \\geq 0\\}\\). Consider \\(N \\geq n \\geq 0\\), and iid dataset \\(S_n \\subset S_N \\sim \\mathcal{D}^N\\). A model selection algorithm \\(\\bar{\\mathcal{A}}\\) maps \\(S_N\\) to \\(\\hat{\\theta} = \\hat{\\theta}(S_N) \\in \\Theta\\),\nand then train a model \\(\\hat{f} = \\mathcal{A}(\\hat{\\theta}(\\mathcal{S}_N), \\mathcal{S}_n) = \\bar{\\mathcal{A}}(\\mathcal{S}_N)\\). It satisfies an \\(\\epsilon_{n,N}(\\cdot, \\cdot)\\) oracle inequality if there exists \\(\\epsilon_{n,N}(\\theta, \\delta)\\), such that for all \\(\\delta \\in (0,1)\\), with probability at least \\(1 - \\delta\\) over \\(\\mathcal{S}_N\\):\n\\[\n\\phi(\\mathcal{A}(\\hat{\\theta}(\\mathcal{S}_{N}),\\mathcal{S}_{n}),\\mathcal{D})\\leq\\inf_{\\theta\\in\\Theta}[\\mathbb{E}_{\\mathcal{S}_{n}}\\phi(\\mathcal{A}(\\theta,\\mathcal{S}_{n}),\\mathcal{D})+\\epsilon_{n,N}(\\theta,\\delta)].\n\\]\nMore generally, a learning algorithm \\(\\bar{\\mathcal{A}}: S_N \\to \\mathcal{F}\\) is \\(\\epsilon_{n,N}(\\cdot, \\cdot)\\) adaptive to the model family \\(\\{\\mathcal{A}(\\theta, \\cdot): \\theta \\in \\Theta\\}\\) if there exists \\(\\epsilon_{n,N}(\\theta, \\delta)\\), such that for all \\(\\delta \\in (0,1)\\), with probability at least \\(1 - \\delta\\) over \\(S_N\\):\n\\[\n\\phi(\\bar{\\mathcal{A}}(\\mathcal{S}_{N}),\\mathcal{D})\\leq\\inf_{\\theta\\in\\Theta}\\left[\\mathbb{E}_{\\mathcal{S}_{n}}\\phi(\\mathcal{A}(\\theta,\\mathcal{S}_{n}),\\mathcal{D})+\\epsilon_{n,N}(\\theta,\\delta)\\right].\n\\]\nNote that we have used a slightly different notation \\(\\phi(f, Z)\\), instead of \\(\\phi(w, Z)\\) as in earlier chapters, to emphasize that in model selection, the prediction function \\(f(w, \\cdot)\\) from different models can be compared, but the parameter \\(w\\) of the functions may not be comparable when different models have different functional forms such as decision trees versus neural networks. Without causing confusion, one may consider \\(f\\) to be the function represented by \\(w\\), so that \\(\\phi(f, Z) = L(f(X), Y)\\) and \\(\\phi(w, Z) = L(f(w, X), Y)\\). Similar to Definition 3.8, we use the simplified notation\n\\[\n\\phi(f,\\mathcal{D})=\\mathbb{E}_{Z\\sim\\mathcal{D}}\\phi(f,Z),\\quad\\phi(f,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{Z\\in\\mathcal{S}_{n}}\\phi(f,Z).\n\\]\nThe concept adaptivity is more general than model selection, as the algorithm does not need to choose a specific model \\(\\mathcal{A}(\\theta,\\cdot)\\) indexed by \\(\\theta\\). For example, a commonly used method to achieve adaptivity is model averaging, where we take the average of several different model outputs \\(\\hat{f}_{\\theta_j} = \\mathcal{A}(\\theta_j,\\mathcal{S}_n)\\) as\n\\[\n\\hat{f}_{\\mathrm{avg}}(x)=\\frac{1}{k}\\sum_{j=1}^{k}\\hat{f}_{\\theta_{j}}(x).\n\\]\nIf different models have the same functional form, with a vector model parameter \\( w \\in \\mathbb{R}^d \\): \\( \\hat{f}_{\\theta_j}(x) = f(\\hat{w}_j, x) \\). Then one may also average the model parameters as follows:\n\\[\n\\hat{w}_{\\mathrm{avg}}=\\frac{1}{k}\\sum_{j=1}^{k}\\hat{w}_{j}.\n\\]\nIn general, the training data \\( S_{n} \\) is a subset of \\( S_{N} \\), and we allow \\( n < N \\) in order to analyze validation methods which are commonly used in practice. In addition to the large probability bounds in Definition 8.1, one may also derive bounds that hold for expectation over \\( S_{N} \\).\n\ndefinition 6.3. Given \\(S_{n}=\\{Z_{1},\\ldots,Z_{n}\\}\\), the (one-sided) empirical Rademacher complexity of \\(\\mathcal{G}\\) is defined as\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n}) = \\mathbb{E}_{\\sigma}\\sup_{w\\in \\Omega}\\frac{1}{n}\\sum_{i = 1}^{n}\\sigma_{i}\\phi (w,Z_{i}),\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nThe following result shows that the quantity \\(\\epsilon_{n}(\\mathcal{G},\\mathcal{D})\\) can be upper bounded by Rademacher complexity. It follows that an average oracle inequality can be obtained using Rademacher complexity. The proof employs the symmetrization technique, which was also used in Chapter 4 to obtain uniform convergence bounds from empirical covering numbers.\n\nequation (6.1). The approximate regularized ERM method is to find \\( \\hat{w} \\in \\Omega \\) such that, for some \\( \\epsilon' \\geq 0 \\),\n\\[\n\\phi(\\hat{w},\\mathcal{S}_{n})+h(\\hat{w},\\mathcal{S}_{n})\\leq\\inf_{w\\in\\Omega}[\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})]+\\epsilon'.\\tag{6.1}\n\\]\nWhen \\(h = 0\\), this reduces to the plain approximate ERM method.\n\nequation (8.1). Let \\(q(\\theta)\\geq 0\\) for \\(\\theta = 1,2,\\ldots\\) satisfy\n\\[\n\\sum_{\\theta=1}^{\\infty} q(\\theta) \\leq 1. \\tag{8.1}\n\\]\n\nequation 8.3. Consider the model selection algorithm that, given \\(\\mathcal{S}_{n}\\), chooses \\(\\hat{\\theta}=\\hat{\\theta}(\\mathcal{S}_{n})\\in\\Theta\\) and \\(\\hat{f}=\\mathcal{A}(\\hat{\\theta},\\mathcal{S}_{n})\\in\\mathcal{F}(\\hat{\\theta})\\) as a \\(\\tilde{\\epsilon}\\)-approximate minimizer of \\(\\phi(f,\\mathcal{S}_{n})+\\tilde{R}(\\theta,f,\\mathcal{S}_{n})\\) over \\(\\theta\\) and \\(f\\in\\mathcal{F}(\\theta)\\):\n\\[\n\\phi(\\hat{f},\\mathcal{S}_{n})+\\tilde{R}(\\hat{\\theta},\\hat{f},\\mathcal{S}_{n})\\leq\\inf_{\\theta,f\\in\\mathcal{F}(\\theta)}\\left[\\phi(f,\\mathcal{S}_{n})+\\tilde{R}(\\theta,f,\\mathcal{S}_{n})\\right]+\\tilde{\\epsilon}.\\tag{8.3}\n\\]\n\nexample 2.14. Consider a bounded random variable: \\( X_{1} \\in [\\alpha, \\beta] \\). Then \\( X_{1} \\) is sub-Gaussian with \\( b = (\\beta - \\alpha)^{2}/4 \\).\nThe tail probability inequality of Theorem 2.12 can also be expressed in a different form. Consider \\( \\delta \\in (0,1) \\) such that \\( \\delta = \\exp(-t) \\), we have \\( t = \\ln(1/\\delta) \\). This means that we can alternatively express the first bound of Theorem 2.12 as follows. With probability at least \\( 1 - \\delta \\), we have\n\\[\n\\bar{X}_{n}<\\mu+\\sqrt{\\frac{2 b\\ln(1/\\delta)}{n}}.\n\\]\nThis form is often preferred in the theoretical analysis of machine learning algorithms.", "theorems": [{"local_id": "T1", "statement": "Consider \\( n \\) independent random variables \\( X_{1},\\ldots,X_{n} \\), and a real-valued function \\( f(X_{1},\\ldots,X_{n}) \\) that satisfies the following inequality\n\\[\n\\sup_{x_{1},\\dots,x_{n},x_{i}^{\\prime}}|f(x_{1},\\dots,x_{n})-f(x_{1},\\dots,x_{i-1},x_{i}^{\\prime},x_{i+1},\\dots,x_{n})|\\leq c_{i}\n\\]\nfor all \\(1 \\leq i \\leq n\\). Then for all \\(\\epsilon > 0\\):\n\\[\n\\Pr\\left[f\\left(X_{1},\\dots,X_{n}\\right)\\geq\\mathbb{E}f\\left(X_{1},\\dots,X_{n}\\right)+\\epsilon\\right]\\leq\\exp\\left(\\frac{-2\\epsilon^{2}}{\\sum_{i=1}^{n}c_{i}^{2}}\\right).\n\\]\nSimilarly:\n\\[\n\\Pr\\left[f\\left(X_{1},\\dots,X_{n}\\right)\\leq\\mathbb{E}f\\left(X_{1},\\dots,X_{n}\\right)-\\epsilon\\right]\\leq\\exp\\left(\\frac{-2\\epsilon^{2}}{\\sum_{i=1}^{n}c_{i}^{2}}\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( X_{k}^{l}=\\{X_{k},\\ldots,X_{l}\\} \\). Consider \\( X_{1}^{n} \\), and for some \\( 1\\leq k\\leq n \\), we use the simplified notation \\( \\tilde{X}_1^n=\\{X_1,\\dots,X_{k-1},\\tilde{X}_k,X_{k+1},X_n\\} \\)."}, {"n": 2, "claim": "Then we have\n\\[\n\\left|\\mathbb{E}_{X_{k+1}^{n}}f\\left(X_{1}^{n}\\right)-\\mathbb{E}_{X_{k+1}^{n}}f\\left(\\tilde{X}_{1}^{n}\\right)\\right|\\leq c_{k}.\n\\]\nWe now consider \\(\\mathbb{E}_{X_{k + 1}^n}f(X_1^n)\\) as a random variable depending on \\(X_{k}\\), conditioned on \\(X_{1}^{k - 1}\\)."}, {"n": 3, "claim": "It follows from derivation of the Chernoff bound that we have the following logarithmic moment generating function estimate (see Example 2.14):"}, {"n": 4, "claim": "\\[\n\\ln\\mathbb{E}_{X_{k}}\\exp\\left[\\lambda\\mathbb{E}_{X_{k+1}^{n}}f\\left(X_{1}^{n}\\right)\\right]\\leq\\lambda\\mathbb{E}_{X_{k}^{n}}f\\left(X_{1}^{n}\\right)+\\lambda^{2}c_{k}^{2}/8.\n\\]\nNow we may exponentiate the above inequality, and take expectation with respect to \\( X_1^{k-1} \\) to obtain\n\\[\n\\mathbb{E}_{X_{1}^{k}}\\exp [\\lambda\\mathbb{E}_{X_{k+1}^{n}}f(X_{1}^{n})]\\leq\\mathbb{E}_{X_{1}^{k-1}}\\exp [\\lambda\\mathbb{E}_{X_{k}^{n}}f(X_{1}^{n})+\\lambda^{2}c_{k}^{2}/8].\n\\]\nBy taking logarithm, we obtain\n\\[\n\\ln\\mathbb{E}_{X_{1}^{k}}\\exp\\left[\\lambda\\mathbb{E}_{X_{k+1}^{n}}f\\left(X_{1}^{n}\\right)\\right]\\leq\\ln\\mathbb{E}_{X_{1}^{k-1}}\\exp\\left[\\lambda\\mathbb{E}_{X_{k}^{n}}f\\left(X_{1}^{n}\\right)\\right]+\\lambda^{2}c_{k}^{2}/8.\n\\]\nBy summing from \\( k = 1 \\) to \\( k = n \\), and canceling redundant terms, we obtain\n\\[\n\\ln\\mathbb{E}_{X_{1}^{n}}\\exp\\left[\\lambda f\\left(X_{1}^{n}\\right)\\right]\\leq\\lambda\\mathbb{E}_{X_{1}^{n}}f\\left(X_{1}^{n}\\right)+\\lambda^{2}\\sum_{k=1}^{n}c_{k}^{2}/8.\\tag{6.4}\n\\]\nLet\n\\[\n\\delta=\\Pr\\left[f\\left(X_{1}^{n}\\right)\\geq\\mathbb{E}_{X_{1}^{n}}f\\left(X_{1}^{n}\\right)+\\epsilon\\right].\n\\]\nUsing Markov's inequality, we have for all positive \\(\\lambda\\)\n\\[\n\\delta\\leq e^{-\\lambda\\left(\\mathbb{E}_{X_{1}^{n}}f\\left(X_{1}^{n}\\right)+\\epsilon\\right)}\\mathbb{E}_{X_{1}^{n}}e^{\\lambda f\\left(X_{1}^{n}\\right)}\\leq\\exp\\left[-\\lambda\\epsilon+\\frac{\\lambda^{2}}{8}\\sum_{k=1}^{n}c_{k}^{2}\\right].\n\\]\nSince \\(\\lambda > 0\\) is arbitrary, we conclude that\n\\[\n\\ln\\delta\\leq\\inf_{\\lambda\\geq 0}\\left[\\frac{\\lambda^{2}}{8}\\sum_{k=1}^{n}c_{k}^{2}-\\lambda\\epsilon\\right]= -\\frac{2\\epsilon^{2}}{\\sum_{k=1}^{n}c_{k}^{2}}.\n\\]\nThis implies the theorem."}]}}, {"local_id": "T2", "statement": "Assume that for some \\(M \\geq 0\\):\n\\[\n\\sup_{w\\in\\Omega}\\left[\\sup_{z,z^{\\prime}}[\\phi(w,z)-\\phi(w,z^{\\prime})]+\\Delta_{n}h(w)\\right]\\leq M.\n\\]\nThen the approximate ERM method (6.1) satisfies the following oracle inequality. With probability at least \\( 1 - \\delta - \\delta' \\):\n\\[\n\\begin{array}{l}\\phi(\\hat{w},\\mathcal{D})\\leq\\inf_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}h(w,\\mathcal{S}_{n})+\\Delta_{n}h(w)\\sqrt{\\frac{\\ln\\left(1/\\delta^{\\prime}\\right)}{2 n}}\\right]\\\\ +\\epsilon^{\\prime}+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+2 M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}.\\\\ \\end{array}\n\\]\nIf \\( h(\\cdot) \\) has the decomposition (6.3), then\n\\[\n\\begin{array}{l}\\phi(\\hat{w},\\mathcal{D})\\leq\\inf_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}h(w,\\mathcal{S}_{n})+\\Delta_{n}h(w)\\sqrt{\\frac{\\ln(1/\\delta^{\\prime})}{2 n}}\\right]\\\\ +\\epsilon^{\\prime}+2 R_{n}^{h}(\\mathcal{G},\\mathcal{D})+2 M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}.\\\\ \\end{array}\n\\]", "proof": {"steps": [{"n": 1, "claim": "Given any \\( w \\in \\Omega \\), from the Chernoff bound, we know that with probability \\( 1 - \\delta / 2 \\),\n\\[\n\\phi(w,\\mathcal{S}_{n})\\leq\\phi(w,\\mathcal{D})+M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}.\\tag{6.5}\n\\]\nMoreover, from McDiarmid's inequality, we know that with probability \\(1 - \\delta'\\),\n\\[\nh\\left(w,\\mathcal{S}_{n}\\right)\\leq\\mathbb{E}_{\\mathcal{S}_{n}}h\\left(w,\\mathcal{S}_{n}\\right)+\\Delta_{n}h(w)\\sqrt{\\frac{\\ln\\left(1/\\delta^{\\prime}\\right)}{2 n}}.\\tag{6.6}\n\\]\nTaking the union bound with the inequality of Corollary 6.19 at \\(\\delta /2\\), we obtain at probability \\(1 - \\delta -\\delta^{\\prime}\\)\n\\[\n\\begin{array}{l}\\phi(\\hat{w},\\mathcal{D})\\leq\\phi(\\hat{w},\\mathcal{S}_{n})+h(\\hat{w},\\mathcal{S}_{n})+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}\\\\ \\leq\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})+\\epsilon^{\\prime}+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}\\\\ \\leq\\phi(w,\\mathcal{D})+h(w,\\mathcal{S}_{n})+\\epsilon^{\\prime}+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+2 M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}\\\\ \\leq\\phi(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}h(w,\\mathcal{S}_{n})+\\Delta_{n}h(w)\\sqrt{\\frac{\\ln(1/\\delta^{\\prime})}{2 n}}\\\\ +\\epsilon^{\\prime}+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+2 M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}.\\\\ \\end{array}\n\\]\nIn the above derivation, the first inequality used Corollary 6.19."}, {"n": 2, "claim": "The second inequality used (6.1). The third inequality used (6.5)."}, {"n": 3, "claim": "The last inequality used (6.6). This proves the first desired bound."}, {"n": 4, "claim": "The second desired bound employs Theorem 6.14. \\(\\square\\)"}]}}, {"local_id": "T3", "statement": "Given any non-negative function \\( h(x) \\geq 0 \\), and a set \\( S \\subset \\mathbb{R} \\), we have\n\\[\n\\operatorname*{Pr}(\\bar{X}_{n}\\in S)\\leq\\frac{\\mathbb{E}h(\\bar{X}_{n})}{\\inf_{x\\in S}h(x)}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\( h(x) \\) is non-negative, we have\n\\[\n\\mathbb{E}h\\left(\\bar{X}_{n}\\right)\\geq\\mathbb{E}_{\\bar{X}_{n}\\in S}h\\left(\\bar{X}_{n}\\right)\\geq\\mathbb{E}_{\\bar{X}_{n}\\in S}h_{S}=\\Pr\\left(\\bar{X}_{n}\\in S\\right)h_{S},\n\\]\nwhere \\( h_S = \\inf_{x \\in S} h(x) \\). This leads to the desired bound."}]}}, {"local_id": "T4", "statement": "Assume that for some \\(M \\geq 0\\):\n\\[\n\\sup_{w\\in\\Omega}\\left[\\sup_{z,z^{\\prime}}[\\phi(w,z)-\\phi(w,z^{\\prime})]+\\Delta_{n}h(w)\\right]\\leq M.\n\\]\nThen with probability at least \\(1 - \\delta\\): for all \\(w \\in \\Omega\\)\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(1/\\delta)}{2 n}}.\n\\]\nMoreover, assume that the decomposition (6.3) holds, then with probability at least \\(1 - \\delta\\): for all \\(w \\in \\Omega\\),\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})+2 R_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(1/\\delta)}{2 n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Consider \\( \\mathcal{S}_n = \\{Z_1, \\ldots, Z_n\\} \\) and \\( \\mathcal{S}_n' = \\{Z_1, \\ldots, Z_{i-1}, Z_i', Z_{i+1}, \\ldots, Z_n\\} \\)."}, {"n": 2, "claim": "Let \\( f(\\mathcal{S}_n) = \\sup_{w \\in \\Omega} [\\phi(w, \\mathcal{D}) - \\phi(w, \\mathcal{S}_n) - h(w, \\mathcal{S}_n)] \\)."}, {"n": 3, "claim": "For simplicity, we assume that the sup can be achieved at \\( \\hat{w} \\) as\n\\[\n\\hat{w}=\\arg\\max_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})].\n\\]\nThen\n\\[\n\\begin{array}{l}f\\left(\\mathcal{S}_{n}\\right)-f\\left(\\mathcal{S}_{n}^{\\prime}\\right)\\\\ =\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n})-h(\\hat{w},\\mathcal{S}_{n})\\right]-\\sup_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n}^{\\prime})-h(w,\\mathcal{S}_{n}^{\\prime})\\right]\\\\ \\leq\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n})-h(\\hat{w},\\mathcal{S}_{n})\\right]-\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n}^{\\prime})-h(\\hat{w},\\mathcal{S}_{n}^{\\prime})\\right]\\\\ \\leq\\frac{1}{n}[\\phi(\\hat{w},Z_{i}^{\\prime})-\\phi(\\hat{w},Z_{i})+\\Delta_{n}h(\\hat{w})]\\leq M/n.\\\\ \\end{array}\n\\]\nSimilarly, \\( f(\\mathcal{S}_n') - f(\\mathcal{S}_n) \\leq M / n \\)."}, {"n": 4, "claim": "Therefore we may take \\( c_i = M / n \\) in Theorem 6.16, which implies the first desired result."}, {"n": 5, "claim": "The second bound follows from the estimate \\( \\epsilon_n^h (\\mathcal{G},\\mathcal{D}) \\leq 2R_n^h (\\mathcal{G},\\mathcal{D}) \\) of Theorem 6.14."}]}}, {"local_id": "T5", "statement": "Consider offset function of (6.3). We have\n\\[\n\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})\\leq 2 R_{n}^{h}(\\mathcal{G},\\mathcal{D}).\n\\]\nConsequently, the approximate regularized ERM method of (6.1) satisfies\n\\[\n\\mathbb{E}_{\\mathcal{S}_{n}}\\phi(\\hat{w},\\mathcal{D})\\leq\\inf_{w\\in\\Omega}[\\phi(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}h(w,\\mathcal{S}_{n})]+\\epsilon^{\\prime}+2 R_{n}^{h}(\\mathcal{G},\\mathcal{D}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{S}_n' = \\{Z_1', \\ldots, Z_n'\\} \\sim \\mathcal{D}^n\\) be \\(n\\) iid samples from \\(\\mathcal{D}\\) that are independent of \\(\\mathcal{S}_n\\)."}, {"n": 2, "claim": "We have\n\\[\n\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\sup_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})]\n\\]\n\\[\n=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\sup_{w\\in\\Omega}\\left[\\mathbb{E}_{\\mathcal{S}_{n}^{\\prime}\\sim\\mathcal{D}^{n}}\\phi(w,\\mathcal{S}_{n}^{\\prime})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})\\right]\n\\]\n\\[\n\\leq\\mathbb{E}_{\\left(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime}\\right)\\sim\\mathcal{D}^{2 n}}\\sup_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{S}_{n}^{\\prime})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})\\right]\n\\]\n\\[\n\\begin{array}{l}=\\mathbb{E}_{\\left(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime}\\right)\\sim\\mathcal{D}^{2n}}\\sup_{w\\in\\Omega}\\left[\\left[\\phi(w,\\mathcal{S}_{n}^{\\prime})+0. 5h_{1}(w,\\mathcal{S}_{n}^{\\prime})\\right]-0. 5h(w,\\mathcal{S}_{n}^{\\prime})\\right.\\\\ -\\left[\\phi(w,\\mathcal{S}_{n})+0. 5h_{1}(w,\\mathcal{S}_{n})\\right]-0. 5h(w,\\mathcal{S}_{n})]\\\\ \\end{array}\n\\]\n\\[\n\\begin{array}{l}\\stackrel{(a)}{=}\\mathbb{E}_{\\left(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime}\\right)\\sim\\mathcal{D}^{2n}}\\mathbb{E}_{\\sigma}\\sup_{w\\in\\Omega}\\frac{1}{n}\\sum_{i=1}^{n}\\left[\\sigma_{i}\\left(\\phi\\left(w,Z_{i}^{\\prime}\\right)+0. 5h_{1}\\left(w,Z_{i}^{\\prime}\\right)\\right)-0. 5h(w,\\mathcal{S}_{n}^{\\prime})\\right.\\\\ \\left.-\\sigma_{i}\\left(\\phi\\left(w,Z_{i}\\right)+0. 5h_{1}\\left(w,Z_{i}\\right)\\right)-0. 5h\\left(w,\\mathcal{S}_{n}\\right)\\right]\\\\ \\end{array}\n\\]\n\\[\n\\begin{array}{l}\\leq\\mathbb{E}_{\\left(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime}\\right)\\sim\\mathcal{D}^{2n}}\\mathbb{E}_{\\sigma}\\sup_{w\\in\\Omega}\\frac{1}{n}\\sum_{i=1}^{n}\\left[\\sigma_{i}\\left(\\phi\\left(w,Z_{i}^{\\prime}\\right)+0. 5h_{1}\\left(w,Z_{i}^{\\prime}\\right)\\right)-0. 5h\\left(w,\\mathcal{S}_{n}^{\\prime}\\right)\\right]\\\\ +\\mathbb{E}_{(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime})\\sim\\mathcal{D}^{2n}}\\mathbb{E}_{\\sigma}\\sup_{w\\in\\Omega}\\frac{1}{n}\\sum_{i=1}^{n}[-\\sigma_{i}(\\phi(w,Z_{i})+0. 5h_{1}(w,Z_{i})-0. 5h(w,\\mathcal{S}_{n})]\\\\ \\end{array}\n\\]\n\\[\n=\\mathbb{E}_{(\\mathcal{S}_{n},\\mathcal{S}_{n}^{\\prime})\\sim\\mathcal{D}^{2 n}}[R^{h}(\\mathcal{G},\\mathcal{S}_{n})+R^{h}(\\mathcal{G},\\mathcal{S}_{n}^{\\prime})]=2 R_{n}^{h}(\\mathcal{G},\\mathcal{D}).\n\\]\nIn the above derivation, \\((a)\\) used the fact that \\(\\sigma_{i}(\\phi (w,Z_{i}^{\\prime}) + 0.5h_{1}(w,Z_{i}^{\\prime})) - \\sigma_{i}(\\phi (w,Z_{i}) + 0.5h_{1}(w,Z_{i}))\\) and \\((\\phi (w,Z_i^{\\prime}) + 0.5h_1(w,Z_i^{\\prime})) - (\\phi (w,Z_i) + 0.5h_1(w,Z_i))\\) have the same distributions."}]}}], "target_local_id": "T1", "topic_domain": "Probability & Concentration", "topic_subtopic": "Functional & Supremum Concentration", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch7_theorem_7_2__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\(\\triangle_{n}(\\mathcal{C})=\\operatorname*{sup}_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}\\). We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).\n\nLemma 15.1. Let \\(\\xi, \\nu\\) - random variables. Assume that\n\\[\\mathbb{P}(\\nu \\geq t) \\leq \\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma \\geq 1\\), \\(t \\geq 0\\), and \\(\\gamma > 0\\). Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi) \\leq \\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x) = (x - a)_+\\). Then\n\\[\\mathbb{P}(\\xi \\geq t) \\leq \\Gamma \\cdot e \\cdot e^{-\\gamma t}.\\]", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T2", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. copies of a random variable \\(X\\) with \\(0\\le X\\le 1\\) and \\(\\mu=\\mathbb{E}X\\), and let \\(0 0\\)\n\\[\\begin{array}{ r c l }{\\displaystyle\\mathbb{P}\\left(\\sum_{i=1}^{n}X_{i}\\geq n(\\mu+t)\\right)}&{\\leq}&{e^{-\\lambda n(\\mu+t)}\\mathbb{E}e^{\\lambda\\sum X_{i}}}\\\\ &&{=}&{e^{-\\lambda n(\\mu+t)}\\left(\\mathbb{E}e^{\\lambda X}\\right)^{n}}\\\\ &&{\\leq}&{e^{-\\lambda n(\\mu+t)}\\left(1-\\mu+\\mu e^{\\lambda}\\right)^{n}}\\end{array}\\]\nTake derivative w.r.t. 入:"}, {"n": 2, "claim": "\\[\\begin{array}{ c }{{-n(\\mu+t)e^{-\\lambda n(\\mu+t)}(1-\\mu+\\mu e^{\\lambda})^{n}+n(1-\\mu+\\mu e^{\\lambda})^{n-1}\\mu e^{\\lambda}e^{-\\lambda n(\\mu+t)}=0}}\\\\ {{{}}}\\\\ {{-(\\mu+t)(1-\\mu+\\mu e^{\\lambda})+\\mu e^{\\lambda}=0}}\\\\ {{{}}}\\\\ {{e^{\\lambda}=\\displaystyle\\frac{(1-\\mu)(\\mu+t)}{\\mu(1-\\mu-t)}.}}\\end{array}\\]\nSubstituting,\n\\[\\begin{array}{ r c l }{\\mathbb{P}\\left(\\displaystyle\\sum_{i=1}^{n}X_{i}\\geq n(\\mu+t)\\right)}&{\\leq}&{\\displaystyle\\left(\\left(\\frac{\\mu(1-\\mu-t)}{(1-\\mu)(\\mu+t)}\\right)^{\\mu+t}\\left(1-\\mu+\\frac{(1-\\mu)(\\mu+t)}{1-\\mu-t}\\right)\\right)^{n}}\\\\ &{=}&{\\displaystyle\\left(\\left(\\frac{\\mu}{\\mu+t}\\right)^{\\mu+t}\\left(\\frac{1-\\mu}{1-\\mu-t}\\right)^{1-\\mu-t}\\right)^{n}}\\\\ &{=}&{\\displaystyle\\exp\\left(-n\\left((\\mu+t)\\log\\frac{\\mu+t}{\\mu}+(1-\\mu-t)\\log\\frac{1-\\mu-t}{1-\\mu}\\right)\\right),}\\end{array}\\]\ncompleting the proof."}]}}, {"local_id": "T3", "statement": "Let \\(x=(x_{1},\\ldots,x_{n}),x^{\\prime}=(x_{1}^{\\prime},\\ldots,x_{n}^{\\prime})\\) . If for functions \\(\\varphi_{1}(x,x^{\\prime}),\\varphi_{2}(x,x^{\\prime}),\\varphi_{3}(x,x^{\\prime})\\)\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\varphi_{1}(x,x^{\\prime})\\geq\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma e^{-\\gamma t}}\\end{array}\\]\nthen\n\\[\\begin{array}{ r }{\\mathbb{P}\\left(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}(x,x^{\\prime})\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}(x,x^{\\prime})+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}(x,x^{\\prime})\\cdot t}\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.}\\end{array}\\]\n(i.e. if the inequality holds, then it holds with averaging over one of the copies)", "proof": {"steps": [{"n": 1, "claim": "First, note that \\(\\begin{array}{ r }{\\sqrt{a b}=\\operatorname*{inf}_{\\delta>0}(\\delta a+\\frac{b}{4\\delta})}\\end{array}\\) with \\(\\begin{array}{ r }{\\delta_{*}=\\sqrt{\\frac{b}{4 a}}}\\end{array}\\) achieving the infima."}, {"n": 2, "claim": "Hence,\n\\[\\begin{array}{ c }{{\\{\\varphi_{1}\\geq\\varphi_{2}+\\sqrt{\\varphi_{3}t}\\}=\\{\\exists\\delta>0,\\varphi_{1}\\geq\\varphi_{2}+\\delta\\varphi_{3}+\\displaystyle\\frac{t}{4\\delta}\\}}}\\\\ {{=\\{\\exists\\delta>0,(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta\\geq t\\}}}\\\\ {{=\\{\\underset{\\underset{\\nu}{\\operatorname*{sup}}}{\\operatorname*{sup}}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta\\geq t\\}}}\\end{array}\\]\nand similarly\n\\[\\big\\{\\mathbb{E}_{x^{\\prime}}\\varphi_{1}\\geq\\mathbb{E}_{x^{\\prime}}\\varphi_{2}+\\sqrt{\\mathbb{E}_{x^{\\prime}}\\varphi_{3}t}\\big\\}=\\underset{\\xi}{\\underbrace{\\{\\operatorname*{sup}(\\mathbb{E}_{x^{\\prime}}\\varphi_{1}-\\mathbb{E}_{x^{\\prime}}\\varphi_{2}-\\delta\\mathbb{E}_{x^{\\prime}}\\varphi_{3})4\\delta}}\\geq t\\big\\}.\\]\nBy assumption, \\(\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\) ."}, {"n": 3, "claim": "We want to prove \\(\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\) ."}, {"n": 4, "claim": "By the previous lemma, we only need to check whether \\(\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\)\n\\[\\begin{array}{ l }{\\displaystyle\\xi=\\operatorname*{sup}_{\\delta>0}\\mathbb{E}_{x^{\\prime}}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle\\quad\\leq\\mathbb{E}_{x^{\\prime}}\\operatorname*{sup}_{\\delta>0}(\\varphi_{1}-\\varphi_{2}-\\delta\\varphi_{3})4\\delta}\\\\ {\\displaystyle=\\mathbb{E}_{x^{\\prime}}\\nu}\\end{array}\\]\nThus,\n\\[\\phi(\\xi)\\leq\\phi(\\mathbb{E}_{x^{\\prime}}\\nu)\\leq\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)\\]\nby Jensen's inequality (\\(\\phi\\) is convex)."}, {"n": 5, "claim": "Hence,\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\mathbb{E}_{x^{\\prime}}\\phi(\\nu)=\\mathbb{E}\\phi(\\nu).\\]"}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T2", "topic_domain": "Probability & Concentration", "topic_subtopic": "Distributions, Tails & Moments", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch9_theorem_9_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nDenote \\[\\triangle_{n}(\\mathcal{C})=\\sup_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}.\\] We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\nLet \\(\\mathcal{F}=\\{f:\\mathcal{X}\\mapsto\\mathbb{R}\\}\\). For \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T2", "statement": "Setup. Fix \\(f_1,\\dots,f_d:\\mathcal{X}\\to\\mathbb{R}\\) and let \\(\\mathcal{C}=\\left\\{\\left\\{x:\\sum_{k=1}^{d}\\alpha_k f_k(x)>0\\right\\}:\\alpha_1,\\dots,\\alpha_d\\in\\mathbb{R}\\right\\}\\).\n\nThen \\(VC(\\mathcal{C})\\le d\\).", "proof": {"steps": [{"n": 1, "claim": "Observation: For any \\(\\{x_{1},\\dots,x_{d+1}\\}\\) if we cannot shatter \\(\\{x_{1},\\dots,x_{d+1}\\}\\longleftrightarrow\\exists I\\subseteq\\{1\\dots d+1\\}\\) s.t. we cannot pick out \\(\\{x_{i},i\\in I\\}\\) ."}, {"n": 2, "claim": "If we can pick out \\(\\{x_{i},i\\in I\\}\\) , then for some \\(C\\in{\\mathcal{C}}\\) there are \\(\\alpha_{1},\\ldots,\\alpha_{d}\\) s.t."}, {"n": 3, "claim": "\\(\\textstyle\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x)>0\\) for \\(i \\in I\\) and \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x)\\le 0}\\end{array}\\) for \\(i \\notin I\\)."}, {"n": 4, "claim": "Denote\n\\[\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{1}),\\ldots,\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{d+1})\\right)=F(\\alpha)\\in\\mathbb{R}^{d+1}.\\]\nBy linearity,\n\\[F(\\alpha)=\\sum_{k=1}^{d}\\alpha_{k}\\left(f_{k}(x_{1}),\\ldots,f(x_{d+1})\\right)=\\sum_{k=1}^{d}\\alpha_{k}F_{k}\\subseteq H\\subset\\mathbb{R}^{d+1}\\]\nand H is a d-dim subspace."}, {"n": 5, "claim": "Hence, \\(\\exists\\phi\\neq 0,\\phi\\cdot h=0,\\forall h\\in H\\) (\\(\\phi\\) orthogonal to H)."}, {"n": 6, "claim": "Let \\(I=\\{i:\\phi_{i}>0\\}\\) where \\(\\phi=\\left(\\phi_{1},\\ldots,\\phi_{d+1}\\right)\\) ."}, {"n": 7, "claim": "If \\(I=\\emptyset\\) then take \\(-\\phi\\) instead of \\(\\phi\\) so that \\(\\phi\\) has positive coordinates.\nClaim: We cannot pick out \\(\\{x_{i},i\\in I\\}\\) .Suppose we can: then \\(\\exists\\alpha_{1},\\dotsc,\\alpha_{d}\\) s.t. \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})>0}\\end{array}\\) for \\(i\\in I\\) and \\(\\begin{array}{ r }{\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\le 0}\\end{array}\\) for \\(i \\not \\in I\\). But \\(\\phi\\cdot F(\\alpha)=0\\) and so\n\\[\\phi_{1}\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{1})+\\ldots+\\phi_{d+1}\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{d+1})=0 .\\]\nHence,\n\\[\\sum_{i\\in I}\\underbrace{\\phi_{i}\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\right)}_{>0}=\\sum_{i\\notin I}\\underbrace{(-\\phi_{i})}_{\\geq 0}\\underbrace{\\left(\\sum_{k=1}^{d}\\alpha_{k}f_{k}(x_{i})\\right)}_{\\leq 0}.\\]\nContradiction."}]}}, {"local_id": "T3", "statement": "The number \\(\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\) of subsets picked out by C is bounded by the number of subsets shattered by C.", "proof": {"steps": [{"n": 1, "claim": "Without loss of generality, we restrict C to \\({\\mathcal{C}}: =\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}\\) , and we have \\(\\operatorname{card}({\\mathcal{C}})=\\) \\(\\Delta_{n}({\\mathcal{C}},x_{1},\\cdots,x_{n})\\)\nWe will say that C is hereditary if and only if whenever \\(B\\subseteq C\\in{\\mathcal{C}},B\\in{\\mathcal{C}}\\) .If C is hereditary, then every \\(C\\in{\\mathcal{C}}\\) is shattered by C,and the lemma is obvious."}, {"n": 2, "claim": "Otherwise,we will transform \\({\\mathcal{C}}\\to{\\mathcal{C}}^{\\prime}\\) ,hereditary, without changing the cardinality of C and without increasing the number of shattered subsets."}, {"n": 3, "claim": "Define the operators \\(T_{i}\\) for \\(i=1,\\cdots,n\\) as the following,\n\\[\\begin{array}{ r c l }{T_{i}(C)}&{=}&{\\left\\{\\begin{array}{ l l }{C-\\{x_{i}\\}}&{\\mathrm{~i f~}C-\\{x_{i}\\}\\mathrm{~i s~n o t~i n~}\\mathcal{C}}\\\\ {C}&{\\mathrm{~o t h e r w i s e}}\\end{array}\\right.}\\\\ {T_{i}(\\mathcal{C})}&{=}&{\\{T_{i}(C):C\\in\\mathcal{C}\\}.}\\end{array}\\]\nIt follows that card \\(T_{i}({\\mathcal{C}})=\\operatorname{card}{\\mathcal{C}}\\) Moreover, every \\(A\\subseteq\\{x_{1},\\cdots,x_{n}\\}\\) that is shattered by \\(T_{i}(\\mathcal{C})\\) is also shattered by \\({\\mathcal{C}}.{\\mathrm{~I f~}}x_{i}\\notin A .\\) ,then \\(\\forall C\\in\\mathcal{C},A\\bigcap C=A\\bigcap T_{i}(C)\\) , thus C and \\(T_{i}(\\mathcal{C})\\) both or neither shatter A."}, {"n": 4, "claim": "On the other hand, if \\(x_{i}\\in A\\) and A is shattered by \\(T_{i}(\\mathcal{C})\\) , then \\(\\forall B\\subseteq A,\\exists C\\in{\\mathcal{C}}\\) ,such that \\(B\\bigcup\\{x_{i}\\}=A\\bigcap T_{i}(C)\\) This means that \\(x_{i}\\in T_{i}(C)\\) ,and that \\(C\\backslash\\{x_{i}\\}\\in\\mathcal{C}\\) Thus both \\(B\\bigcup\\{x_{i}\\}\\) and \\(B\\backslash\\{x_{i}\\}\\) are picked out by C."}, {"n": 5, "claim": "Since either \\(B=B\\cup\\{x_{i}\\}\\) or \\(B=B\\backslash\\{x_{i}\\}\\) , B is picked out by C."}, {"n": 6, "claim": "Thus A is shattered by C. Apply the operator \\(T=T_{1}\\circ\\dots\\circ T_{n}\\) until \\(T^{k+1}({\\mathcal{C}})=T^{k}({\\mathcal{C}})\\) ."}, {"n": 7, "claim": "This will happen for at most \\(\\scriptstyle\\sum_{C\\in{\\mathcal{C}}}\\operatorname{card}(C)\\) times,since \\(\\begin{array}{ r }{\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(T_{i}(C))<\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(C)\\mathrm{~i f~}T_{i}(\\mathcal{C})\\neq\\mathcal{C}}\\end{array}\\) ,The resulting collection \\(\\scriptstyle{\\mathcal{C}}^{\\prime}\\) is hereditary."}, {"n": 8, "claim": "This proves the lemma."}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T2", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch11_theorem_11_26__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nequation 11.15. The \\(k\\)-layer neural network function class is defined recursively by\n\\[\n\\mathcal{F}^{(1)} = \\{x \\mapsto \\theta^{\\top}x: \\theta \\in \\Theta\\},\n\\]\nand, for \\(k \\geq 2\\),\n\\[\n\\mathcal{F}^{(k)} = \\left\\{\\frac{1}{m}\\sum_{j=1}^{m}u_j h(f_j(x)): f_j \\in \\mathcal{F}^{(k-1)}, \\|u\\|_1 \\leq mA_k\\right\\}.\n\\]\nHere \\(h \\circ \\mathcal{F}^{(k-1)} = \\{x \\mapsto h(f(x)): f \\in \\mathcal{F}^{(k-1)}\\}\\), so each new layer composes the activation \\(h\\) with functions from the preceding layer and then takes an \\(L_1\\)-regularized linear combination. The parameters \\(A_2,\\ldots,A_k\\) are the layer-wise \\(L_1\\) regularization parameters, and in Theorem 11.26 they enter through \\(A = 2^{k-2}\\prod_{\\ell=2}^{k}A_{\\ell}\\).\n\ndefinition 6.3. Given \\(S_{n}=\\{Z_{1},\\ldots,Z_{n}\\}\\), the (one-sided) empirical Rademacher complexity of \\(\\mathcal{G}\\) is defined as\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n}) = \\mathbb{E}_{\\sigma}\\sup_{w\\in \\Omega}\\frac{1}{n}\\sum_{i = 1}^{n}\\sigma_{i}\\phi (w,Z_{i}),\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nThe following result shows that the quantity \\(\\epsilon_{n}(\\mathcal{G},\\mathcal{D})\\) can be upper bounded by Rademacher complexity. It follows that an average oracle inequality can be obtained using Rademacher complexity. The proof employs the symmetrization technique, which was also used in Chapter 4 to obtain uniform convergence bounds from empirical covering numbers.\n\ndefinition 10.6. Let \\(\\mathcal{F}_{L_1}(\\Psi)\\) be the point-wise closure of \\(\\cup_{A > 0}\\mathcal{F}_{A,L_1}(\\Psi)\\), then for any \\(f\\in \\mathcal{F}_{L_1}(\\Psi)\\),\n\\[\n\\|f\\|_{1}=\\lim_{\\epsilon\\rightarrow 0}\\inf\\left\\{\\|w\\|_{1}:\\sup_{x}\\left|f(x)-\\sum_{j=1}^{m}w_{j}\\psi(\\theta_{j},x)\\right|\\leq\\epsilon\\right\\}.\n\\]\nFor notational convenience, we write functions in \\(\\mathcal{F}_{L_1}(\\Psi)\\) as\n\\[\nf(x)=w^{\\top}\\psi(x),\n\\]\nwhere \\(\\psi(x)\\) is the infinite dimensional vector \\([\\psi(\\theta, x)]_{\\theta \\in \\Theta}\\), and \\(\\|f\\|_1 = \\|w\\|_1\\).\nFor smooth-loss functions (see Definition A.5), there is a strong relationship between \\( L_{1} \\) regularization and \\( L_{0} \\) regularization, in that functions with small \\( L_{1} \\) norms can be sparsified. Such a sparsification result was first shown for the least squares loss, and referred to as Maurey's lemma in Pisier (1980-1981).\n\nexample 6.26. From Corollary 5.7, we know that if a binary-valued function class \\(\\mathcal{G}\\) (or a VC-subgraph class with values in \\([0,1]\\)) has VC-dimension \\(d\\), then\n\\[\n\\ln N_{2}(\\epsilon,\\mathcal{G},n)\\leq 1+\\ln(d+1)+d\\ln(2 e/\\epsilon^{2}).\n\\]\nSince \\(N_{2}(0.5,\\mathcal{G},n) = 1\\), we have\n\\[\n12\\int_{0}^{\\infty}\\sqrt{\\ln N_{2}(\\epsilon,\\mathcal{G},n)}d\\epsilon\\leq 12\\int_{0}^{0. 5}\\sqrt{1+\\ln(d+1)+d\\ln(2e/\\epsilon^{2})}d\\epsilon\\leq 16\\sqrt{d}.\n\\]\nIt follows that\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})\\leq\\frac{16\\sqrt{d}}{\\sqrt{n}}.\n\\]\nThe constant isn't optimal, and in fact a better constant can be obtained using packing number (see Example 6.4). The result implies the following uniform convergence result: with probability at least \\(1 - \\delta\\), for all \\(w \\in \\Omega\\),\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+\\frac{32\\sqrt{d}}{\\sqrt{n}}+\\sqrt{\\frac{\\ln(1/\\delta)}{2n}}.\n\\]\nThis bound removes a \\( \\ln n \\) factor from the additive uniform convergence bound in Theorem 4.17.\n\nexample 10.11. In two-layer neural networks, let \\(\\Psi\\) be an \\(L_{2}\\)-regularized ReLU function class:\n\\[\n\\Psi=\\left\\{\\psi(\\theta,x)=\\max(0,\\theta^{\\top}x):\\quad\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta\\right\\},\n\\]\nand the corresponding \\(L_{1}\\) regularized two-layer NN can be expressed as a function\n\\[\nf(x)=\\sum_{j=1}^{m}w_{j}\\psi\\left(\\theta_{j},x\\right):\\|w\\|_{1}\\leq A,\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta .\n\\]\nThis function class belongs to \\(\\mathcal{F}_{A,L_1}(\\Psi)\\). We thus obtain the following bound for \\(L_{1}\\) regularized two-layer NN:\n\\[\n\\begin{array}{l}R\\left(\\mathcal{F}_{A,L_{1}}(\\Psi),\\mathcal{S}_{n}\\right)\\leq 2AR(\\Psi,\\mathcal{S}_{n})\\tag{Theorem 10.8}\\\\ \\leq 2A\\alpha\\beta/\\sqrt{n},\\quad(\\text{C o r o l l a r y} 9. 21)\\\\ \\end{array}\n\\]\nwhere we note that \\(\\max (0,f)\\) is 1-Lipschitz in \\(f\\)\nNext, we may consider the following hard-constrained \\( L_{1} \\) regularized learning problem.\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right),\\quad\\|w\\|_{1}\\leq A.\\tag{10.8}\n\\]\nSimilarly, we may consider the soft-regularized version as:\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right)+\\lambda\\|w\\|_{1}.\\tag{10.9}\n\\]\nNow by using Theorem 6.31, we obtain the following result.\n\ndefinition 10.2. The sparsity pattern, or support of a weight vector \\( w \\in \\mathbb{R}^m \\) is defined as\n\\[\n\\operatorname{supp}(w)=\\{j:w_{j}\\neq 0\\},\n\\]\nand the \\(L_0\\) norm of \\(w\\) is defined as\n\\[\n\\left\\|w\\right\\|_{0}=\\left|\\operatorname{supp}(w)\\right|.\n\\]\nThe following example compares different regularization conditions with the RKHS functions.\n\nexample 10.3. Consider RBFs of the form\n\\[\n\\psi(\\theta,x)=\\exp(-\\beta\\|x-\\theta\\|_{2}^{2})\n\\]\nfor some \\(\\beta > 0\\). If we treat it as a kernel \\(k(\\cdot, \\cdot) = \\psi(\\cdot, \\cdot)\\) as in Chapter 9, then the corresponding RKHS is given by functions of the form\n\\[\n\\tilde{f}(\\alpha,x)=\\sum_{j=1}^{m}\\alpha_{j}\\exp(-\\beta\\|x-\\theta_{j}\\|_{2}^{2}).\n\\]\nLet \\(\\mathcal{H}\\) be its RKHS, and the corresponding regularization is given by\n\\[\n\\|\\tilde{f}(\\alpha,x)\\|_{\\mathcal{H}}^{2}=\\sum_{i=1}^{m}\\sum_{j=1}^{m}\\alpha_{i}\\alpha_{j}\\exp(-\\beta\\|\\theta_{i}-\\theta_{j}\\|_{2}^{2}).\\tag{10.3}\n\\]\nIf we use RBFs as basis functions in additive models, we have\n\\[\nf([w,\\theta],x)=\\sum_{j=1}^{m}w_{j}\\exp(-\\beta\\|x-\\theta_{j}\\|_{2}^{2}).\n\\]\nIn this case, the kernel associated with the additive model can be defined as\n\\[\nk(x,x^{\\prime})=\\frac{1}{m}\\sum_{i=1}^{m}\\exp(-\\beta\\|x-\\theta_{j}\\|_{2}^{2}-\\beta\\|x^{\\prime}-\\theta_{j}\\|_{2}^{2}).\n\\]\nThe corresponding RKHS norm for additive model is different from (10.3), and can be defined instead as\n\\[\n\\left\\|f([w,\\theta],x)\\right\\|^{2}=m\\sum_{j=1}w_{j}^{2}.\\tag{10.4}\n\\]\nHowever, even for simple 1-dimensional functions such as\n\\[\n\\sum_{j=1}^{m}\\exp(-\\|x-j\\|_{2}^{2})\n\\]\nwith \\(\\beta = 1\\), the complexity measured by the RKHS norm in (10.4) can be rather large. Alternatively, one can also measure the complexity of \\(f([w,\\theta ],x)\\) by the sparsity \\(\\| w\\| _0\\).\nFor each sparsity pattern \\( F \\subset \\{1, \\ldots, m\\} \\), we may define the \\( |F| \\)-dimensional sparse function class\n\\[\n\\mathcal{G}_{F}=\\left\\{\\phi(w,z):\\operatorname{supp}(w)\\subset F\\right\\},\n\\]\nwhere \\(\\phi (w,z) = L(f(w,x),y) = L(w^{\\top}\\psi (x),y)\\). We can now consider the following sparse learning method:\n\\[\n\\hat{w}=\\arg\\min_{w\\in\\mathbb{R}^{d}}\\left[\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})+r(F)\\right]\\quad \\text{s u b j e c t t o}\\operatorname{supp}(w)\\subset F,\\tag{10.5}\n\\]\nwith a properly defined regularizer \\( r(F) \\) on the sparsity pattern \\( F \\).\nWe note that the exact solution of (10.5) may be difficult to obtain because the sparsity constraint is nonconvex and discontinuous. In practice one often employs approximate solutions. Assume that we can find an approximate solution of (10.5), then we can obtain a generalization error bound that depends only logarithmically on \\( m \\), and linear with respect to the sparsity \\( |F| \\). The following theorem is a direct consequence of Theorem 8.7 which employs an upper bound of the expected Rademacher complexity. Note that similar to Theorem 8.11, one may also replace the expected (sample independent) Rademacher complexity by the sample dependent Rademacher complexity.", "theorems": [{"local_id": "T1", "statement": "Let \\(\\{\\phi_i\\}_{i=1}^n\\) be functions with Lipschitz constants \\(\\{\\gamma_i\\}_{i=1}^n\\) respectively. That is, \\(\\forall i \\in [n]\\):\n\\[\n\\left|\\phi_{i}(\\theta)-\\phi_{i}\\left(\\theta^{\\prime}\\right)\\right|\\leq\\gamma_{i}\\left|\\theta-\\theta^{\\prime}\\right|.\n\\]\nThen for any real valued function \\( h: \\mathcal{F} \\times \\mathcal{Z}^n \\to \\mathbb{R} \\), and \\( S_n = \\{Z_1, \\ldots, Z_n\\} \\subset \\mathcal{Z}^n \\), we have\n\\[\n\\mathbb{E}_{\\sigma}\\sup_{f\\in\\mathcal{F}}\\left[\\sum_{i=1}^{n}\\sigma_{i}\\phi_{i}(f(Z_{i}))-h(f,\\mathcal{S}_{n})\\right]\\leq\\mathbb{E}_{\\sigma}\\sup_{f\\in\\mathcal{F}}\\left[\\sum_{i=1}^{n}\\sigma_{i}\\gamma_{i}f(Z_{i})-h(f,\\mathcal{S}_{n})\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "The result is a direct consequence of the Lemma 6.29, where we simply set \\( c(w) = -h(w, \\mathcal{S}_n) \\), \\( g_i(w) = \\phi_i(f(Z_i)) \\), and \\( \\tilde{g}_i(w) = \\gamma_i f(Z_i) \\)."}]}}, {"local_id": "T2", "statement": "Assume \\(\\sup_{w,z,z'}[\\phi(w,z) - \\phi(w,z')] \\leq M\\). Let \\(S_n\\) be \\(n\\) iid samples from \\(\\mathcal{D}\\). Then with probability at least \\(1 - \\delta\\), the following bound holds for all \\(w \\in \\mathbb{R}^m\\) and sparsity pattern \\(F\\) such that \\(\\mathrm{supp}(w) \\subset F\\):\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+r(F)+M\\sqrt{\\frac{\\ln(1/\\delta)}{2 n}},\n\\]\nwhere\n\\[\nr(F)\\geq 2 R(\\mathcal{G}_{F},\\mathcal{D})+M\\sqrt{\\frac{|F|\\ln(e m/ |F|)+\\ln(|F| +1)^{2}}{2 n}}\n\\]\nfor all \\( F \\). Consider the sparse learning algorithm in (10.5). We have the following oracle inequality. With probability of at least \\( 1 - \\delta \\):\n\\[\n\\phi(\\hat{w},\\mathcal{D})\\leq\\inf_{w\\in\\mathbb{R}^{m},\\operatorname{supp}(w)\\subset F}[\\phi(w,\\mathcal{D})+r(F)]+2 M\\sqrt{\\frac{\\ln(2/\\delta)}{2 n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We note that\n\\[\n\\binom{m}{s}\\leq\\frac{m^{s}}{s!}\\leq\\frac{m^{s}}{s^{s}}\\cdot\\frac{s^{s}}{s!}\\leq\\frac{m^{s}}{s^{s}}\\cdot e^{s}=(m e/s)^{s}.\n\\]\nWe can now consider each \\(\\mathcal{G}_F\\) as a model, with\n\\[\nq_{F}=\\frac{(|F| +1)^{-2}}{(m e/ |F|)^{|F|}}\\leq\\frac{(|F| +1)^{-2}}{\\binom{m}{|F|}}.\n\\]\nTherefore we have\n\\[\n\\sum_{F: |F|\\geq 1}q_{F}\\leq\\sum_{s\\geq 1}\\frac{1}{(s+1)^{2}}\\sum_{F: |F| =s}\\frac{1}{\\binom{m}{|F|}}=\\sum_{s\\geq 1}\\frac{1}{(s+1)^{2}}<1.\n\\]\nFor each index \\( F \\), we may consider \\( \\hat{w} \\) as the ERM solution under the constraint \\( \\operatorname{supp}(w) \\subset F \\)."}, {"n": 2, "claim": "We can thus apply Theorem 8.7 with models indexed by \\( F \\subset \\{1, \\ldots, m\\} \\) to obtain the desired bounds."}]}}, {"local_id": "T3", "statement": "Consider \\(K\\)-layer neural networks defined by (11.15). Assume that \\(h(\\theta^{\\top}x) \\in [0, M]\\) for all \\(\\theta \\in \\Theta\\) and \\(x \\in \\mathcal{X}\\). Assume also that \\(h\\) is 1-Lipschitz, monotone, and satisfies \\(h(0) = 0\\). Then there exists a constant \\(C\\), such that for all distribution \\(D\\) on \\(\\mathcal{X}\\), we have\n\\[\nR(\\mathcal{F}^{(k)},\\mathcal{S}_{n})\\leq A M\\frac{32\\sqrt{d+1}}{\\sqrt{n}},\n\\]\nwhere \\(A = 2^{k - 2}\\prod_{\\ell = 2}^{k}A_{\\ell}\\)", "proof": {"steps": [{"n": 1, "claim": "We prove the statement by induction. The case \\( k = 2 \\) follows from Corollary 11.10."}, {"n": 2, "claim": "Assume the statement holds at layer \\( k - 1 \\), then at layer \\( k \\)."}, {"n": 3, "claim": "We have\n\\[\n\\begin{array}{l}R\\left(\\mathcal{F}^{(k)},\\mathcal{S}_{n}\\right)\\leq A_{k}\\left[R\\left(h\\circ\\mathcal{F}^{(k-1)},\\mathcal{S}_{n}\\right)+R\\left(-h\\circ\\mathcal{F}^{(k-1)},\\mathcal{S}_{n}\\right)\\right]\\\\ \\leq 2 A_{k}R\\left(\\mathcal{F}^{(k-1)},\\mathcal{S}_{n}\\right).\\\\ \\end{array}\n\\]\nThe first inequality used Theorem 10.8."}, {"n": 4, "claim": "The second inequality used Theorem 6.28 with \\(\\gamma_{i} = 1\\) and \\(h = 0\\)."}, {"n": 5, "claim": "Now by using induction, we obtain the desired bound."}]}}, {"local_id": "T4", "statement": "Assume that \\( Y \\in \\{\\pm 1\\} \\), and \\( \\psi(\\theta, x) \\in [-1, 1] \\). Then \\( \\forall \\gamma > 0 \\), with probability \\( 1 - \\delta \\): for all \\( f(x) = \\sum_{j} w_{j} \\psi(\\theta_{j}, x) \\), we have\n\\[\n\\begin{array}{l}\\mathbb{E}_{\\mathcal{D}}\\mathbb{1}(f(X)Y\\leq 0)\\leq\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{1}(f(X_{i})Y_{i}\\leq\\gamma)+4(1+\\gamma^{-1}\\|w\\|_{1})R_{n}(\\Psi_{\\pm},\\mathcal{D})\\\\ +\\left(3+2\\gamma^{-1}\\|w\\|_{1}\\right)\\left[\\sqrt{\\frac{\\ln((2+\\log_{2}(1+\\|w\\|_{1}/\\gamma))^{2})}{2 n}}+\\sqrt{\\frac{\\ln(1/\\delta)}{n}}\\right].\\\\ \\end{array}\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( L(p, y) = \\min(1, \\max(0, 1 - py / \\gamma)) \\), which is \\( \\gamma^{-1} \\) Lipschitz. Let \\( A_0 = \\gamma \\), \\( B = 1 \\), and \\( M_0 = 1 \\). By using the fact that\n\\[\n\\mathbb{1}(f(X),Y)\\leq L(f(X),Y)\\leq\\mathbb{1}(f(X)Y\\leq\\gamma),\n\\]\nThe result is a directly consequence of Corollary 10.14."}]}}, {"local_id": "T5", "statement": "Let \\(\\mathcal{F} = \\{h(\\theta^\\top x):\\theta \\in \\mathbb{R}^d\\}\\) and \\(\\mathcal{F}_{\\pm} = \\mathcal{F}\\cup -\\mathcal{F}\\). Let\n\\[\n\\mathcal{F}_{A}^{1}=\\{\\mathbb{E}_{\\theta\\sim\\mu}u(\\theta)h(\\theta^{\\top}x):\\mathbb{E}_{\\theta\\sim\\mu}|u(\\theta)|\\leq A\\}.\n\\]\nThen for all monotone function \\( h(\\cdot) \\) with \\( h(\\cdot) \\in [0, M] \\):\n\\[\nR\\left(\\mathcal{F}_{\\pm},\\mathcal{S}_{n}\\right)\\leq M\\frac{32\\sqrt{d+1}}{\\sqrt{n}}\n\\]\n\\[\nR\\left(\\mathcal{F}_{A}^{1},\\mathcal{S}_{n}\\right)\\leq A M\\frac{32\\sqrt{d+1}}{\\sqrt{n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\( h(\\cdot) \\) is monotone, we know that \\( \\mathcal{F} \\) is a VC-subgraph class with VC dimension \\( d + 1 \\)."}, {"n": 2, "claim": "Therefore from Theorem 5.11 and the calculation in Example 6.26, we obtain\n\\[\nR(\\mathcal{F},\\mathcal{S}_{n})\\leq M\\frac{16\\sqrt{d+1}}{\\sqrt{n}}.\n\\]\nThis leads to the first bound."}, {"n": 3, "claim": "The second bound follows from Theorem 10.8. \\(\\square\\)"}]}}], "target_local_id": "T3", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch2_theorem_2_21__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 2.4. Given a random variable \\( X \\), we may define its logarithmic moment generating function as\n\\[\n\\Lambda_{X}(\\lambda)=\\ln\\mathbb{E}e^{\\lambda X}.\n\\]\nMoreover, given \\(z\\in \\mathbb{R}\\), the rate function \\(I_{X}(z)\\) is defined as\n\\[\nI_{X}(z)=\\left\\{\\begin{array}{l l}\\sup_{\\lambda>0}[\\lambda z-\\Lambda_{X}(\\lambda)]&z>\\mu\\\\ 0&z=\\mu\\\\ \\sup_{\\lambda<0}[\\lambda z-\\Lambda_{X}(\\lambda)]&z<\\mu,\\end{array}\\right.\n\\]\nwhere \\(\\mu = \\mathbb{E}[X]\\)\nThe above definition can be used to obtain exponential tail bounds for sums of independent variables as follows.", "theorems": [{"local_id": "T1", "statement": "If \\( X_{1} \\leq \\mu + b \\), for some \\( b > 0 \\). Let \\( \\psi(z) = (1 + z)\\ln(1 + z) - z \\), then \\( \\forall \\epsilon > 0 \\):\n\\[\n\\Pr\\left[\\bar{X}_{n}\\geq\\mu+\\epsilon\\right]\\leq\\exp\\left[\\frac{-n\\operatorname{Var}\\left(X_{1}\\right)}{b^{2}}\\psi\\left(\\frac{\\epsilon b}{\\operatorname{Var}\\left(X_{1}\\right)}\\right)\\right],\n\\]\n\\[\n\\Pr [\\bar{X}_{n}\\geq\\mu+\\epsilon]\\leq\\exp\\left[\\frac{-n\\epsilon^{2}}{2\\operatorname{Var}(X_{1})+2\\epsilon b/3}\\right].\n\\]\nMoreover, for \\( t > 0 \\):\n\\[\n\\operatorname*{Pr}\\left[\\bar{X}_{n}\\geq\\mu+\\sqrt{\\frac{2\\operatorname{Var}(X_{1})t}{n}}+\\frac{bt}{3n}\\right]\\leq e^{-t}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Lemma 2.20 implies that\n\\[\n-I_{X_{1}}(\\mu+\\epsilon)\\leq\\inf_{\\lambda>0}\\left[-\\lambda\\epsilon+b^{-2}\\left(e^{\\lambda b}-\\lambda b-1\\right)\\operatorname{Var}\\left(X_{1}\\right)\\right].\n\\]\nWe can set the derivative of the objective function on the right hand side with respect to \\(\\lambda\\) to zero at the minimum solution, and obtain the condition for the optimal \\(\\lambda\\) as follows:"}, {"n": 2, "claim": "\\[\n-\\epsilon+b^{-1}(e^{\\lambda b}-1)\\operatorname{Var}\\left(X_{1}\\right)=0.\n\\]\nThis gives the solution \\(\\lambda = b^{-1}\\ln (1 + \\epsilon b / \\mathrm{Var}(X_1))\\)."}, {"n": 3, "claim": "Plugging this solution into the objective function, we obtain\n\\[\n-I_{X_{1}}(\\mu+\\epsilon)\\leq-\\frac{\\operatorname{Var}\\left(X_{1}\\right)}{b^{2}}\\psi\\left(\\frac{\\epsilon b}{\\operatorname{Var}\\left(X_{1}\\right)}\\right).\n\\]\nThe first inequality of the theorem follows from an application of Theorem 2.5."}, {"n": 4, "claim": "Given \\(\\lambda \\in (0,3 / b)\\), it is easy to verify the following inequality using the Taylor expansion of the exponential function\n\\[\n\\begin{array}{l}\\Lambda_{X_{1}}(\\lambda)\\leq\\mu\\lambda+b^{-2}\\left[e^{\\lambda b}-\\lambda b-1\\right]\\operatorname{Var}(X_{1})\\\\ \\leq\\mu\\lambda+\\frac{\\operatorname{Var}\\left(X_{1}\\right)\\lambda^{2}}{2}\\sum_{m=0}^{\\infty}(\\lambda b/3)^{m}=\\mu\\lambda+\\frac{\\operatorname{Var}\\left(X_{1}\\right)\\lambda^{2}}{2(1-\\lambda b/3)}.\\tag{2.13}\\\\ \\end{array}\n\\]\nThe second and the third desired bounds follow from direct applications of Theorem 2.10 with \\(\\alpha = \\operatorname{Var}(X_1)\\) and \\(\\beta = b / 3\\)."}]}}, {"local_id": "T2", "statement": "Assume that \\(X_{1}\\in [0,1]\\).\nThen for all \\(\\epsilon > 0\\):\n\\[\n\\Pr\\left(\\bar{X}_{n}\\geq(1+\\epsilon)\\mu\\right)\\leq\\exp\\left[\\frac{-n\\mu\\epsilon^{2}}{2+\\epsilon}\\right],\n\\]\n\\[\n\\Pr\\left(\\bar{X}_{n}\\leq(1-\\epsilon)\\mu\\right)\\leq\\exp\\left[\\frac{-n\\mu\\epsilon^{2}}{2}\\right].\n\\]\nMoreover, for \\( t > 0 \\), we have:\n\\[\n\\Pr\\left(\\bar{X}_{n}\\geq\\mu+\\sqrt{\\frac{2\\mu t}{n}}+\\frac{t}{3 n}\\right)\\leq e^{-t}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "The first and the second results can be obtained from Theorem 2.17 and the inequality \\(\\mathrm{KL}(z||\\mu) \\geq (z - \\mu)^2 / \\max(2\\mu, \\mu + z)\\) (which is left as an exercise)."}, {"n": 2, "claim": "We then take \\(z = (1 + \\epsilon)\\mu\\) and \\(z = (1 - \\epsilon)\\mu\\) respectively for the first and the second inequalities."}, {"n": 3, "claim": "For the third inequality (which is sharper than the first inequality), we may apply Theorem 2.10."}, {"n": 4, "claim": "Just observe from Lemma 2.15 that when \\(0 < \\lambda < 3\\):"}, {"n": 5, "claim": "\\[\n\\begin{array}{l}\\Lambda_{X_{1}}(\\lambda)\\leq\\ln [(1-\\mu)e^{0}+\\mu e^{\\lambda}]\\\\ \\leq\\mu(e^{\\lambda}-1)=\\mu\\lambda+\\mu\\sum_{k\\geq 2}\\frac{\\lambda^{k}}{k!}\\\\ \\leq\\mu\\lambda+\\frac{\\mu\\lambda^{2}}{2(1-\\lambda/3)}.\\\\ \\end{array}\n\\]\nIn the above derivation, the equality used the Taylor expansion of exponential function."}, {"n": 6, "claim": "The last inequality used \\( k! \\geq 2 \\cdot 3^{k-2} \\) and the sum of infinite geometric series."}, {"n": 7, "claim": "We may take \\( \\alpha = \\mu \\) and \\( \\beta = 1/3 \\) in Theorem 2.10 to obtain the desired bound."}]}}, {"local_id": "T3", "statement": "If \\(X - \\mathbb{E}X \\leq b\\), then \\(\\forall \\lambda \\geq 0\\):\n\\[\n\\ln \\mathbb{E} e^{\\lambda X} \\leq \\lambda \\mathbb{E}X + \\lambda^{2} \\phi(\\lambda b) \\operatorname{Var}(X),\n\\]\nwhere \\(\\phi(z) = (e^{z} - z - 1)/z^{2}\\).", "proof": {"steps": [{"n": 1, "claim": "Let \\(X' = X - \\mathbb{E}X\\). We have\n\\[\n\\begin{array}{l}\n\\ln \\mathbb{E} e^{\\lambda X} = \\lambda \\mathbb{E}X + \\ln \\mathbb{E} e^{\\lambda X'} \\\\\n\\leq \\lambda \\mathbb{E}X + \\mathbb{E} e^{\\lambda X'} - 1 \\\\\n= \\lambda \\mathbb{E}X + \\lambda^{2} \\mathbb{E} \\frac{e^{\\lambda X'} - \\lambda X' - 1}{(\\lambda X')^{2}} (X')^{2} \\\\\n\\leq \\lambda \\mathbb{E}X + \\lambda^{2} \\mathbb{E} \\phi(\\lambda b) (X')^{2},\n\\end{array}\n\\]\nwhere the first inequality used \\(\\ln z \\leq z - 1\\); the second inequality follows from the fact that the function \\(\\phi(z)\\) is non-decreasing (left as an exercise) and \\(\\lambda X' \\leq \\lambda b\\)."}]}}, {"local_id": "T4", "statement": "Let \\(\\sigma_{i} = \\{\\pm 1\\}\\) be independent Bernoulli random variables ( each takes value \\(\\pm 1\\) with equal probability). Let \\(a_{i}\\) be fixed numbers \\((i=1,\\dots,n)\\) Then for all \\(\\epsilon >0\\) ..\n\\[\n\\Pr\\left(n^{-1}\\sum_{i=1}^{n}\\sigma_{i}a_{i}\\geq\\epsilon\\right)\\leq\\exp\\left[-\\frac{n\\epsilon^{2}}{2 n^{-1}\\sum_{i=1}^{n}a_{i}^{2}}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Consider \\( X_{i} = \\sigma_{i}a_{i} \\) in Corollary 2.26. We can take \\( \\mu = 0 \\) and \\( b_{i} = a_{i}^{2} \\) to obtain the desired bound."}]}}, {"local_id": "T5", "statement": "For any \\(n\\) and \\(\\epsilon >0\\):\n\\[\n\\frac{1}{n}\\ln\\Pr(\\bar{X}_{n}\\geq\\mu+\\epsilon)\\leq-I_{X_{1}}(\\mu+\\epsilon)=\\inf_{\\lambda>0}\\left[-\\lambda(\\mu+\\epsilon)+\\ln\\mathbb{E}e^{\\lambda X_{1}}\\right],\n\\]\n\\[\n\\frac{1}{n}\\ln\\Pr(\\bar{X}_{n}\\leq\\mu-\\epsilon)\\leq-I_{X_{1}}(\\mu-\\epsilon)=\\inf_{\\lambda<0}\\left[-\\lambda(\\mu-\\epsilon)+\\ln\\mathbb{E}e^{\\lambda X_{1}}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "We choose \\( h(z) = e^{\\lambda nz} \\) in Theorem 2.2 with \\( S = \\{\\bar{X}_n - \\mu \\geq \\epsilon\\} \\)."}, {"n": 2, "claim": "For \\( \\lambda > 0 \\), we have\n\\[\n\\begin{array}{l}\\Pr(\\bar{X}_{n}\\geq\\mu+\\epsilon)\\leq\\frac{\\mathbb{E}e^{\\lambda n\\bar{X}_{n}}}{e^{\\lambda n(\\mu+\\epsilon)}}=\\frac{\\mathbb{E}e^{\\lambda\\sum_{i=1}^{n}X_{i}}}{e^{\\lambda n(\\mu+\\epsilon)}}\\\\ =\\frac{\\mathbb{E}\\prod_{i=1}^{n}e^{\\lambda X_{i}}}{e^{\\lambda n(\\mu+\\epsilon)}}=e^{-\\lambda n(\\mu+\\epsilon)}\\left[\\mathbb{E}e^{\\lambda X_{1}}\\right]^{n}.\\\\ \\end{array}\n\\]\nThe last equation used the independence of \\( X_{i} \\) as well as they are identically distributed."}, {"n": 3, "claim": "Therefore by taking logarithm, we obtain\n\\[\n\\ln\\Pr(\\bar{X}_{n}\\geq\\mu+\\epsilon)\\leq n[-\\lambda(\\mu+\\epsilon)+\\ln\\mathbb{E}e^{\\lambda X_{1}}].\n\\]\nTaking inf over \\(\\lambda > 0\\) on the right hand side, we obtain the first desired bound."}, {"n": 4, "claim": "Similarly, we can obtain the second bound."}]}}], "target_local_id": "T1", "topic_domain": "Probability & Concentration", "topic_subtopic": "Distributions, Tails & Moments", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch7_theorem_7_7__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nPCA rank-1 objective and assumptions. Let \\(M \\in \\mathbb{R}^{d \\times d}\\) be symmetric positive semidefinite. For \\(x \\in \\mathbb{R}^d\\), define \\(g(x) := \\frac{1}{2}\\|M - xx^\\top\\|_F^2\\).\n\nRank-one population objective \\(g\\) and matrix \\(M\\). Let \\(z\\) be the target vector and define \\(M = zz^\\top\\). Consider the rank-one population objective \\[ g(x) = \\frac{1}{2}\\|M - xx^\\top\\|_F^2. \\] For this objective, \\(\\nabla g(x) = (M - xx^\\top)x\\).\n\nRank-one matrix completion objectives. In the rank-one matrix-completion setup, let \\(d\\) be the ambient dimension and let \\(\\epsilon>0\\) be the concentration error parameter. Let \\(z \\in \\mathbb{R}^d\\) be the ground-truth vector, normalized by \\(\\|z\\|_2 = 1\\) and incoherent with \\(\\|z\\|_\\infty \\leq \\mu/\\sqrt d\\), and set \\(M = zz^\\top\\). Let \\(\\Omega\\) be the random observed set of matrix entries, sampled with probability \\(p\\), and let \\(P_\\Omega\\) be the coordinate projection/observation operator onto \\(\\Omega\\). Define the observed empirical objective \\(f(x)=\\frac12\\langle P_\\Omega(M),xx^\\top\\rangle-\\frac14\\langle P_\\Omega(xx^\\top),xx^\\top\\rangle\\), the sampled version over \\(\\Omega\\). Define the population objective \\(g(x)=\\frac12\\langle M,xx^\\top\\rangle-\\frac14\\|xx^\\top\\|_F^2\\), so the proof uses the population-gradient identity \\(\\nabla g(x)=(M-xx^\\top)x\\).\n\nRank-one objective \\(g\\). Let \\(z\\) be the planted unit vector with \\(\\|z\\|_2 = 1\\), and let the rank-one matrix be \\(M = zz^\\top\\). Define the rank-one objective \\(g(x) = \\frac{1}{2}\\|M - xx^\\top\\|_F^2\\). For any vector \\(u\\), its Hessian satisfies the quadratic-form identity \\[u^\\top \\nabla^2 g(x) u = \\|u x^\\top + x u^\\top\\|_F^2 - 2 u^\\top (M - x x^\\top) u.\\] In particular this may be applied with \\(u = z\\).\n\nLocal minimum of a function. We say that \\(x\\) is a local minimum of a function \\(f\\) if there exists an open neighborhood \\(N\\) around \\(x\\) such that in \\(N\\), the function values are at least \\(f(x)\\).\n\nIncoherence. Without loss of generality, assume the ground truth vector \\(z\\in\\mathbb{R}^d\\) satisfies \\(\\|z\\|_2 = 1\\). \\(z\\) satisfies the incoherence condition if \\(\\|z\\|_{\\infty} \\leq \\dfrac{\\mu}{\\sqrt{d}}\\), where \\(\\mu\\) is considered to be a constant or logarithmic in dimension \\(d\\).\n\nProjection onto observed entries. Suppose \\(M \\in \\mathbb{R}^{d \\times d}\\) and \\(\\Omega \\subseteq [d] \\times [d]\\). We define \\(P_\\Omega(M)\\) to be the matrix obtained by zeroing out every entry of \\(M\\) outside \\(\\Omega\\).\n\nMatrix Completion. Suppose \\(M\\in \\mathbb{R}^{d\\times d}\\) and every entry of \\(M\\) is included in \\(\\Omega\\) with probability \\(p\\). The matrix completion task is to recover \\(M\\) (with respect to some loss functions) given the observation \\(P_{\\Omega}(M)\\).\n\nRank-one matrix-completion objectives. Let \\(M = zz^\\top\\). Define the population objective \\(g(x) = \\frac{1}{2}\\|M - xx^\\top\\|_F^2 = \\frac{1}{2}\\|zz^\\top - xx^\\top\\|_F^2\\) and the empirical objective \\(f(x) = \\frac{1}{2p}\\|P_\\Omega(M - xx^\\top)\\|_F^2\\). For the population objective, \\(\\nabla g(x) = (M - xx^\\top)x\\), and the Hessian quadratic form in direction \\(z\\) is \\(\\langle z, \\nabla^2 g(x) z\\rangle = \\|zx^\\top + xz^\\top\\|_F^2 - 2 z^\\top(zz^\\top - xx^\\top)z\\).", "theorems": [{"local_id": "T1", "statement": "Suppose \\(\\|x\\|_\\infty \\leq 2\\mu / \\sqrt{d}\\). If \\(x\\) satisfies \\(\\nabla f(x) = 0\\), then \\(\\langle x,z \\rangle^2 \\geq \\|x\\|_2^4 - \\epsilon\\) with high probability.", "proof": {"steps": [{"n": 1, "claim": "\\[\n\\nabla f(x) = 0 \\implies \\langle x, \\nabla f(x) \\rangle = 0\n\\implies \\langle x, \\nabla g(x) \\rangle \\approx \\langle x, \\nabla f(x) \\rangle/p \\pm \\epsilon \\quad \\text{(by the concentration lemma, i.e., the referenced result)}\n\\implies |\\langle x, (zz^\\top-xx^\\top)x \\rangle| \\leq \\epsilon \\quad \\text{w.h.p.}\n\\implies \\langle x,z \\rangle^2 \\geq \\|x\\|_2^4 - \\epsilon \\quad \\text{w.h.p.}\n\\]"}]}}, {"local_id": "T2", "statement": "Suppose \\(\\|x\\|_\\infty \\leq \\mu / \\sqrt{d}\\). If \\(\\nabla^2 f(x) \\succeq 0\\), then \\(\\|x\\|_2^2 \\geq 1/3 - \\epsilon/3\\) with high probability.", "proof": {"steps": [{"n": 1, "claim": "\\[\n\\nabla^2 f(x) \\succeq 0\n\\implies \\langle z, \\nabla^2 f(x)z \\rangle \\geq 0\n\\implies \\langle z, \\nabla^2g(x)z \\rangle \\geq -\\epsilon \\quad \\text{w.h.p. (by the concentration lemma, i.e., the referenced result)}\n\\implies 3\\|x\\|_2^2 \\geq 1-\\epsilon \\quad \\text{w.h.p.}\n\\implies \\|x\\|_2^2 \\geq 1/3 - \\epsilon/3 \\quad \\text{w.h.p.}\n\\]"}]}}, {"local_id": "T3", "statement": "All local minima of \\(g\\) are global minima (even though \\(g\\) is non-convex).", "proof": {"steps": [{"n": 1, "claim": "Step 1: Show that all stationary points must be eigenvectors. We have \\(\\nabla g(x) = -(M - xx^\\top)x\\), hence\n\\[\n\\nabla g(x) = 0 \\implies Mx = \\|x\\|_2^2 \\cdot x,\n\\]\nwhich implies that \\(x\\) is an eigenvector of \\(M\\) with eigenvalue \\(\\|x\\|_2^2\\). From the Eckart–Young–Mirsky theorem the global minimum (i.e. the best rank-1 approximation) is the eigenvector with the largest eigenvalue."}, {"n": 2, "claim": "Step 2: Show that all local minima must be eigenvectors of the largest eigenvalue."}, {"n": 3, "claim": "We use the second-order condition. For \\(x\\) to be a local minimum we need \\(\\nabla^2 g(x) \\succeq 0\\), i.e. for any \\(v \\in \\mathbb{R}^d\\),\n\\[\n\\langle v, \\nabla^2 g(x)\\, v \\rangle \\geq 0.\n\\]\nExpanding \\(g(x+v)\\) into \\(g(x) + \\text{linear term in }v + \\text{quadratic term in }v\\) (the quadratic term equals \\(\\frac{1}{2}\\langle v, \\nabla^2 g(x)\\,v\\rangle\\)),\n\\[\ng(x+v) = \\tfrac{1}{2}\\|M - (x+v)(x+v)^\\top\\|_F^2 = \\tfrac{1}{2}\\|M - xx^\\top\\|_F^2 - \\langle M - xx^\\top, xv^\\top + vx^\\top\\rangle + \\tfrac{1}{2}\\langle xv^\\top + vx^\\top, xv^\\top + vx^\\top\\rangle - \\langle M - xx^\\top, vv^\\top\\rangle + \\text{higher order terms in }v.\n\\]\nHence,\n\\[\n\\tfrac{1}{2}\\langle v, \\nabla^2 g(x)\\,v\\rangle = \\tfrac{1}{2}\\langle xv^\\top + vx^\\top, xv^\\top + vx^\\top\\rangle - \\langle M - xx^\\top, vv^\\top\\rangle = 2\\langle x, v\\rangle^2 + \\|x\\|_2^2\\|v\\|_2^2 - v^\\top M v.\n\\]\nPicking \\(v = v_1\\), the unit eigenvector with the largest eigenvalue \\(\\lambda_1\\), the local minimum condition requires\n\\[\n\\langle v_1, \\nabla^2 g(x)\\,v_1\\rangle = 2\\langle x, v_1\\rangle^2 - v_1^\\top M v_1 + \\|x\\|_2^2 \\geq 0.\n\\]\nSince all candidates for local minima are eigenvectors of \\(M\\), there are two cases:"}, {"n": 4, "claim": "- Case 1: \\(x\\) has eigenvalue \\(\\lambda_1\\). Then \\(x\\) is the global minimum (by the Eckart–Young–Mirsky theorem)."}, {"n": 5, "claim": "- Case 2: \\(x\\) has eigenvalue \\(\\lambda < \\lambda_1\\). Then \\(x\\) and \\(v_1\\) are orthogonal, so\n\\[\n2\\langle x, v_1\\rangle^2 - v_1^\\top M v_1 + \\|x\\|_2^2 = 0 - \\lambda_1 + \\lambda \\geq 0,\n\\]\nwhich implies \\(\\lambda \\geq \\lambda_1\\), a contradiction."}, {"n": 6, "claim": "In summary, if \\(x\\) is a stationary point and not a global minimum, then moving in the direction of \\(v_1\\) yields a second-order improvement and \\(x\\) cannot be a local minimum."}]}}, {"local_id": "T4", "statement": "If \\(\\nabla^2 g(x) \\succeq 0\\), then \\(\\|x\\|_2^2 \\geq 1/3\\).", "proof": {"steps": [{"n": 1, "claim": "\\[\n\\nabla^2 g(x) \\succeq 0\n\\implies \\langle z, \\nabla^2 g(x)z\\rangle \\geq 0\n\\implies \\|zx^\\top + xz^\\top\\|_F^2 - 2z^\\top(zz^\\top-xx^\\top)z \\geq 0\n\\implies 2 \\|x\\|^2_2 + 2 \\langle x, z\\rangle^2 - 2 + 2 \\langle x, z\\rangle^2 \\geq 0 \\quad\\text{(cyclic trace property)}\n\\implies 3\\|x\\|_2^2 = \\|x\\|_2^2 + 2\\|x\\|_2^2 \\geq \\|x\\|_2^2 + 2\\langle x,z \\rangle^2 \\geq 1 \\quad\\text{(by Cauchy-Schwarz)}\n\\implies \\|x\\|_2^2 \\geq 1/3.\n\\]"}]}}, {"local_id": "T5", "statement": "If \\(x\\) satisfies \\(\\nabla g(x) = 0\\), then \\(\\langle x,z \\rangle^2 = \\|x\\|_2^4\\).", "proof": {"steps": [{"n": 1, "claim": "\\[\n\\nabla g(x) = 0 \\implies \\langle x, \\nabla g(x) \\rangle = 0\n\\implies \\langle x, (zz^\\top-xx^\\top)x \\rangle = 0 \\quad (\\textup{because}~\\nabla g(x) = (M - xx^\\top)x)\n\\implies \\langle x,z \\rangle^2 = \\|x\\|_2^4.\n\\]"}]}}], "target_local_id": "T3", "topic_domain": "Optimization", "topic_subtopic": "Non-convex Geometry", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch15_theorem_15_6__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nequation (15.3). Let \\(\\Lambda_0\\) be a symmetric positive definite regularizer and let \\(\\psi\\) be a feature map. Given \\(\\mathcal{S}_n = \\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\), define\n\\[\n\\hat{\\Lambda}(\\mathcal{S}_{n})=\\Lambda_{0}+\\sum_{i=1}^{n}\\psi(X_{i})\\psi(X_{i})^{\\top}\n\\]\nand the ridge regression estimator\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i}.\\tag{15.3}\n\\]\nEquivalently, \\(\\hat{w}(\\mathcal{S}_{n})\\) minimizes\n\\[\n\\sum_{i=1}^{n}(w^{\\top}\\psi(X_{i})-Y_{i})^{2}+\\|w\\|_{\\Lambda_{0}}^{2}.\n\\]\n\ndefinition 10.6. Let \\(\\mathcal{F}_{L_1}(\\Psi)\\) be the point-wise closure of \\(\\cup_{A > 0}\\mathcal{F}_{A,L_1}(\\Psi)\\), then for any \\(f\\in \\mathcal{F}_{L_1}(\\Psi)\\),\n\\[\n\\|f\\|_{1}=\\lim_{\\epsilon\\rightarrow 0}\\inf\\left\\{\\|w\\|_{1}:\\sup_{x}\\left|f(x)-\\sum_{j=1}^{m}w_{j}\\psi(\\theta_{j},x)\\right|\\leq\\epsilon\\right\\}.\n\\]\nFor notational convenience, we write functions in \\(\\mathcal{F}_{L_1}(\\Psi)\\) as\n\\[\nf(x)=w^{\\top}\\psi(x),\n\\]\nwhere \\(\\psi(x)\\) is the infinite dimensional vector \\([\\psi(\\theta, x)]_{\\theta \\in \\Theta}\\), and \\(\\|f\\|_1 = \\|w\\|_1\\).\nFor smooth-loss functions (see Definition A.5), there is a strong relationship between \\( L_{1} \\) regularization and \\( L_{0} \\) regularization, in that functions with small \\( L_{1} \\) norms can be sparsified. Such a sparsification result was first shown for the least squares loss, and referred to as Maurey's lemma in Pisier (1980-1981).\n\ndefinition 6.3. Given \\(S_{n}=\\{Z_{1},\\ldots,Z_{n}\\}\\), the (one-sided) empirical Rademacher complexity of \\(\\mathcal{G}\\) is defined as\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n}) = \\mathbb{E}_{\\sigma}\\sup_{w\\in \\Omega}\\frac{1}{n}\\sum_{i = 1}^{n}\\sigma_{i}\\phi (w,Z_{i}),\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nThe following result shows that the quantity \\(\\epsilon_{n}(\\mathcal{G},\\mathcal{D})\\) can be upper bounded by Rademacher complexity. It follows that an average oracle inequality can be obtained using Rademacher complexity. The proof employs the symmetrization technique, which was also used in Chapter 4 to obtain uniform convergence bounds from empirical covering numbers.\n\nequation (15.3). The ridge regression method defines, for each \\(n\\),\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\arg\\min_{w}\\left[\\sum_{i=1}^{n}(Y_{i}-w^{\\top}\\psi(X_{i}))^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right].\n\\]\nEquivalently,\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\Lambda_{n}^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i},\\quad\\Lambda_{n}=\\Lambda_{0}+\\sum_{s=1}^{n}\\psi(X_{s})\\psi(X_{s})^{\\top}.\n\\]\n\nexample 15.2. For least squares regression with noise variance \\(\\sigma^2\\), we may have\n\\[\np(y|w,x)=\\frac{1}{\\sqrt{2\\pi}\\sigma}\\exp\\left(-\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}\\right),\n\\]\nand \\((\\operatorname{let} Z = (x, y))\\):\n\\[\n\\phi(w,Z)=\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}+\\ln(\\sqrt{2\\pi}\\sigma).\n\\]\nWe may also consider the noise as part of the model parameter, and let\n\\[\np(y|[w,\\sigma],x)=\\frac{1}{\\sqrt{2\\pi}\\sigma}\\exp\\left(-\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}\\right)\n\\]\n\\[\n\\phi([w,\\sigma],Z)=\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}+\\ln(\\sqrt{2\\pi}\\sigma).\n\\]\nIn the Bayesian setting, the optimal statistical estimation of posterior density for log-loss is the Bayesian posterior averaging estimator. Here we consider a prior \\( p_0(w) \\) on \\( \\Omega \\). Given the training data \\( S_{n}=\\{Z_{1},\\dots,Z_{n}\\} \\), the posterior distribution is\n\\[\np(w|\\mathcal{S}_{n})=\\frac{\\prod_{i=1}^{n}p\\left(Y_{i}\\mid w,X_{i}\\right)p_{0}(w)}{\\int_{\\Omega}\\prod_{i=1}^{n}p\\left(Y_{i}\\mid w^{\\prime},X_{i}\\right)p_{0}\\left(w^{\\prime}\\right)d w^{\\prime}}.\\tag{15.1}\n\\]\nUnlike ERM, the Bayesian posterior averaging method does not use \\( p(y|\\hat{w},x) \\) for a specific \\( \\hat{w}\\in \\Omega \\) that is estimated from the training data, but instead use the averaged probability estimate over the posterior as follows:\n\\[\n\\hat{p}(y|x,\\mathcal{S}_{n})=\\int_{\\Omega}p(y|w,x)p(w|\\mathcal{S}_{n})d w.\\tag{15.2}\n\\]\nAs pointed out in Section 14.1, such a method is referred to as improper online learning.\nIn the online setting, we have the following result, which may be regarded as a generic regret bound for the Bayesian posterior model averaging method.\n\nexample 10.11. In two-layer neural networks, let \\(\\Psi\\) be an \\(L_{2}\\)-regularized ReLU function class:\n\\[\n\\Psi=\\left\\{\\psi(\\theta,x)=\\max(0,\\theta^{\\top}x):\\quad\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta\\right\\},\n\\]\nand the corresponding \\(L_{1}\\) regularized two-layer NN can be expressed as a function\n\\[\nf(x)=\\sum_{j=1}^{m}w_{j}\\psi\\left(\\theta_{j},x\\right):\\|w\\|_{1}\\leq A,\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta .\n\\]\nThis function class belongs to \\(\\mathcal{F}_{A,L_1}(\\Psi)\\). We thus obtain the following bound for \\(L_{1}\\) regularized two-layer NN:\n\\[\n\\begin{array}{l}R\\left(\\mathcal{F}_{A,L_{1}}(\\Psi),\\mathcal{S}_{n}\\right)\\leq 2AR(\\Psi,\\mathcal{S}_{n})\\tag{Theorem 10.8}\\\\ \\leq 2A\\alpha\\beta/\\sqrt{n},\\quad(\\text{C o r o l l a r y} 9. 21)\\\\ \\end{array}\n\\]\nwhere we note that \\(\\max (0,f)\\) is 1-Lipschitz in \\(f\\)\nNext, we may consider the following hard-constrained \\( L_{1} \\) regularized learning problem.\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right),\\quad\\|w\\|_{1}\\leq A.\\tag{10.8}\n\\]\nSimilarly, we may consider the soft-regularized version as:\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right)+\\lambda\\|w\\|_{1}.\\tag{10.9}\n\\]\nNow by using Theorem 6.31, we obtain the following result.\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).\n\nequation (15.3). Let \\(\\Lambda_0\\) be a symmetric invertible regularizer and let \\(\\psi\\) be a feature map. Given \\(\\mathcal{S}_n = \\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\), define\n\\[\n\\hat{\\Lambda}(\\mathcal{S}_{n})=\\Lambda_{0}+\\sum_{i=1}^{n}\\psi(X_{i})\\psi(X_{i})^{\\top}\n\\]\nand the ridge regression estimator\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i}.\\tag{15.3}\n\\]\nEquivalently, \\(\\hat{w}(\\mathcal{S}_{n})\\) minimizes\n\\[\n\\sum_{i=1}^{n}(w^{\\top}\\psi(X_{i})-Y_{i})^{2}+\\|w\\|_{\\Lambda_{0}}^{2}.\n\\]\n\nexample 2.14. Consider a bounded random variable: \\( X_{1} \\in [\\alpha, \\beta] \\). Then \\( X_{1} \\) is sub-Gaussian with \\( b = (\\beta - \\alpha)^{2}/4 \\).\nThe tail probability inequality of Theorem 2.12 can also be expressed in a different form. Consider \\( \\delta \\in (0,1) \\) such that \\( \\delta = \\exp(-t) \\), we have \\( t = \\ln(1/\\delta) \\). This means that we can alternatively express the first bound of Theorem 2.12 as follows. With probability at least \\( 1 - \\delta \\), we have\n\\[\n\\bar{X}_{n}<\\mu+\\sqrt{\\frac{2 b\\ln(1/\\delta)}{n}}.\n\\]\nThis form is often preferred in the theoretical analysis of machine learning algorithms.", "theorems": [{"local_id": "T1", "statement": "Assume that \\( Y_{t} \\in [0, M] \\) for \\( t \\geq 1 \\). Consider the ridge regression method of (15.3), and let\n\\[\n\\hat{Y}_{t}=\\max(0,\\min(M,\\hat{w}(\\mathcal{S}_{t-1})^{\\top}\\psi(X_{t}))).\n\\]\nWe have\n\\[\n\\sum_{t=1}^{T}(Y_{t}-\\hat{Y}_{t})^{2}\\leq\\inf_{w}\\left[\\sum_{t=1}^{T}(Y_{t}-w^{\\top}\\psi(X_{t}))^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right]+M^{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|,\n\\]\nwhere\n\\[\n\\Lambda_{T}=\\Lambda_{0}+\\sum_{s=1}^{T}\\psi(X_{s})\\psi(X_{s})^{\\top}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We can apply Theorem 15.6 by taking \\(\\sigma^2 = M^2\\)."}, {"n": 2, "claim": "By using the following inequality\n\\[\n0\\leq\\frac{1-b_{t}}{b_{t}}+\\ln b_{t},\n\\]\nwe obtain\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}(Y_{t}-\\hat{Y}_{t})^{2}\\leq\\sum_{t=1}^{T}\\left[(Y_{t}-\\hat{Y}_{t})^{2}+M^{2}\\frac{1-b_{t}}{b_{t}}+M^{2}\\ln b_{t}\\right]\\\\ \\leq\\sum_{t=1}^{T}\\left[\\left(Y_{t}-\\hat{Y}_{t}\\right)^{2}+\\left(Y_{t}-\\hat{Y}_{t}\\right)^{2}\\frac{1-b_{t}}{b_{t}}+M^{2}\\ln b_{t}\\right]\\tag{15.5}\\\\ \\leq\\sum_{t=1}^{T}\\left[\\frac{(Y_{t}-\\hat{w}(\\mathcal{S}_{t-1})^{\\top}\\psi(X_{i}))^{2}}{b_{t}}+M^{2}\\ln b_{t}\\right],\\\\ \\end{array}\n\\]\nwhere \\( b_{t} \\) is defined in Theorem 15.6."}, {"n": 3, "claim": "Note that (15.5) used \\( 1 - b_{t} \\leq 0 \\) and \\( (Y_{t} - \\hat{Y}_{t})^{2} \\leq M^{2} \\)."}, {"n": 4, "claim": "The desired result is now a direct application of Theorem 15.6."}]}}, {"local_id": "T2", "statement": "Consider a sequence of random functions \\(\\xi_1(S_1),\\ldots,\\xi_n(S_n)\\) with a fixed number \\(n > 0\\). If for each \\(i\\): \\(\\sup \\xi_i - \\inf \\xi_i\\leq M_i\\) for some constant \\(M_{i}\\), then with probability at least \\(1 - \\delta\\),\n\\[\n\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}<\\frac{1}{n}\\sum_{i=1}^{n}\\xi_{i}+\\sqrt{\\frac{\\sum_{i=1}^{n}M_{i}^{2}\\ln(1/\\delta)}{2 n^{2}}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Using sub-Gaussian moment bound (see Example 2.14), we can obtain the desired bound by taking \\(\\sigma_{i} = M_{i} / 2\\), and \\(4\\sigma^{2} = \\sum_{i = 1}^{n}M_{i}^{2}\\) in Theorem 13.3. \\(\\square\\)"}]}}, {"local_id": "T3", "statement": "We have\n\\[\n\\begin{array}{l}-\\sum_{t=1}^{T}\\ln\\hat{p}\\left(Y_{t}\\mid X_{t},\\mathcal{S}_{t-1}\\right)= -\\ln\\mathbb{E}_{w\\sim p_{0}}\\prod_{t=1}^{T}p\\left(Y_{t}\\mid w,X_{t}\\right)\\\\ =\\inf_{q\\in\\Delta(\\Omega)}\\left[-\\mathbb{E}_{w\\sim q}\\sum_{t=1}^{T}\\ln p(Y_{t}|w,X_{t})+\\mathbb{E}_{w\\sim q}\\ln\\frac{q(w)}{p_{0}(w)}\\right],\\\\ \\end{array}\n\\]\nwhere \\(\\Delta (\\Omega)\\) is the set of probability distributions over \\(\\Omega\\)", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\ln\\hat{p}(Y_{t}|X_{t},\\mathcal{S}_{t-1})=\\ln\\int_{\\Omega}p(Y_{t}|w,X_{t})p(w|\\mathcal{S}_{t-1})d w\\\\ =\\ln\\frac{\\int_{\\Omega}\\prod_{i=1}^{t}p(Y_{i}|w,X_{i})p_{0}(w)d w}{\\int_{\\Omega}\\prod_{i=1}^{t-1}p(Y_{i}|w^{\\prime},X_{i})p_{0}(w^{\\prime})d w^{\\prime}}\\\\ =\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{i=1}^{t}p(Y_{i}|w,X_{i})-\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{i=1}^{t-1}p(Y_{i}|w,X_{i}).\\\\ \\end{array}\n\\]\nBy summing over \\( t = 1 \\) to \\( t = T \\), we obtain\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\ln\\hat{p}\\left(Y_{t}\\mid x_{t},\\mathcal{S}_{t-1}\\right)=\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{t=1}^{T}p\\left(Y_{t}\\mid w,X_{t}\\right)\\\\ =\\sup_{q}\\left[\\mathbb{E}_{w\\sim q}\\ln\\prod_{t=1}^{T}p\\left(Y_{t}|w,X_{t}\\right)-\\mathbb{E}_{w\\sim q}\\ln\\frac{q(w)}{p_{0}(w)}\\right],\\\\ \\end{array}\n\\]\nwhere the second equality used Proposition 7.16."}, {"n": 2, "claim": "This implies the desired result."}]}}, {"local_id": "T4", "statement": "Consider probability model\n\\[\np(y|w,x)=N(w^{\\top}\\psi(x),\\sigma^{2}),\n\\]\nwith prior\n\\[\np_{0}(w)=N(0,\\sigma^{2}\\Lambda_{0}^{-1}).\n\\]\nThen given \\(\\mathcal{S}_n=\\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\) , we have\n\\[\np(w|\\mathcal{S}_{n})=N(\\hat{w}(\\mathcal{S}_{n}),\\sigma^{2}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}),\n\\]\nwhere \\(\\hat{w} (S_n)\\) is given by (15.3) and\n\\[\n\\hat{\\Lambda}\\left(\\mathcal{S}_{n}\\right)=\\sum_{i=1}^{n}\\psi\\left(X_{i}\\right)\\psi\\left(X_{i}\\right)^{\\top}+\\Lambda_{0}.\n\\]\nGiven \\( x \\), the posterior distribution of \\( y \\) is\n\\[\n\\hat{p}(y|x,\\mathcal{S}_{n})=N\\left(\\hat{w}(\\mathcal{S}_{n})^{\\top}\\psi(x),\\sigma^{2}+\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\psi(x)\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "It is clear that\n\\[\np(w|\\mathcal{S}_{n})\\propto\\exp\\left(-\\sum_{i=1}^{n}\\frac{(w^{\\top}\\psi(X_{i})-Y_{i})^{2}}{2\\sigma^{2}}-\\frac{\\|w\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right).\n\\]\nNote that (15.3) implies that\n\\[\n\\begin{array}{l}\\sum_{i=1}^{n}\\frac{\\left(w^{\\top}\\psi\\left(X_{i}\\right)-Y_{i}\\right)^{2}}{2\\sigma^{2}}+\\frac{\\|w\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\\\ =\\sum_{i=1}^{n}\\frac{\\left(\\hat{w}^{\\top}\\psi\\left(X_{i}\\right)-Y_{i}\\right)^{2}}{2\\sigma^{2}}+\\frac{\\|\\hat{w}\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}+\\frac{1}{2\\sigma^{2}}(w-\\hat{w})^{\\top}\\hat{\\Lambda}\\left(S_{n}\\right)(w-\\hat{w}).\\tag{15.4}\\\\ \\end{array}\n\\]\nThis implies the first desired result."}, {"n": 2, "claim": "Moreover, given \\( x \\), and let the random variable \\( u = w^{\\top}\\psi (x) \\) with \\( w\\sim p(w|S_n) \\), we have\n\\[\nu|x,\\mathcal{S}_{n}\\sim N\\left(\\hat{w}^{\\top}\\psi(x),\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\psi(x)\\right).\n\\]\nSince in posterior distribution, the observation \\( y|u \\sim u + \\epsilon \\) with \\( \\epsilon \\sim N(0, \\sigma^2) \\), we know that\n\\[\ny|x,\\mathcal{S}_{n}\\sim N(\\hat{w}^{\\top}\\psi(x),\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}^{-1}\\psi(x)+\\sigma^{2}).\n\\]\nThis implies the desired result."}]}}, {"local_id": "T5", "statement": "Consider the ridge regression method of (15.3). We have the following result for any \\(\\sigma \\geq 0\\) and for all observed sequence \\(S_T\\):\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\left[\\frac{\\left(Y_{t}-\\hat{w}\\left(\\mathcal{S}_{t-1}\\right)^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}}{b_{t}}+\\sigma^{2}\\ln b_{t}\\right]\\\\ =\\inf_{w}\\left[\\sum_{t=1}^{T}\\left(Y_{t}-w^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right]+\\sigma^{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|,\\\\ \\end{array}\n\\]\nwhere\n\\[\n\\Lambda_{t}=\\Lambda_{0}+\\sum_{s=1}^{t}\\psi(X_{s})\\psi(X_{s})^{\\top},\n\\]\nand \\(b_{t} = 1 + \\psi (X_{t})^{\\top}\\Lambda_{t - 1}^{-1}\\psi (X_{t}).\\)", "proof": {"steps": [{"n": 1, "claim": "Assume \\( w \\in \\mathbb{R}^d \\). We note that from Gaussian integration that\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p_{0}}\\prod_{i=1}^{T}p\\left(Y_{i}|w,X_{i}\\right)\\\\ =\\int\\frac{\\left|\\Lambda_{0}^{-1}\\right|^{-1/2}}{(2\\pi)^{(T+d)/2}\\sigma^{T}\\sigma^{d}}\\exp\\left(-\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}\\left(Y_{i}-w^{\\top}\\psi\\left(X_{i}\\right)\\right)^{2}-\\frac{\\left\\|w\\right\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right)d w\\\\ =\\frac{\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|^{-1/2}}{\\left(2\\pi\\right)^{T/2}\\sigma^{T}}\\exp\\left(-\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}\\left(Y_{i}-\\hat{w}\\left(\\mathcal{S}_{T}\\right)^{\\top}\\psi(X_{i})\\right)^{2}-\\frac{\\left\\|\\hat{w}\\left(\\mathcal{S}_{T}\\right)\\right\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right),\\\\ \\end{array}\n\\]\nwhere the last equation used Gaussian integration with decomposition (15.4)."}, {"n": 2, "claim": "That is,\n\\[\n\\begin{array}{l}-\\ln\\mathbb{E}_{w\\sim p_{0}}\\prod_{i=1}^{T}p(Y_{i}|w,X_{i})=T\\ln(\\sqrt{2\\pi}\\sigma)+\\frac{1}{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|\\\\ +\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}(Y_{i}-\\hat{w}(\\mathcal{S}_{T})^{\\top}\\psi(X_{i}))^{2}+\\frac{\\|\\hat{w}(\\mathcal{S}_{T})\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}.\\\\ \\end{array}\n\\]\nMoreover, from Proposition 15.5, we have\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}-\\ln\\hat{p}(Y_{t}|X_{t},\\mathcal{S}_{t-1})\\\\ =\\sum_{t=1}^{T}\\left[\\frac{\\left(Y_{t}-\\hat{w}\\left(\\mathcal{S}_{t-1}\\right)^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}}{2\\sigma^{2}b_{t}}+\\frac{1}{2}\\ln(b_{t})+\\ln(\\sqrt{2\\pi}\\sigma)\\right].\\\\ \\end{array}\n\\]\nThe desired result now follows from Theorem 15.3."}]}}], "target_local_id": "T5", "topic_domain": "Online Learning & RL", "topic_subtopic": "Online Learning & Regret", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch5_theorem_5_10__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nEmpirical Rademacher complexity. Given a dataset \\(S = \\{z_1, \\dots, z_n\\}\\), the empirical Rademacher complexity is defined as\n\\[\nR_S(\\mathcal{F}) \\stackrel{\\Delta}{=} \\mathbb{E}_{\\sigma_1,\\dots, \\sigma_n} \\left[ \\sup_{f\\in \\mathcal{F}} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right].\n\\]\n\\(R_S(\\mathcal{F})\\) is a function of both the function class \\(\\mathcal{F}\\) and the dataset \\(S\\).\n\nTwo-layer ReLU network. Given a width \\(m\\), let \\(w_1,\\dots,w_m \\in \\mathbb{R}\\), \\(u_1,\\dots,u_m \\in \\mathbb{R}^d\\), and let \\(\\phi\\) denote the ReLU activation. For \\(\\theta=(w_1,\\dots,w_m,u_1,\\dots,u_m)\\), define the two-layer ReLU network\n\\[\nf_{\\theta}(x)=\\sum_{j=1}^m w_j \\phi\\left(u_j^\\top x\\right).\n\\]\n\n\\(\\epsilon\\)-cover. Let \\(\\epsilon > 0\\). An \\(\\epsilon\\)-cover of a set \\(S\\) with respect to a distance metric \\(\\rho\\) is a subset \\(C \\subseteq S\\) such that for all \\(x \\in S\\) there exists \\(x' \\in C\\) with \\(\\rho(x, x') \\leq \\epsilon\\), or equivalently,\n\\[\nS \\subseteq \\bigcup_{x \\in C} \\mathrm{Ball}(x, \\epsilon, \\rho), \\quad \\text{where} \\quad \\mathrm{Ball}(x, \\epsilon, \\rho) \\triangleq \\{x' : \\rho(x, x') \\leq \\epsilon\\}.\n\\]\n\nGeneralized margin. Let \\(f:\\mathbb{R}^d \\to \\mathbb{R}\\) be a classification model. A function \\(g_f(x,y)\\) is a generalized margin for \\(f\\) if \\(g_f(x,y)=0\\) whenever \\(f(x)y \\leq 0\\), and \\(g_f(x,y)>0\\) whenever \\(f(x)y > 0\\).\n\nInfinity-covering number. For a class \\(\\mathcal{F}\\) of functions on an input domain \\(\\mathcal{X}\\), \\(N_\\infty(\\epsilon,\\mathcal{F})\\) is the minimum cardinality of an \\(\\epsilon\\)-cover with respect to the metric \\(\\rho(f,f') = \\sup_{x \\in \\mathcal{X}} |f(x)-f'(x)| = \\|f-f'\\|_\\infty\\). In the multi-output case, the Euclidean norm is used inside the supremum.\n\nRademacher complexity. Let \\(\\mathcal{F}\\) be a family of functions mapping \\(Z \\mapsto \\mathbb{R}\\), and let \\(P\\) be a distribution over \\(Z\\). The (average) Rademacher complexity of \\(\\mathcal{F}\\) is defined as\n\\[\nR_n(F) \\triangleq \\mathbb{E}_{z_1, \\dots, z_n \\overset{\\text{iid}}{\\sim} P} \\left[ \\mathbb{E}_{\\sigma_1, \\dots, \\sigma_n \\overset{\\text{iid}}{\\sim}\\{ \\pm 1 \\}} \\left[ \\sup_{f\\in F} \\frac{1}{n} \\sum^n_{i=1} \\sigma_i f(z_i) \\right] \\right],\n\\]\nwhere \\(\\sigma_1, \\dots, \\sigma_n\\) are independent Rademacher random variables, i.e. each taking on the value of \\(1\\) or \\(-1\\) with probability \\(1/2\\).", "theorems": [{"local_id": "T1", "statement": "Let \\(C(\\theta)=\\sum_{j=1}^{m}\\left|w_{j}\\right|\\left\\|u_{j}\\right\\|_{2}\\), and for some constant \\(B > 0\\) consider the hypothesis class\n\\[\n\\mathcal{H}=\\left\\{f_{\\theta} \\mid C(\\theta) \\leq B\\right\\}.\n\\]\nIf \\(\\left\\|x^{(i)}\\right\\|_{2} \\leq C\\) for all \\(i \\in\\{1, \\ldots, n\\}\\), then\n\\[\nR_{S}(\\mathcal{H}) \\leq \\frac{2 B C}{\\sqrt{n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Due to the positive homogeneity of the ReLU function \\(\\phi\\), it will be useful to define the \\(\\ell_2\\)-normalized weight vector \\(\\bar{u}_j \\stackrel{\\Delta}{=} u_j / \\|u_j\\|_2\\) so that \\(\\phi\\left(u_j^\\top x\\right) = \\|u_j\\|_2 \\cdot \\phi(\\bar{u}_j^\\top x)\\)."}, {"n": 2, "claim": "The empirical Rademacher complexity satisfies\n\\[\n\\begin{aligned}\nR_S(\\mathcal{H}) &= \\frac{1}{n}\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\sum_{i=1}^n \\sigma_i f_{\\theta}\\left(x^{(i)}\\right) \\right] \\\\\n&= \\frac{1}{n}\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\sum_{i=1}^n \\sigma_i \\left[\\sum_{j=1}^m w_j \\phi\\left(u_j^\\top x^{(i)}\\right) \\right] \\right] \\quad \\text{(by definition of }f_\\theta\\text{)} \\\\\n&= \\frac{1}{n}\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\sum_{i=1}^n \\sigma_i \\left[\\sum_{j=1}^m w_j \\|u_j\\|_2 \\phi\\left(\\bar{u}_j^\\top x^{(i)}\\right) \\right] \\right] \\quad \\text{(by positive homogeneity of }\\phi\\text{)} \\\\\n&= \\frac{1}{n}\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\sum_{j=1}^m w_j \\|u_j\\|_2 \\left[ \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}_j^\\top x^{(i)}\\right) \\right] \\right] \\\\\n&\\leq \\frac{1}{n}\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\sum_{j=1}^m |w_j| \\|u_j\\|_2 \\max_{k \\in [m]}\\left| \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}_k^\\top x^{(i)}\\right) \\right| \\right] \\quad \\left(\\text{because }\\sum_j \\alpha_j \\beta_j \\leq \\sum_j |\\alpha_j| \\max_{k} |\\beta_k|\\right) \\\\\n&\\leq \\frac{B}{n} \\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta = (w, U)} \\max_{k \\in [m]} \\left| \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}_k^\\top x^{(i)}\\right) \\right| \\right] \\quad \\text{(because }C(\\theta) \\leq B\\text{)} \\\\\n&= \\frac{B}{n} \\mathbb{E}_{\\sigma}\\left[ \\sup_{\\bar{u}: \\|\\bar{u}\\|_2 = 1} \\left| \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}^\\top x^{(i)}\\right) \\right| \\right] \\\\\n&\\le \\frac{B}{n} \\mathbb{E}_{\\sigma}\\left[ \\sup_{\\bar{u}: \\|\\bar{u}\\|_2 \\le 1} \\left| \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}^\\top x^{(i)}\\right) \\right| \\right] \\\\\n&\\le \\frac{2B}{n} \\mathbb{E}_{\\sigma}\\left[ \\sup_{\\bar{u}: \\|\\bar{u}\\|_2 \\le 1} \\sum_{i=1}^n \\sigma_i \\phi\\left(\\bar{u}^\\top x^{(i)}\\right) \\right] \\quad \\text{(see the referenced result)} \\\\\n&= 2B \\cdot R_S(\\mathcal{H}'),\n\\end{aligned}\n\\]\nwhere \\(\\mathcal{H}' = \\left\\{x \\mapsto \\phi(\\bar{u}^\\top x) : \\bar{u} \\in \\mathbb{R}^d, \\|\\bar{u}\\|_2 \\leq 1 \\right\\}\\)."}, {"n": 3, "claim": "By Talagrand's lemma, since \\(\\phi\\) is \\(1\\)-Lipschitz, \\(R_S(\\mathcal{H}') \\leq R_S(\\mathcal{H}'')\\) where \\(\\mathcal{H}'' = \\left\\{x \\mapsto \\bar{u}^\\top x : \\bar{u} \\in \\mathbb{R}^d, \\|\\bar{u}\\|_2 \\leq 1 \\right\\}\\) is a linear hypothesis space."}, {"n": 4, "claim": "Using \\(R_S(\\mathcal{H}'') \\leq \\frac{C}{\\sqrt{n}}\\) by the referenced \\(\\ell_2\\) linear-model theorem then concludes the proof."}]}}, {"local_id": "T2", "statement": "Let \\(\\mathcal{H} = \\{x \\mapsto \\langle w,x \\rangle \\mid w \\in \\mathbb{R}^d,\\, \\|w\\|_1 \\le B\\}\\) for some constant \\(B > 0\\). Moreover, assume \\(\\|x^{(i)}\\|_\\infty \\leq C\\) for some constant \\(C > 0\\) and all points in \\(S = \\{x^{(i)}\\}_{i=1}^n \\subset \\mathbb{R}^d\\). Then\n\\[\nR_S(\\mathcal{H}) \\leq BC\\sqrt{\\frac{2\\log(2d)}{n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "By definition,\n\\[\nR_S(\\mathcal{H}) = \\mathbb{E}_\\sigma\\left[ \\sup_{\\|w\\|_1 \\le B} \\frac{1}{n} \\sum_{i=1}^n \\sigma_i \\langle w, x^{(i)} \\rangle \\right] = \\frac{B}{n} \\mathbb{E}_\\sigma\\left[ \\left\\|\\sum_{i=1}^n \\sigma_i x^{(i)}\\right\\|_\\infty \\right],\n\\]\nusing \\(\\sup_{\\|w\\|_1 \\leq B}\\langle w,v\\rangle = B\\|v\\|_\\infty\\) (since the \\(\\ell_\\infty\\)-norm is dual to the \\(\\ell_1\\)-norm by Holder's inequality)."}, {"n": 2, "claim": "Since the supremum over \\(\\|w\\|_1 \\leq 1\\) is attained at one of the vertices \\(\\mathcal{W} = \\bigcup_{i=1}^d \\{-e_i, e_i\\}\\), defining the restricted class \\(\\bar{\\mathcal{H}} = \\{x \\mapsto \\langle w, x \\rangle \\mid w \\in \\mathcal{W}\\}\\) gives\n\\[\nR_S(\\mathcal{H}) = B R_S(\\bar{\\mathcal{H}}).\n\\]\nThe class \\(\\bar{\\mathcal{H}}\\) is finite with \\(|\\bar{\\mathcal{H}}| = 2d\\)."}, {"n": 3, "claim": "For any \\(w \\in \\mathcal{W}\\),\n\\[\n\\frac{1}{n}\\sum_{i=1}^n \\langle w, x^{(i)} \\rangle^2 \\leq \\frac{1}{n}\\sum_{i=1}^n \\|x^{(i)}\\|^2_\\infty \\leq C^2,\n\\]\nso \\(\\bar{\\mathcal{H}}\\) is bounded in the \\(\\ell_2\\)-metric."}, {"n": 4, "claim": "Applying Massart's lemma,\n\\[\nR_S(\\mathcal{H}) = B R_S(\\bar{\\mathcal{H}}) \\leq BC\\sqrt{\\frac{2\\log|\\bar{\\mathcal{H}}|}{n}} = BC\\sqrt{\\frac{2\\log(2d)}{n}}.\n\\]"}]}}, {"local_id": "T3", "statement": "Let \\(\\sigma = (\\sigma_1, \\dots, \\sigma_n)\\) and \\(f_{\\theta}(x) = \\left(f_{\\theta}\\left(x^{(1)}\\right), \\dots, f_{\\theta}\\left(x^{(n)}\\right)\\right)\\). Suppose that for any \\(\\sigma \\in \\{\\pm 1\\}^n\\), \\(\\sup_{\\theta} \\langle \\sigma, f_{\\theta}(x) \\rangle \\geq 0\\). Then,\n\\[\n\\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\left| \\langle \\sigma, f_{\\theta}(x) \\rangle \\right| \\right] \\leq 2\\, \\mathbb{E}_{\\sigma}\\left[ \\sup_{\\theta} \\langle \\sigma, f_{\\theta}(x) \\rangle \\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Letting \\(\\phi\\) be the ReLU function, the lemma's assumption implies that \\(\\sup_{\\theta} \\phi\\left(\\langle \\sigma, f_{\\theta}(x) \\rangle\\right) = \\sup_{\\theta}\\langle \\sigma, f_{\\theta}(x) \\rangle\\) for any \\(\\sigma \\in \\{\\pm 1\\}^n\\)."}, {"n": 2, "claim": "Observing that \\(|z| = \\phi(z) + \\phi(-z)\\),\n\\[\n\\begin{aligned}\n\\sup_{\\theta} \\left|\\langle \\sigma, f_{\\theta}(x) \\rangle\\right|\n&= \\sup_{\\theta} \\left[ \\phi \\left(\\langle \\sigma, f_{\\theta}(x) \\rangle \\right) + \\phi \\left(\\langle -\\sigma, f_{\\theta}(x) \\rangle \\right)\\right] \\\\\n&\\le \\sup_{\\theta} \\phi \\left(\\langle \\sigma, f_{\\theta}(x) \\rangle \\right) + \\sup_{\\theta} \\phi \\left(\\langle -\\sigma, f_{\\theta}(x) \\rangle \\right) \\\\\n&= \\sup_{\\theta} \\langle \\sigma, f_{\\theta}(x) \\rangle + \\sup_{\\theta} \\langle -\\sigma, f_{\\theta}(x) \\rangle.\n\\end{aligned}\n\\]\nTaking the expectation over \\(\\sigma\\) (and noting that \\(\\sigma \\overset{d}{=} -\\sigma\\)), we get the desired conclusion."}]}}, {"local_id": "T4", "statement": "Let \\(F\\) and \\(f\\) be functions taking \\(\\Omega\\) into \\(\\mathbb{R}\\), and assume that \\(F\\) is \\(\\alpha\\)-strongly-convex with respect to the norm \\(\\|\\cdot\\|\\) and that \\(f\\) is convex. Let \\(w = \\textup{argmin}_{z \\in \\Omega} F(z)\\) and \\(w' = \\textup{argmin}_{z \\in \\Omega} [f(z) + F(z)]\\). Then\n\\[\n0 \\leq f(w) - f(w') \\leq \\frac{1}{\\alpha} \\|\\nabla f(w)\\|_*^2,\n\\]\nwhere \\(\\|\\cdot\\|_*\\) is the dual norm of \\(\\|\\cdot\\|\\).", "proof": {"steps": [{"n": 1, "claim": "By strong convexity,\n\\[\nF(w') - F(w) \\geq \\langle \\nabla F(w), w' - w \\rangle + \\frac{\\alpha}{2} \\|w - w'\\|^2 \\geq \\frac{\\alpha}{2} \\|w - w'\\|^2,\n\\]\nwhere in the second step we used the fact that the KKT optimality conditions for \\(w\\) imply \\(\\langle \\nabla F(w), w' - w \\rangle \\geq 0\\)."}, {"n": 2, "claim": "(Informally, if \\(\\Omega = \\mathbb{R}^d\\), then \\(\\nabla F(w) = 0\\) as \\(w\\) minimizes \\(F\\). If \\(\\Omega\\) is a convex subset of \\(\\mathbb{R}^d\\), then the gradient \\(\\nabla F(w)\\) must be perpendicular to the tangent to \\(\\Omega\\) at \\(w\\); otherwise, we could move in the direction of the negative gradient and project back to the set \\(\\Omega\\) to lower the value of \\(F\\).) Since \\(F + f\\) is also \\(\\alpha\\)-strongly convex, exactly the same argument implies:"}, {"n": 3, "claim": "\\[\n[F(w) + f(w)] - [F(w') + f(w')] \\geq \\frac{\\alpha}{2} \\|w - w'\\|^2.\n\\]\nAdding these two inequalities gives\n\\[\nf(w) - f(w') \\geq \\alpha \\|w - w'\\|^2.\n\\]\nSince this lower bound is clearly positive, this shows \\(0 \\leq f(w) - f(w')\\)."}, {"n": 4, "claim": "Next, we prove the upper bound on \\(f(w) - f(w')\\)."}, {"n": 5, "claim": "Rearranging the lower bound inequality, we obtain\n\\[\n\\|w - w'\\| \\leq \\sqrt{\\frac{1}{\\alpha} [f(w) - f(w')]}.\n\\]\nSince \\(f\\) is convex, we have \\(f(w') \\geq f(w) + \\langle \\nabla f(w), w' - w \\rangle\\)."}, {"n": 6, "claim": "Rearranging gives\n\\[\nf(w) - f(w') \\leq \\langle \\nabla f(w), w - w' \\rangle \\leq \\|\\nabla f(w)\\|_* \\cdot \\|w - w'\\| \\leq \\|\\nabla f(w)\\|_* \\sqrt{\\frac{1}{\\alpha} [f(w) - f(w')]},\n\\]\nwhere the second inequality is by Cauchy-Schwarz."}, {"n": 7, "claim": "Since \\(f(w) - f(w') \\geq 0\\), we can square both sides to conclude\n\\[\n[f(w) - f(w')]^2 \\leq \\|\\nabla f(w)\\|_*^2 \\frac{1}{\\alpha} [f(w) - f(w')].\n\\]\nDividing both sides by \\(f(w) - f(w')\\) gives the desired upper bound."}]}}, {"local_id": "T5", "statement": "Let \\(\\mathcal{H} = \\{x \\mapsto \\langle w,x \\rangle \\mid w \\in \\mathbb{R}^d,\\, \\|w\\|_2 \\le B\\}\\) for some constant \\(B > 0\\). Moreover, assume \\(\\mathbb{E}_{x \\sim P}[\\|x\\|_2^2] \\leq C^2\\), where \\(P\\) is some distribution and \\(C > 0\\) is a constant. Then\n\\[\nR_S(\\mathcal{H}) \\le \\frac{B}{n} \\sqrt{\\sum_{i=1}^n \\|x^{(i)}\\|_2^2},\n\\]\nand\n\\[\nR_n(\\mathcal{H}) \\le \\frac{BC}{\\sqrt{n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "By definition,\n\\[\nR_S(\\mathcal{H}) = \\mathbb{E}_\\sigma\\left[ \\sup_{\\|w\\|_2 \\le B} \\frac{1}{n} \\sum_{i=1}^n \\sigma_i \\langle w, x^{(i)} \\rangle \\right] = \\frac{1}{n} \\mathbb{E}_\\sigma\\left[ \\sup_{\\|w\\|_2 \\le B} \\left\\langle w, \\sum_{i=1}^n \\sigma_i x^{(i)} \\right\\rangle \\right] = \\frac{B}{n} \\mathbb{E}_\\sigma\\left[ \\left\\|\\sum_{i=1}^n \\sigma_i x^{(i)}\\right\\|_2 \\right],\n\\]\nusing \\(\\sup_{\\|w\\|_2 \\le B} \\langle w,v\\rangle = B\\|v\\|_2\\)."}, {"n": 2, "claim": "By Jensen's inequality applied to \\(\\alpha \\mapsto \\alpha^2\\),\n\\[\n\\frac{B}{n} \\mathbb{E}_\\sigma\\left[ \\left\\|\\sum_{i=1}^n \\sigma_i x^{(i)}\\right\\|_2 \\right] \\leq \\frac{B}{n} \\sqrt{ \\mathbb{E}_\\sigma\\left[\\left\\|\\sum_{i=1}^n \\sigma_i x^{(i)}\\right\\|_2^2\\right] } = \\frac{B}{n} \\sqrt{\\sum_{i=1}^n \\|x^{(i)}\\|_2^2},\n\\]\nwhere the last equality uses independence of the \\(\\sigma_i\\) and \\(\\mathbb{E}[\\sigma_i] = 0\\)."}, {"n": 3, "claim": "This proves the bound on \\(R_S(\\mathcal{H})\\). For the average Rademacher complexity,\n\\[\nR_n(\\mathcal{H}) = \\mathbb{E}[R_S(\\mathcal{H})] \\le \\frac{B}{n} \\mathbb{E}\\left[\\sqrt{\\sum_{i=1}^n \\|x^{(i)}\\|_2^2}\\right] \\le \\frac{B}{n} \\sqrt{\\sum_{i=1}^n \\mathbb{E}\\left[\\|x^{(i)}\\|_2^2\\right]} \\le \\frac{BC}{\\sqrt{n}},\n\\]\nwhere the first inequality is Jensen's inequality and the second uses \\(\\mathbb{E}_{x \\sim P}[\\|x\\|_2^2] \\leq C^2\\)."}]}}], "target_local_id": "T1", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch6_theorem_6_25__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nEmpirical and Uniform Covering Number. Given an empirical distribution \\( S_{n}=\\{Z_{1},\\ldots,Z_{n}\\} \\), we define the pseudometric \\( d = L_{p}(S_{n}) \\) as\n\\[\nd(\\phi,\\phi^{\\prime})=\\left[\\frac{1}{n}\\sum_{i=1}^{n}|\\phi(Z_{i})-\\phi^{\\prime}(Z_{i})|^{p}\\right]^{1/p}.\n\\]\nThe corresponding metric covering number \\(N(\\epsilon, \\mathcal{G}, L_p(\\mathcal{S}_n))\\) is referred to as the\nempirical \\( L_{p} \\) covering number. Given \\( n \\), the largest \\( L_{p} \\) covering number over empirical distribution \\( S_{n} \\) is referred to as the uniform \\( L_{p} \\) covering number\n\\[\nN_{p}(\\epsilon,\\mathcal{G},n)=\\sup_{\\mathcal{S}_{n}}N(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{S}_{n})).\n\\]\nSince the \\(L_{p}(\\mathcal{S}_{n})\\) pseudometric increases with \\(p\\), we have the following simple result.\n\ntheorem 6.23. If \\(\\mathcal{G}\\) is a finite function class with \\(|\\mathcal{G}| = N\\), then\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})\\leq\\sup_{g\\in\\mathcal{G}}\\|g\\|_{L_{2}(\\mathcal{S}_{n})}\\cdot\\sqrt{\\frac{2\\ln N}{n}}.\n\\]\n\ndefinition 6.3. Given \\(S_{n}=\\{Z_{1},\\ldots,Z_{n}\\}\\), the (one-sided) empirical Rademacher complexity of \\(\\mathcal{G}\\) is defined as\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n}) = \\mathbb{E}_{\\sigma}\\sup_{w\\in \\Omega}\\frac{1}{n}\\sum_{i = 1}^{n}\\sigma_{i}\\phi (w,Z_{i}),\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nThe following result shows that the quantity \\(\\epsilon_{n}(\\mathcal{G},\\mathcal{D})\\) can be upper bounded by Rademacher complexity. It follows that an average oracle inequality can be obtained using Rademacher complexity. The proof employs the symmetrization technique, which was also used in Chapter 4 to obtain uniform convergence bounds from empirical covering numbers.\n\ndefinition 6.11. Consider a function class \\(\\mathcal{G} = \\{\\phi(w, Z) : w \\in \\Omega\\}\\), and let \\(h\\) be an offset function of the following form\n\\[\nh(w,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{i=1}^{n}h(w,Z_{i}),\\quad h(w,z)=h_{0}(w)+h_{1}(w,z).\\tag{6.3}\n\\]\nGiven \\( S_{n}=\\{Z_{1},\\ldots,Z_{n}\\} \\), the (one-sided) empirical Rademacher complexity of \\( \\mathcal{G} \\) with offset \\( h \\) decomposition (6.3) is defined as\n\\[\nR^{h}(\\mathcal{G},\\mathcal{S}_{n})=\\mathbb{E}_{\\sigma}\\sup_{w\\in\\Omega}\\left[\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}[\\phi(w,Z_{i})+0. 5h_{1}(w,Z_{i})]-0. 5h(w,\\mathcal{S}_{n})\\right],\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R^{h}(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nWe note that the standard Rademacher complexity can be regarded as a special case of the offset Rademacher complexity with \\( h(\\cdot) = h_0(\\cdot) = h_1(\\cdot) = 0 \\):\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})=R^{0}(\\mathcal{G},\\mathcal{S}_{n}),\\quad R_{n}(\\mathcal{G},\\mathcal{D})=R_{n}^{0}(\\mathcal{G},\\mathcal{D}).\n\\]\nIt should be pointed out that the decomposition of \\( h \\) in (6.3) may not be unique, and the offset Rademacher complexity relies on the specific decomposition used.\nAs shown in Example 6.10, we allow distribution dependent offset in the definition of uniform convergence complexity. We also allow distribution dependent offset in the definition of offset Rademacher complexity.\nThe following result shows that for some cases, offset Rademacher complexity can be obtained easily for some function classes.\n\ndefinition 6.6. Consider any known data-dependent offset function \\( h(w, S_n) \\). Define the uniform convergence complexity of a function class \\( \\mathcal{G} \\) with offset \\( h \\) as\n\\[\n\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\sup_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})].\\tag{6.2}\n\\]\nThis quantity measures the one-sided expected uniform convergence of function class \\(\\mathcal{G}\\) with offset function \\(h(w, S_n)\\).\nWe note that\n\\[\n\\epsilon_{n}(\\mathcal{G},\\mathcal{D})=\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D}),\\qquad \\text{w i t h} h=0.\n\\]\nWe have the following generalization of Theorem 6.2, with a similar proof.\n\ndefinition 6.17. Given a function \\( h(w, S_n) \\), we define\n\\[\n\\Delta_{n}h(w)=\\sup\\{n\\cdot|h(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n}^{\\prime})|: |\\mathcal{S}_{n}\\cap\\mathcal{S}_{n}^{\\prime}| =n-1\\}.\n\\]\n\ndefinition 6.1. Given an empirical process \\(\\{\\phi(w, S_n) : w \\in \\Omega\\}\\), with \\(S_n \\sim \\mathcal{D}^n\\). Define the expected supremum of this empirical process as\n\\[\n\\epsilon_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}}\\sup_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})\\right],\n\\]\nwhich will be referred to as the uniform convergence complexity of the function class \\(\\mathcal{G}\\).\nThe smaller this quantity is, the closer the gap between the training error and the test error is, which implies that we have less overfitting. In Chapter 3, we\nobtained large probability uniform convergence results for empirical processes, and then derived oracle inequalities in large probabilities. In the following, we show that if average convergence can be obtained, then we can derive oracle inequalities in expectation directly.\n\nequation (6.1). The approximate regularized ERM method is to find \\( \\hat{w} \\in \\Omega \\) such that, for some \\( \\epsilon' \\geq 0 \\),\n\\[\n\\phi(\\hat{w},\\mathcal{S}_{n})+h(\\hat{w},\\mathcal{S}_{n})\\leq\\inf_{w\\in\\Omega}[\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})]+\\epsilon'.\\tag{6.1}\n\\]\nWhen \\(h = 0\\), this reduces to the plain approximate ERM method.\n\nexample 2.14. Consider a bounded random variable: \\( X_{1} \\in [\\alpha, \\beta] \\). Then \\( X_{1} \\) is sub-Gaussian with \\( b = (\\beta - \\alpha)^{2}/4 \\).\nThe tail probability inequality of Theorem 2.12 can also be expressed in a different form. Consider \\( \\delta \\in (0,1) \\) such that \\( \\delta = \\exp(-t) \\), we have \\( t = \\ln(1/\\delta) \\). This means that we can alternatively express the first bound of Theorem 2.12 as follows. With probability at least \\( 1 - \\delta \\), we have\n\\[\n\\bar{X}_{n}<\\mu+\\sqrt{\\frac{2 b\\ln(1/\\delta)}{n}}.\n\\]\nThis form is often preferred in the theoretical analysis of machine learning algorithms.", "theorems": [{"local_id": "T1", "statement": "Consider a real valued function class \\(\\mathcal{F} = \\{f(z):\\mathcal{Z}\\to \\mathbb{R}\\}\\). Let \\(\\mathcal{D}\\) be a distribution on \\(\\mathcal{Z}\\). Assume that there exists \\(M,\\sigma >0\\) so that \\(\\forall f\\in \\mathcal{F}\\),\n\\(\\sigma^2 \\geq \\operatorname{Var}_{Z \\sim \\mathcal{D}}[f(Z)]\\), and \\(\\sup_{z' \\in \\mathcal{Z}} [\\mathbb{E}_{Z \\sim \\mathcal{D}} f(Z) - f(z')] \\leq M\\). Let \\(\\mathcal{S}_n = \\{Z_1, \\ldots, Z_n\\}\\) be \\(n\\) independent random variables from \\(\\mathcal{D}\\). Then with probability at least \\(1 - \\delta\\) over \\(\\mathcal{S}_n\\), for all \\(f \\in \\mathcal{F}\\),\n\\[\n\\begin{array}{l}\\mathbb{E}_{Z\\sim\\mathcal{D}}f(Z)-\\frac{1}{n}\\sum_{i=1}^{n}f\\left(Z_{i}\\right)\\\\ \\leq\\epsilon_{n}(\\mathcal{F},\\mathcal{D})+\\sqrt{\\frac{(4 M\\epsilon_{n}(\\mathcal{F},\\mathcal{D})+2\\sigma^{2})\\ln(1/\\delta)}{n}}+\\frac{M\\ln(1/\\delta)}{3 n}\\\\ \\leq 2\\epsilon_{n}(\\mathcal{F},\\mathcal{D})+\\sqrt{\\frac{2\\sigma^{2}\\ln(1/\\delta)}{n}}+\\frac{4 M\\ln(1/\\delta)}{3 n},\\\\ \\end{array}\n\\]\nwhere \\(\\epsilon_{n}(\\mathcal{F},\\mathcal{D})\\) is Definition 6.1.", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\n\\zeta=\\sup_{f\\in\\mathcal{F}}\\left[n\\mathbb{E}_{Z\\sim\\mathcal{D}}f(Z)-\\sum_{i=1}^{n}f(Z_{i})\\right],\n\\]\nand\n\\[\n\\zeta_{k}=\\sup_{f\\in\\mathcal{F}}\\left[(n-1)\\mathbb{E}_{Z\\sim\\mathcal{D}}f(Z)-\\sum_{i\\neq k}f(Z_{i})\\right].\n\\]\nAssume that \\(\\zeta_{k}\\) is achieved at \\(f_{k}\\), and \\(\\zeta\\) achieved at \\(f_{0}\\)."}, {"n": 2, "claim": "Then\n\\[\n\\sum_{k=1}^{n}\\left[\\zeta-\\zeta_{k}\\right]\\leq\\sum_{k=1}^{n}\\left[\\mathbb{E}_{Z\\sim\\mathcal{D}}f_{0}(Z)-f_{0}\\left(Z_{k}\\right)\\right]=\\zeta .\n\\]\nLet\n\\[\n\\zeta_{k}^{\\prime}=\\left[n\\mathbb{E}_{Z\\sim\\mathcal{D}}f_{k}(Z)-\\sum_{i=1}^{n}f_{k}(Z_{i})\\right]-\\zeta_{k},\n\\]\nthen\n\\[\n\\zeta_{k}^{\\prime}\\leq\\zeta-\\zeta_{k}\\leq\\left[\\mathbb{E}_{Z}f_{0}(Z)-f_{0}(Z_{k})\\right]\\leq M.\n\\]\nMoreover, since \\(Z_{k}\\) is independent of \\(f_{k}\\), we have\n\\[\n\\mathbb{E}_{Z_{k}}\\zeta_{k}^{\\prime}=\\mathbb{E}_{Z_{k}}\\left[\\mathbb{E}_{Z}f_{k}(Z)-f_{k}\\left(Z_{k}\\right)\\right]=0\n\\]\n\\[\n\\mathbb{E}_{Z_{k}}\\left(\\zeta_{k}^{\\prime}\\right)^{2}=\\mathbb{E}_{Z_{k}}\\left[\\mathbb{E}_{Z}f_{k}(Z)-f_{k}(Z_{k})\\right]^{2}\\leq\\sigma^{2}.\n\\]\nBy taking \\( u = 1 \\) in Theorem 6.33, we obtain the first desired bound."}, {"n": 3, "claim": "The second bound is a consequence of\n\\[\n\\begin{array}{l}\\sqrt{\\left(4 M\\epsilon_{n}(\\mathcal{F},\\mathcal{D})+2\\sigma^{2}\\right)\\ln(1/\\delta)/n}\\\\ \\leq\\sqrt{4 M\\epsilon_{n}(\\mathcal{F},\\mathcal{D})\\ln(1/\\delta)/n}+\\sqrt{2\\sigma^{2}\\ln(1/\\delta)/n}\\\\ \\leq\\epsilon_{n}(\\mathcal{F},\\mathcal{D})+M\\ln(1/\\delta)/n+\\sqrt{2\\sigma^{2}\\ln(1/\\delta)/n}.\\\\ \\end{array}\n\\]\nThe first inequality used \\(\\sqrt{a + b} \\leq \\sqrt{a} + \\sqrt{b}\\), and the second inequality used \\(\\sqrt{4ab} \\leq a + b\\)."}]}}, {"local_id": "T2", "statement": "We have\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})\\leq\\inf_{\\epsilon\\geq 0}\\left[4\\epsilon+12\\int_{\\epsilon}^{\\infty}\\sqrt{\\frac{\\ln N(\\epsilon^{\\prime},\\mathcal{G},L_{2}(\\mathcal{S}_{n}))}{n}}d\\epsilon^{\\prime}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(B = \\sup_{g\\in \\mathcal{G}}\\| g\\|_{L_2(S_n)}\\), and let \\(\\epsilon_{\\ell} = 2^{-\\ell}B\\) for \\(\\ell = 0,1,\\ldots\\)."}, {"n": 2, "claim": "Let \\(\\mathcal{G}_{\\ell}\\) be an \\(\\epsilon_{\\ell}\\)-cover of \\(\\mathcal{G}\\) with metric \\(L_{2}(S_{n})\\), and \\(N_{\\ell} = |\\mathcal{G}_{\\ell}| = N(\\epsilon_{\\ell},\\mathcal{G},L_{2}(S_{n}))\\)."}, {"n": 3, "claim": "We may let \\(\\mathcal{G}_0 = \\{0\\}\\) at scale \\(\\epsilon_0 = B\\)."}, {"n": 4, "claim": "For each \\( g \\in \\mathcal{G} \\), we consider \\( g_{\\ell}(g) \\in \\mathcal{G}_{\\ell} \\) so that \\( \\| g - g_{\\ell}(g)\\|_{L_2(\\mathcal{S}_n)} \\leq \\epsilon_{\\ell} \\)."}, {"n": 5, "claim": "The key idea in chaining is to rewrite \\( g \\in \\mathcal{G} \\) using the following multi-scale decomposition:"}, {"n": 6, "claim": "\\[\ng=(g-g_{L}(g))+\\sum_{\\ell=1}^{L}(g_{\\ell}(g)-g_{\\ell-1}(g)).\n\\]\nWe also have\n\\[\n\\left\\|g_{\\ell}(g)-g_{\\ell-1}(g)\\right\\|_{L_{2}\\left(\\mathcal{S}_{n}\\right)}\\leq\\left\\|g_{\\ell}(g)-g\\right\\|_{L_{2}\\left(\\mathcal{S}_{n}\\right)}+\\left\\|g_{\\ell-1}(g)-g\\right\\|_{L_{2}\\left(\\mathcal{S}_{n}\\right)}\\leq 3\\epsilon_{\\ell}.\\tag{6.7}\n\\]\nThe number of distinct \\( g_{\\ell}(g) - g_{\\ell - 1}(g) \\) is no more than \\( N_{\\ell}N_{\\ell - 1} \\)."}, {"n": 7, "claim": "It implies that\n\\[\n\\begin{array}{l}R(\\mathcal{G},\\mathcal{S}_{n})=\\mathbb{E}_{\\sigma}\\sup_{g\\in\\mathcal{G}}\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}\\left[(g-g_{L}(g))(Z_{i})+\\sum_{\\ell=1}^{L}(g_{\\ell}(g)-g_{\\ell-1}(g))(Z_{i})\\right]\\\\ \\leq\\mathbb{E}_{\\sigma}\\sup_{g\\in\\mathcal{G}}\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}(g-g_{L}(g))(Z_{i})+\\sum_{\\ell=1}^{L}\\mathbb{E}_{\\sigma}\\sup_{g\\in\\mathcal{G}}\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}(g_{\\ell}(g)-g_{\\ell-1}(g))(Z_{i})\\\\ \\stackrel{(a)}{\\leq}\\epsilon_{L}+\\sum_{\\ell=1}^{L}\\sup_{g\\in\\mathcal{G}}\\|g_{\\ell}(g)-g_{\\ell-1}(g)\\|_{L_{2}(\\mathcal{S}_{n})}\\sqrt{\\frac{2\\ln [N_{\\ell}N_{\\ell-1}]}{n}}\\\\ \\stackrel{(b)}{\\leq}\\epsilon_{L}+3\\sum_{\\ell=1}^{L}\\epsilon_{\\ell}\\sqrt{\\frac{2\\ln\\left[N_{\\ell}N_{\\ell-1}\\right]}{n}}\\\\ \\leq\\epsilon_{L}+12\\sum_{\\ell=1}^{L}\\left(\\epsilon_{\\ell}-\\epsilon_{\\ell+1}\\right)\\sqrt{\\frac{\\ln\\left[N_{\\ell}\\right]}{n}}\\\\ \\leq\\epsilon_{L}+12\\int_{\\epsilon_{L}/2}^{\\infty}\\sqrt{\\frac{\\ln N(\\epsilon^{\\prime},\\mathcal{G},L_{2}(\\mathcal{S}_{n}))}{n}}d\\epsilon^{\\prime}.\\\\ \\end{array}\n\\]\nThe derivation of (a) used Theorem 6.23, and the derivation of (b) used (6.7)."}, {"n": 8, "claim": "The next two inequalities used \\( N(\\epsilon, \\mathcal{G}, L_2(S_n)) \\) is a non-increasing function of \\( \\epsilon \\)."}, {"n": 9, "claim": "Now given any \\( \\epsilon > 0 \\), we can choose \\( \\epsilon_L \\) so that \\( \\epsilon \\in [\\epsilon_L / 4, \\epsilon_L / 2] \\)."}, {"n": 10, "claim": "This leads to the desired result."}]}}, {"local_id": "T3", "statement": "Consider (6.1), and define\n\\[\n\\tilde{h}(w,\\mathcal{S}_{n})=h(w,\\mathcal{S}_{n})+h^{\\prime}(w),\n\\]\nwhere \\( h'(w) \\) is an arbitrary function of \\( w \\). Then\n\\[\n\\mathbb{E}_{\\mathcal{S}_{n}}[\\phi(\\hat{w},\\mathcal{D})-h^{\\prime}(\\hat{w})]\\leq\\inf_{w\\in\\Omega}[\\phi(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}h(w,\\mathcal{S}_{n})]+\\epsilon^{\\prime}+\\epsilon_{n}^{\\tilde{h}}(\\mathcal{G},\\mathcal{D}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\n\\tilde{\\phi}(w,z)=\\phi(w,z)-h^{\\prime}(w),\n\\]\nthen (6.1) remains the same with \\(\\phi(w, z)\\) replaced by \\(\\tilde{\\phi}(w, z)\\), and \\(h(w, S_n)\\) replaced by \\(\\tilde{h}(w, S_n)\\)."}, {"n": 2, "claim": "We can now apply Theorem 6.7 with \\(\\epsilon_n^h(\\mathcal{G}, \\mathcal{D})\\) replaced by\n\\[\n\\epsilon_{n}^{\\bar{h}}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}}\\sup_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})-h^{\\prime}(w)]\n\\]\nto obtain\n\\[\n\\mathbb{E}_{\\mathcal{S}_{n}}\\tilde{\\phi}(\\hat{w},\\mathcal{D})\\leq\\inf_{w\\in\\Omega}\\left[\\tilde{\\phi}(w,\\mathcal{D})+\\mathbb{E}_{\\mathcal{S}_{n}}\\tilde{h}(w,\\mathcal{S}_{n})\\right]+\\epsilon^{\\prime}+\\epsilon_{n}^{\\tilde{h}}(\\mathcal{G},\\mathcal{D}).\n\\]\nThis implies the desired bound."}]}}, {"local_id": "T4", "statement": "Assume that for some \\(M \\geq 0\\):\n\\[\n\\sup_{w\\in\\Omega}\\left[\\sup_{z,z^{\\prime}}[\\phi(w,z)-\\phi(w,z^{\\prime})]+\\Delta_{n}h(w)\\right]\\leq M.\n\\]\nThen with probability at least \\(1 - \\delta\\): for all \\(w \\in \\Omega\\)\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})+\\epsilon_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(1/\\delta)}{2 n}}.\n\\]\nMoreover, assume that the decomposition (6.3) holds, then with probability at least \\(1 - \\delta\\): for all \\(w \\in \\Omega\\),\n\\[\n\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+h(w,\\mathcal{S}_{n})+2 R_{n}^{h}(\\mathcal{G},\\mathcal{D})+M\\sqrt{\\frac{\\ln(1/\\delta)}{2 n}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Consider \\( \\mathcal{S}_n = \\{Z_1, \\ldots, Z_n\\} \\) and \\( \\mathcal{S}_n' = \\{Z_1, \\ldots, Z_{i-1}, Z_i', Z_{i+1}, \\ldots, Z_n\\} \\)."}, {"n": 2, "claim": "Let \\( f(\\mathcal{S}_n) = \\sup_{w \\in \\Omega} [\\phi(w, \\mathcal{D}) - \\phi(w, \\mathcal{S}_n) - h(w, \\mathcal{S}_n)] \\)."}, {"n": 3, "claim": "For simplicity, we assume that the sup can be achieved at \\( \\hat{w} \\) as\n\\[\n\\hat{w}=\\arg\\max_{w\\in\\Omega}[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n})-h(w,\\mathcal{S}_{n})].\n\\]\nThen\n\\[\n\\begin{array}{l}f\\left(\\mathcal{S}_{n}\\right)-f\\left(\\mathcal{S}_{n}^{\\prime}\\right)\\\\ =\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n})-h(\\hat{w},\\mathcal{S}_{n})\\right]-\\sup_{w\\in\\Omega}\\left[\\phi(w,\\mathcal{D})-\\phi(w,\\mathcal{S}_{n}^{\\prime})-h(w,\\mathcal{S}_{n}^{\\prime})\\right]\\\\ \\leq\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n})-h(\\hat{w},\\mathcal{S}_{n})\\right]-\\left[\\phi(\\hat{w},\\mathcal{D})-\\phi(\\hat{w},\\mathcal{S}_{n}^{\\prime})-h(\\hat{w},\\mathcal{S}_{n}^{\\prime})\\right]\\\\ \\leq\\frac{1}{n}[\\phi(\\hat{w},Z_{i}^{\\prime})-\\phi(\\hat{w},Z_{i})+\\Delta_{n}h(\\hat{w})]\\leq M/n.\\\\ \\end{array}\n\\]\nSimilarly, \\( f(\\mathcal{S}_n') - f(\\mathcal{S}_n) \\leq M / n \\)."}, {"n": 4, "claim": "Therefore we may take \\( c_i = M / n \\) in Theorem 6.16, which implies the first desired result."}, {"n": 5, "claim": "The second bound follows from the estimate \\( \\epsilon_n^h (\\mathcal{G},\\mathcal{D}) \\leq 2R_n^h (\\mathcal{G},\\mathcal{D}) \\) of Theorem 6.14."}]}}, {"local_id": "T5", "statement": "Setup. Throughout, \\(\\gamma > 0\\).\n\nIf \\(\\mathcal{G}\\) is a finite function class with \\(|\\mathcal{G}| = N\\), then\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n})\\leq\\sup_{g\\in\\mathcal{G}}\\|g\\|_{L_{2}(\\mathcal{S}_{n})}\\cdot\\sqrt{\\frac{2\\ln N}{n}}.\n\\]\nIf moreover, for all \\( g \\in \\mathcal{G} \\), \\( g(z) \\in [0,1] \\). Consider the offset decomposition (6.3), and let \\( h_0(g) = 0 \\), and \\( h_1(g, S_n) = (\\gamma / n)\\sum_{i=1}^{n} g(Z_i) \\). Then we have\n\\[\nR^{h}(\\mathcal{G},\\mathcal{S}_{n})\\leq\\frac{(1+0.5\\gamma)^{2}\\ln N}{\\gamma n}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(B = \\sup_{g\\in \\mathcal{G}}\\| g\\|_{L_2(\\mathcal{S}_n)}\\)."}, {"n": 2, "claim": "Then we have for all \\(\\lambda >0\\)\n\\[\n\\begin{array}{l}R(\\mathcal{G},\\mathcal{S}_{n})=\\mathbb{E}_{\\sigma}\\sup_{g\\in\\mathcal{G}}\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}g(Z_{i})\\\\ \\stackrel{(a)}{\\leq}\\mathbb{E}_{\\sigma}\\frac{1}{\\lambda n}\\ln\\sum_{g\\in\\mathcal{G}}\\exp\\left[\\lambda\\sum_{i=1}^{n}\\sigma_{i}g(Z_{i})\\right]\\\\ \\stackrel{(b)}{\\leq}\\frac{1}{\\lambda n}\\ln\\mathbb{E}_{\\sigma}\\sum_{g\\in\\mathcal{G}}\\exp\\left[\\lambda\\sum_{i=1}^{n}\\sigma_{i}g(Z_{i})\\right]\\\\ =\\frac{1}{\\lambda n}\\ln\\sum_{g\\in\\mathcal{G}}\\prod_{i=1}^{n}\\mathbb{E}_{\\sigma_{i}}\\exp\\left[\\lambda\\sigma_{i}g(Z_{i})\\right]\\\\ \\stackrel{(c)}{\\leq}\\frac{1}{\\lambda n}\\ln\\sum_{g\\in\\mathcal{G}}\\prod_{i=1}^{n}\\exp\\left[\\lambda^{2}g\\left(Z_{i}\\right)^{2}/2\\right]\\leq\\frac{1}{\\lambda n}\\ln N\\exp\\left[\\lambda^{2}n B^{2}/2\\right].\\\\ \\end{array}\n\\]\nIn \\((a)\\), we used soft-max to bound the max operator."}, {"n": 3, "claim": "In \\((b)\\), we used Jensen's inequality and the concavity of logarithm."}, {"n": 4, "claim": "In \\((c)\\), we used the moment generating function for bounded random variables (see Example 2.14)."}, {"n": 5, "claim": "Now we can obtain the first desired bound by optimizing over \\(\\lambda > 0\\)."}, {"n": 6, "claim": "For the second desired bound, we can obtain by duplicating the previous steps up to step \\((c)\\) to obtain\n\\[\n\\begin{array}{l}R^{h}(\\mathcal{G},\\mathcal{S}_{n})=\\mathbb{E}_{\\sigma}\\sup_{g\\in\\mathcal{G}}\\frac{1}{n}\\sum_{i=1}^{n}[\\sigma_{i}(1+0. 5\\gamma)g(Z_{i})-0. 5\\gamma g(Z_{i})]\\\\ \\leq\\frac{1}{\\lambda n}\\ln\\sum_{g\\in\\mathcal{G}}\\exp\\left[\\sum_{i=1}^{n}[\\lambda^{2}(1+0. 5\\gamma)^{2}g(Z_{i})^{2}/2-0. 5\\lambda\\gamma g(Z_{i})]\\right].\\\\ \\end{array}\n\\]\nNow set \\(\\lambda = \\gamma /(1 + 0.5\\gamma)^2\\), we obtain \\(R^{h}(\\mathcal{G},S_{n})\\leq \\frac{1}{\\lambda n}\\ln \\sum_{g\\in \\mathcal{G}}1\\), which implies the second bound."}]}}], "target_local_id": "T2", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch9_theorem_9_2__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nBlack-Box Procedure. A \\textit{black-box procedure} generates a sequence of points \\(\\{x_t\\}\\) such that \\[ x_{t+1} \\in x_0 + \\Span\\{g_1, \\dots, g_t\\}, \\] and \\(g_s \\in \\partial f (x_s)\\).\n\nStrong convexity. A function \\(f\\colon\\Omega\\to\\mathbb{R}\\) is \\emph{\\(\\alpha\\)-strongly convex} if, for all \\(x,y\\in\\Omega\\), the following inequality holds for some \\(\\alpha>0\\): \\[ f(y) \\geqslant f(x) + g(x)^\\top(y-x) + \\frac{\\alpha}{2}\\left\\lVert x-y\\right\\rVert^2 \\]\n\nUniform stability. The uniform stability of an algorithm \\(A\\) is defined as\n\\[\n\\Delta_{\\sup}(A) = \\sup_{S, S' \\in (X\\times Y)^m } \\sup_{i \\in [m]} |\\ell(A(S), z_i') - \\ell(A(S^{(i)}, z_i')|\n\\]\n\nConvex set. A set \\(K\\subseteq\\mathbb{R}^n\\) is convex if the line segment between any two points in \\(K\\) is also contained in \\(K\\). Formally, for all \\(x,y\\in K\\) and all scalars \\(\\gamma\\in[0,1]\\) we have \\(\\gamma x+(1-\\gamma)y\\in K\\).", "theorems": [{"local_id": "T1", "statement": "If \\(f\\) is in addition \\(\\alpha\\)-strongly convex w.r.t to \\(\\|\\cdot\\|_{[1-\\gamma]}\\), then we get\n\\[\n\\mathbb{E}[f(x_{t+1}) - \\arg\\min_{x \\in \\mathbb{R}^{n}} f(x)] \\leqslant \\left(1 - \\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^\\gamma}\\right)^t (f(x_1) - f(x^*)) \\ .\n\\]", "proof": {"steps": [{"n": 1, "claim": "We need the following lemma:\n\nLemma 12.4. Let \\(f\\) be an \\(\\alpha\\)-strongly convex function w.r.t. a norm \\(\\|\\cdot\\|\\). Then, \\(f(x) - f(x^{*}) \\leqslant \\frac{1}{2\\alpha}\\|\\nabla f(x)\\|_{*}^{2}\\)."}, {"n": 2, "claim": "Lemma 12.4 shows that\n\\[\n\\|\\nabla f(x_s)\\|^{*2}_{[1-\\gamma]} \\geqslant 2 \\alpha \\delta_s \\ .\n\\]\nOn the other hand, Theorem 12.2 showed that\n\\[\n\\delta_{t+1} - \\delta_t \\leqslant -\\frac{\\|\\nabla f(x_t)\\|^{*2}_{[1-\\gamma]}}{2\\sum_{i=1}^n \\beta_i^{\\gamma}}\n\\]\nCombining these two, we get\n\\begin{align*}\n\\delta_{t+1} - \\delta_t &\\leqslant -\\frac{\\alpha \\delta_t}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\\\\n\\delta_{t+1} &\\leqslant \\delta_t \\left(1 -\\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\right)~.\n\\end{align*}\nApplying the above inequality recursively and recalling that \\(\\delta_t = \\mathbb{E}[f(x_t) - f(x^*)]\\) gives the result."}]}}, {"local_id": "T2", "statement": "For any function \\(\\varphi(x,z)\\), \\[\\min_x \\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z)\\,.\\]", "proof": {"steps": [{"n": 1, "claim": "The proof is essentially tautological. Note that we always have \\[\\varphi(x,z) \\geqslant \\min_x \\varphi(x,z).\\] Taking the maximization with respect to the second argument verifies that \\[\\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z) \\quad \\forall x\\,.\\] Now, minimizing the left hand side with respect to \\(x\\) proves \\[\\min_x \\max_z \\varphi(x,z) \\geqslant \\max_z \\min_x \\varphi(x,z)\\] which is precisely our assertion."}]}}, {"local_id": "T3", "statement": "Setup. A black-box procedure generates points with \\(x_{t+1}\\in x_0+\\mathrm{Span}\\{g_1,\\dots,g_t\\}\\), \\(g_s\\in\\partial f(x_s)\\); throughout we normalize the starting point to \\(x_0=0\\), which is without loss of generality since the hard instance may be translated.\n\nLet \\(t \\leqslant n\\), \\(L, R > 0\\). There exists a convex \\(L\\)-Lipschitz function \\(f\\) such that any black-box procedure satisfies \\[ \\min_{1 \\leqslant s \\leqslant t} f(x_s) - \\min_{x \\in B_2(R)} f(x) \\geqslant \\frac{RL}{2(1+\\sqrt{t})}. \\] Furthermore, there is an \\(\\alpha\\)-strongly convex, \\(L\\)-Lipschitz function \\(f\\) such that \\[ \\min_{1 \\leqslant s \\leqslant t} f(x_s) - \\min_{x \\in B_2(\\frac{L}{2\\alpha})} f(x) \\geqslant \\frac{L^2}{8\\alpha t}. \\]", "proof": {"steps": [{"n": 1, "claim": "Consider the function \\[ f(x) = \\gamma \\max_{1 \\leqslant i \\leqslant t} x[i] + \\frac{\\alpha}{2} \\|x\\|^2, \\] for some \\(\\gamma, \\alpha \\in \\mathbb{R}\\)."}, {"n": 2, "claim": "In the strongly convex case, \\(\\gamma\\) is a free parameter, and in the Lipschitz case both \\(\\alpha\\) and \\(\\gamma\\) are free parameters."}, {"n": 3, "claim": "By the subdifferential calculus, \\[ \\partial f(x) = \\alpha x + \\gamma \\conv\\{e_i \\colon i \\in \\argmax_{1 \\leqslant j \\leqslant t} x(j)\\}. \\] The function \\(f\\) is evidently \\(\\alpha\\)-strongly convex."}, {"n": 4, "claim": "Furthermore, if \\(\\|x\\| \\leqslant R\\) and \\(g \\in \\partial f(x)\\), then \\(\\|g\\| \\leqslant \\alpha R + \\gamma\\), so \\(f\\) is \\((\\alpha R + \\gamma)\\)-Lipschitz on \\(B_2(R)\\)."}, {"n": 5, "claim": "Suppose the gradient oracle returns \\(g_i = \\alpha x + \\gamma e_i\\), where \\(i\\) is the first coordinate such that \\(x[i] = \\max_{1 \\leqslant j \\leqslant t} x[j]\\)."}, {"n": 6, "claim": "An inductive argument then shows \\[ x_s \\in \\Span\\{e_1, \\dots, e_{s-1}\\} \\] Consequently, for \\(s \\leqslant t\\), \\(f(x_s) \\geqslant 0\\)."}, {"n": 7, "claim": "However, consider \\(y\\in \\mathbb{R}^n\\) such that \\[ y[i] = \\begin{cases} -\\frac{\\gamma}{\\alpha t} &\\text{if } 1 \\leqslant i \\leqslant t\\\\ 0 &\\text{otherwise}. \\end{cases} \\] Since \\(0 \\in \\partial f(y)\\), \\(y\\) is a minimizer of \\(f\\) with objective value \\[ f(y) = \\frac{-\\gamma^2}{\\alpha t} + \\frac{\\alpha}{2}\\frac{\\gamma^2}{\\alpha^2 t} = -\\frac{\\gamma^2}{2\\alpha t}, \\] and hence \\(f(x_s) - f(y) \\geqslant \\frac{\\gamma^2}{2 \\alpha t}\\)."}, {"n": 8, "claim": "We conclude the proof by appropriately choosing \\(\\alpha\\) and \\(\\gamma\\)."}, {"n": 9, "claim": "In the convex, Lipschitz case, set \\[ \\alpha = \\frac{L}{R} \\frac{1}{1 + \\sqrt{t}} \\quad \\text{and} \\quad \\gamma = L \\frac{\\sqrt{t}}{1 + \\sqrt{t}}. \\] Then, \\(f\\) is \\(L\\)-Lipschitz, \\[ \\|y\\| = \\sqrt{t \\left(\\frac{-\\gamma}{\\alpha t} \\right)^2} = \\frac{\\gamma}{\\alpha \\sqrt{t}} = R \\] and hence \\[ f(x_s) - \\min_{x \\in B_2(R)} f(x) = f(x_s) - f(y) \\geqslant \\frac{\\gamma^2}{2\\alpha t} = \\frac{RL}{2(1+\\sqrt{t})}. \\] In the strongly-convex case, set \\(\\gamma = \\frac{L}{2}\\) and take \\(R = \\frac{L}{2\\alpha}\\)."}, {"n": 10, "claim": "Then, \\(f\\) is \\(L\\)-Lipschitz, \\[ \\|y\\| = \\frac{\\gamma}{\\alpha \\sqrt{t}} = \\frac{L}{2\\alpha \\sqrt{t}} = \\frac{R}{\\sqrt{t}} \\leqslant R, \\] and therefore \\[ f(x_s) - \\min_{x \\in B_2(L/2\\alpha)} f(x) = f(x_s) - f(y) \\geqslant \\frac{LR}{4t} = \\frac{L^2}{8\\alpha t}. \\]"}]}}, {"local_id": "T4", "statement": "Let \\(\\Omega \\subseteq \\mathbb{R}^d\\) be a closed convex set. Let \\(\\mathcal{A}\\) denote the affine set \\(\\{x : Ax = b\\}\\) for some \\(A \\in \\mathbb{R}^{n \\times d}\\) and \\(b \\in \\mathbb{R}^n\\). Suppose that the set \\(\\operatorname{ri}(\\Omega) \\cap \\mathcal{A}\\) is non-empty. Then for any \\(x \\in \\Omega \\cap \\mathcal{A}\\), \\[\\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x) = \\mathcal{N}_{\\Omega}(x) + \\{A^\\top \\lambda : \\lambda \\in \\mathbb{R}^n\\}\\,.\\]", "proof": {"steps": [{"n": 1, "claim": "The ``\\(\\supseteq\\)'' assertion is straightforward."}, {"n": 2, "claim": "To see this, suppose \\(z \\in \\Omega \\cap \\mathcal{A}\\) and note that \\(z-x \\in \\operatorname{null}(A)\\) so that \\((z-x)^\\top A^\\top \\lambda = \\lambda^\\top A(z-x) = 0\\) for all \\(\\lambda \\in \\mathbb{R}^n\\)."}, {"n": 3, "claim": "If \\(u \\in \\mathcal{N}_{\\Omega}(x)\\), then \\((z-x)^\\top u \\leqslant 0\\), so for \\(\\lambda \\in \\mathbb{R}^n\\), we have \\[\\langle z-x, u + A^\\top \\lambda \\rangle = \\langle z-x, u \\rangle \\leqslant 0\\] implying that \\(u + A^\\top \\lambda \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 4, "claim": "For the reverse inclusion, let \\(v \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 5, "claim": "Then we have \\[v^\\top (z-x) \\leqslant 0 \\text{ for all } z \\in \\Omega \\cap \\mathcal{A}.\\] Now define the sets \\[\\begin{aligned} C_1 &= \\left\\{ (y,\\mu) \\in \\mathbb{R}^{d+1} : y = z-x,\\,\\, z \\in \\Omega,\\,\\, \\mu \\leqslant v^\\top y \\right\\}\\\\ C_2 &= \\left\\{ (y,\\mu) \\in \\mathbb{R}^{d+1} : y \\in \\operatorname{ker}(A),\\,\\, \\mu = 0 \\right\\}\\,. \\end{aligned}\\] Note that \\(\\operatorname{ri}(C_1) \\cap C_2 = \\emptyset\\) because otherwise there would exist a \\((\\hat{y},\\hat{\\mu})\\) such that \\[v^\\top \\hat{y} > \\hat{\\mu} = 0\\] and \\(\\hat{y} \\in \\mathcal{T}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 6, "claim": "This would contradict our assumption that \\(v \\in \\mathcal{N}_{\\Omega \\cap \\mathcal{A}}(x)\\)."}, {"n": 7, "claim": "Since their intersection is empty, we can properly separate \\(\\operatorname{ri}(C_1)\\) from \\(C_2\\)."}, {"n": 8, "claim": "Indeed, since \\(C_2\\) is a subspace and \\(C_1\\) has nonempty relative interior, there must be a \\((w,\\gamma)\\) such that \\[\\inf_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} < \\sup_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} \\leqslant 0\\] while \\[w^\\top u = 0 \\text{ for all } u \\in \\ker(A).\\] In particular, this means that \\(w = A^\\top \\lambda\\) for some \\(\\lambda \\in \\mathbb{R}^n\\)."}, {"n": 9, "claim": "Now, \\(\\gamma\\) must be nonnegative, as otherwise, \\[\\sup_{(y,\\mu)\\in C_1} \\{ w^\\top y + \\gamma \\mu\\} = \\infty\\] (which can be seen by letting \\(\\mu\\) tend to negative infinity)."}, {"n": 10, "claim": "If \\(\\gamma = 0\\), then \\[\\sup_{y \\in C_1} w^\\top y \\leqslant 0\\] but the set \\(\\{y : w^\\top y = 0\\}\\) does not contain the set \\(\\{z-x : z \\in \\Omega\\}\\) as the infimum is strictly negative."}, {"n": 11, "claim": "This means that the relative interior of \\(\\Omega - \\{x\\}\\) cannot intersect the kernel of \\(A\\) which contradicts our assumptions."}, {"n": 12, "claim": "Thus, we can conclude that \\(\\gamma\\) is strictly positive."}, {"n": 13, "claim": "By homogeneity, we may as well assume that \\(\\gamma = 1\\)."}, {"n": 14, "claim": "To complete the argument, note that we now have \\[(w+v)^\\top (z-x) \\leqslant 0 \\text{ for all } z \\in \\Omega.\\] This means that \\(v+w \\in \\mathcal{N}_{\\Omega}(x)\\) and we have already shown that \\(w = A^\\top \\lambda\\)."}, {"n": 15, "claim": "Thus, \\[v = (v+w)-w \\in \\mathcal{N}_{\\Omega}(x) + \\mathcal{N}_{\\mathcal{A}}(x)\\,.\\]"}]}}, {"local_id": "T5", "statement": "Assume \\(\\ell(w, z)\\) is \\(\\alpha\\)-strongly convex over the domain \\(\\Omega\\) and \\(L\\)-Lipschitz. Let \\(\\hat w_S = \\arg \\min_{w\\in \\Omega} \\frac{1}{m} \\sum_{i=1}^m \\ell(w, z_i)\\) denote the empirical risk minimizer (ERM). Then, ERM satisfies\n\\[\n\\Delta_{\\sup} (\\text{ERM}) \\leqslant \\frac{4L^2}{\\alpha m}\\,.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Denote by \\(\\hat w_S\\) the empirical risk minimizer on a sample \\(S.\\) Fix arbitrary samples \\(S,S'\\) of size \\(m\\) and an index \\(i\\in[m].\\) We need to show that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nOn one hand, by strong convexity we know that\n\\[\nR_S(\\hat w_{S^{(i)}}) - R_S(\\hat w_{S}) \\geqslant \\frac{\\alpha}{2} \\| \\hat w_{S} - \\hat w_{S^{(i)}} \\|^2 \\,.\n\\]\nOn the other hand,\n\\begin{align*}\n&R_S(\\hat w_{S^{(i)}})-R_S(\\hat w_{S})\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}\\sum_{i\\neq j}(\\ell(\\hat w_{S^{(i)}},z_j)-\\ell(\\hat w_{S},z_j))\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))+\\left(R_{S^{(i)}}(\\hat w_{S^{(i)}})-R_{S^{(i)}}(\\hat w_{S})\\right)\\\\\n&\\leqslant\\frac{1}{m}|\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i)| +\\frac{1}{m}|(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))|\\\\\n&\\leqslant\\frac{2L}{m}\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\,.\n\\end{align*}\nHere, we used that\n\\[\nR_{S^{(i)}}(\\hat w_{S^{(i)}}) - R_{S^{(i)}}(\\hat w_{S})) \\leqslant 0\n\\]\nand the fact that \\(\\ell\\) is \\(L\\)-Lipschitz."}, {"n": 2, "claim": "Putting it all together \\(\\| \\hat w_{S^{(i)}} - \\hat w_{S} \\| \\leqslant \\frac{4 L}{\\alpha m}\\). Then by the Lipschitz condition we have that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant L\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nHence, \\(\\Delta_{\\sup}(\\text{ERM}) \\leqslant \\frac{4 L ^ 2}{\\alpha m}\\)."}]}}], "target_local_id": "T3", "topic_domain": "Optimization", "topic_subtopic": "Algorithms & Convergence", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch12_proposition_12_21__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nPacking Number. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite subset \\(\\mathcal{G}(\\epsilon)\\subset \\mathcal{G}\\) is an \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\) if \\(d(\\phi,\\phi^{\\prime})>\\epsilon\\) for all \\(\\phi,\\phi^{\\prime}\\in\\mathcal{G}(\\epsilon)\\). The \\(\\epsilon\\)-packing number of \\(\\mathcal{G}\\), denoted by \\(M(\\epsilon,\\mathcal{G},d)\\), is the largest cardinality of \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\).\nThe following results illustrate the equivalence between covering number and packing number. One advantage of using an \\(\\epsilon\\) packing of \\(\\mathcal{G}\\) instead of an \\(\\epsilon\\) cover of \\(\\mathcal{G}\\) is that all members in the \\(\\epsilon\\) packing also belong to \\(\\mathcal{G}\\). There if members in \\(\\mathcal{G}\\) satisfy certain assumptions such as the variance condition, then members of its \\(\\epsilon\\) packing also satisfy such assumptions. For this reason, we will use packing numbers instead of covering numbers in some of the theoretical analysis in later chapters.\n\ndefinition 12.9. Consider a distribution family \\(\\mathcal{P}\\) on sample space \\(\\mathcal{Z}\\), a parameter space \\(\\Theta\\). A learning algorithm \\(\\mathcal{A}:\\mathcal{Z}^n\\to \\Theta\\), a loss function \\(Q:\\Theta \\times \\mathcal{P}\\rightarrow \\mathbb{R}\\). Then the worst case expected risk of a learning algorithm (i.e., a statistical estimator) \\(\\mathcal{A}\\) with respect to \\(\\mathcal{P}\\) is given by\n\\[\nr_{n}(\\mathcal{A},\\mathcal{P},Q)=\\sup_{\\mathcal{D}\\in\\mathcal{P}}\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\mathbb{E}_{\\mathcal{A}}Q(\\mathcal{A}(\\mathcal{S}_{n}),\\mathcal{D}),\n\\]\nwhere \\(\\mathbb{E}_{\\mathcal{A}}\\) is the expectation over any internal randomization of \\(\\mathcal{A}\\). Moreover, the minimax risk is defined as:\n\\[\nr_{n}(\\mathcal{P},Q)=\\inf_{\\mathcal{A}}r_{n}(\\mathcal{A},\\mathcal{P},Q).\n\\]\nThe standard statistical framework for optimality is to find an algorithm with the smallest worse case risk \\( r_n(\\mathcal{A}, \\mathcal{P}, Q) \\). This type of analysis is referred to as minimax analysis. The minimax risk \\( r_n(\\mathcal{P}, Q) \\) depends only on the sample size \\( n \\), distribution family \\( \\mathcal{P} \\), and the loss function \\( Q \\). In nonparametric statistics, it is difficult to find the exact expression of minimax risk. Therefore we often consider rate optimal algorithms \\( \\mathcal{A} \\), which achieves the optimal minimax risk \\( r_n(\\mathcal{P}, Q) \\) up to a constant factor as \\( n \\to \\infty \\).\nIn minimax analysis, we are interested in estimating the minimax risk (up to a constant factor). To establish an upper bound of \\( r_n(\\mathcal{P}, Q) \\), we consider specific learning algorithms and analyze their convergence rates. For example, if we consider the ERM method \\( \\mathcal{A}_{\\mathrm{erm}} \\) for the least squares regression problem, then we may obtain an upper bound of\n\\[\nr_{n}(\\mathcal{P},Q)\\leq r_{n}(\\mathcal{A}_{\\mathrm{erm}},\\mathcal{P},Q)=O(n^{-r}),\n\\]\nfor some \\(r > 0\\), based on the analysis of Example 6.49.\nOn the other hand, if we can show a lower bound \\(r_n(\\mathcal{P}, Q) \\geq cn^{-r}\\) for some constant \\(c\\) that may depend on \\(\\mathcal{P}\\) but independent of \\(n\\), then we know that the\nERM method achieves the optimal minimax lower bound. That is, no statistical estimator can perform much better than ERM up to a constant factor for this distribution family. If the lower bound is \\( O(n^{-r^{\\prime}}) \\) for \\( r^{\\prime} > r \\), then ERM may not be optimal. As we will see, both situations can happen depending on the entropy of the function class \\( \\mathcal{F} \\) to be estimated.\n\nexample 12.6. For least squares problem, \\( f(x) \\) is a real valued regression function. Let \\( f_{\\mathcal{D}}(x) = \\mathbb{E}_{\\mathcal{D}}[Y|X = x] \\). We may define\n\\[\nQ(f,\\mathcal{D})=\\mathbb{E}_{X\\sim\\mathcal{D}}(f(X)-f_{\\mathcal{D}}(X))^{2}.\n\\]\nFor the least squares regression problem in Example 12.6, we consider a function class \\(\\mathcal{F}\\) that contains the optimal prediction rule \\(f_{\\mathcal{D}}(X) = \\mathbb{E}[Y|X]\\), and\n\\[\nQ_{\\mathrm{LS}}(f,\\mathcal{D})=\\mathbb{E}_{X\\sim\\mathcal{D}}(f(X)-f_{\\mathcal{D}}(X))^{2}.\n\\]\nGiven a function class \\(\\mathcal{F}\\), instead of running least squares on \\(\\mathcal{F}\\) with\n\\[\n\\hat{f}=\\arg\\min_{f\\in\\mathcal{F}}\\sum_{i=1}^{n}(f(X_{i})-Y_{i})^{2},\n\\]\nthe sieve method considers a subset \\(\\mathcal{F}_n \\subset \\mathcal{F}\\), and then perform least squares regression restricted to this subset:\n\\[\n\\hat{f}_{\\mathcal{F}_{n}}=\\arg\\min_{f\\in\\mathcal{F}_{n}}\\sum_{i=1}^{n}(f(X_{i})-Y_{i})^{2}.\n\\]\n\nexample 6.49. Consider a function class \\(\\mathcal{F}\\) and the ERM method for least squares regression:\n\\[\n\\hat{f}=\\arg\\min_{f\\in\\mathcal{F}}\\frac{1}{n}\\sum_{i=1}^{n}(f(X_{i})-Y_{i})^{2},\n\\]\nwhere \\( Z_{i} = (X_{i},Y_{i}) \\) are iid samples from \\( \\mathcal{D} \\). Assume that \\( |f(X) - Y| \\in [0,1] \\) for all \\( X \\) and \\( Y \\). Example 3.18 implies that the loss function \\( \\phi (f,Z) = [(f(X) - Y)^2 -(f_*(X) - Y)^2 ] \\) satisfies the variance condition if the true regression function \\( f_{*} \\in \\mathcal{F} \\). Assume also that the empirical covering number of \\( \\mathcal{F} \\) satisfies:\n\\[\n\\ln N_{2}(\\epsilon,\\mathcal{F},n)\\leq\\frac{c}{\\epsilon^{p}}\\tag{6.9}\n\\]\nfor some constant \\( c > 0 \\) and \\( p > 0 \\). We consider the following two situations: \\( p \\in (0,2) \\) and \\( p \\geq 2 \\). Let \\( h(f) = \\phi(f,\\mathcal{D}) \\) with \\( h_0(f) = 0 \\).\n- \\( p \\in (0, 2) \\). The conditions of Corollary 6.44 hold with \\( c_0 = 0 \\). This implies the following bound (see Exercises 6.9) on the rate function with constant \\( \\alpha \\):\n\\[\n\\bar{r}^{h}(\\alpha,\\mathcal{F},\\mathcal{D})=O\\left(n^{-2/(2+p)}\\right).\n\\]\nWe thus have with probability at least \\(1 - \\delta\\):\n\\[\n\\mathbb{E}_{\\mathcal{D}}L(\\hat{f}(X),Y)\\leq\\mathbb{E}_{\\mathcal{D}}L(f_{*}(X),Y)+O\\left(n^{-2/(2+p)}+\\frac{\\ln(1/\\delta)}{n}\\right).\n\\]\n- \\( p > 2 \\). The entropy integral of Theorem 6.25 implies that\n\\[\nR_{n}(\\mathcal{F}^{h}(b),\\mathcal{D})\\leq\\frac{\\tilde{c}_{1}}{n^{1/p}}\n\\]\nfor some constant \\(\\tilde{c}_1\\). We thus obtain a rate of convergence of\n\\[\n\\bar{r}^{h}(\\alpha,\\mathcal{F},\\mathcal{D})=O\\left(n^{-1/p}\\right)\n\\]\nfor local Rademacher complexity. It can be shown that this is the same rate as what we can obtain from the standard non-localized Rademacher complexity (see Exercise 6.7).", "theorems": [{"local_id": "T1", "statement": "Assume that the distribution of \\( X \\) is \\( \\mathcal{D}_X \\). Let \\( \\mathcal{F}_n \\) be an \\( \\epsilon \\) packing subset of \\( \\mathcal{F} \\) in the \\( L_2(\\mathcal{D}_X) \\) metric with \\( M(\\epsilon, \\mathcal{F}, L_2(\\mathcal{D}_X)) \\) members. Assume there exists \\( b > 0 \\) such that \\( [f(X) - f'(X)] \\leq 2b \\) for all \\( f, f' \\in \\mathcal{F} \\). Assume that \\( f_{\\mathcal{D}} \\in \\mathcal{F} \\) and \\( Y \\) is sub-Gaussian:\n\\[\n\\ln\\mathbb{E}_{Y|X}\\exp(\\lambda(Y-f_{\\mathcal{D}}(X)))\\leq\\frac{\\lambda^{2}b^{2}}{2}.\n\\]\nThen\n\\[\n\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\mathbb{E}_{X\\sim\\mathcal{D}_{X}}(\\hat{f}_{\\mathcal{F}_{n}}(X)-f_{\\mathcal{D}}(X))^{2}\\leq\\left[4\\epsilon^{2}+\\frac{14 b^{2}}{n}\\ln M(\\epsilon,\\mathcal{F},L_{2}(\\mathcal{D}_{X}))\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\phi(f,Z) = (f(X) - Y)^2 - (f_{\\mathcal{D}}(X) - Y)^2\\) with \\(Z = (X,Y)\\)."}, {"n": 2, "claim": "Let \\(\\rho = b^{-2} / 4\\). Then we have\n\\[\n\\begin{array}{l}\\Lambda(\\rho,f)= -\\frac{1}{\\rho}\\ln\\mathbb{E}_{Z}e^{-\\rho\\phi(f,Z)}\\quad \\text{(d e f i n i t i o n o f}\\Lambda \\text{i n T h e o r e m 1 0 . 1 8)}\\\\ = -\\frac{1}{\\rho}\\ln\\mathbb{E}_{Z}e^{-\\rho(f(X)-f_{\\mathcal{D}}(X))^{2}+2\\rho(f(X)-f_{\\mathcal{D}}(X))(Y-f_{\\mathcal{D}}(X))}\\quad(\\text{d e f i n i t i o n o f}\\phi)\\\\ \\geq-\\frac{1}{\\rho}\\ln\\mathbb{E}_{X}e^{(-\\rho+2\\rho^{2}b^{2})(f(X)-f_{\\mathcal{D}}(X))^{2}}\\quad(\\mathrm{sub-Gaussiannoiseassumption})\\\\ \\geq\\frac{1}{\\rho}\\left[1-\\mathbb{E}_{X}e^{-0. 5\\rho(f(X)-f_{\\mathcal{D}}(X))^{2}}\\right]\\quad(-\\ln z\\geq 1-z)\\\\ \\geq\\frac{1}{\\rho}\\mathbb{E}_{X}e^{-2\\rho b^{2}}0. 5\\rho(f(X)-f_{\\mathcal{D}}(X))^{2}\\quad(1-e^{-z}\\geq e^{-a}z \\text{f o r} z\\in [0,a])\\\\ \\geq 0. 3\\mathbb{E}_{X}(f(X)-f_{\\mathcal{D}}(X))^{2}.\\quad\\left(2\\rho b^{2}=0. 5\\right)\\\\ \\end{array}\n\\]\nIt follows from Theorem 10.18 by setting \\( 1 / (\\lambda n) = \\rho = b^{-2} / 4 \\) (which implies that \\( \\lambda = 4b^{2} / n \\)) that for any random estimator \\( \\hat{q} \\) on \\( \\mathcal{F}_n \\):"}, {"n": 3, "claim": "\\[\n\\begin{array}{l}0. 3\\mathbb{E}_{\\mathcal{S}_{n}}\\mathbb{E}_{f\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\mathbb{E}_{X}(f(X)-f_{\\mathcal{D}}(X))^{2}\\\\ \\leq\\mathbb{E}_{\\mathcal{S}_{n}}\\mathbb{E}_{f\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\frac{1}{n}\\sum_{i=1}^{n}\\phi(f,Z_{i})+\\frac{4b^{2}}{n}\\mathbb{E}_{\\mathcal{S}_{n}}\\mathrm{KL}(\\hat{q}\\|q_{0}).\\tag{12.1}\\\\ \\end{array}\n\\]\nLet \\(\\hat{q}\\) corresponding to the deterministic estimator \\(\\hat{f}_{\\mathcal{F}_n}\\), and \\(q_0\\) be the uniform distribution on \\(\\mathcal{F}_n\\)."}, {"n": 4, "claim": "Then \\(\\mathrm{KL}(\\hat{q} || q_0) \\leq \\ln |\\mathcal{F}_n|\\)."}, {"n": 5, "claim": "Therefore we obtain\n\\[\n\\begin{array}{l}0. 3\\mathbb{E}_{\\mathcal{S}_{n}}Q_{\\mathrm{LS}}(\\hat{f}_{\\mathcal{F}_{n}},\\mathcal{D})\\leq\\mathbb{E}_{\\mathcal{S}_{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\phi(\\hat{f}_{\\mathcal{F}_{n}},Z_{i})+\\frac{4b^{2}}{n}\\ln|\\mathcal{F}_{n}|\\\\ \\leq\\inf_{f\\in\\mathcal{F}_{n}}\\mathbb{E}_{\\mathcal{S}_{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\phi(f,Z_{i})+\\frac{4b^{2}}{n}\\ln|\\mathcal{F}_{n}|\\\\ \\left(\\hat{f}_{\\mathcal{F}_{n}}\\text{i s e m p i r i c a l r i k m i n i m i z e r o f}\\mathcal{F}_{n}\\right)\\\\ \\leq\\inf_{f\\in\\mathcal{F}_{n}}Q_{\\mathrm{LS}}(f,\\mathcal{D})+\\frac{4b^{2}}{n}\\ln|\\mathcal{F}_{n}|\\leq\\epsilon^{2}+\\frac{4b^{2}}{n}\\ln|\\mathcal{F}_{n}|.\\\\ \\end{array}\n\\]\nThe last inequality used the fact that \\(\\mathcal{F}_n\\) is an \\(\\epsilon\\) packing of \\(\\mathcal{F}\\) and \\(f_{\\mathcal{D}} \\in \\mathcal{F}\\)."}, {"n": 6, "claim": "This implies the desired bound."}]}}, {"local_id": "T2", "statement": "The mutual information \\( I(j,Z) \\) in Theorem 12.11 satisfies the inequality\n\\[\nI(j,Z)\\leq\\frac{1}{N^{2}}\\sum_{j=1}^{N}\\sum_{k=1}^{N}\\mathrm{KL}(\\mathcal{D}_{j}| |\\mathcal{D}_{k})\\leq\\sup_{j,k}\\mathrm{KL}(\\mathcal{D}_{j}| |\\mathcal{D}_{k}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}I(j,Z)=\\frac{1}{N}\\sum_{j=1}^{N}\\mathbb{E}_{Z\\sim\\mathcal{D}_{j}}\\ln\\frac{p_{\\mathcal{D}_{j}}(Z)}{\\frac{1}{N}\\sum_{k=1}^{N}p_{\\mathcal{D}_{k}}(Z)}\\\\ \\leq\\frac{1}{N^{2}}\\sum_{j=1}^{N}\\sum_{k=1}^{N}\\mathbb{E}_{Z\\sim\\mathcal{D}_{j}}\\ln\\frac{p_{\\mathcal{D}_{j}}(Z)}{p_{\\mathcal{D}_{k}}(Z)},\\\\ \\end{array}\n\\]\nwhere the inequality used Jensen's inequality and the convexity of \\(-\\ln z\\)"}]}}, {"local_id": "T3", "statement": "Consider a finite family of distributions \\(\\mathcal{P}\\). Let \\(d \\geq 1\\) be an integer, and \\(Q\\) can be decomposed as\n\\[\nQ(\\theta,\\mathcal{D})=\\sum_{j=1}^{d}Q_{j}(\\theta,\\mathcal{D}),\n\\]\nwhere \\( Q_{j} \\geq 0 \\) are all non-negative. Assume for all \\( j \\), there exists a partition \\( M_{j} \\) of \\( \\mathcal{P} \\). We use notation \\( \\mathcal{D}' \\sim_{j} \\mathcal{D} \\) to indicate that \\( \\mathcal{D}' \\) and \\( \\mathcal{D} \\) belong to the same partition in \\( M_{j} \\). Let \\( m_{j}(\\mathcal{D}) \\) be the number of elements in the partition containing \\( \\mathcal{D} \\). Assume there exist \\( \\epsilon, \\beta \\geq 0 \\) such that\n\\[\n\\begin{array}{l}\\forall\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D},\\mathcal{D}^{\\prime}\\neq\\mathcal{D}:\\quad\\inf_{\\theta}[Q_{j}(\\theta,\\mathcal{D}^{\\prime})+Q_{j}(\\theta,\\mathcal{D})]\\geq\\epsilon,\\\\ \\forall\\mathcal{D}\\in\\mathcal{P}:\\frac{1}{d(\\mathcal{P})}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\frac{1}{m_{j}(\\mathcal{D})-1}\\sum_{\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D}}\\|\\mathcal{D}^{\\prime}-\\mathcal{D}\\|_{\\mathrm{TV}}\\leq\\beta,\\\\ \\end{array}\n\\]\nwhere \\(\\mathcal{P}_j = \\{\\mathcal{D}\\in \\mathcal{P}:m_j(\\mathcal{D}) > 1\\}\\) and \\(d(\\mathcal{P}) = \\sum_{j = 1}^{d}|\\mathcal{P}_j|\\). Let \\(\\mathcal{A}(Z)\\) be any estimator, we have\n\\[\n\\frac{1}{|\\mathcal{P}|}\\sum_{\\mathcal{D}\\in\\mathcal{P}}\\mathbb{E}_{Z\\sim\\mathcal{D}}\\mathbb{E}_{\\mathcal{A}}Q(\\mathcal{A}(Z),\\mathcal{D})\\geq\\frac{\\epsilon d(\\mathcal{P})}{2|\\mathcal{P}|}[1-\\beta],\n\\]\nwhere \\(\\mathbb{E}_A\\) is with respect to the internal randomization in \\(\\mathcal{A}\\).", "proof": {"steps": [{"n": 1, "claim": "For notation convenient, assume there exists \\(d\\mu (z)\\) so that for all \\(\\mathcal{D}\\in \\mathcal{P}\\), \\(p_{\\mathcal{D}}(z)d\\mu (z)\\) is the distribution of \\(\\mathcal{D}\\)."}, {"n": 2, "claim": "Then\n\\[\n\\begin{array}{l}\\frac{2}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}}\\mathbb{E}_{Z\\sim\\mathcal{D}}Q_{j}(\\mathcal{A}(Z),\\mathcal{D})\\geq\\frac{2}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\mathbb{E}_{Z\\sim\\mathcal{D}}Q_{j}(\\mathcal{A}(Z),\\mathcal{D})\\\\ =\\frac{1}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\frac{1}{m_{j}(\\mathcal{D})-1}\\sum_{\\substack{\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D}\\\\ \\mathcal{D}^{\\prime}\\neq\\mathcal{D}}}\\left[\\mathbb{E}_{Z\\sim\\mathcal{D}^{\\prime}}Q_{j}(\\mathcal{A}(Z),\\mathcal{D}^{\\prime})+\\mathbb{E}_{Z\\sim\\mathcal{D}}Q_{j}(\\mathcal{A}(Z),\\mathcal{D})\\right]\\\\ =\\frac{1}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\frac{1}{m_{j}(\\mathcal{D})-1}\\sum_{\\substack{\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D}\\\\ \\mathcal{D}^{\\prime}\\neq\\mathcal{D}}}\\int [Q_{j}(\\mathcal{A}(z),\\mathcal{D})p_{\\mathcal{D}}(z)+Q_{j}(\\mathcal{A}(z),\\mathcal{D}^{\\prime})p_{\\mathcal{D}^{\\prime}}(z)]d\\mu(z)\\\\ \\stackrel{(a)}{\\geq}\\frac{1}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\frac{1}{m_{j}(\\mathcal{D})-1}\\sum_{\\substack{\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D}\\\\ \\mathcal{D}^{\\prime}\\neq\\mathcal{D}}}\\int\\epsilon\\min(p_{\\mathcal{D}}(z),p_{\\mathcal{D}^{\\prime}}(z))d\\mu(z)\\\\ \\stackrel{(b)}{=}\\frac{1}{|\\mathcal{P}|}\\sum_{j=1}^{d}\\sum_{\\mathcal{D}\\in\\mathcal{P}_{j}}\\frac{1}{m_{j}(\\mathcal{D})-1}\\sum_{\\substack{\\mathcal{D}^{\\prime}\\sim_{j}\\mathcal{D}\\\\ \\mathcal{D}^{\\prime}\\neq\\mathcal{D}}}\\epsilon(1-\\|\\mathcal{D}-\\mathcal{D}^{\\prime}\\|_{\\mathrm{TV}}).\\\\ \\end{array}\n\\]\nIn the above derivation, the first inequality used \\( Q_{j}(\\cdot) \\geq 0 \\); (a) used the assumption of the lemma, and (b) used the definition of TV-norm (see Appendix B)."}, {"n": 3, "claim": "By rearranging the last term and using the definition of \\( \\beta \\), we obtain the desired bound."}]}}, {"local_id": "T4", "statement": "If for some \\(C > 0\\) and \\(\\epsilon > 0\\):\n\\[\nC^{-1}\\epsilon^{-q}\\leq\\ln M(\\epsilon,\\mathcal{F},L_{2}(\\mathcal{D}_{X}))\\leq C\\epsilon^{-q}.\n\\]\nFor noise model that satisfies the condition of Theorem 12.17, we have\n\\[\nr_{n}(\\mathcal{P},Q_{\\mathrm{LS}})\\geq C^{\\prime}n^{-2/(2+q)}\n\\]\nfor some \\(C' > 0\\).", "proof": {"steps": [{"n": 1, "claim": "We consider an \\(\\epsilon\\) packing subset \\(\\mathcal{F}'\\) of \\(\\mathcal{F}\\) with size of at least \\(\\exp(C^{-1}\\epsilon^{-q})\\)."}, {"n": 2, "claim": "Since for some \\(C_0 > 0\\),\n\\[\n\\ln N\\left(0. 5C_{0}\\epsilon,\\mathcal{F},L_{2}\\left(\\mathcal{D}_{X}\\right)\\right)\\leq 0. 5C^{-1}\\epsilon^{-q},\n\\]\nit implies that there exists a ball of size \\(0.5C_0\\epsilon\\), which contains at least\n\\[\n\\frac{\\exp(C^{-1}\\epsilon^{-q})}{\\exp(0.5C^{-1}\\epsilon^{-q})}=\\exp(0. 5C^{-1}\\epsilon^{-q})\n\\]\nmembers of \\(\\mathcal{F}'\\)."}, {"n": 3, "claim": "This means we can find \\(N \\geq \\exp(0.5C^{-1}\\epsilon^{-q})\\) functions \\(\\{f_1, \\ldots, f_N\\}\\) such that\n\\[\n\\begin{array}{l}\\sup_{j\\neq k}Q(f_{j},f_{k})\\leq C_{0}^{2}\\epsilon^{2},\\\\ \\inf_{j\\neq k}Q(f_{j},f_{k})\\geq\\epsilon^{2},\\\\ \\end{array}\n\\]\nwhere \\( Q(f, f') = \\mathbb{E}_{X \\sim \\mathcal{D}_X}(f(X) - f'(X))^2 \\)."}, {"n": 4, "claim": "Now let \\( n = \\lceil (C' / \\epsilon^2)^{(q + 2) / 2} \\rceil \\) for a sufficiently small constant \\( C' \\), then we have\n\\[\n\\ln N\\geq 0.5 C^{-1}\\epsilon^{-q}\\geq\\ln 4+n\\sigma^{-2}C_{0}^{2}\\epsilon^{2}\\geq\\ln 4+n\\sigma^{-2}\\sup_{j\\neq k}Q(f_{j},f_{k}).\n\\]"}, {"n": 5, "claim": "Theorem 12.17 implies that \\(r_{n}(\\mathcal{P},Q_{\\mathrm{LS}})\\geq 0.125\\epsilon^{2}\\). Since \\(\\epsilon^{2}\\geq C^{\\prime}n^{-2/(q+2)}\\), we obtain the desired bound."}]}}, {"local_id": "T5", "statement": "Consider a randomized algorithm \\(\\mathcal{A}\\) that returns a distribution \\(\\hat{q}(w|S_n)\\) on the parameter space \\(\\Omega\\) for each training data \\(S_n \\in \\mathcal{Z}^n\\). Let\n\\[\n\\Lambda(\\lambda,w)= -\\frac{1}{\\lambda}\\ln\\mathbb{E}_{Z\\sim\\mathcal{D}}\\exp(-\\lambda\\phi(w,Z)).\n\\]\nThen for any data independent distribution \\(q_0\\) on \\(\\Omega\\) and \\(\\lambda > 0\\), we have\n\\[\n\\mathbb{E}_{\\mathcal{S}_{n}}\\mathbb{E}_{w\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\Lambda(1/(\\lambda n),w)\\leq\\mathbb{E}_{\\mathcal{S}_{n}}\\mathbb{E}_{w\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})+\\lambda\\mathbb{E}_{\\mathcal{S}_{n}}\\mathrm{KL}(\\hat{q}| |q_{0}).\n\\]\nMoreover, for any \\(\\lambda > 0\\), with probability at least \\(1 - \\delta\\) over \\(S_{n}\\):\n\\[\n\\mathbb{E}_{w\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\Lambda(1/(\\lambda n),w)\\leq\\mathbb{E}_{w\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})+[\\lambda\\mathrm{KL}(\\hat{q}| |q_{0})+\\lambda\\ln(1/\\delta)].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let\n\\[\n\\Delta(\\mathcal{S}_{n})=\\sup_{\\hat{q}}\\left[\\mathbb{E}_{w\\sim\\hat{q}(\\cdot|\\mathcal{S}_{n})}\\left(\\Lambda(1/(\\lambda n),w)-\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})\\right)-\\lambda\\mathrm{KL}(\\hat{q}| |q_{0})\\right].\n\\]\nWe have\n\\[\n\\begin{array}{l}\\ln\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\exp(\\lambda^{-1}\\Delta(\\mathcal{S}_{n}))\\\\ =\\ln\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\exp\\left[\\ln\\mathbb{E}_{w\\sim q_{0}}\\exp\\left(\\lambda^{-1}\\Lambda(1/(\\lambda n),w)-\\frac{\\lambda^{-1}}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})\\right)\\right]\\\\ =\\ln\\mathbb{E}_{w\\sim q_{0}}\\left[\\exp\\left(\\lambda^{-1}\\Lambda(1/(\\lambda n),w)\\right)\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\exp\\left(-\\frac{\\lambda^{-1}}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i})\\right)\\right]\\\\ =\\ln\\mathbb{E}_{w\\sim q_{0}}\\left[\\exp\\left(\\lambda^{-1}\\Lambda(1/(\\lambda n),w)\\right)\\left(\\mathbb{E}_{Z\\sim\\mathcal{D}}\\exp\\left(-\\frac{\\lambda^{-1}}{n}\\phi(w,Z)\\right)\\right)^{n}\\right]\\\\ =\\ln\\mathbb{E}_{w\\sim q_{0}}\\left[\\exp\\left(\\lambda^{-1}\\Lambda(1/(\\lambda n),w)\\right)\\left(\\exp\\left(-\\frac{1}{\\lambda n}\\Lambda(1/(\\lambda n),w)\\right)\\right)^{n}\\right]\\\\ =0.\\\\ \\end{array}\n\\]\nThe first equation used Proposition 7.16."}, {"n": 2, "claim": "The second equation used algebraic manipulation. The third equation used the independence of \\( Z_{i} \\)."}, {"n": 3, "claim": "The fourth equation used the definition of \\( \\Lambda(\\lambda,w) \\)."}, {"n": 4, "claim": "This implies that\n\\[\n\\lambda^{-1}\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\Delta(\\mathcal{S}_{n})\\leq\\ln\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}\\exp(\\lambda^{-1}\\Delta(\\mathcal{S}_{n}))=0.\n\\]\nThis implies the first bound."}, {"n": 5, "claim": "For the second inequality, we know that\n\\[\n\\operatorname*{Pr}\\left(\\lambda^{-1}\\Delta(\\mathcal{S}_{n})\\geq\\ln(1/\\delta)\\right)\\leq\\mathbb{E}_{\\mathcal{S}_{n}}\\exp\\left(\\lambda^{-1}\\Delta(\\mathcal{S}_{n})-\\ln(1/\\delta)\\right)=\\delta .\n\\]\nThis proves the second result."}]}}], "target_local_id": "T1", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch13_theorem_13_24__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).\n\nSequential Statistical Estimation. Consider a family of environment distributions \\(\\mathcal{P}_{\\mathcal{Z}}\\), where each \\(q \\in \\mathcal{P}_{\\mathcal{Z}}\\) determines the probability for generating \\(Z_{t}\\) based on policy \\(\\pi_{t}\\) as \\(q(Z_{t}|\\pi_{t}, S_{t-1})\\). Consider also a family of learning algorithms, represented by \\(\\mathcal{P}_{\\mathcal{A}}\\). Each learning algorithm \\(\\hat{q} \\in \\mathcal{P}_{\\mathcal{A}}\\) maps the history \\(S_{t-1}\\) deterministically to the next policy \\(\\pi_{t} \\in \\Pi\\) as \\(\\pi_{t} = \\hat{q}(S_{t-1})\\). Given \\(q \\in \\mathcal{P}_{\\mathcal{Z}}\\), and \\(\\hat{q} \\in \\mathcal{P}_{\\mathcal{A}}\\), the data generation probability is fully determined as\n\\[\np(\\mathcal{S}_{n}|\\hat{q},q)=\\prod_{t=1}^{n}q(Z_{t}|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1}).\n\\]\nAfter observing \\( S_{n} \\) for some \\( n \\), the learning algorithm \\( \\hat{q} \\) determines a distribution \\( \\hat{q}(\\theta | S_{n}) \\), and draws an estimator \\( \\theta \\in \\Theta \\) according to \\( \\hat{q}(\\theta | S_{n}) \\). The learning algorithm suffers a loss (also referred to as regret) \\( Q(\\theta, q) \\). The overall probability of \\( \\theta \\) and \\( S_{n} \\) is\n\\[\np(\\theta,\\mathcal{S}_{n}|\\hat{q},q)=\\hat{q}(\\theta|\\mathcal{S}_{n})\\prod_{t=1}^{n}q\\left(Z_{t}|\\hat{q}\\left(\\mathcal{S}_{t-1}\\right),\\mathcal{S}_{t-1}\\right).\\tag{13.8}\n\\]\nNote that although the notation in Definition 13.16 assumes that \\(\\pi_t\\) is a deterministic function of \\(S_{t-1}\\), it can also incorporate randomized algorithms. In such case, a policy is simply a distribution over the random choices. Since a random choice can always be characterized by a distribution (over the random choices) that is a deterministic function of \\(S_{t-1}\\), when we consider random policies in subsequent chapters, it should be understood that such policies can be handled by Definition 13.16. An example is given below.\n\nPacking Number. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite subset \\(\\mathcal{G}(\\epsilon)\\subset \\mathcal{G}\\) is an \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\) if \\(d(\\phi,\\phi^{\\prime})>\\epsilon\\) for all \\(\\phi,\\phi^{\\prime}\\in\\mathcal{G}(\\epsilon)\\). The \\(\\epsilon\\)-packing number of \\(\\mathcal{G}\\), denoted by \\(M(\\epsilon,\\mathcal{G},d)\\), is the largest cardinality of \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\).\nThe following results illustrate the equivalence between covering number and packing number. One advantage of using an \\(\\epsilon\\) packing of \\(\\mathcal{G}\\) instead of an \\(\\epsilon\\) cover of \\(\\mathcal{G}\\) is that all members in the \\(\\epsilon\\) packing also belong to \\(\\mathcal{G}\\). There if members in \\(\\mathcal{G}\\) satisfy certain assumptions such as the variance condition, then members of its \\(\\epsilon\\) packing also satisfy such assumptions. For this reason, we will use packing numbers instead of covering numbers in some of the theoretical analysis in later chapters.\n\ndefinition 4.1. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite\nset \\(\\mathcal{G}(\\epsilon) \\subset \\mathcal{V}\\) is an \\(\\epsilon\\)-cover (or \\(\\epsilon\\)-net) of \\(\\mathcal{G} \\subset \\mathcal{V}\\) if, for all \\(\\phi \\in \\mathcal{G}\\), there exists \\(\\phi' \\in \\mathcal{G}(\\epsilon)\\) so that \\(d(\\phi', \\phi) \\leq \\epsilon\\). The \\(\\epsilon\\)-covering number of \\(\\mathcal{G}\\) with metric \\(d\\) is the smallest cardinality \\(N(\\epsilon, \\mathcal{G}, d)\\) of such \\(\\mathcal{G}(\\epsilon)\\). The number \\(\\ln N(\\epsilon, \\mathcal{G}, d)\\) is called the \\(\\epsilon\\)-entropy.\nFor a function class \\(\\mathcal{G}\\) with seminorm \\(L_{p}(\\mathcal{D})\\) in (3.19), we denote the corresponding \\(L_{p}(\\mathcal{D})\\)-covering number as \\(N(\\epsilon, \\mathcal{G}, L_{p}(\\mathcal{D}))\\). When \\(1 \\leq p \\leq q\\), we have\n\\[\nN(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{D}))\\leq N(\\epsilon,\\mathcal{G},L_{q}(\\mathcal{D})).\n\\]\nIt is easy to verify the following relationship, which implies that \\( L_{p}(\\mathcal{D}) \\) bracketing cover is a stronger requirement than \\( L_{p}(\\mathcal{D}) \\) cover.\n\ntheorem 13.11: We have for any \\(\\lambda>0\\), with probability at least \\(1-\\delta\\), for all \\(n\\geq 1\\) and \\(f\\in\\mathcal{F}\\): \\[\\left[-\\sum_{i=1}^{n} f(Z_i)-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_i^{(y)}}e^{-\\lambda f(Z_i)}\\right]\\leq\\inf_{\\epsilon>0}\\left[2n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_\\infty)/\\delta)}{\\lambda}\\right].\\]", "theorems": [{"local_id": "T1", "statement": "Assume that for all \\( f \\in \\mathcal{F} \\) and \\( Z_{t}: -f(Z_{t}) + \\mathbb{E}_{Z_{t}^{(y)}}f(Z_{t}) \\leq b \\), and the following variance condition holds for all \\( f \\in \\mathcal{F} \\) and \\( S_{t} \\):\n\\[\n\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})],\n\\]\nthen with probability at least \\(1 - \\delta\\), for all \\(f \\in \\mathcal{F}\\):\n\\[\n\\begin{array}{l}\\left(1-\\lambda c_{1}\\phi(\\lambda b)\\right)\\sum_{t=1}^{n}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq\\sum_{t=1}^{n}f(Z_{t})+\\lambda n c_{0}^{2}\\phi(\\lambda b)\\\\ +\\inf_{\\epsilon>0}\\left[2 n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}\\right],\\\\ \\end{array}\n\\]\nwhere \\(\\phi (z) = (e^{z} - z - 1) / z^{2}\\)", "proof": {"steps": [{"n": 1, "claim": "Note that by employing the moment estimation of Bennett's inequality in Lemma 2.20, we obtain\n\\[\n\\begin{array}{l}\\frac{1}{\\lambda}\\ln\\mathbb{E}_{Z_{t}^{(y)}}e^{-\\lambda f(Z_{t})}\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)[c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]].\\\\ \\end{array}\n\\]\nWe can now obtain the desired bound from Theorem 13.11."}]}}, {"local_id": "T2", "statement": "Let \\(\\Sigma_0\\) be a \\(d\\times d\\) symmetric positive definite matrix, and \\(\\{\\psi (X_t)\\}\\) be a sequence of vectors in \\(\\mathbb{R}^d\\). Let \\(\\Sigma_{t} = \\Sigma_{0} + \\sum_{s = 1}^{t}\\psi (X_{s})\\psi (X_{s})^{\\top}\\), then\n\\[\n\\sum_{s=1}^{t}\\frac{\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}{1+\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}\\leq\\ln|\\Sigma_{0}^{-1}\\Sigma_{t}|.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\frac{\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}{1+\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}=\\psi(X_{s})^{\\top}\\Sigma_{s}^{-1}\\psi(X_{s})\\\\ =\\operatorname{trace}\\left(\\Sigma_{s}^{-1}\\left(\\Sigma_{s}-\\Sigma_{s-1}\\right)\\right)\\\\ =\\operatorname{trace}\\left(\\nabla\\ln\\left|\\Sigma_{s}\\right|\\left(\\Sigma_{s}-\\Sigma_{s-1}\\right)\\right)\\\\ \\leq\\ln|\\Sigma_{s}| -\\ln|\\Sigma_{s-1}|.\\\\ \\end{array}\n\\]\nThe first equality is due to the Sherman-Morrison formula."}, {"n": 2, "claim": "The last inequality used the fact that \\(\\ln |Z|\\) is a concave function of \\(Z\\) (see Theorem A.18)."}, {"n": 3, "claim": "Now by summing over \\(s = 1\\) to \\(s = t\\), we obtain the desired bound."}]}}, {"local_id": "T3", "statement": "Let \\(\\{(X_t, \\epsilon_t)\\}\\) be a filtered sequence in \\(\\mathcal{X} \\times \\mathbb{R}\\) so that \\(\\epsilon_t\\) is conditional zero-mean sub-Gaussian noise: for all \\(\\lambda \\in \\mathbb{R}\\),\n\\[\n\\ln\\mathbb{E}\\left[e^{\\lambda\\epsilon_{t}}\\mid X_{t},\\mathcal{S}_{t-1}\\right]\\leq\\frac{\\lambda^{2}}{2}\\sigma^{2},\n\\]\nwhere \\( S_{t-1} \\) denotes the history data. Assume that \\( Y_t = f_*(X_t) + \\epsilon_t \\), with \\( f_*(x) \\in \\mathcal{F}: \\mathcal{X} \\to \\mathbb{R} \\). Let \\( \\hat{f}_t \\) be an approximate ERM solution for some \\( \\epsilon' > 0 \\):\n\\[\n\\left(\\sum_{s=1}^{t}\\left(\\hat{f}_{t}\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}\\leq\\min_{f\\in\\mathcal{F}}\\left(\\sum_{s=1}^{t}\\left(f\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}+\\sqrt{t}\\epsilon^{\\prime}.\n\\]\nThen with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\):\n\\[\n\\sum_{s=1}^{t}(\\hat{f}_{t}(X_{t})-f_{*}(X_{t}))^{2}\\leq\\inf_{\\epsilon>0}\\left[8 t(\\epsilon+\\epsilon^{\\prime})(\\sigma+2\\epsilon+2\\epsilon^{\\prime})+12\\sigma^{2}\\ln\\frac{2 N(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})}{\\delta}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\eta = \\sigma^{-2} / 4\\), and for \\(f \\in \\mathcal{F}\\), let\n\\[\n\\phi(f,Z_{t})=\\left[\\left(f(X_{t})-Y_{t}\\right)^{2}-\\left(f_{*}(X_{t})-Y_{t}\\right)^{2}\\right].\n\\]\nLet \\(\\mathcal{F}_{\\epsilon}\\) be an \\(\\epsilon \\| \\cdot \\|_{\\infty}\\) cover of \\(\\mathcal{F}\\) with \\(N = N(\\epsilon, \\mathcal{F}, \\| \\cdot \\|_{\\infty})\\) members."}, {"n": 2, "claim": "Given any \\(f \\in \\mathcal{F}_{\\epsilon}\\),\n\\[\n\\begin{array}{l}\\ln\\mathbb{E}_{Y_{t}|X_{t},S_{t-1}}\\exp(-\\eta\\phi(f,Z_{t}))\\\\ = -\\eta\\left(f\\left(X_{t}\\right)-f_{*}\\left(X_{t}\\right)\\right)^{2}\\\\ +\\ln\\mathbb{E}_{Y_{t}\\mid X_{t},S_{t-1}}\\exp(-2\\eta(f(X_{t})-f_{*}(X_{t}))(f_{*}(X_{t})-Y_{t}))\\\\ \\leq-\\eta(f(X_{t})-f_{*}(X_{t}))^{2}+\\frac{4\\eta^{2}\\sigma^{2}}{2}(f(X_{t})-f_{*}(X_{t}))^{2}\\\\ = -\\frac{\\left(f(X_{t})-f_{*}(X_{t})\\right)^{2}}{8\\sigma^{2}}.\\\\ \\end{array}\n\\]\nThe inequality used the sub-Gaussian noise assumption."}, {"n": 3, "claim": "It follows from Theorem 13.11 that with probability at least \\( 1 - \\delta / 2 \\), for all \\( f \\in \\mathcal{F}_{\\epsilon} \\) and \\( t \\geq 0 \\):"}, {"n": 4, "claim": "\\[\n\\sum_{i=1}^{t}-\\eta\\phi(f,Z_{i})\\leq-\\sum_{i=1}^{t}\\frac{\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}}{8\\sigma^{2}}+\\ln(2 N/\\delta).\\tag{13.5}\n\\]\nUsing Exercise 13.3, we have with probability at least \\(1 - \\delta /2\\), for all \\(t\\geq 0\\)\n\\[\n\\underbrace{\\sum_{i=1}^{t}\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}}_{A}\\leq 2 t\\sigma^{2}+3\\sigma^{2}\\ln(2/\\delta).\\tag{13.6}\n\\]\nIt follows that with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\) and \\(f \\in \\mathcal{F}_{\\epsilon}\\), both (13.5)\nand (13.6) hold."}, {"n": 5, "claim": "Now, let \\( f \\in \\mathcal{F}_{\\epsilon} \\) so that \\( \\| \\hat{f}_t - f \\|_{\\infty} \\leq \\epsilon \\)."}, {"n": 6, "claim": "This implies that\n\\[\n\\begin{array}{l}\\sum_{i=1}^{t}\\left[(f(X_{i})-Y_{i})^{2}-(f_{*}(X_{i})-Y_{i})^{2}\\right]\\leq\\left(\\sqrt{\\sum_{i=1}^{t}(\\hat{f}_{t}(X_{i})-Y_{i})^{2}}+\\sqrt{t}\\epsilon\\right)^{2}-A\\\\ \\leq\\left(\\sqrt{A}+\\sqrt{t}(\\epsilon+\\epsilon^{\\prime})\\right)^{2}-A\\\\ \\stackrel{(a)}{\\leq}(\\epsilon^{\\prime}+\\epsilon)^{2}t+2\\sqrt{t}(\\epsilon^{\\prime}+\\epsilon)\\sigma\\sqrt{2 t+3\\ln(2/\\delta)}\\\\ \\leq 4\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}t+3\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)+\\sigma^{2}\\ln(2/\\delta).\\tag{13.7}\\\\ \\end{array}\n\\]\nIn the above derivations, the first inequality used \\( |f(X_i) - Y_i| \\leq |\\hat{f}_t(X_i) - Y_i| + \\epsilon \\) for all \\( i \\)."}, {"n": 7, "claim": "The second inequality used the fact that \\( \\hat{f}_t \\) is approximate ERM. (a) follows from (13.6)."}, {"n": 8, "claim": "The last inequality used \\( 2a\\sigma \\sqrt{2b + 3c} \\leq 3a\\sigma \\sqrt{b} + 3a^2 + \\sigma^2 c \\)."}, {"n": 9, "claim": "We thus obtain\n\\[\n\\begin{array}{l}\\left(\\sum_{i=1}^{t}(\\hat{f}(X_{i})-f_{*}(X_{i}))^{2}\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(\\sum_{i=1}^{t}\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}\\right)^{1/2}\\quad(\\text{t r i a n g l e i n e q u a l i t y})\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+8\\sigma^{2}\\sum_{i=1}^{t}\\eta\\phi(f,Z_{i})\\right)^{1/2}\\quad(\\text{f r o m}(13. 5))\\\\ =\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+2\\sum_{i=1}^{t}\\left[\\left(f\\left(X_{i}\\right)-Y_{i}\\right)^{2}-\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}\\right]\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(10\\sigma^{2}\\ln(2N/\\delta)+8t\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}+6\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)\\right)^{1/2}\\quad(\\text{f r o m}(13. 7))\\\\ \\leq\\left(12\\sigma^{2}\\ln(2N/\\delta)+16t(\\epsilon+\\epsilon^{\\prime})^{2}+8\\sigma t(\\epsilon+\\epsilon^{\\prime})\\right)^{1/2},\\\\ \\end{array}\n\\]\nwhere the last inequality used \\(\\sqrt{a} +\\sqrt{b}\\leq \\sqrt{6a + 1.2b}\\) ."}, {"n": 10, "claim": "This implies the bound."}]}}, {"local_id": "T4", "statement": "Consider a sequence of random functions \\(\\xi_1(S_1),\\ldots,\\xi_t(S_t),\\ldots\\) Assume each \\(\\xi_{i}\\) is sub-Gaussian with respect to \\(Z_{i}^{(y)}\\):\n\\[\n\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\lambda\\xi_{i}}\\leq\\lambda\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}+\\frac{\\lambda^{2}\\sigma_{i}^{2}}{2}\n\\]\nfor some \\(\\sigma_{i}\\) that may depend on \\(S_{i - 1}\\) and \\(Z_{i}^{(x)}\\). Then for all \\(\\sigma >0\\), with probability at least \\(1 - \\delta\\)\n\\[\n\\forall n>0:\\sum_{i=1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}<\\sum_{i=1}^{n}\\xi_{i}+\\left(\\sigma+\\frac{\\sum_{i=1}^{n}\\sigma_{i}^{2}}{\\sigma}\\right)\\sqrt{\\frac{\\ln(1/\\delta)}{2}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We can let \\(\\lambda = \\sqrt{2\\ln(1 / \\delta)} /\\sigma\\), and then apply the first inequality of Theorem 13.2."}]}}, {"local_id": "T5", "statement": "Let \\(d \\geq 1\\) and \\(m \\geq 2\\) be integers, and let \\(\\mathcal{P}_{\\mathcal{Z}} = \\{q^{\\tau} : \\tau \\in \\{1, \\ldots, m\\}^{d}\\}\\) contain \\(m^{d}\\) probability measures. Suppose that the loss function \\(Q\\) can be decomposed as\n\\[\nQ(\\theta,q)=\\sum_{j=1}^{d}Q_{j}(\\theta,q),\n\\]\nwhere \\( Q_{j} \\geq 0 \\) are all non-negative. For each \\( j \\), \\( \\tau \\sim_{j} \\tau' \\) if \\( \\tau = \\tau' \\) or if \\( \\tau \\) and \\( \\tau' \\) differ by only one component \\( j \\). Assume that there exists \\( \\epsilon, \\beta \\geq 0 \\) such that\n\\[\n\\forall\\tau^{\\prime}\\sim_{j}\\tau,\\tau^{\\prime}\\neq\\tau:[Q_{j}(\\theta,q^{\\tau})+Q_{j}(\\theta,q^{\\tau^{\\prime}})]\\geq\\epsilon,\n\\]\nand there exists \\( q_j^\\tau \\) such that all \\( \\tau' \\sim_j \\tau \\) map to the same value: \\( q_j^{\\tau'} = q_j^\\tau \\). Given any learning algorithm \\( \\hat{q} \\). If for all \\( \\tau \\), \\( j \\in [d] \\), time step \\( t \\), and \\( S_{t-1} \\):\n\\[\n\\frac{1}{m}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\mathrm{KL}(q_{j}^{\\tau}(\\cdot|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1})| |q^{\\tau^{\\prime}}(\\cdot|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1})))\\leq\\beta_{j,t}^{2},\n\\]\nthen\n\\[\n\\frac{1}{m^{d}}\\sum_{\\tau}\\mathbb{E}_{\\theta,S_{n}\\sim p(\\cdot|\\hat{q},q^{\\tau})}Q(\\theta,q^{\\tau})\\geq 0.5 d\\epsilon\\left(1-\\sqrt{\\frac{2}{d}\\sum_{j=1}^{d}\\sum_{t=1}^{n}\\beta_{j,t}^{2}}\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\frac{1}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m-1}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\\\ \\leq\\frac{1}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m-1}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau,\\tau^{\\prime}\\neq\\tau}\\left[\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\right.\\\\ +\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau})\\|_{\\mathrm{TV}}\\big]\\\\ =\\frac{2}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\\\ \\leq\\frac{2}{m^{d}}\\sum_{\\tau}\\sqrt{\\frac{1}{dm}\\sum_{j=1}^{d}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}^{2}}\\\\ \\leq\\frac{2}{m^{d}}\\sum_{\\tau}\\sqrt{\\frac{1}{2dm}\\sum_{j=1}^{d}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\mathrm{KL}(p(\\cdot|\\hat{q},q_{j}^{\\tau})| |p(\\cdot|\\hat{q},q^{\\tau^{\\prime}}))}\\\\ \\leq\\sqrt{\\frac{2}{d}\\sum_{j=1}^{d}\\sum_{t=1}^{n}\\beta_{t}^{2}}.\\\\ \\end{array}\n\\]\nThe first inequality is triangle inequality for TV-norm."}, {"n": 2, "claim": "The first equality used \\(\\hat{q}_j^\\tau = \\hat{q}_j^{\\tau '}\\) when \\(\\tau \\sim_{j}\\tau^{\\prime}\\)."}, {"n": 3, "claim": "The second inequality used Jensen's inequality and the\nconcavity of \\(\\sqrt{\\cdot}\\)."}, {"n": 4, "claim": "The third inequality used Theorem B.9. The last inequality used Lemma 13.21."}, {"n": 5, "claim": "Now in Lemma 12.27, we let \\(M_{j}(q^{\\tau}) = \\{q^{\\tau^{\\prime}}:\\tau^{\\prime}\\sim_{j}\\tau \\}\\) be the partitions."}, {"n": 6, "claim": "The result is a simple application of Lemma 12.27 with \\(m_j(q^\\tau) = m\\), \\(|\\mathcal{P}| = m^{d}\\), and \\(d(\\mathcal{P}) = dm^{d}\\)."}]}}], "target_local_id": "T5", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch13_theorem_13_6__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).\n\nPacking Number. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite subset \\(\\mathcal{G}(\\epsilon)\\subset \\mathcal{G}\\) is an \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\) if \\(d(\\phi,\\phi^{\\prime})>\\epsilon\\) for all \\(\\phi,\\phi^{\\prime}\\in\\mathcal{G}(\\epsilon)\\). The \\(\\epsilon\\)-packing number of \\(\\mathcal{G}\\), denoted by \\(M(\\epsilon,\\mathcal{G},d)\\), is the largest cardinality of \\(\\epsilon\\)-packing of \\(\\mathcal{G}\\).\nThe following results illustrate the equivalence between covering number and packing number. One advantage of using an \\(\\epsilon\\) packing of \\(\\mathcal{G}\\) instead of an \\(\\epsilon\\) cover of \\(\\mathcal{G}\\) is that all members in the \\(\\epsilon\\) packing also belong to \\(\\mathcal{G}\\). There if members in \\(\\mathcal{G}\\) satisfy certain assumptions such as the variance condition, then members of its \\(\\epsilon\\) packing also satisfy such assumptions. For this reason, we will use packing numbers instead of covering numbers in some of the theoretical analysis in later chapters.\n\ndefinition 4.1. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite\nset \\(\\mathcal{G}(\\epsilon) \\subset \\mathcal{V}\\) is an \\(\\epsilon\\)-cover (or \\(\\epsilon\\)-net) of \\(\\mathcal{G} \\subset \\mathcal{V}\\) if, for all \\(\\phi \\in \\mathcal{G}\\), there exists \\(\\phi' \\in \\mathcal{G}(\\epsilon)\\) so that \\(d(\\phi', \\phi) \\leq \\epsilon\\). The \\(\\epsilon\\)-covering number of \\(\\mathcal{G}\\) with metric \\(d\\) is the smallest cardinality \\(N(\\epsilon, \\mathcal{G}, d)\\) of such \\(\\mathcal{G}(\\epsilon)\\). The number \\(\\ln N(\\epsilon, \\mathcal{G}, d)\\) is called the \\(\\epsilon\\)-entropy.\nFor a function class \\(\\mathcal{G}\\) with seminorm \\(L_{p}(\\mathcal{D})\\) in (3.19), we denote the corresponding \\(L_{p}(\\mathcal{D})\\)-covering number as \\(N(\\epsilon, \\mathcal{G}, L_{p}(\\mathcal{D}))\\). When \\(1 \\leq p \\leq q\\), we have\n\\[\nN(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{D}))\\leq N(\\epsilon,\\mathcal{G},L_{q}(\\mathcal{D})).\n\\]\nIt is easy to verify the following relationship, which implies that \\( L_{p}(\\mathcal{D}) \\) bracketing cover is a stronger requirement than \\( L_{p}(\\mathcal{D}) \\) cover.\n\nSequential Statistical Estimation. Consider a family of environment distributions \\(\\mathcal{P}_{\\mathcal{Z}}\\), where each \\(q \\in \\mathcal{P}_{\\mathcal{Z}}\\) determines the probability for generating \\(Z_{t}\\) based on policy \\(\\pi_{t}\\) as \\(q(Z_{t}|\\pi_{t}, S_{t-1})\\). Consider also a family of learning algorithms, represented by \\(\\mathcal{P}_{\\mathcal{A}}\\). Each learning algorithm \\(\\hat{q} \\in \\mathcal{P}_{\\mathcal{A}}\\) maps the history \\(S_{t-1}\\) deterministically to the next policy \\(\\pi_{t} \\in \\Pi\\) as \\(\\pi_{t} = \\hat{q}(S_{t-1})\\). Given \\(q \\in \\mathcal{P}_{\\mathcal{Z}}\\), and \\(\\hat{q} \\in \\mathcal{P}_{\\mathcal{A}}\\), the data generation probability is fully determined as\n\\[\np(\\mathcal{S}_{n}|\\hat{q},q)=\\prod_{t=1}^{n}q(Z_{t}|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1}).\n\\]\nAfter observing \\( S_{n} \\) for some \\( n \\), the learning algorithm \\( \\hat{q} \\) determines a distribution \\( \\hat{q}(\\theta | S_{n}) \\), and draws an estimator \\( \\theta \\in \\Theta \\) according to \\( \\hat{q}(\\theta | S_{n}) \\). The learning algorithm suffers a loss (also referred to as regret) \\( Q(\\theta, q) \\). The overall probability of \\( \\theta \\) and \\( S_{n} \\) is\n\\[\np(\\theta,\\mathcal{S}_{n}|\\hat{q},q)=\\hat{q}(\\theta|\\mathcal{S}_{n})\\prod_{t=1}^{n}q\\left(Z_{t}|\\hat{q}\\left(\\mathcal{S}_{t-1}\\right),\\mathcal{S}_{t-1}\\right).\\tag{13.8}\n\\]\nNote that although the notation in Definition 13.16 assumes that \\(\\pi_t\\) is a deterministic function of \\(S_{t-1}\\), it can also incorporate randomized algorithms. In such case, a policy is simply a distribution over the random choices. Since a random choice can always be characterized by a distribution (over the random choices) that is a deterministic function of \\(S_{t-1}\\), when we consider random policies in subsequent chapters, it should be understood that such policies can be handled by Definition 13.16. An example is given below.\n\ntheorem 13.11: We have for any \\(\\lambda>0\\), with probability at least \\(1-\\delta\\), for all \\(n\\geq 1\\) and \\(f\\in\\mathcal{F}\\): \\[\\left[-\\sum_{i=1}^{n} f(Z_i)-\\frac{1}{\\lambda}\\sum_{i=1}^{n}\\ln\\mathbb{E}_{Z_i^{(y)}}e^{-\\lambda f(Z_i)}\\right]\\leq\\inf_{\\epsilon>0}\\left[2n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_\\infty)/\\delta)}{\\lambda}\\right].\\]", "theorems": [{"local_id": "T1", "statement": "Let \\(d \\geq 1\\) and \\(m \\geq 2\\) be integers, and let \\(\\mathcal{P}_{\\mathcal{Z}} = \\{q^{\\tau} : \\tau \\in \\{1, \\ldots, m\\}^{d}\\}\\) contain \\(m^{d}\\) probability measures. Suppose that the loss function \\(Q\\) can be decomposed as\n\\[\nQ(\\theta,q)=\\sum_{j=1}^{d}Q_{j}(\\theta,q),\n\\]\nwhere \\( Q_{j} \\geq 0 \\) are all non-negative. For each \\( j \\), \\( \\tau \\sim_{j} \\tau' \\) if \\( \\tau = \\tau' \\) or if \\( \\tau \\) and \\( \\tau' \\) differ by only one component \\( j \\). Assume that there exists \\( \\epsilon, \\beta \\geq 0 \\) such that\n\\[\n\\forall\\tau^{\\prime}\\sim_{j}\\tau,\\tau^{\\prime}\\neq\\tau:[Q_{j}(\\theta,q^{\\tau})+Q_{j}(\\theta,q^{\\tau^{\\prime}})]\\geq\\epsilon,\n\\]\nand there exists \\( q_j^\\tau \\) such that all \\( \\tau' \\sim_j \\tau \\) map to the same value: \\( q_j^{\\tau'} = q_j^\\tau \\). Given any learning algorithm \\( \\hat{q} \\). If for all \\( \\tau \\), \\( j \\in [d] \\), time step \\( t \\), and \\( S_{t-1} \\):\n\\[\n\\frac{1}{m}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\mathrm{KL}(q_{j}^{\\tau}(\\cdot|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1})| |q^{\\tau^{\\prime}}(\\cdot|\\hat{q}(\\mathcal{S}_{t-1}),\\mathcal{S}_{t-1})))\\leq\\beta_{j,t}^{2},\n\\]\nthen\n\\[\n\\frac{1}{m^{d}}\\sum_{\\tau}\\mathbb{E}_{\\theta,S_{n}\\sim p(\\cdot|\\hat{q},q^{\\tau})}Q(\\theta,q^{\\tau})\\geq 0.5 d\\epsilon\\left(1-\\sqrt{\\frac{2}{d}\\sum_{j=1}^{d}\\sum_{t=1}^{n}\\beta_{j,t}^{2}}\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\frac{1}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m-1}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\\\ \\leq\\frac{1}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m-1}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau,\\tau^{\\prime}\\neq\\tau}\\left[\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\right.\\\\ +\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau})\\|_{\\mathrm{TV}}\\big]\\\\ =\\frac{2}{dm^{d}}\\sum_{\\tau}\\sum_{j=1}^{d}\\frac{1}{m}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}\\\\ \\leq\\frac{2}{m^{d}}\\sum_{\\tau}\\sqrt{\\frac{1}{dm}\\sum_{j=1}^{d}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\|p(\\cdot|\\hat{q},q_{j}^{\\tau})-p(\\cdot|\\hat{q},q^{\\tau^{\\prime}})\\|_{\\mathrm{TV}}^{2}}\\\\ \\leq\\frac{2}{m^{d}}\\sum_{\\tau}\\sqrt{\\frac{1}{2dm}\\sum_{j=1}^{d}\\sum_{\\tau^{\\prime}\\sim_{j}\\tau}\\mathrm{KL}(p(\\cdot|\\hat{q},q_{j}^{\\tau})| |p(\\cdot|\\hat{q},q^{\\tau^{\\prime}}))}\\\\ \\leq\\sqrt{\\frac{2}{d}\\sum_{j=1}^{d}\\sum_{t=1}^{n}\\beta_{t}^{2}}.\\\\ \\end{array}\n\\]\nThe first inequality is triangle inequality for TV-norm."}, {"n": 2, "claim": "The first equality used \\(\\hat{q}_j^\\tau = \\hat{q}_j^{\\tau '}\\) when \\(\\tau \\sim_{j}\\tau^{\\prime}\\)."}, {"n": 3, "claim": "The second inequality used Jensen's inequality and the\nconcavity of \\(\\sqrt{\\cdot}\\)."}, {"n": 4, "claim": "The third inequality used Theorem B.9. The last inequality used Lemma 13.21."}, {"n": 5, "claim": "Now in Lemma 12.27, we let \\(M_{j}(q^{\\tau}) = \\{q^{\\tau^{\\prime}}:\\tau^{\\prime}\\sim_{j}\\tau \\}\\) be the partitions."}, {"n": 6, "claim": "The result is a simple application of Lemma 12.27 with \\(m_j(q^\\tau) = m\\), \\(|\\mathcal{P}| = m^{d}\\), and \\(d(\\mathcal{P}) = dm^{d}\\)."}]}}, {"local_id": "T2", "statement": "Let \\(\\Sigma_0\\) be a \\(d\\times d\\) symmetric positive definite matrix, and \\(\\{\\psi (X_t)\\}\\) be a sequence of vectors in \\(\\mathbb{R}^d\\). Let \\(\\Sigma_{t} = \\Sigma_{0} + \\sum_{s = 1}^{t}\\psi (X_{s})\\psi (X_{s})^{\\top}\\), then\n\\[\n\\sum_{s=1}^{t}\\frac{\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}{1+\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}\\leq\\ln|\\Sigma_{0}^{-1}\\Sigma_{t}|.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\frac{\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}{1+\\psi(X_{s})^{\\top}\\Sigma_{s-1}^{-1}\\psi(X_{s})}=\\psi(X_{s})^{\\top}\\Sigma_{s}^{-1}\\psi(X_{s})\\\\ =\\operatorname{trace}\\left(\\Sigma_{s}^{-1}\\left(\\Sigma_{s}-\\Sigma_{s-1}\\right)\\right)\\\\ =\\operatorname{trace}\\left(\\nabla\\ln\\left|\\Sigma_{s}\\right|\\left(\\Sigma_{s}-\\Sigma_{s-1}\\right)\\right)\\\\ \\leq\\ln|\\Sigma_{s}| -\\ln|\\Sigma_{s-1}|.\\\\ \\end{array}\n\\]\nThe first equality is due to the Sherman-Morrison formula."}, {"n": 2, "claim": "The last inequality used the fact that \\(\\ln |Z|\\) is a concave function of \\(Z\\) (see Theorem A.18)."}, {"n": 3, "claim": "Now by summing over \\(s = 1\\) to \\(s = t\\), we obtain the desired bound."}]}}, {"local_id": "T3", "statement": "Assume that for all \\( f \\in \\mathcal{F} \\) and \\( Z_{t}: -f(Z_{t}) + \\mathbb{E}_{Z_{t}^{(y)}}f(Z_{t}) \\leq b \\), and the following variance condition holds for all \\( f \\in \\mathcal{F} \\) and \\( S_{t} \\):\n\\[\n\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})],\n\\]\nthen with probability at least \\(1 - \\delta\\), for all \\(f \\in \\mathcal{F}\\):\n\\[\n\\begin{array}{l}\\left(1-\\lambda c_{1}\\phi(\\lambda b)\\right)\\sum_{t=1}^{n}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]\\leq\\sum_{t=1}^{n}f(Z_{t})+\\lambda n c_{0}^{2}\\phi(\\lambda b)\\\\ +\\inf_{\\epsilon>0}\\left[2 n\\epsilon+\\frac{\\ln(M(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})/\\delta)}{\\lambda}\\right],\\\\ \\end{array}\n\\]\nwhere \\(\\phi (z) = (e^{z} - z - 1) / z^{2}\\)", "proof": {"steps": [{"n": 1, "claim": "Note that by employing the moment estimation of Bennett's inequality in Lemma 2.20, we obtain\n\\[\n\\begin{array}{l}\\frac{1}{\\lambda}\\ln\\mathbb{E}_{Z_{t}^{(y)}}e^{-\\lambda f(Z_{t})}\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)\\operatorname{Var}_{Z_{t}^{(y)}}[f(Z_{t})]\\\\ \\leq-\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]+\\lambda\\phi(\\lambda b)[c_{0}^{2}+c_{1}\\mathbb{E}_{Z_{t}^{(y)}}[f(Z_{t})]].\\\\ \\end{array}\n\\]\nWe can now obtain the desired bound from Theorem 13.11."}]}}, {"local_id": "T4", "statement": "Let \\(\\{(X_t, \\epsilon_t)\\}\\) be a filtered sequence in \\(\\mathcal{X} \\times \\mathbb{R}\\) so that \\(\\epsilon_t\\) is conditional zero-mean sub-Gaussian noise: for all \\(\\lambda \\in \\mathbb{R}\\),\n\\[\n\\ln\\mathbb{E}\\left[e^{\\lambda\\epsilon_{t}}\\mid X_{t},\\mathcal{S}_{t-1}\\right]\\leq\\frac{\\lambda^{2}}{2}\\sigma^{2},\n\\]\nwhere \\( S_{t-1} \\) denotes the history data. Assume that \\( Y_t = f_*(X_t) + \\epsilon_t \\), with \\( f_*(x) \\in \\mathcal{F}: \\mathcal{X} \\to \\mathbb{R} \\). Let \\( \\hat{f}_t \\) be an approximate ERM solution for some \\( \\epsilon' > 0 \\):\n\\[\n\\left(\\sum_{s=1}^{t}\\left(\\hat{f}_{t}\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}\\leq\\min_{f\\in\\mathcal{F}}\\left(\\sum_{s=1}^{t}\\left(f\\left(X_{s}\\right)-Y_{s}\\right)^{2}\\right)^{1/2}+\\sqrt{t}\\epsilon^{\\prime}.\n\\]\nThen with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\):\n\\[\n\\sum_{s=1}^{t}(\\hat{f}_{t}(X_{t})-f_{*}(X_{t}))^{2}\\leq\\inf_{\\epsilon>0}\\left[8 t(\\epsilon+\\epsilon^{\\prime})(\\sigma+2\\epsilon+2\\epsilon^{\\prime})+12\\sigma^{2}\\ln\\frac{2 N(\\epsilon,\\mathcal{F},\\|\\cdot\\|_{\\infty})}{\\delta}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\eta = \\sigma^{-2} / 4\\), and for \\(f \\in \\mathcal{F}\\), let\n\\[\n\\phi(f,Z_{t})=\\left[\\left(f(X_{t})-Y_{t}\\right)^{2}-\\left(f_{*}(X_{t})-Y_{t}\\right)^{2}\\right].\n\\]\nLet \\(\\mathcal{F}_{\\epsilon}\\) be an \\(\\epsilon \\| \\cdot \\|_{\\infty}\\) cover of \\(\\mathcal{F}\\) with \\(N = N(\\epsilon, \\mathcal{F}, \\| \\cdot \\|_{\\infty})\\) members."}, {"n": 2, "claim": "Given any \\(f \\in \\mathcal{F}_{\\epsilon}\\),\n\\[\n\\begin{array}{l}\\ln\\mathbb{E}_{Y_{t}|X_{t},S_{t-1}}\\exp(-\\eta\\phi(f,Z_{t}))\\\\ = -\\eta\\left(f\\left(X_{t}\\right)-f_{*}\\left(X_{t}\\right)\\right)^{2}\\\\ +\\ln\\mathbb{E}_{Y_{t}\\mid X_{t},S_{t-1}}\\exp(-2\\eta(f(X_{t})-f_{*}(X_{t}))(f_{*}(X_{t})-Y_{t}))\\\\ \\leq-\\eta(f(X_{t})-f_{*}(X_{t}))^{2}+\\frac{4\\eta^{2}\\sigma^{2}}{2}(f(X_{t})-f_{*}(X_{t}))^{2}\\\\ = -\\frac{\\left(f(X_{t})-f_{*}(X_{t})\\right)^{2}}{8\\sigma^{2}}.\\\\ \\end{array}\n\\]\nThe inequality used the sub-Gaussian noise assumption."}, {"n": 3, "claim": "It follows from Theorem 13.11 that with probability at least \\( 1 - \\delta / 2 \\), for all \\( f \\in \\mathcal{F}_{\\epsilon} \\) and \\( t \\geq 0 \\):"}, {"n": 4, "claim": "\\[\n\\sum_{i=1}^{t}-\\eta\\phi(f,Z_{i})\\leq-\\sum_{i=1}^{t}\\frac{\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}}{8\\sigma^{2}}+\\ln(2 N/\\delta).\\tag{13.5}\n\\]\nUsing Exercise 13.3, we have with probability at least \\(1 - \\delta /2\\), for all \\(t\\geq 0\\)\n\\[\n\\underbrace{\\sum_{i=1}^{t}\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}}_{A}\\leq 2 t\\sigma^{2}+3\\sigma^{2}\\ln(2/\\delta).\\tag{13.6}\n\\]\nIt follows that with probability at least \\(1 - \\delta\\), for all \\(t \\geq 0\\) and \\(f \\in \\mathcal{F}_{\\epsilon}\\), both (13.5)\nand (13.6) hold."}, {"n": 5, "claim": "Now, let \\( f \\in \\mathcal{F}_{\\epsilon} \\) so that \\( \\| \\hat{f}_t - f \\|_{\\infty} \\leq \\epsilon \\)."}, {"n": 6, "claim": "This implies that\n\\[\n\\begin{array}{l}\\sum_{i=1}^{t}\\left[(f(X_{i})-Y_{i})^{2}-(f_{*}(X_{i})-Y_{i})^{2}\\right]\\leq\\left(\\sqrt{\\sum_{i=1}^{t}(\\hat{f}_{t}(X_{i})-Y_{i})^{2}}+\\sqrt{t}\\epsilon\\right)^{2}-A\\\\ \\leq\\left(\\sqrt{A}+\\sqrt{t}(\\epsilon+\\epsilon^{\\prime})\\right)^{2}-A\\\\ \\stackrel{(a)}{\\leq}(\\epsilon^{\\prime}+\\epsilon)^{2}t+2\\sqrt{t}(\\epsilon^{\\prime}+\\epsilon)\\sigma\\sqrt{2 t+3\\ln(2/\\delta)}\\\\ \\leq 4\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}t+3\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)+\\sigma^{2}\\ln(2/\\delta).\\tag{13.7}\\\\ \\end{array}\n\\]\nIn the above derivations, the first inequality used \\( |f(X_i) - Y_i| \\leq |\\hat{f}_t(X_i) - Y_i| + \\epsilon \\) for all \\( i \\)."}, {"n": 7, "claim": "The second inequality used the fact that \\( \\hat{f}_t \\) is approximate ERM. (a) follows from (13.6)."}, {"n": 8, "claim": "The last inequality used \\( 2a\\sigma \\sqrt{2b + 3c} \\leq 3a\\sigma \\sqrt{b} + 3a^2 + \\sigma^2 c \\)."}, {"n": 9, "claim": "We thus obtain\n\\[\n\\begin{array}{l}\\left(\\sum_{i=1}^{t}(\\hat{f}(X_{i})-f_{*}(X_{i}))^{2}\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(\\sum_{i=1}^{t}\\left(f\\left(X_{i}\\right)-f_{*}\\left(X_{i}\\right)\\right)^{2}\\right)^{1/2}\\quad(\\text{t r i a n g l e i n e q u a l i t y})\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+8\\sigma^{2}\\sum_{i=1}^{t}\\eta\\phi(f,Z_{i})\\right)^{1/2}\\quad(\\text{f r o m}(13. 5))\\\\ =\\sqrt{\\epsilon^{2}t}+\\left(8\\sigma^{2}\\ln(2N/\\delta)+2\\sum_{i=1}^{t}\\left[\\left(f\\left(X_{i}\\right)-Y_{i}\\right)^{2}-\\left(f_{*}\\left(X_{i}\\right)-Y_{i}\\right)^{2}\\right]\\right)^{1/2}\\\\ \\leq\\sqrt{\\epsilon^{2}t}+\\left(10\\sigma^{2}\\ln(2N/\\delta)+8t\\left(\\epsilon^{\\prime}+\\epsilon\\right)^{2}+6\\sigma t\\left(\\epsilon^{\\prime}+\\epsilon\\right)\\right)^{1/2}\\quad(\\text{f r o m}(13. 7))\\\\ \\leq\\left(12\\sigma^{2}\\ln(2N/\\delta)+16t(\\epsilon+\\epsilon^{\\prime})^{2}+8\\sigma t(\\epsilon+\\epsilon^{\\prime})\\right)^{1/2},\\\\ \\end{array}\n\\]\nwhere the last inequality used \\(\\sqrt{a} +\\sqrt{b}\\leq \\sqrt{6a + 1.2b}\\) ."}, {"n": 10, "claim": "This implies the bound."}]}}, {"local_id": "T5", "statement": "Consider a sequence of random functions \\(\\xi_1(S_1),\\ldots,\\xi_n(S_n)\\). Assume that \\(\\xi_{i}\\geq \\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i} - b\\) for some constant \\(b > 0\\). Then for any \\(\\lambda \\in (0,3 / b)\\), with probability at least \\(1 - \\delta\\):\n\\[\n\\forall n>0:\\sum_{i=1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}<\\sum_{i=1}^{n}\\xi_{i}+\\frac{\\lambda\\sum_{i=1}^{n}\\mathrm{Var}_{Z_{i}^{(y)}}(\\xi_{i})}{2(1-\\lambda b/3)}+\\frac{\\ln(1/\\delta)}{\\lambda}.\n\\]\nThis implies that for all \\(\\sigma > 0\\), with probability at least \\(1 - \\delta\\):\n\\[\n\\forall n>0:\\sum_{i=1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}<\\sum_{i=1}^{n}\\xi_{i}+\\sigma\\sqrt{2\\ln(1/\\delta)}+\\frac{b\\ln(1/\\delta)}{3}or\\sum_{i=1}^{n}\\mathrm{Var}_{Z_{i}^{(y)}}(\\xi_{i})>\\sigma^{2}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Using the logarithmic moment generating function (2.13), we obtain the first inequality directly from the first inequality of Theorem 13.2."}, {"n": 2, "claim": "Moreover, we can obtain from the second inequality of Theorem 13.2 with \\( A_{n} = \\{S_{n}:\\sum_{i = 1}^{n}\\mathrm{Var}_{Z_{i}^{(y)}}(\\xi_{i})\\leq \\sigma^{2}\\} \\), \\( z_{n} = \\sum_{i = 1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i} - \\epsilon -\\epsilon^{2}b / (6\\sigma^{2}) \\), and the rate function estimate corresponding to the third inequality of Lemma 2.9:"}, {"n": 3, "claim": "\\[\n\\Pr\\left[\\exists n>0:\\sum_{i=1}^{n}\\xi_{i}\\leq z_{n}\\text{a n d}\\mathcal{S}_{n}\\in A_{n}\\right]\\leq\\exp\\left(-\\frac{\\epsilon^{2}}{2\\sigma^{2}}\\right).\n\\]\nThis implies the second desired inequality with \\(\\epsilon = \\sigma \\sqrt{2\\ln(1 / \\delta)}\\)"}]}}], "target_local_id": "T5", "topic_domain": "Probability & Concentration", "topic_subtopic": "Martingales & Dependent Data", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch15_proposition_15_5__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nequation (15.3). Let \\(\\Lambda_0\\) be a symmetric positive definite regularizer and let \\(\\psi\\) be a feature map. Given \\(\\mathcal{S}_n = \\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\), define\n\\[\n\\hat{\\Lambda}(\\mathcal{S}_{n})=\\Lambda_{0}+\\sum_{i=1}^{n}\\psi(X_{i})\\psi(X_{i})^{\\top}\n\\]\nand the ridge regression estimator\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i}.\\tag{15.3}\n\\]\nEquivalently, \\(\\hat{w}(\\mathcal{S}_{n})\\) minimizes\n\\[\n\\sum_{i=1}^{n}(w^{\\top}\\psi(X_{i})-Y_{i})^{2}+\\|w\\|_{\\Lambda_{0}}^{2}.\n\\]\n\ndefinition 10.6. Let \\(\\mathcal{F}_{L_1}(\\Psi)\\) be the point-wise closure of \\(\\cup_{A > 0}\\mathcal{F}_{A,L_1}(\\Psi)\\), then for any \\(f\\in \\mathcal{F}_{L_1}(\\Psi)\\),\n\\[\n\\|f\\|_{1}=\\lim_{\\epsilon\\rightarrow 0}\\inf\\left\\{\\|w\\|_{1}:\\sup_{x}\\left|f(x)-\\sum_{j=1}^{m}w_{j}\\psi(\\theta_{j},x)\\right|\\leq\\epsilon\\right\\}.\n\\]\nFor notational convenience, we write functions in \\(\\mathcal{F}_{L_1}(\\Psi)\\) as\n\\[\nf(x)=w^{\\top}\\psi(x),\n\\]\nwhere \\(\\psi(x)\\) is the infinite dimensional vector \\([\\psi(\\theta, x)]_{\\theta \\in \\Theta}\\), and \\(\\|f\\|_1 = \\|w\\|_1\\).\nFor smooth-loss functions (see Definition A.5), there is a strong relationship between \\( L_{1} \\) regularization and \\( L_{0} \\) regularization, in that functions with small \\( L_{1} \\) norms can be sparsified. Such a sparsification result was first shown for the least squares loss, and referred to as Maurey's lemma in Pisier (1980-1981).\n\ndefinition 6.3. Given \\(S_{n}=\\{Z_{1},\\ldots,Z_{n}\\}\\), the (one-sided) empirical Rademacher complexity of \\(\\mathcal{G}\\) is defined as\n\\[\nR(\\mathcal{G},\\mathcal{S}_{n}) = \\mathbb{E}_{\\sigma}\\sup_{w\\in \\Omega}\\frac{1}{n}\\sum_{i = 1}^{n}\\sigma_{i}\\phi (w,Z_{i}),\n\\]\nwhere \\(\\sigma_1, \\ldots, \\sigma_n\\) are independent uniform \\(\\{\\pm 1\\}\\)-valued Bernoulli random variables. Moreover, the expected Rademacher complexity is\n\\[\nR_{n}(\\mathcal{G},\\mathcal{D})=\\mathbb{E}_{\\mathcal{S}_{n}\\sim\\mathcal{D}^{n}}R(\\mathcal{G},\\mathcal{S}_{n}).\n\\]\nThe following result shows that the quantity \\(\\epsilon_{n}(\\mathcal{G},\\mathcal{D})\\) can be upper bounded by Rademacher complexity. It follows that an average oracle inequality can be obtained using Rademacher complexity. The proof employs the symmetrization technique, which was also used in Chapter 4 to obtain uniform convergence bounds from empirical covering numbers.\n\nequation (15.3). The ridge regression method defines, for each \\(n\\),\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\arg\\min_{w}\\left[\\sum_{i=1}^{n}(Y_{i}-w^{\\top}\\psi(X_{i}))^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right].\n\\]\nEquivalently,\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\Lambda_{n}^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i},\\quad\\Lambda_{n}=\\Lambda_{0}+\\sum_{s=1}^{n}\\psi(X_{s})\\psi(X_{s})^{\\top}.\n\\]\n\nexample 15.2. For least squares regression with noise variance \\(\\sigma^2\\), we may have\n\\[\np(y|w,x)=\\frac{1}{\\sqrt{2\\pi}\\sigma}\\exp\\left(-\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}\\right),\n\\]\nand \\((\\operatorname{let} Z = (x, y))\\):\n\\[\n\\phi(w,Z)=\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}+\\ln(\\sqrt{2\\pi}\\sigma).\n\\]\nWe may also consider the noise as part of the model parameter, and let\n\\[\np(y|[w,\\sigma],x)=\\frac{1}{\\sqrt{2\\pi}\\sigma}\\exp\\left(-\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}\\right)\n\\]\n\\[\n\\phi([w,\\sigma],Z)=\\frac{(y-f(w,x))^{2}}{2\\sigma^{2}}+\\ln(\\sqrt{2\\pi}\\sigma).\n\\]\nIn the Bayesian setting, the optimal statistical estimation of posterior density for log-loss is the Bayesian posterior averaging estimator. Here we consider a prior \\( p_0(w) \\) on \\( \\Omega \\). Given the training data \\( S_{n}=\\{Z_{1},\\dots,Z_{n}\\} \\), the posterior distribution is\n\\[\np(w|\\mathcal{S}_{n})=\\frac{\\prod_{i=1}^{n}p\\left(Y_{i}\\mid w,X_{i}\\right)p_{0}(w)}{\\int_{\\Omega}\\prod_{i=1}^{n}p\\left(Y_{i}\\mid w^{\\prime},X_{i}\\right)p_{0}\\left(w^{\\prime}\\right)d w^{\\prime}}.\\tag{15.1}\n\\]\nUnlike ERM, the Bayesian posterior averaging method does not use \\( p(y|\\hat{w},x) \\) for a specific \\( \\hat{w}\\in \\Omega \\) that is estimated from the training data, but instead use the averaged probability estimate over the posterior as follows:\n\\[\n\\hat{p}(y|x,\\mathcal{S}_{n})=\\int_{\\Omega}p(y|w,x)p(w|\\mathcal{S}_{n})d w.\\tag{15.2}\n\\]\nAs pointed out in Section 14.1, such a method is referred to as improper online learning.\nIn the online setting, we have the following result, which may be regarded as a generic regret bound for the Bayesian posterior model averaging method.\n\nexample 10.11. In two-layer neural networks, let \\(\\Psi\\) be an \\(L_{2}\\)-regularized ReLU function class:\n\\[\n\\Psi=\\left\\{\\psi(\\theta,x)=\\max(0,\\theta^{\\top}x):\\quad\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta\\right\\},\n\\]\nand the corresponding \\(L_{1}\\) regularized two-layer NN can be expressed as a function\n\\[\nf(x)=\\sum_{j=1}^{m}w_{j}\\psi\\left(\\theta_{j},x\\right):\\|w\\|_{1}\\leq A,\\|\\theta\\|_{2}\\leq\\alpha,\\|x\\|_{2}\\leq\\beta .\n\\]\nThis function class belongs to \\(\\mathcal{F}_{A,L_1}(\\Psi)\\). We thus obtain the following bound for \\(L_{1}\\) regularized two-layer NN:\n\\[\n\\begin{array}{l}R\\left(\\mathcal{F}_{A,L_{1}}(\\Psi),\\mathcal{S}_{n}\\right)\\leq 2AR(\\Psi,\\mathcal{S}_{n})\\tag{Theorem 10.8}\\\\ \\leq 2A\\alpha\\beta/\\sqrt{n},\\quad(\\text{C o r o l l a r y} 9. 21)\\\\ \\end{array}\n\\]\nwhere we note that \\(\\max (0,f)\\) is 1-Lipschitz in \\(f\\)\nNext, we may consider the following hard-constrained \\( L_{1} \\) regularized learning problem.\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right),\\quad\\|w\\|_{1}\\leq A.\\tag{10.8}\n\\]\nSimilarly, we may consider the soft-regularized version as:\n\\[\n\\hat{w}=\\arg\\min_{w}\\frac{1}{n}\\sum_{i=1}^{n}L\\left(w^{\\top}\\psi\\left(X_{i}\\right),Y_{i}\\right)+\\lambda\\|w\\|_{1}.\\tag{10.9}\n\\]\nNow by using Theorem 6.31, we obtain the following result.\n\nequation (15.3). Let \\(\\Lambda_0\\) be a symmetric invertible regularizer and let \\(\\psi\\) be a feature map. Given \\(\\mathcal{S}_n = \\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\), define\n\\[\n\\hat{\\Lambda}(\\mathcal{S}_{n})=\\Lambda_{0}+\\sum_{i=1}^{n}\\psi(X_{i})\\psi(X_{i})^{\\top}\n\\]\nand the ridge regression estimator\n\\[\n\\hat{w}(\\mathcal{S}_{n})=\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\sum_{i=1}^{n}\\psi(X_{i})Y_{i}.\\tag{15.3}\n\\]\nEquivalently, \\(\\hat{w}(\\mathcal{S}_{n})\\) minimizes\n\\[\n\\sum_{i=1}^{n}(w^{\\top}\\psi(X_{i})-Y_{i})^{2}+\\|w\\|_{\\Lambda_{0}}^{2}.\n\\]", "theorems": [{"local_id": "T1", "statement": "Consider probability model\n\\[\np(y|w,x)=N(w^{\\top}\\psi(x),\\sigma^{2}),\n\\]\nwith prior\n\\[\np_{0}(w)=N(0,\\sigma^{2}\\Lambda_{0}^{-1}).\n\\]\nThen given \\(\\mathcal{S}_n=\\{(X_1,Y_1),\\ldots,(X_n,Y_n)\\}\\) , we have\n\\[\np(w|\\mathcal{S}_{n})=N(\\hat{w}(\\mathcal{S}_{n}),\\sigma^{2}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}),\n\\]\nwhere \\(\\hat{w} (S_n)\\) is given by (15.3) and\n\\[\n\\hat{\\Lambda}\\left(\\mathcal{S}_{n}\\right)=\\sum_{i=1}^{n}\\psi\\left(X_{i}\\right)\\psi\\left(X_{i}\\right)^{\\top}+\\Lambda_{0}.\n\\]\nGiven \\( x \\), the posterior distribution of \\( y \\) is\n\\[\n\\hat{p}(y|x,\\mathcal{S}_{n})=N\\left(\\hat{w}(\\mathcal{S}_{n})^{\\top}\\psi(x),\\sigma^{2}+\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\psi(x)\\right).\n\\]", "proof": {"steps": [{"n": 1, "claim": "It is clear that\n\\[\np(w|\\mathcal{S}_{n})\\propto\\exp\\left(-\\sum_{i=1}^{n}\\frac{(w^{\\top}\\psi(X_{i})-Y_{i})^{2}}{2\\sigma^{2}}-\\frac{\\|w\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right).\n\\]\nNote that (15.3) implies that\n\\[\n\\begin{array}{l}\\sum_{i=1}^{n}\\frac{\\left(w^{\\top}\\psi\\left(X_{i}\\right)-Y_{i}\\right)^{2}}{2\\sigma^{2}}+\\frac{\\|w\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\\\ =\\sum_{i=1}^{n}\\frac{\\left(\\hat{w}^{\\top}\\psi\\left(X_{i}\\right)-Y_{i}\\right)^{2}}{2\\sigma^{2}}+\\frac{\\|\\hat{w}\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}+\\frac{1}{2\\sigma^{2}}(w-\\hat{w})^{\\top}\\hat{\\Lambda}\\left(S_{n}\\right)(w-\\hat{w}).\\tag{15.4}\\\\ \\end{array}\n\\]\nThis implies the first desired result."}, {"n": 2, "claim": "Moreover, given \\( x \\), and let the random variable \\( u = w^{\\top}\\psi (x) \\) with \\( w\\sim p(w|S_n) \\), we have\n\\[\nu|x,\\mathcal{S}_{n}\\sim N\\left(\\hat{w}^{\\top}\\psi(x),\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}(\\mathcal{S}_{n})^{-1}\\psi(x)\\right).\n\\]\nSince in posterior distribution, the observation \\( y|u \\sim u + \\epsilon \\) with \\( \\epsilon \\sim N(0, \\sigma^2) \\), we know that\n\\[\ny|x,\\mathcal{S}_{n}\\sim N(\\hat{w}^{\\top}\\psi(x),\\sigma^{2}\\psi(x)^{\\top}\\hat{\\Lambda}^{-1}\\psi(x)+\\sigma^{2}).\n\\]\nThis implies the desired result."}]}}, {"local_id": "T2", "statement": "Assume that \\( Y_{t} \\in [0, M] \\) for \\( t \\geq 1 \\). Consider the ridge regression method of (15.3), and let\n\\[\n\\hat{Y}_{t}=\\max(0,\\min(M,\\hat{w}(\\mathcal{S}_{t-1})^{\\top}\\psi(X_{t}))).\n\\]\nWe have\n\\[\n\\sum_{t=1}^{T}(Y_{t}-\\hat{Y}_{t})^{2}\\leq\\inf_{w}\\left[\\sum_{t=1}^{T}(Y_{t}-w^{\\top}\\psi(X_{t}))^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right]+M^{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|,\n\\]\nwhere\n\\[\n\\Lambda_{T}=\\Lambda_{0}+\\sum_{s=1}^{T}\\psi(X_{s})\\psi(X_{s})^{\\top}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We can apply Theorem 15.6 by taking \\(\\sigma^2 = M^2\\)."}, {"n": 2, "claim": "By using the following inequality\n\\[\n0\\leq\\frac{1-b_{t}}{b_{t}}+\\ln b_{t},\n\\]\nwe obtain\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}(Y_{t}-\\hat{Y}_{t})^{2}\\leq\\sum_{t=1}^{T}\\left[(Y_{t}-\\hat{Y}_{t})^{2}+M^{2}\\frac{1-b_{t}}{b_{t}}+M^{2}\\ln b_{t}\\right]\\\\ \\leq\\sum_{t=1}^{T}\\left[\\left(Y_{t}-\\hat{Y}_{t}\\right)^{2}+\\left(Y_{t}-\\hat{Y}_{t}\\right)^{2}\\frac{1-b_{t}}{b_{t}}+M^{2}\\ln b_{t}\\right]\\tag{15.5}\\\\ \\leq\\sum_{t=1}^{T}\\left[\\frac{(Y_{t}-\\hat{w}(\\mathcal{S}_{t-1})^{\\top}\\psi(X_{i}))^{2}}{b_{t}}+M^{2}\\ln b_{t}\\right],\\\\ \\end{array}\n\\]\nwhere \\( b_{t} \\) is defined in Theorem 15.6."}, {"n": 3, "claim": "Note that (15.5) used \\( 1 - b_{t} \\leq 0 \\) and \\( (Y_{t} - \\hat{Y}_{t})^{2} \\leq M^{2} \\)."}, {"n": 4, "claim": "The desired result is now a direct application of Theorem 15.6."}]}}, {"local_id": "T3", "statement": "Consider \\(\\mathcal{D}_f(X,Y)\\) so that \\(X\\sim \\mathcal{D}_X\\) is identical for all \\(f\\in \\mathcal{F}\\), and \\(Y\\sim N(f(X),\\sigma^2)\\) for some constant \\(\\sigma >0\\). Then\n\\[\n\\mathbb{E}_{X\\sim\\mathcal{D}_{X}}(f(X)-f^{\\prime}(X))^{2}=2\\sigma^{2}\\mathrm{KL}(\\mathcal{D}_{f}| |\\mathcal{D}_{f^{\\prime}}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We consider a distribution \\(\\mathcal{D}\\) over \\(Z = (X,Y)\\) associated with each \\(f\\in \\mathcal{F}\\), with density defined as\n\\[\np_{\\mathcal{D}}(Z)=\\sigma^{-1}p_{\\mathcal{D}_{X}}(X)p_{N(0,1)}((Y-f(X))/\\sigma),\n\\]\nwhere \\(p_{\\mathcal{D}_X}(X)\\) is the density of \\(X \\sim \\mathcal{D}_X\\) and \\(p_{N(0,1)}\\) is the density of standard normal distribution."}, {"n": 2, "claim": "Using this notation, we have\n\\[\n\\mathrm{KL}(\\mathcal{D}_{\\hat{f}}| |\\mathcal{D}_{f})=\\frac{\\mathbb{E}_{X}(\\hat{f}(X)-f(X))^{2}}{2\\sigma^{2}}.\n\\]\nThis proves the desired result."}]}}, {"local_id": "T4", "statement": "Consider the ridge regression method of (15.3). We have the following result for any \\(\\sigma \\geq 0\\) and for all observed sequence \\(S_T\\):\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\left[\\frac{\\left(Y_{t}-\\hat{w}\\left(\\mathcal{S}_{t-1}\\right)^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}}{b_{t}}+\\sigma^{2}\\ln b_{t}\\right]\\\\ =\\inf_{w}\\left[\\sum_{t=1}^{T}\\left(Y_{t}-w^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}+\\|w\\|_{\\Lambda_{0}}^{2}\\right]+\\sigma^{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|,\\\\ \\end{array}\n\\]\nwhere\n\\[\n\\Lambda_{t}=\\Lambda_{0}+\\sum_{s=1}^{t}\\psi(X_{s})\\psi(X_{s})^{\\top},\n\\]\nand \\(b_{t} = 1 + \\psi (X_{t})^{\\top}\\Lambda_{t - 1}^{-1}\\psi (X_{t}).\\)", "proof": {"steps": [{"n": 1, "claim": "Assume \\( w \\in \\mathbb{R}^d \\). We note that from Gaussian integration that\n\\[\n\\begin{array}{l}\\mathbb{E}_{w\\sim p_{0}}\\prod_{i=1}^{T}p\\left(Y_{i}|w,X_{i}\\right)\\\\ =\\int\\frac{\\left|\\Lambda_{0}^{-1}\\right|^{-1/2}}{(2\\pi)^{(T+d)/2}\\sigma^{T}\\sigma^{d}}\\exp\\left(-\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}\\left(Y_{i}-w^{\\top}\\psi\\left(X_{i}\\right)\\right)^{2}-\\frac{\\left\\|w\\right\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right)d w\\\\ =\\frac{\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|^{-1/2}}{\\left(2\\pi\\right)^{T/2}\\sigma^{T}}\\exp\\left(-\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}\\left(Y_{i}-\\hat{w}\\left(\\mathcal{S}_{T}\\right)^{\\top}\\psi(X_{i})\\right)^{2}-\\frac{\\left\\|\\hat{w}\\left(\\mathcal{S}_{T}\\right)\\right\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}\\right),\\\\ \\end{array}\n\\]\nwhere the last equation used Gaussian integration with decomposition (15.4)."}, {"n": 2, "claim": "That is,\n\\[\n\\begin{array}{l}-\\ln\\mathbb{E}_{w\\sim p_{0}}\\prod_{i=1}^{T}p(Y_{i}|w,X_{i})=T\\ln(\\sqrt{2\\pi}\\sigma)+\\frac{1}{2}\\ln\\left|\\Lambda_{0}^{-1}\\Lambda_{T}\\right|\\\\ +\\frac{1}{2\\sigma^{2}}\\sum_{i=1}^{T}(Y_{i}-\\hat{w}(\\mathcal{S}_{T})^{\\top}\\psi(X_{i}))^{2}+\\frac{\\|\\hat{w}(\\mathcal{S}_{T})\\|_{\\Lambda_{0}}^{2}}{2\\sigma^{2}}.\\\\ \\end{array}\n\\]\nMoreover, from Proposition 15.5, we have\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}-\\ln\\hat{p}(Y_{t}|X_{t},\\mathcal{S}_{t-1})\\\\ =\\sum_{t=1}^{T}\\left[\\frac{\\left(Y_{t}-\\hat{w}\\left(\\mathcal{S}_{t-1}\\right)^{\\top}\\psi\\left(X_{t}\\right)\\right)^{2}}{2\\sigma^{2}b_{t}}+\\frac{1}{2}\\ln(b_{t})+\\ln(\\sqrt{2\\pi}\\sigma)\\right].\\\\ \\end{array}\n\\]\nThe desired result now follows from Theorem 15.3."}]}}, {"local_id": "T5", "statement": "We have\n\\[\n\\begin{array}{l}-\\sum_{t=1}^{T}\\ln\\hat{p}\\left(Y_{t}\\mid X_{t},\\mathcal{S}_{t-1}\\right)= -\\ln\\mathbb{E}_{w\\sim p_{0}}\\prod_{t=1}^{T}p\\left(Y_{t}\\mid w,X_{t}\\right)\\\\ =\\inf_{q\\in\\Delta(\\Omega)}\\left[-\\mathbb{E}_{w\\sim q}\\sum_{t=1}^{T}\\ln p(Y_{t}|w,X_{t})+\\mathbb{E}_{w\\sim q}\\ln\\frac{q(w)}{p_{0}(w)}\\right],\\\\ \\end{array}\n\\]\nwhere \\(\\Delta (\\Omega)\\) is the set of probability distributions over \\(\\Omega\\)", "proof": {"steps": [{"n": 1, "claim": "We have\n\\[\n\\begin{array}{l}\\ln\\hat{p}(Y_{t}|X_{t},\\mathcal{S}_{t-1})=\\ln\\int_{\\Omega}p(Y_{t}|w,X_{t})p(w|\\mathcal{S}_{t-1})d w\\\\ =\\ln\\frac{\\int_{\\Omega}\\prod_{i=1}^{t}p(Y_{i}|w,X_{i})p_{0}(w)d w}{\\int_{\\Omega}\\prod_{i=1}^{t-1}p(Y_{i}|w^{\\prime},X_{i})p_{0}(w^{\\prime})d w^{\\prime}}\\\\ =\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{i=1}^{t}p(Y_{i}|w,X_{i})-\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{i=1}^{t-1}p(Y_{i}|w,X_{i}).\\\\ \\end{array}\n\\]\nBy summing over \\( t = 1 \\) to \\( t = T \\), we obtain\n\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\ln\\hat{p}\\left(Y_{t}\\mid x_{t},\\mathcal{S}_{t-1}\\right)=\\ln\\mathbb{E}_{w\\in p_{0}}\\prod_{t=1}^{T}p\\left(Y_{t}\\mid w,X_{t}\\right)\\\\ =\\sup_{q}\\left[\\mathbb{E}_{w\\sim q}\\ln\\prod_{t=1}^{T}p\\left(Y_{t}|w,X_{t}\\right)-\\mathbb{E}_{w\\sim q}\\ln\\frac{q(w)}{p_{0}(w)}\\right],\\\\ \\end{array}\n\\]\nwhere the second equality used Proposition 7.16."}, {"n": 2, "claim": "This implies the desired result."}]}}], "target_local_id": "T1", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch4_theorem_4_12__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 4.1. Let \\((\\mathcal{V},d)\\) be a pseudometric space with metric \\(d(\\cdot,\\cdot)\\). A finite\nset \\(\\mathcal{G}(\\epsilon) \\subset \\mathcal{V}\\) is an \\(\\epsilon\\)-cover (or \\(\\epsilon\\)-net) of \\(\\mathcal{G} \\subset \\mathcal{V}\\) if, for all \\(\\phi \\in \\mathcal{G}\\), there exists \\(\\phi' \\in \\mathcal{G}(\\epsilon)\\) so that \\(d(\\phi', \\phi) \\leq \\epsilon\\). The \\(\\epsilon\\)-covering number of \\(\\mathcal{G}\\) with metric \\(d\\) is the smallest cardinality \\(N(\\epsilon, \\mathcal{G}, d)\\) of such \\(\\mathcal{G}(\\epsilon)\\). The number \\(\\ln N(\\epsilon, \\mathcal{G}, d)\\) is called the \\(\\epsilon\\)-entropy.\nFor a function class \\(\\mathcal{G}\\) with seminorm \\(L_{p}(\\mathcal{D})\\) in (3.19), we denote the corresponding \\(L_{p}(\\mathcal{D})\\)-covering number as \\(N(\\epsilon, \\mathcal{G}, L_{p}(\\mathcal{D}))\\). When \\(1 \\leq p \\leq q\\), we have\n\\[\nN(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{D}))\\leq N(\\epsilon,\\mathcal{G},L_{q}(\\mathcal{D})).\n\\]\nIt is easy to verify the following relationship, which implies that \\( L_{p}(\\mathcal{D}) \\) bracketing cover is a stronger requirement than \\( L_{p}(\\mathcal{D}) \\) cover.\n\ndefinition 3.8. We define\n\\[\n\\phi(w,z)=L\\left(f(w,x),y\\right)-L_{*}(x,y),\\tag{3.4}\n\\]\nfor \\( w \\in \\Omega \\) and \\( z = (x, y) \\in \\mathcal{Z} = \\mathcal{X} \\times \\mathcal{Y} \\), and a pre-chosen \\( L_{*}(x, y) \\) of \\( z = (x, y) \\) that does not depend on \\( w \\).\nFor training data \\( S_{n}=\\{Z_{i}=(X_{i},Y_{i}):i=1,\\ldots,n\\} \\), we define the training loss for \\( w\\in \\Omega \\) as\n\\[\n\\phi(w,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{i=1}^{n}\\phi(w,Z_{i}).\\tag{3.5}\n\\]\nMoreover, for a distribution \\(\\mathcal{D}\\) on \\(\\mathcal{Z}\\), we define the test loss for \\(w \\in \\Omega\\) as:\n\\[\n\\phi(w,\\mathcal{D})=\\mathbb{E}_{Z\\sim\\mathcal{D}}\\phi(w,Z).\\tag{3.6}\n\\]\nSince \\( L_{*}(x,y) \\) does not depend on \\( w \\), the ERM solution with respect to the loss \\( L(\\cdot) \\) is equivalent to the ERM solution with respect to \\( \\phi (w,\\cdot) \\). Therefore with the simplified notations, the approximate ERM method (3.3) is a special case of the following method:\n\\[\n\\phi(\\hat{w},\\mathcal{S}_{n})\\leq\\inf_{w\\in\\Omega}\\phi(w,\\mathcal{S}_{n})+\\epsilon^{\\prime}.\\tag{3.7}\n\\]\nIn general, we may simply take \\( L_{*}(x,y) = 0 \\) in (3.4). However, for some applications, we may choose a non-zero \\( L_{*}(x,y) \\) so that\n\\[\nL(f(w,x),y)-L_{*}(x,y)\n\\]\nhas a small variance. For least squares loss, this can be achieved with \\( L_{*}(x,y) = L(f_{*}(x),y) \\) where \\( f_{*}(x) \\) is the optimal prediction function that minimizes the test loss as shown in Example 3.9. The smaller variance, combined with Bernstein's inequality, implies better generalization bound (see Section 3.6 for more details).\n\nEmpirical and Uniform Covering Number. Given an empirical distribution \\( S_{n}=\\{Z_{1},\\ldots,Z_{n}\\} \\), we define the pseudometric \\( d = L_{p}(S_{n}) \\) as\n\\[\nd(\\phi,\\phi^{\\prime})=\\left[\\frac{1}{n}\\sum_{i=1}^{n}|\\phi(Z_{i})-\\phi^{\\prime}(Z_{i})|^{p}\\right]^{1/p}.\n\\]\nThe corresponding metric covering number \\(N(\\epsilon, \\mathcal{G}, L_p(\\mathcal{S}_n))\\) is referred to as the\nempirical \\( L_{p} \\) covering number. Given \\( n \\), the largest \\( L_{p} \\) covering number over empirical distribution \\( S_{n} \\) is referred to as the uniform \\( L_{p} \\) covering number\n\\[\nN_{p}(\\epsilon,\\mathcal{G},n)=\\sup_{\\mathcal{S}_{n}}N(\\epsilon,\\mathcal{G},L_{p}(\\mathcal{S}_{n})).\n\\]\nSince the \\(L_{p}(\\mathcal{S}_{n})\\) pseudometric increases with \\(p\\), we have the following simple result.\n\nBracketing Number. Let \\(\\mathcal{G} = \\{\\phi(w, \\cdot) : w \\in \\Omega\\}\\) be a real-valued function class, equipped with a pseudometric \\(d\\). We say\n\\[\n\\mathcal{G}(\\epsilon)=\\left\\{\\left[\\phi_{1}^{L}(z),\\phi_{1}^{U}(z)\\right],\\dots,\\left[\\phi_{N}^{L}(z),\\phi_{N}^{U}(z)\\right]\\right\\}\n\\]\nis an \\(\\epsilon\\)-bracket of \\(\\mathcal{G}\\) under metric \\(d\\) if for all \\(w \\in \\Omega\\), there exists \\(j = j(w)\\) such that \\(\\forall z\\):\n\\[\n\\phi_{j}^{L}(z)\\leq\\phi(w,z)\\leq\\phi_{j}^{U}(z),\\quad d(\\phi_{j}^{L},\\phi_{j}^{U})\\leq\\epsilon .\n\\]\nThe \\(\\epsilon\\)-bracketing number is the smallest cardinality \\(N_{\\mathbb{I}}(\\epsilon, \\mathcal{G}, d)\\) of such \\(\\mathcal{G}(\\epsilon)\\). The quantity \\(\\ln N_{\\mathbb{I}}(\\epsilon, \\mathcal{G}, d)\\) is called \\(\\epsilon\\) bracketing entropy.\nIn particular, given a distribution \\(\\mathcal{D}\\) and \\(p \\geq 1\\), we define \\(L_{p}\\)-seminorm in function space as\n\\[\n\\left\\|f-f^{\\prime}\\right\\|_{L_{p}(\\mathcal{D})}=\\left[\\mathbb{E}_{Z\\sim\\mathcal{D}}|f(Z)-f^{\\prime}(Z)|^{p}\\right]^{1/p}.\\tag{3.19}\n\\]\nIt induces a pseudometric, denoted as \\( d = L_{p}(\\mathcal{D}) \\), and the corresponding bracketing number is \\( N_{\\parallel}(\\epsilon, \\mathcal{G}, L_{p}(\\mathcal{D})) \\).\nFor \\(p = \\infty\\), the \\(L_{\\infty}(\\mathcal{D})\\)-seminorm is defined as the essential supremum seminorm, which leads to the pseudometric\n\\[\nd(f,f^{\\prime})=\\inf\\left\\{\\omega:\\Pr_{\\mathcal{D}}[|f(Z)-f^{\\prime}(Z)|\\leq\\omega]=1\\right\\}.\n\\]\nHowever, when \\( p = \\infty \\), instead of using the \\( L_{\\infty} \\) bracketing number, it is more conventional to use the equivalent notion of \\( L_{\\infty} \\) covering number (see Proposition 4.3).\nWe have the following relationship of lower bracketing number and bracketing numbers with different norms.\n\nVC-dimension. We say that \\(\\mathcal{G}\\) shatters \\(S_{n}\\) if the number of elements \\(|\\mathcal{G}(S_n)|\\) is \\(2^{n}\\). That is, we can always find \\(w\\in \\Omega\\) so that \\(\\phi (w,z)\\) matches any arbitrary possible choice of \\(\\{0,1\\} ^n\\) values at the \\(n\\) points. The maximum \\(n\\) such that \\(\\mathcal{G}\\) shatters at least one instance of \\(S_{n}\\in \\mathcal{Z}^{n}\\), denoted by \\(\\mathrm{vc}(\\mathcal{G})\\), is called the VC-dimension of \\(\\mathcal{G}\\).\nNote that the maximum number of functions in \\(\\mathcal{G}(\\mathcal{S}_n)\\) is \\(2^n\\). If \\(n > d\\), then for any \\(n\\) samples \\(\\mathcal{S}_n\\), \\(\\mathcal{G}(\\mathcal{S}_n)\\) contains fewer than \\(2^n\\) elements. Surprisingly, if a binary-valued function class \\(\\mathcal{G}\\) has VC dimension \\(d\\), then when \\(n > d\\), the size of set \\(\\mathcal{G}(\\mathcal{S}_n)\\) can grow only polynomially in \\(n\\). This gives an \\(O(d\\ln n)\\) upper bound on the uniform entropy of the function class \\(\\mathcal{G}\\) with a finite VC-dimension (see Vapnik and Chervonenkis, 1968, 1971; Sauer, 1972).\n\ndefinition 4.7. Consider a real-valued function family \\(\\mathcal{F}:\\mathcal{Z}\\to \\mathbb{R}\\). Consider \\(n\\) iid Bernoulli random variables \\(\\sigma_{i}\\in \\{\\pm 1\\}\\), where \\(\\operatorname*{Pr}(\\sigma_i=1)=\\operatorname*{Pr}(\\sigma_i= -1)=0.5\\). The symmetrized empirical process is\n\\[\nf(\\sigma,\\mathcal{S}_{n})=\\frac{1}{n}\\sum_{i=1}^{n}\\sigma_{i}f(Z_{i})\\qquad f\\in\\mathcal{F},\n\\]\nwhere the randomness is with respect to both \\(S_{n} = \\{Z_{i}\\}\\) and \\(\\sigma = \\{\\sigma_{i}\\}\\).\nNote that in order to bound the symmetrized empirical process, we only need a covering number result on \\( S_{n} \\). Therefore the symmetrization analysis allows us to work with empirical covering numbers. Next we will show that a bound on the symmetrized empirical process can be used to obtain uniform convergence of the empirical process \\( \\{f(S_{n}): f \\in \\mathcal{F}\\} \\) to the corresponding result on the validation data. Since one can relate the validation loss of a learning algorithm to its generalization error on the test data, we can use this result to obtain generalization bounds.\nThe following lemma shows that if we can obtain an upper bound on the symmetrized empirical process \\(\\{f(\\sigma, S_n) : f \\in \\mathcal{F}\\}\\), and the upper bound satisfies a superadditive property, then we can obtain the uniform convergence of the empirical process \\(\\{f(S_n) : f \\in \\mathcal{F}\\}\\) on the training data \\(S_n\\) to the corresponding result on the validation data \\(S_n'\\).", "theorems": [{"local_id": "T1", "statement": "Let \\(\\psi_{\\mathrm{trn}}: \\mathcal{F} \\times \\mathcal{Z}^n \\to \\mathbb{R}\\), \\(\\psi_{\\mathrm{val}}: \\mathcal{F} \\times \\mathcal{Z}^n \\to \\mathbb{R}\\), \\(\\psi_{\\mathrm{tst}}: \\mathcal{F} \\times \\mathcal{D} \\to \\mathbb{R}\\) be appropriately training (where \\(\\mathcal{D}\\) denotes probability distributions on \\(\\mathcal{Z}\\)), validation, and test statistics. Assume that for any \\(\\delta_1 \\in (0,1)\\), the following uniform convergence result holds. With probability at least \\(1 - \\delta_1\\) over randomly drawn training and validation sets \\((S_n, S_n') \\sim \\mathcal{D}^{2n}\\):\n\\[\n\\forall f\\in\\mathcal{F}:\\psi_{\\mathrm{val}}(f,\\mathcal{S}_{n}^{\\prime})\\leq\\psi_{\\mathrm{trn}}(f,\\mathcal{S}_{n})+\\epsilon_{n}^{1}(\\delta_{1}).\n\\]\nMoreover, assume \\(\\forall f\\in \\mathcal{F}\\), we have with probability \\(1 - \\delta_{2}\\) over randomly drawn \\(\\mathcal{S}_n^\\prime \\sim \\mathcal{D}\\):\n\\[\n\\psi_{\\mathrm{tst}}(f,\\mathcal{D})\\leq\\psi_{\\mathrm{val}}(f,\\mathcal{S}_{n}^{\\prime})+\\epsilon_{n}^{2}(\\delta_{2}).\n\\]\nThen the following uniform convergence statement holds. With probability at least \\(1 - \\delta_1 - \\delta_2\\),\n\\[\n\\forall f\\in\\mathcal{F}:\\psi_{\\mathrm{tst}}(f,\\mathcal{D})\\leq\\psi_{\\mathrm{trn}}(f,\\mathcal{S}_{n})+\\epsilon_{n}^{1}(\\delta_{1})+\\epsilon_{n}^{2}(\\delta_{2}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\( Q(f, \\mathcal{S}_n) = \\psi_{\\mathrm{tst}}(f, \\mathcal{D}) - \\psi_{\\mathrm{trn}}(f, \\mathcal{S}_n) - (\\epsilon_n^1(\\delta_1) + \\epsilon_n^2(\\delta_2)) \\), and let \\( E \\) be the event that \\( \\sup_{f \\in \\mathcal{F}} Q(f, \\mathcal{S}_n) \\leq 0 \\)."}, {"n": 2, "claim": "We pick \\( \\hat{f}(\\mathcal{S}_n) \\in \\mathcal{F} \\) so that if \\( E \\) holds, then we choose an arbitrary \\( Q(\\hat{f}(\\mathcal{S}_n), \\mathcal{S}_n) \\leq 0 \\), and if \\( E \\) does not hold, we choose \\( \\hat{f}(\\mathcal{S}_n) \\) so that \\( Q(\\hat{f}(\\mathcal{S}_n), \\mathcal{S}_n) > 0 \\)."}, {"n": 3, "claim": "We consider sample \\( (\\mathcal{S}_n, \\mathcal{S}_n') \\sim \\mathcal{D}^{2n} \\)."}, {"n": 4, "claim": "For simplicity, in the following, we let \\( \\hat{f} = \\hat{f}(\\mathcal{S}_n) \\)."}, {"n": 5, "claim": "The uniform convergence condition of the theorem implies that with probability at least \\( 1 - \\delta_1 \\), the following event holds:"}, {"n": 6, "claim": "\\[\n{E_{1}:}{\\psi_{\\mathrm{val}}(\\hat{f},\\mathcal{S}_{n}^{\\prime})\\leq\\psi_{\\mathrm{trn}}(\\hat{f},\\mathcal{S}_{n})+\\epsilon_{n}^{1}(\\delta_{1}).}\n\\]\nNote that the validation data \\( S_{n}^{\\prime} \\) is independent of the training data \\( S_{n} \\)."}, {"n": 7, "claim": "Therefore \\( S_{n}^{\\prime} \\) is also independent of \\( \\hat{f} \\)."}, {"n": 8, "claim": "Therefore the condition of the theorem implies that with probability at least \\( 1 - \\delta_2 \\), the following event holds:"}, {"n": 9, "claim": "\\[\nE_{2}:\\psi_{\\mathrm{tst}}(\\hat{f},\\mathcal{D})\\leq\\psi_{\\mathrm{val}}(\\hat{f},\\mathcal{S}_{n}^{\\prime})+\\epsilon_{n}^{2}(\\delta_{2}).\n\\]\nIf both events \\(E_{1}\\) and \\(E_{2}\\) hold, then\n\\[\n\\begin{array}{l}\\psi_{\\mathrm{tst}}(\\hat{f},\\mathcal{D})\\leq\\psi_{\\mathrm{val}}(\\hat{f},\\mathcal{S}_{n}^{\\prime})+\\epsilon_{n}^{2}(\\delta_{2})\\\\ \\leq\\psi_{\\mathrm{trn}}(\\hat{f},\\mathcal{S}_{n})+\\epsilon_{n}^{1}(\\delta_{1})+\\epsilon_{n}^{2}(\\delta_{2}).\\\\ \\end{array}\n\\]\nThe definition of \\(\\hat{f}\\) implies that \\(E\\) holds."}, {"n": 10, "claim": "Therefore \\(\\operatorname*{Pr}(E)\\geq \\operatorname*{Pr}(E_1\\& E_2)\\geq 1 - \\delta_1 - \\delta_2\\)."}, {"n": 11, "claim": "This implies the desired bound."}]}}, {"local_id": "T2", "statement": "Let \\(\\sigma_{i} = \\{\\pm 1\\}\\) be independent Bernoulli random variables ( each takes value \\(\\pm 1\\) with equal probability). Let \\(a_{i}\\) be fixed numbers \\((i=1,\\dots,n)\\) Then for all \\(\\epsilon >0\\) ..\n\\[\n\\Pr\\left(n^{-1}\\sum_{i=1}^{n}\\sigma_{i}a_{i}\\geq\\epsilon\\right)\\leq\\exp\\left[-\\frac{n\\epsilon^{2}}{2 n^{-1}\\sum_{i=1}^{n}a_{i}^{2}}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Consider \\( X_{i} = \\sigma_{i}a_{i} \\) in Corollary 2.26. We can take \\( \\mu = 0 \\) and \\( b_{i} = a_{i}^{2} \\) to obtain the desired bound."}]}}, {"local_id": "T3", "statement": "(Symmetrization) Consider a real valued function family \\(F = \\{f : Z \\rightarrow \\mathbb{R}\\}\\). Assume there exists a function \\(\\psi : F \\times Z^{n} \\rightarrow \\mathbb{R}\\) and \\(\\epsilon_{n} : (0,1) \\rightarrow \\mathbb{R}\\) so that with probability at least \\(1-\\delta\\):\n\\[\n\\forall f \\in F, \\qquad f(\\sigma, S_{n}) \\leq \\psi(f, S_{n}) + \\epsilon_{n}(\\delta),\n\\]\nwhere the randomness is over both \\(S_{n} \\sim D^{n}\\) and \\(\\sigma\\). If there exists \\(\\tilde{\\psi}(f, S_{n} \\cup S_{n}^{\\prime})\\) so that the following superadditive inequality holds for all \\((S_{n}, S_{n}^{\\prime})\\)\n\\[\n\\psi(f, S_{n}) + \\psi(f, S_{n}^{\\prime}) \\leq \\tilde{\\psi}(f, S_{n} \\cup S_{n}^{\\prime}),\n\\]\nthen with probability at least \\(1-\\delta\\) over independent random data \\((S_{n}, S_{n}^{\\prime}) \\sim D^{2n}\\):\n\\[\n\\forall f \\in F, \\qquad f(S_{n}^{\\prime}) \\leq f(S_{n}) + \\tilde{\\psi}(f, S_{n} \\cup S_{n}^{\\prime}) + 2\\epsilon_{n}(\\delta/2).\n\\]", "proof": {"steps": [{"n": 1, "claim": "Consider independent random samples \\((S_{n}, S_{n}^{\\prime}) \\sim D^{2n}\\)."}, {"n": 2, "claim": "The distribution of \\(f(S_{n}) - f(S_{n}^{\\prime})\\) is the same as that of \\(f(\\sigma, S_{n}) - f(\\sigma, S_{n}^{\\prime})\\), and the latter contains additional randomness from Bernoulli random variables \\(\\sigma\\), drawn independently of \\((S_{n}, S_{n}^{\\prime})\\), as in Definition 4.7."}, {"n": 3, "claim": "It follows that\n\\[\n\\begin{array}{l}\n\\Pr\\Bigl(\\exists f \\in F,\\ f(S_{n}^{\\prime}) > f(S_{n}) + \\tilde{\\psi}(f, S_{n} \\cup S_{n}^{\\prime}) + 2\\epsilon_{n}(\\delta/2)\\Bigr) \\\\\n= \\Pr\\Bigl(\\exists f \\in F,\\ f(\\sigma, S_{n}^{\\prime}) > f(\\sigma, S_{n}) + \\tilde{\\psi}(f, S_{n} \\cup S_{n}^{\\prime}) + 2\\epsilon_{n}(\\delta/2)\\Bigr) \\\\\n\\stackrel{(a)}{\\leq} \\Pr\\Bigl(\\underbrace{\\exists f \\in F,\\ f(\\sigma, S_{n}^{\\prime}) > f(\\sigma, S_{n}) + (\\psi(f, S_{n}) + \\psi(f, S_{n}^{\\prime})) + 2\\epsilon_{n}(\\delta/2)}_{E_{0}}\\Bigr)\n\\end{array}\n\\]\n\\[\n\\begin{array}{l}\n\\stackrel{(b)}{\\leq} \\Pr\\Bigl(\\underbrace{\\exists f \\in F,\\ f(\\sigma, S_{n}^{\\prime}) > \\psi(f, S_{n}^{\\prime}) + \\epsilon_{n}(\\delta/2)}_{E_{1}}\\Bigr) \\\\\n\\quad + \\Pr\\Bigl(\\underbrace{\\exists f \\in F,\\ -f(\\sigma, S_{n}) > \\psi(f, S_{n}) + \\epsilon_{n}(\\delta/2)}_{E_{2}}\\Bigr)\n\\end{array}\n\\]\n\\[\n= 2\\Pr\\Bigl(\\exists f \\in F,\\ f(\\sigma, S_{n}) > \\psi(f, S_{n}) + \\epsilon_{n}(\\delta/2)\\Bigr) \\leq 2(\\delta/2).\n\\]\nIn the above derivation, the first equation used the fact that \\(f(S_{n}) - f(S_{n}^{\\prime})\\) and \\(f(\\sigma, S_{n}) - f(\\sigma, S_{n}^{\\prime})\\) have the same distributions. (a) used the assumption \\(\\psi(S_{n}) + \\psi(S_{n}^{\\prime}) \\leq \\widetilde{\\psi}(S_{n} \\cup S_{n}^{\\prime})\\). (b) used the union bound, and the fact that if event \\(E_{0}\\) holds, then either event \\(E_{1}\\) holds or event \\(E_{2}\\) holds."}, {"n": 4, "claim": "The next equation used the symmetry of \\(-f(\\sigma, S_{n})\\) and \\(f(\\sigma, S_{n})\\), and the last inequality used the assumption of the lemma."}, {"n": 5, "claim": "The result implies the desired bound."}]}}, {"local_id": "T4", "statement": "If \\(\\operatorname{vc}(\\mathcal{G}) = d\\), then we have for all \\(n > 0\\) and empirical samples \\(\\mathcal{S}_n = \\{Z_1, \\ldots, Z_n\\} \\in \\mathcal{Z}^n\\):\n\\[\n|\\mathcal{G}(\\mathcal{S}_{n})|\\leq\\sum_{\\ell=0}^{d}\\binom{n}{\\ell}\\leq\\max(2,e n/d)^{d}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "First, we prove the statement under the assumption that \\(|\\mathcal{G}(\\mathcal{S}_n)|\\) is upper bounded by the number of subsets of \\(\\mathcal{S}_n\\) (including the empty set) that are shattered by \\(\\mathcal{G}\\)."}, {"n": 2, "claim": "Under this assumption, since any subset shattered by \\(\\mathcal{G}\\) cannot be larger than \\(d\\) by the definition of VC-dimension, and the number of subsets of size \\(\\ell\\) is \\(\\binom{n}{\\ell}\\), we know that the number of subsets shattered by \\(\\mathcal{G}\\) cannot be more than \\(\\sum_{\\ell=0}^{d} \\binom{n}{\\ell}\\)."}, {"n": 3, "claim": "When \\(n \\geq d\\), we have (see Exercise 4.1)\n\\[\n\\sum_{\\ell=0}^{d}\\binom{n}{\\ell}\\leq(e n/d)^{d}.\\tag{4.2}\n\\]\nWhen \\(n \\leq d\\), we have \\(\\sum_{\\ell=0}^{d} \\binom{n}{\\ell} \\leq 2^d\\)."}, {"n": 4, "claim": "This implies the desired result. In the following, we only need to prove the statement that \\(|\\mathcal{G}(\\mathcal{S}_n)|\\) is upper bounded by the number of subsets of \\(\\mathcal{S}_n\\) that are shattered by \\(\\mathcal{G}\\)."}, {"n": 5, "claim": "This can be proved by induction on \\(n\\). When \\(n = 1\\), one can check that the claim holds trivially."}, {"n": 6, "claim": "Now assume that the claim holds for all empirical samples of size no more than \\( n - 1 \\)."}, {"n": 7, "claim": "Consider \\( n \\) samples \\( \\{Z_1, \\ldots, Z_n\\} \\)."}, {"n": 8, "claim": "We define\n\\[\n\\phi(w,\\mathcal{S}_{k})=[\\phi(w,Z_{1}),\\dots,\\phi(w,Z_{k})],\n\\]\n\\[\n\\mathcal{G}_{n-1}(\\mathcal{S}_{n})=\\left\\{\\left[\\phi(w,\\mathcal{S}_{n-1}),1\\right]:\\left[\\phi(w,\\mathcal{S}_{n-1}),0\\right],\\left[\\phi(w,\\mathcal{S}_{n-1}),1\\right]\\in\\mathcal{G}(\\mathcal{S}_{n})\\right\\}.\n\\]\nUsing the induction hypothesis, we know that \\(|\\mathcal{G}_{n - 1}(\\mathcal{S}_n)|\\) is bounded by the number of shattered subset \\(\\mathcal{S}\\subset \\mathcal{S}_{n - 1}\\); for each shattered \\(\\mathcal{S}\\subset \\mathcal{S}_{n - 1}\\), \\(\\mathcal{S}\\cup \\{Z_n\\}\\) is shattered by \\(\\mathcal{G}\\) because both \\([\\phi (w,\\mathcal{S}_{n - 1}),1]\\) and \\([\\phi (w,S_{n - 1}),0]\\) belong to \\(\\mathcal{G}(\\mathcal{S}_n)\\)."}, {"n": 9, "claim": "Therefore \\(|\\mathcal{G}_{n - 1}(\\mathcal{S}_n)|\\) is no more than the number of shattered subsets of \\(\\mathcal{S}_n\\) that contains \\(Z_{n}\\)."}, {"n": 10, "claim": "Moreover, since for \\(\\phi(w,\\cdot) \\in \\mathcal{G}(\\mathcal{S}_n) - \\mathcal{G}_{n-1}(\\mathcal{S}_n)\\), \\(\\phi(w,Z_n)\\) is uniquely determined by its values at \\(\\mathcal{S}_{n-1}\\) (if not, then both \\([\\phi(w,\\mathcal{S}_{n-1}),0]\\) and \\([\\phi(w,\\mathcal{S}_{n-1}),1]\\) can be achieved in \\(\\mathcal{G}(\\mathcal{S}_n) - \\mathcal{G}_{n-1}(\\mathcal{S}_n)\\), which is impossible because by definition, we should have put \\([\\phi(w,\\mathcal{S}_{n-1}),1]\\) in \\(\\mathcal{G}_{n-1}(\\mathcal{S}_n)\\)), it follows that \\(|\\mathcal{G}(\\mathcal{S}_n) - \\mathcal{G}_{n-1}(\\mathcal{S}_n)|\\) is no more than \\(|\\mathcal{G}(\\mathcal{S}_{n-1})|\\)."}, {"n": 11, "claim": "By induction hypothesis, \\(|\\mathcal{G}(\\mathcal{S}_{n-1})|\\) is no more than the number of shattered subsets of \\(\\mathcal{S}_n\\) that does not contain \\(Z_n\\)."}, {"n": 12, "claim": "By combining the above two facts, \\(|\\mathcal{G}(\\mathcal{S}_n)|\\) is no more than the number of shattered subsets of \\(\\mathcal{S}_n\\)."}]}}, {"local_id": "T5", "statement": "Assume that \\(\\phi(w, z) \\in [0,1]\\) for all \\(w\\) and \\(z\\). Then given \\(\\delta \\in (0,1)\\), with probability at least \\(1 - \\delta\\), the following inequality holds:\n\\[\n\\forall w\\in\\Omega:\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+\\epsilon_{n}(\\delta),\n\\]\nwhere\n\\[\n\\epsilon_{n}(\\delta)=\\inf_{\\epsilon>0}\\left[2\\epsilon+3\\sqrt{\\frac{\\ln(3 N_{1}(\\epsilon,\\mathcal{G},2 n)/\\delta)}{2 n}}\\right].\n\\]\nMoreover, for any \\(\\gamma \\in (0,1)\\), with probability at least \\(1 - \\delta\\), the following inequality holds:\n\\[\n\\forall w\\in\\Omega:(1-\\gamma)^{2}\\phi(w,\\mathcal{D})\\leq\\phi(w,\\mathcal{S}_{n})+\\epsilon_{n}(\\delta),\n\\]\nwhere\n\\[\n\\epsilon_{n}(\\delta)=\\inf_{\\epsilon>0}\\left[2\\epsilon+\\frac{(5-4\\gamma)\\ln(3 N_{1}(\\epsilon,\\mathcal{G},n)/\\delta)}{2\\gamma n}\\right].\n\\]", "proof": {"steps": [{"n": 1, "claim": "Let \\(\\mathcal{F} = \\{f(z) = \\phi(w,z) - 0.5 : w \\in \\Omega\\}\\)."}, {"n": 2, "claim": "Given \\(S_{n}\\), we consider an \\(\\epsilon-L_{1}(S_{n})\\) cover \\(\\mathcal{F}_{\\epsilon}(S_{n})\\) of \\(\\mathcal{F}\\), of size no more \\(N = N_{1}(\\epsilon, \\mathcal{G}, n)\\)."}, {"n": 3, "claim": "We may assume that \\(f(Z_{i}) \\in [-0.5, 0.5]\\) for \\(f \\in \\mathcal{F}_{\\epsilon}(S_{n})\\)."}, {"n": 4, "claim": "From Corollary 2.27 (with \\(a_{i} = 0.5\\)) and the union bound, we obtain the following uniform convergence result over \\(\\mathcal{F}_{\\epsilon}(S_{n})\\)."}, {"n": 5, "claim": "With probability \\(1-\\delta\\): \\[\n\\forall f\\in\\mathcal{F}_{\\epsilon}(\\mathcal{S}_{n}):f(\\sigma,\\mathcal{S}_{n})\\leq\\sqrt{\\frac{\\ln(N/\\delta)}{2 n}}.\n\\]\nSince for all \\( f \\in \\mathcal{F} \\), we can find \\( f' \\in \\mathcal{F}_{\\epsilon}(\\mathcal{S}_n) \\) so that \\( n^{-1} \\sum_{Z \\in \\mathcal{S}_n} |f(Z) - f'(Z)| \\leq \\epsilon \\) for all \\( Z \\in \\mathcal{S}_n \\)."}, {"n": 6, "claim": "It follows that\n\\[\nf(\\sigma,\\mathcal{S}_{n})\\leq f^{\\prime}(\\sigma,\\mathcal{S}_{n})+\\epsilon\\leq\\epsilon+\\sqrt{\\frac{\\ln(N/\\delta)}{2 n}}.\n\\]\nUsing Lemma 4.8 with \\(\\psi = 0\\), this uniform convergence result for the symmetrized\nempirical process implies the following uniform convergence result."}, {"n": 7, "claim": "With probability at least \\(1 - \\delta_{1}\\) over \\((S_n, S'_n) \\sim \\mathcal{D}^{2n}\\):"}, {"n": 8, "claim": "\\[\n\\forall w\\in\\Omega:\\underbrace{\\phi(w,\\mathcal{S}_{n}^{\\prime})}_{\\psi_{\\mathrm{val}}}\\leq\\underbrace{\\phi(w,\\mathcal{S}_{n})}_{\\psi_{\\mathrm{trn}}}+\\underbrace{2\\epsilon+\\sqrt{\\frac{2\\ln(2 N/\\delta_{1})}{n}}}_{\\epsilon_{n}^{1}(\\delta_{1})}.\n\\]\nThe standard additive Chernoff bound implies that for all \\( w \\in \\Omega \\), with probability at least \\( 1 - \\delta_2 \\):"}, {"n": 9, "claim": "\\[\n\\underbrace{\\phi(w,\\mathcal{D})}_{\\psi_{\\mathrm{tst}}}\\leq\\underbrace{\\phi(w,\\mathcal{S}_{n}^{\\prime})}_{\\psi_{\\mathrm{val}}}+\\underbrace{\\sqrt{\\frac{\\ln(1/\\delta_{2})}{2 n}}}_{\\epsilon_{n}^{2}(\\delta_{2})}.\n\\]\nTherefore in Lemma 4.11, we can take symbols as defined above, together with \\(\\delta_1 = 2\\delta /3\\) and \\(\\delta_{2} = \\delta /3\\) to obtain the desired bound."}, {"n": 10, "claim": "Similarly, we consider \\(\\mathcal{F} = \\{f(z) = \\phi (w,z):w\\in \\Omega \\}\\)."}, {"n": 11, "claim": "Given \\(S_{n}\\), we consider an \\(\\epsilon -L_{1}(S_{n})\\) cover \\(\\mathcal{F}_{\\epsilon}(\\mathcal{S}_n)\\) of \\(\\mathcal{F}\\), of size no more \\(N=N_{1}(\\epsilon,\\mathcal{G},n)\\)."}, {"n": 12, "claim": "We assume that \\(f(Z_{i})\\in [0,1]\\) for all \\(f\\in \\mathcal{F}_{\\epsilon}(\\mathcal{S}_n)\\)."}, {"n": 13, "claim": "From Corollary 2.27 and the union bound, we obtain the following uniform convergence result over \\(\\mathcal{F}_{\\epsilon}(\\mathcal{S}_n)\\)."}, {"n": 14, "claim": "With probability at least \\(1 - \\delta\\): \\[\n\\begin{array}{l}\\forall f\\in\\mathcal{F}_{\\epsilon}(\\mathcal{S}_{n}):f(\\sigma,\\mathcal{S}_{n})\\leq\\sqrt{\\frac{2\\sum_{Z\\in\\mathcal{S}_{n}}f(Z)^{2}\\ln(N/\\delta)}{n^{2}}}\\\\ \\leq\\gamma^{\\prime}\\frac{1}{n}\\sum_{Z\\in\\mathcal{S}_{n}}f(Z)+\\frac{\\ln(N/\\delta)}{2\\gamma^{\\prime}n}.\\\\ \\end{array}\n\\]\nThe first inequality used Corollary 2.27."}, {"n": 15, "claim": "The second inequality used \\(\\sqrt{2ab} \\leq \\gamma' a + b / (2\\gamma')\\) and \\(f(Z)^2 \\leq f(Z)\\)."}, {"n": 16, "claim": "Since for all \\(f \\in \\mathcal{F}\\), we can find \\(f' \\in \\mathcal{F}_{\\epsilon}(\\mathcal{S}_n)\\) so that \\(\\frac{1}{n} \\sum_{Z \\in \\mathcal{S}_n} |f(Z) - f'(Z)| \\leq \\epsilon\\)."}, {"n": 17, "claim": "It follows that\n\\[\n\\begin{array}{l}f(\\sigma,\\mathcal{S}_{n})\\leq f^{\\prime}(\\sigma,\\mathcal{S}_{n})+\\epsilon\\\\ \\leq\\gamma^{\\prime}\\frac{1}{n}\\sum_{Z\\in\\mathcal{S}_{n}}f^{\\prime}(Z)+\\frac{\\ln(N/\\delta)}{2\\gamma^{\\prime}n}+\\epsilon\\\\ \\leq\\gamma^{\\prime}\\frac{1}{n}\\sum_{Z\\in\\mathcal{S}_{n}}f(Z)+\\frac{\\ln(N/\\delta)}{2\\gamma^{\\prime}n}+(1+\\gamma^{\\prime})\\epsilon .\\\\ \\end{array}\n\\]\nNow, with \\(\\psi(f, \\mathcal{S}_n) = \\widetilde{\\psi}(f, \\mathcal{S}_n) = \\gamma' \\frac{1}{n} \\sum_{Z \\in \\mathcal{S}_n} f(Z)\\), we obtain from Lemma 4.8 the following uniform convergence result."}, {"n": 18, "claim": "With probability at least \\(1 - \\delta_1\\) over \\((\\mathcal{S}_n, \\mathcal{S}_n') \\sim \\mathcal{D}^{2n}\\):"}, {"n": 19, "claim": "\\[\n\\forall w\\in\\Omega:(1-\\gamma^{\\prime})\\phi(w,\\mathcal{S}_{n}^{\\prime})\\leq(1+\\gamma^{\\prime})\\phi(w,\\mathcal{S}_{n})+2(1+\\gamma^{\\prime})\\epsilon+\\frac{\\ln(2 N/\\delta_{1})}{\\gamma^{\\prime}n}.\n\\]\nLet \\(\\gamma' = \\gamma / (2 - \\gamma)\\), then it is easy to check algebraically that \\((1 - \\gamma') / (1 + \\gamma') = 1 - \\gamma\\)\nand \\(1 / (\\gamma^{\\prime}(1 + \\gamma^{\\prime})) = (2 - \\gamma)^{2} / (2\\gamma)\\)."}, {"n": 20, "claim": "We thus obtain: \\[\n\\forall w\\in\\Omega:\\underbrace{(1-\\gamma)\\phi(w,\\mathcal{S}_{n}^{\\prime})}_{\\psi_{\\mathrm{val}}}\\leq\\underbrace{\\phi(w,\\mathcal{S}_{n})}_{\\psi_{\\mathrm{trn}}}+\\underbrace{2\\epsilon+\\frac{(2-\\gamma)^{2}\\ln(2 N/\\delta_{1})}{2\\gamma n}}_{\\epsilon_{n}^{1}(\\delta_{1})}.\\tag{4.1}\n\\]\nThe standard multiplicative Chernoff bound in (2.11) implies that with probability \\( 1 - \\delta_2 \\):"}, {"n": 21, "claim": "\\[\n\\underbrace{(1-\\gamma)(1-\\gamma)\\phi(w,\\mathcal{D})}_{\\psi_{\\mathrm{tst}}}\\leq\\underbrace{(1-\\gamma)\\phi(w,\\mathcal{S}_{n}^{\\prime})}_{\\psi_{\\mathrm{val}}}+\\underbrace{(1-\\gamma)\\frac{\\ln(1/\\delta_{2})}{2\\gamma n}}_{\\epsilon_{n}^{2}(\\delta_{2})}.\n\\]\nTherefore in Lemma 4.11, we can use symbols as displayed above, together with \\(\\delta_1 = 2\\delta /3\\) and \\(\\delta_{2} = \\delta /3\\) to obtain the desired bound."}]}}], "target_local_id": "T5", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Generalization & Learnability", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch16_theorem_16_3__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 16.1. In the multi-armed bandit (or MAB) problem, we consider \\(K\\) arms. The environment generates a sequence of reward vectors for time steps \\(t \\geq 1\\) as \\(r_t = [r_t(1), \\ldots, r_t(K)]\\). Each \\(r_t(a)\\) is associated with an arm \\(a \\in \\{1, \\ldots, K\\}\\). In the literature, an arm \\(a\\) is also referred to as an action. At each time step \\(t = 1, 2, \\ldots, T\\),\n- The player pulls one of the arms \\( a_{t} \\in \\{1, \\dots, K\\} \\).\n- The environment returns the reward \\( r_t(a_t) \\), but does not reveal information on any other arm \\( a \\neq a_t \\).\nAt each time \\( t \\), a (randomized) bandit algorithm takes the historic observations observed so far, and maps it to a distribution \\( \\hat{\\pi}_{t-1} \\) over actions \\( a \\in \\{1, \\ldots, K\\} \\). We then draw a random action \\( a_t \\) (arm) from \\( \\hat{\\pi}_{t-1} \\). Here \\( \\hat{\\pi}_{t-1} \\) is referred to as policy.\nIn the adversarial bandit problem, we are given an arbitrary reward sequence \\(\\{[r_1(1),\\ldots,r_t(K)]:t\\geq 1\\}\\) before hand. The adversary in this setting is called oblivious, who decides the rewards of all the rounds before the game starts (but may take advantage of the bandit algorithm's weakness). For this reward se\nquence, the expected cumulative reward of a randomized bandit algorithm is\n\\[\n\\mathbb{E}\\sum_{t=1}^{T}r_{t}(a_{t}),\n\\]\nwhere the randomization is over the internal randomization of the bandit algorithm. The expected regret is defined as\n\\[\n\\operatorname{REG}_{T}=\\max_{a}\\sum_{t=1}^{T}r_{t}(a)-\\mathbb{E}\\sum_{t=1}^{T}r_{t}\\left(a_{t}\\right).\\tag{16.1}\n\\]\nIf the bandit algorithm is deterministic: i.e. pulling a single arm \\(a_{t}\\) only at any time step, then the regret is\n\\[\n\\mathrm{REG}_{T}=\\max_{a}\\sum_{t=1}^{T}r_{t}(a)-\\sum_{t=1}^{T}r_{t}(a_{t}).\n\\]\nIn the adversarial bandit problem, our goal is to minimize the expected regret \\(\\mathrm{REG}_T\\) (and the expectation is with respect to the internal randomization of the algorithm instead of the data).\nAnother form of bandit problem, called stochastic bandit, assumes that the reward \\( r_t(a) \\) is drawn independently from a distribution \\( \\mathcal{D}_a \\), with mean \\( \\mu(a) = \\mathbb{E}_{r_t(a) \\sim \\mathcal{D}_a} [r_t(a)] \\). In this setting, the goal of bandit is to find \\( a \\) that maximizes the expected reward \\( \\mu(a) \\). We are interested in the expected regret defined as:\n\\[\n\\operatorname{REG}_{T}=T\\max_{a}\\mu(a)-\\mathbb{E}\\sum_{t=1}^{T}\\mu\\left(a_{t}\\right).\\tag{16.2}\n\\]\nAgain, this regret is defined for each realization of the stochastic rewards, and the expectation is with respect to the randomness of the algorithm. If algorithm is deterministic and outputs \\( a_{t} \\) at each time \\( t \\), then\n\\[\n\\mathrm{REG}_{T}=T\\max_{a}\\mu(a)-\\sum_{t=1}^{T}\\mu(a_{t}).\n\\]\nWe can further include randomization over data into the regret of stochastic bandit, by considering expected regret as follows:\n\\[\n\\mathbb{E}\\operatorname{REG}_{T}=T\\max_{a}\\mu(a)-\\mathbb{E}\\sum_{t=1}^{T}\\mu(a_{t}),\n\\]\nwhere the expectation is with respect to both the data and the internal randomization of the learning algorithm.\n\nequation 16.3. For each arm \\(a\\), define the number of pulls up to time \\(t\\) and the corresponding empirical mean by\n\\[\n\\hat n_t(a)=\\sum_{s=1}^{t}\\mathbb{1}(a_s=a), \\qquad\n\\hat\\mu_t(a)=\\frac{1}{\\hat n_t(a)}\\sum_{s=1}^{t} r_s(a_s)\\mathbb{1}(a_s=a),\n\\]\nwith the initialization \\(\\hat n_0(a)=0\\) and \\(\\hat\\mu_0(a)=0\\). In the UCB algorithm, after the initialization rounds, the arm is selected according to\n\\[\na_t\\in\\arg\\max_a\\left[\\hat\\mu_{t-1}(a)+\\hat c_{t-1}(a)\\right]. \\tag{16.3}\n\\]\nHere \\(\\hat c_t(a)\\) denotes the confidence width used by the algorithm.\n\nUCB Algorithm. Algorithm 16.1: UCB Algorithm\nInput: \\(K\\) and \\(T\\geq K\\) \n1 for \\(a=1,\\dots,K\\) do \n2 Let \\(\\hat{n}_0(a) = 0\\) \n3 Let \\(\\hat{\\mu}_0(a) = 0\\) \n4 for \\(t=1,2,\\ldots,T\\) do \n5 if \\(t\\leq K\\) then \n6 Let \\(a_{t} = t\\) \n7 else \n8 Let \\(a_{t}\\in \\arg \\max_{a}[\\hat{\\mu}_{t - 1}(a) + \\hat{c}_{t - 1}(a)]\\) according to (16.3) \n9 Pull arm \\(a_{t}\\) and observe reward \\(r_t(a_t)\\)\n\nsection 13.1 sequential observation setup. In Section 13.1, data are observed sequentially. At each time \\(t\\), after the history \\(S_{t-1}\\) has been observed, the next observation \\(Z_t\\) is drawn according to a distribution that may depend on that history. The observation is decomposed as \\(Z_t=(Z_t^{(x)},Z_t^{(y)})\\), where \\(Z_t^{(x)}\\) is the component determined by the past history or the chosen action at time \\(t\\), and \\(Z_t^{(y)}\\) is the random response component. The history after time \\(t\\) is \\(S_t=(Z_1,\\ldots,Z_t)\\), and \\(\\mathcal{S}_T\\) denotes the full sequential experiment/history through time \\(T\\). For a function depending on \\(S_t\\), the notation \\(\\mathbb{E}_{Z_t^{(y)}}[\\cdot]\\) means conditional expectation over the response component \\(Z_t^{(y)}\\), conditional on \\(S_{t-1}\\) and on \\(Z_t^{(x)}\\). Stopping times are adapted to the filtration generated by the histories \\(S_t\\).", "theorems": [{"local_id": "T1", "statement": "Let \\(a_* \\in \\arg \\max_a \\mu(a)\\). Let\n\\[\n\\delta_{1}=\\Pr [\\exists t>K:\\mu(a_{*})>\\hat{\\mu}_{t-1}(a_{*})+\\hat{c}_{t-1}(a_{*})]\n\\]\nbe the probability that the upper confident bound fails on \\( a_* \\). Let\n\\[\n\\delta_{2}=\\Pr\\left[\\exists t>K\\&a\\in\\{1,\\dots,K\\}\\backslash\\left\\{a_{*}\\right\\}:\\mu(a)<\\hat{\\mu}_{t-1}(a)-\\hat{c}_{t-1}^{\\prime}(a)\\right]\n\\]\nbe the probability that the lower confident bound fails on \\( a \\neq a_* \\). Then for Algorithm 16.1, we have with probability at least \\( 1 - \\delta_1 - \\delta_2 \\):\n\\[\n\\operatorname{REG}_{T}\\leq\\sum_{a=1}^{K}[\\mu(a_{*})-\\mu(a)]+\\sum_{t=K+1}^{T}[\\hat{c}_{t-1}(a_{t})+\\hat{c}_{t-1}^{\\prime}(a_{t})]\\mathbb{1}(a_{t}\\neq a_{*}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We have with probability \\(1 - \\delta_1 - \\delta_2\\), the following hold for all \\(t > K\\):"}, {"n": 2, "claim": "\\[\n\\mu\\left(a_{*}\\right)\\leq\\hat{\\mu}_{t-1}\\left(a_{*}\\right)+\\hat{c}_{t-1}\\left(a_{*}\\right),\\quad \\text{(u p p e r c o n f i d e n c e b o u n d)}\n\\]\n\\[\n\\hat{\\mu}_{t-1}\\left(a_{t}\\right)\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right)\\leq\\left[\\mu\\left(a_{t}\\right)+\\hat{c}_{t-1}^{\\prime}\\left(a_{t}\\right)\\right]\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right).\\quad(\\text{l o w e r c o n f i d e n c e b o u n d})\n\\]\nIt follows that for all \\(t > K\\):"}, {"n": 3, "claim": "\\[\n\\begin{array}{l}\\mu\\left(a_{*}\\right)\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right)\\\\ \\leq\\left[\\hat{\\mu}_{t-1}\\left(a_{*}\\right)+\\hat{c}_{t-1}\\left(a_{*}\\right)\\right]\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right)\\quad(\\text{u p p e r c o n f i d e n c e b o u n d})\\\\ \\leq\\left[\\hat{\\mu}_{t-1}\\left(a_{t}\\right)+\\hat{c}_{t-1}\\left(a_{t}\\right)\\right]\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right)\\quad(\\text{U C B a l g o r i t h m})\\\\ \\leq\\left[\\mu\\left(a_{t}\\right)+\\hat{c}_{t-1}^{\\prime}\\left(a_{t}\\right)+\\hat{c}_{t-1}\\left(a_{t}\\right)\\right]\\mathbb{1}\\left(a_{t}\\neq a_{*}\\right).\\quad \\text{(l o w e r c o n f i d e n c e b o u n d)}\\\\ \\end{array}\n\\]\nFor \\(t \\leq K\\), we have\n\\[\n\\mu(a_{*})=\\mu(a_{t})+[\\mu(a_{*})-\\mu(a_{t}=t)].\n\\]\nWe obtain the bound by summing over \\( t = 1 \\) to \\( t = T \\)."}]}}, {"local_id": "T2", "statement": "Given \\( K \\geq 2 \\) and \\( T \\geq 1 \\). Then there exists a distribution over the assignment of rewards \\( r_t(a) \\in [0,1] \\) such that the expected regret of any algorithm (where the expectation is taken with respect to both the randomization over rewards and the algorithm's internal randomization) is at least\n\\[\n\\min (0.02 T, 0.06 \\sqrt{K T}).\n\\]", "proof": {"steps": [{"n": 1, "claim": "We would like to apply Theorem 13.24 with \\(d = 1\\) and \\(m = K\\)."}, {"n": 2, "claim": "We consider a family of \\(K\\) distributions \\(\\mathcal{P}_{\\mathcal{Z}} = \\{q^{\\tau}, \\tau = 1, \\ldots, K\\}\\), and for each arm \\(a\\), the distribution \\(q^{\\tau}(a)\\) is a Bernoulli distribution \\(r \\in \\{0, 1\\}\\) with mean \\(\\mathbb{E}[r] = 0.5 + \\epsilon \\mathbb{1}(a = \\tau)\\) with \\(\\epsilon \\in (0, 0.1]\\) to be determined later."}, {"n": 3, "claim": "We also define \\(q_0(a)\\) as a Bernoulli distribution \\(r \\in \\{0, 1\\}\\) with mean \\(\\mathbb{E}[r] = 0.5\\)."}, {"n": 4, "claim": "Since by construction, \\(q^{\\tau} \\sim_{1} q^{\\tau'}\\) for all \\(\\tau, \\tau' \\in [K]\\), we can map them all to \\(q_1^\\tau = q_0\\)."}, {"n": 5, "claim": "If we pull an arm \\(\\theta\\), we have\n\\[\nQ(\\theta,q^{\\tau})=\\epsilon\\mathbb{1}(\\theta\\neq\\tau).\n\\]\nIt is clear that \\([Q(\\theta, q^{\\tau}) + Q(\\theta, q^{\\tau'})] \\geq \\epsilon\\) for \\(\\tau \\neq \\tau'\\)."}, {"n": 6, "claim": "Consider \\(n \\leq T\\) samples generated sequentially by an arbitrary bandit algorithm and \\(q^{\\tau}(a)\\), and let the resulting distribution that generates \\(\\mathcal{S}_n\\) as \\(p^{\\tau}(\\mathcal{S}_n)\\), where \\(\\mathcal{S}_n = \\{a_1, r_1, \\ldots, a_n, r_n\\}\\)."}, {"n": 7, "claim": "Let \\(\\epsilon = \\min (0.1, 0.24\\sqrt{K / T})\\). We have for all \\(a_{t}\\):"}, {"n": 8, "claim": "\\[\n\\begin{array}{l}\\frac{1}{K}\\sum_{\\tau=1}^{K}\\mathrm{KL}\\left(q_{0}\\left(a_{t}\\right)| |q^{\\tau}\\left(a_{t}\\right)\\right)=\\frac{1}{K}\\sum_{\\tau=1}^{K}\\mathrm{KL}\\left(q_{0}\\left(a_{t}\\right)| |q^{\\tau}\\left(a_{t}\\right)\\right)\\mathbb{1}\\left(a_{t}=\\tau\\right)\\\\ =\\frac{1}{K}\\mathrm{KL}(0. 5| |0. 5+\\epsilon)\\leq\\frac{0.5\\epsilon^{2}}{K(0.5+\\epsilon)(0.5-\\epsilon)}\\leq\\frac{2.1}{K}\\epsilon^{2}.\\\\ \\end{array}\n\\]\nThe first inequality is left as Exercise 16.4."}, {"n": 9, "claim": "The second inequality used \\(\\epsilon \\leq 0.1\\). Theorem 13.24 (with \\(d = 1\\), \\(m = K\\), and \\(\\beta_{1,t}^2 = \\frac{2.1}{K}\\epsilon^2\\)) implies that at the end of the \\(n\\)-th iteration, \\(\\hat{\\theta}\\) of any learning algorithm satisfies\n\\[\n\\begin{array}{l}\\frac{1}{K}\\sum_{\\tau=1}^{K}\\mathbb{E}_{q^{\\tau}}\\mathbb{E}_{\\hat{\\theta}}Q(\\hat{\\theta},q^{\\tau})\\geq 0. 5\\epsilon\\left(1-\\sqrt{2\\times 2.1(n/K)\\epsilon^{2}}\\right)\\\\ \\geq 0. 25\\epsilon=0. 25\\min\\left(0. 1,0. 24\\sqrt{K/T}\\right).\\\\ \\end{array}\n\\]\nThe second inequality used \\((n / K)\\epsilon^2\\leq 0.24^2\\)."}, {"n": 10, "claim": "Since this holds for all steps \\(n\\leq T\\) we obtain the desired bound."}]}}, {"local_id": "T3", "statement": "Let \\(a_* \\in \\arg \\max_a \\mu(a)\\). Let\n\\[\n\\delta_{1}=\\Pr\\left[\\exists t>K:\\mu\\left(a_{*}\\right)>\\hat{\\mu}_{t-1}\\left(a_{*}\\right)+\\hat{c}_{t-1}\\left(a_{*}\\right)\\right],\n\\]\n\\[\n\\delta_{2}=\\Pr\\left[\\exists t>K,a\\in\\{1,\\dots,K\\}\\backslash\\{a_{*}\\}:\\mu(a)<\\hat{\\mu}_{t-1}(a)-\\hat{c}_{t-1}^{\\prime}(a)\\right].\n\\]\nDefine \\(\\Delta(a) = \\mu(a_{*}) - \\mu(a)\\), and\n\\[\nT(a)=\\max\\left\\{m:\\Delta(a)\\leq\\hat{c}_{t-1}(a)+\\hat{c}_{t-1}^{\\prime}(a),\\hat{n}_{t-1}(a)=m,K0}\\left[\\sum_{a=1}^{K}T(a)\\Delta(a)\\mathbb{1}(\\Delta(a)>\\Delta_{0})+(T-K)\\Delta_{0}\\right]+\\sum_{a=1}^{K}\\Delta(a).\n\\]", "proof": {"steps": [{"n": 1, "claim": "The proof of Lemma 16.2 shows that with probability at least \\(1 - \\delta\\), for all \\(t \\geq K + 1\\):"}, {"n": 2, "claim": "\\[\n\\mu(a_{*})\\leq\\mu(a_{t})+[\\hat{c}_{t-1}^{\\prime}(a_{t})+\\hat{c}_{t-1}(a_{t})]\\mathbb{1}(a_{t}\\neq a_{*}),\n\\]\nwhich implies that\n\\[\n\\Delta(a_{t})\\leq [\\hat{c}_{t-1}^{\\prime}(a_{t})+\\hat{c}_{t-1}(a_{t})]\\mathbb{1}(a_{t}\\neq a_{*}).\n\\]\nUsing the assumption of the lemma, we obtain for all \\(a \\neq a_*\\) and \\(1 \\leq t \\leq T\\), \\(\\hat{n}_{t-1}(a) \\mathbb{1}(a_t = a) \\leq T(a)\\)."}, {"n": 3, "claim": "It follows that for all \\( a \\neq a_* \\), let \\( t \\) be the last time such that \\( a_t = a \\), then \\( t \\leq T \\) and \\( \\hat{n}_T(a) = \\hat{n}_{t-1}(a_t) + 1 \\leq T(a) + 1 \\)."}, {"n": 4, "claim": "We thus obtain the following regret bound for any \\( \\Delta_0 \\geq 0 \\):"}, {"n": 5, "claim": "\\[\n\\begin{array}{l}\\sum_{t=1}^{T}\\left[\\mu\\left(a_{*}\\right)-\\mu\\left(a_{t}\\right)\\right]=\\sum_{a=1}^{K}\\hat{n}_{T}(a)\\Delta(a)\\\\ \\leq\\sum_{a=1}^{K}\\Delta(a)+\\sum_{a=1}^{K}(\\hat{n}_{T}(a)-1)\\Delta_{0}+\\sum_{a=1}^{K}(\\hat{n}_{T}(a)-1)\\Delta(a)\\mathbb{1}(\\Delta(a)>\\Delta_{0})\\\\ \\leq\\sum_{a=1}^{K}\\Delta(a)+(T-K)\\Delta_{0}+\\sum_{a=1}^{K}T(a)\\Delta(a)\\mathbb{1}(\\Delta(a)>\\Delta_{0}).\\\\ \\end{array}\n\\]\nThe second inequality used \\(\\sum_{a=1}^{K} (\\hat{n}_T(a) - 1) = T - K\\) and \\(\\hat{n}_T(a) - 1 \\leq T(a)\\)."}, {"n": 6, "claim": "This implies the bound."}]}}, {"local_id": "T4", "statement": "Assume that rewards \\(r_t(a) \\in [0,1]\\). Let \\(a_* \\in \\arg \\max_a \\mu(a)\\). With a choice of\n\\[\n\\hat{c}_{t}(a)=\\sqrt{\\frac{\\ln(2(\\hat{n}_{t}(a)+1)^{2}/\\delta)}{2\\hat{n}_{t}(a)}},\n\\]\nwe have with probability at least \\(1 - \\delta\\):\n\\[\n\\mathrm{REG}_{T}\\leq(K-1)+\\sqrt{8\\ln(2 K T^{2}/\\delta)(T-K)K}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Given any integer \\( m \\geq 1 \\) and \\( a \\in \\{1, \\ldots, K\\} \\)."}, {"n": 2, "claim": "We know that the sequence \\( r(a_{t})\\mathbb{1}(a_{t} = a) \\) satisfies the sub-Gaussian bound in Theorem 13.3 with \\( \\sigma_{i} = 0.5\\mathbb{1}(a_{i} = a) \\)."}, {"n": 3, "claim": "This means that \\( \\sum_{i=1}^{t}\\sigma_{i}^{2} = 0.25\\hat{n}_{t}(a) \\)."}, {"n": 4, "claim": "By letting \\( \\sigma = 0.5\\sqrt{m} \\) for a constant \\( m \\), and considering the event \\( \\hat{n}_{t}(a) = m \\), we obtain with probability at most \\( 0.5\\delta / (m + 1)^{2} \\):"}, {"n": 5, "claim": "\\[\n\\exists t\\geq 1:\\mu(a)>\\hat{\\mu}_{t}(a)+\\hat{c}_{t}(a)\\&\\hat{n}_{t}(a)=m.\n\\]\nSimilarly, with probability at most \\((0.5 / K)\\delta /(m + 1)^2\\)\n\\[\n\\exists t\\geq 1:\\mu(a)<\\hat{\\mu}_{t}(a)-\\hat{c}_{t}^{\\prime}(a)\\&\\hat{n}_{t}(a)=m,\n\\]\nwhere the lower confidence interval size is defined as\n\\[\n\\hat{c}_{t}^{\\prime}(a)=\\sqrt{\\frac{\\ln(2 K(\\hat{n}_{t}(a)+1)^{2}/\\delta)}{2\\hat{n}_{t}(a)}}.\n\\]\nIt follows that the failure probability of upper confidence bound is given by\n\\[\n\\begin{array}{l}\\Pr\\left[\\exists t>K:\\mu\\left(a_{*}\\right)>\\hat{\\mu}_{t}\\left(a_{*}\\right)+\\hat{c}_{t}\\left(a_{*}\\right)\\right]\\\\ \\leq\\sum_{m=1}^{\\infty}\\Pr\\left[\\exists t>K:\\hat{n}_{t}\\left(a_{*}\\right)=m\\&\\mu\\left(a_{*}\\right)>\\hat{\\mu}_{t}\\left(a_{*}\\right)+\\hat{c}_{t}\\left(a_{*}\\right)\\right]\\\\ \\leq\\sum_{m=1}^{\\infty}0. 5\\delta/(m+1)^{2}\\leq 0. 5\\delta .\\\\ \\end{array}\n\\]\nMoreover, the failure probability of lower confidence bound is given by\n\\[\n\\begin{array}{l}\\Pr\\left[\\exists t>K\\&a\\in\\{1,\\dots,K\\}:\\mu(a)<\\hat{\\mu}_{t}(a)-\\hat{c}_{t}^{\\prime}(a)\\right]\\\\ \\leq\\sum_{a=1}^{K}\\Pr\\left[\\exists t>K:\\mu(a)<\\hat{\\mu}_{t}(a)-\\hat{c}_{t}^{\\prime}(a)\\right]\\\\ \\leq\\sum_{a=1}^{K}\\sum_{m=1}^{\\infty}\\Pr\\left[\\exists t>K:\\hat{n}_{t}(a)=m\\&\\mu(a)<\\hat{\\mu}_{t}(a)-\\hat{c}_{t}^{\\prime}(a)\\right]\\\\ \\leq\\sum_{a=1}^{K}\\sum_{m=1}^{\\infty}\\frac{\\delta}{2 K(m+1)^{2}}\\leq\\delta/2.\\\\ \\end{array}\n\\]\nThe following bound follows from Lemma 16.2."}, {"n": 6, "claim": "With probability at least \\(1 - \\delta\\): \\[\n\\begin{array}{l}\\sum_{t=1}^{T}[\\mu(a_{*})-\\mu(a_{t})]-\\sum_{a=1}^{K}[\\mu(a_{*})-\\mu(a)]\\leq\\sum_{t=K+1}^{T}[\\hat{c}_{t-1}(a_{t})+\\hat{c}_{t-1}^{\\prime}(a_{t})]\\\\ \\leq 2\\sum_{t=K+1}^{T}\\sqrt{\\frac{\\ln(2 K(\\hat{n}_{t-1}(a_{t})+1)^{2}/\\delta)}{2\\hat{n}_{t-1}(a_{t})}}\\\\ =2\\sum_{a=1}^{K}\\sum_{t=K+1}^{T}\\sqrt{\\frac{\\ln\\left(2 K\\left(\\hat{n}_{t-1}\\left(a_{t}\\right)+1\\right)^{2}/\\delta\\right)}{2\\hat{n}_{t-1}\\left(a_{t}\\right)}}\\mathbb{1}\\left(a_{t}=a\\right)\\\\ \\stackrel{(a)}{=}2\\sum_{a=1}^{K}\\sum_{m=1}^{\\hat{n}_{T}(a)-1}\\sqrt{\\frac{\\ln(2 K(m+1)^{2}/\\delta)}{2 m}}\\\\ \\leq 2\\sum_{a=1}^{K}\\int_{0}^{\\hat{n}_{T}(a)-1}\\sqrt{\\frac{\\ln\\left(2 K\\hat{n}_{T}(a)^{2}/\\delta\\right)}{2 t}}d t\\\\ =4\\sum_{a=1}^{K}\\sqrt{\\frac{\\ln(2 K\\hat{n}_{T}(a)^{2}/\\delta)(\\hat{n}_{T}(a)-1)}{2}}\\\\ \\leq 4\\sqrt{\\frac{\\ln(2 K T^{2}/\\delta)(T-K)K}{2}}.\\\\ \\end{array}\n\\]\nEquation (a) used the fact that for each arm \\( a \\), with \\( a_{t} = a \\), \\( \\hat{n}_{t-1}(a_{t}) \\) takes values from \\( m = 1 \\) to \\( m = \\hat{n}_T(a) - 1 \\), once for each value."}, {"n": 7, "claim": "In the derivation of the last inequality, we used Jensen's inequality and the concavity of \\( \\sqrt{z} \\), which implies that\n\\[\n\\sum_{a=1}^{K}\\sqrt{\\hat{n}_{T}(a)-1}\\leq\\sqrt{K\\sum_{a=1}^{K}(\\hat{n}_{T}(a)-1)}=\\sqrt{K(T-K)}.\n\\]\nThis implies the desired bound."}]}}, {"local_id": "T5", "statement": "Consider a sequence of random functions \\(\\xi_1(S_1),\\ldots,\\xi_t(S_t),\\ldots\\) Assume each \\(\\xi_{i}\\) is sub-Gaussian with respect to \\(Z_{i}^{(y)}\\):\n\\[\n\\ln\\mathbb{E}_{Z_{i}^{(y)}}e^{\\lambda\\xi_{i}}\\leq\\lambda\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}+\\frac{\\lambda^{2}\\sigma_{i}^{2}}{2}\n\\]\nfor some \\(\\sigma_{i}\\) that may depend on \\(S_{i - 1}\\) and \\(Z_{i}^{(x)}\\). Then for all \\(\\sigma >0\\), with probability at least \\(1 - \\delta\\)\n\\[\n\\forall n>0:\\sum_{i=1}^{n}\\mathbb{E}_{Z_{i}^{(y)}}\\xi_{i}<\\sum_{i=1}^{n}\\xi_{i}+\\left(\\sigma+\\frac{\\sum_{i=1}^{n}\\sigma_{i}^{2}}{\\sigma}\\right)\\sqrt{\\frac{\\ln(1/\\delta)}{2}}.\n\\]", "proof": {"steps": [{"n": 1, "claim": "We can let \\(\\lambda = \\sqrt{2\\ln(1 / \\delta)} /\\sigma\\), and then apply the first inequality of Theorem 13.2."}]}}], "target_local_id": "T4", "topic_domain": "Online Learning & RL", "topic_subtopic": "Bandits", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch3_theorem_3_3__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nStrong convexity. A function \\(f\\colon\\Omega\\to\\mathbb{R}\\) is \\emph{\\(\\alpha\\)-strongly convex} if, for all \\(x,y\\in\\Omega\\), the following inequality holds for some \\(\\alpha>0\\): \\[ f(y) \\geqslant f(x) + g(x)^\\top(y-x) + \\frac{\\alpha}{2}\\left\\lVert x-y\\right\\rVert^2 \\]\n\nSmoothness. A continuously differentiable function \\(f\\) is \\(\\beta\\) smooth if the gradient map \\(\\nabla f\\colon\\mathbb{R}^n\\to\\mathbb{R}^n\\) is \\(\\beta\\)-Lipschitz, i.e., \\[ \\|\\nabla f(x) - \\nabla f(y)\\| \\leqslant \\beta\\|x-y\\|\\,. \\]\n\nUniform stability. The uniform stability of an algorithm \\(A\\) is defined as\n\\[\n\\Delta_{\\sup}(A) = \\sup_{S, S' \\in (X\\times Y)^m } \\sup_{i \\in [m]} |\\ell(A(S), z_i') - \\ell(A(S^{(i)}, z_i')|\n\\]", "theorems": [{"local_id": "T1", "statement": "Assume \\(f\\colon\\mathbb{R}^n\\to\\mathbb{R}\\) is \\(\\alpha\\)-strongly convex and \\(\\beta\\)-smooth. Let \\(x^{*}\\) be an optimizer of \\(f\\), and let \\(x_{t}\\) be the updated point at step \\(t\\) using gradient descent with a constant step size \\(\\frac{1}{\\beta}\\), i.e. using the update rule \\(x_{t+1} = x_t - \\frac{1}{\\beta}\\nabla f(x_t)\\). Then, \\[ \\|x_{t+1} - x^*\\|^2 \\leq \\exp\\left(-t \\frac{\\alpha}{\\beta}\\right)\\|x_1 - x^*\\|^2 \\]", "proof": {"steps": [{"n": 1, "claim": "\\begin{align*} \\|x_{t+1} -x^*\\|^2 &= \\|x_t - \\frac{1}{\\beta}\\nabla f(x_t) - x^*\\|^2 \\\\ &= \\|x_t-x^*\\|^2 - \\frac{2}{\\beta} \\nabla f(x_t)^\\top(x_t - x^*) + \\frac{1}{\\beta^2}\\|\\nabla f(x_t)\\|^2 \\\\ &\\leq \\big(1-\\frac{\\alpha}{\\beta}\\big)\\|x_t-x^*\\|^2 \\tag{Use of Lemma with $y=x^*$, $x=x_t$}\\\\ &\\leq \\big(1-\\frac{\\alpha}{\\beta}\\big)^t \\|x_1-x^*\\|^2 \\\\ &\\leq \\exp\\left(-t \\frac{\\alpha}{\\beta}\\right) \\|x_1-x^*\\|^2 \\end{align*}"}]}}, {"local_id": "T2", "statement": "Assume \\(f\\) as in Theorem 3.5. Then \\(\\forall x,y \\in \\mathbb{R}^n\\) and an update of the form \\(x^+ = x - \\frac{1}{\\beta}\\nabla f(x)\\), \\[ f(x^+) - f(y) \\leq \\nabla f(x)^\\top (x-y) - \\frac{1}{2\\beta}\\|\\nabla f(x)\\|^2 - \\frac{\\alpha}{2}\\|x-y\\|^2 \\]", "proof": {"steps": [{"n": 1, "claim": "\\begin{align*} f(x^+) - f(x) + f(x) - f(y) &\\leq \\nabla f(x)^\\top (x^+ - x) + \\frac{\\beta}{2}\\|x^+ - x\\|^2 \\tag{Smoothness} \\\\ & \\quad \\ + \\nabla f(x)^\\top (x-y) - \\frac{\\alpha}{2}\\|x-y\\|^2 \\tag{Strong convexity} \\\\ &= \\nabla f(x)^\\top(x^+ - y) + \\frac{1}{2\\beta}\\|\\nabla f(x)\\|^2 - \\frac{\\alpha}{2}\\|x-y\\|^2 \\tag{Definition of $x^+$} \\\\ &= \\nabla f(x)^\\top (x - y) - \\frac{1}{2\\beta}\\|\\nabla f(x)\\|^2 - \\frac{\\alpha}{2}\\|x-y\\|^2 \\tag{Definition of $x^+$} \\end{align*}"}]}}, {"local_id": "T3", "statement": "Assume \\(\\ell(w, z)\\) is \\(\\alpha\\)-strongly convex over the domain \\(\\Omega\\) and \\(L\\)-Lipschitz. Let \\(\\hat w_S = \\arg \\min_{w\\in \\Omega} \\frac{1}{m} \\sum_{i=1}^m \\ell(w, z_i)\\) denote the empirical risk minimizer (ERM). Then, ERM satisfies\n\\[\n\\Delta_{\\sup} (\\text{ERM}) \\leqslant \\frac{4L^2}{\\alpha m}\\,.\n\\]", "proof": {"steps": [{"n": 1, "claim": "Denote by \\(\\hat w_S\\) the empirical risk minimizer on a sample \\(S.\\) Fix arbitrary samples \\(S,S'\\) of size \\(m\\) and an index \\(i\\in[m].\\) We need to show that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nOn one hand, by strong convexity we know that\n\\[\nR_S(\\hat w_{S^{(i)}}) - R_S(\\hat w_{S}) \\geqslant \\frac{\\alpha}{2} \\| \\hat w_{S} - \\hat w_{S^{(i)}} \\|^2 \\,.\n\\]\nOn the other hand,\n\\begin{align*}\n&R_S(\\hat w_{S^{(i)}})-R_S(\\hat w_{S})\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}\\sum_{i\\neq j}(\\ell(\\hat w_{S^{(i)}},z_j)-\\ell(\\hat w_{S},z_j))\\\\\n&=\\frac{1}{m}(\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i))+\\frac{1}{m}(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))+\\left(R_{S^{(i)}}(\\hat w_{S^{(i)}})-R_{S^{(i)}}(\\hat w_{S})\\right)\\\\\n&\\leqslant\\frac{1}{m}|\\ell(\\hat w_{S^{(i)}},z_i)-\\ell(\\hat w_{S},z_i)| +\\frac{1}{m}|(\\ell(\\hat w_{S},z_i')-\\ell(\\hat w_{S^{(i)}},z_i'))|\\\\\n&\\leqslant\\frac{2L}{m}\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\,.\n\\end{align*}\nHere, we used that\n\\[\nR_{S^{(i)}}(\\hat w_{S^{(i)}}) - R_{S^{(i)}}(\\hat w_{S})) \\leqslant 0\n\\]\nand the fact that \\(\\ell\\) is \\(L\\)-Lipschitz."}, {"n": 2, "claim": "Putting it all together \\(\\| \\hat w_{S^{(i)}} - \\hat w_{S} \\| \\leqslant \\frac{4 L}{\\alpha m}\\). Then by the Lipschitz condition we have that\n\\[\n|(\\ell(\\hat w_{S^{(i)}},z_i')-\\ell(\\hat w_{S},z_i'))|\\leqslant L\\|\\hat w_{S^{(i)}}-\\hat w_{S}\\|\\leqslant\\frac{4L^2}{\\alpha m}\\,.\n\\]\nHence, \\(\\Delta_{\\sup}(\\text{ERM}) \\leqslant \\frac{4 L ^ 2}{\\alpha m}\\)."}]}}, {"local_id": "T4", "statement": "Assume \\(f\\colon\\Omega\\to\\mathbb{R}\\) is \\emph{\\(\\alpha\\)-strongly convex} and \\emph{\\(L\\)-Lipschitz}. Let \\(x^{*}\\) be an optimizer of \\(f\\), and let \\(x_{s}\\) be the updated point at step \\(s\\) using projected gradient descent. Let the max number of iterations be \\(t\\) with an adaptive step size \\(\\eta_{s} = \\frac{2}{\\alpha(s+1)}\\), then \\[ f\\left(\\sum_{s=1}^{t}\\frac{2s}{t(t+1)}x_{s}\\right) - f(x^{*})\\leqslant\\frac{2 L^{2}}{\\alpha(t+1)} \\]", "proof": {"steps": [{"n": 1, "claim": "Recall the two steps update rule of projected gradient descent\n\\begin{align*}\ny_{s+1} &= x_{s} - \\eta_{s}\\nabla f(x_{s})\\\\\nx_{s+1} &= \\Pi_{\\Omega}(y_{s+1})\n\\end{align*}\nFirst, the proof begins by exploring an upper bound of difference between function values \\(f(x_{s})\\) and \\(f(x^{*})\\)."}, {"n": 2, "claim": "\\begin{align*}\nf(x_{s}) - f(x^{*}) &\\leqslant \\nabla f(x_{s})^{\\top}(x_{s}-x^{*}) - \\frac{\\alpha}{2}\\|x_{s}-x^{*}\\|^{2}\\\\\n\t\t\t &=\\frac{1}{\\eta_{s}} (x_{s} - y_{s+1})^{\\top}(x_{s}-x^{*}) - \\frac{\\alpha}{2}\\|x_{s}-x^{*}\\|^{2} \\tag{by update rule}\\\\\n\t\t\t &=\\frac{1}{2\\eta_{s}} (\\|x_{s} - x^{*}\\|^{2} + \\|x_{s} - y_{s+1}\\|^{2} - \\|y_{s+1}-x^{*}\\|^{2}) - \\frac{\\alpha}{2}\\|x_{s}-x^{*}\\|^{2} \\tag{by \"Fundamental Theorem of Optimization\"}\\\\\n\t\t\t &=\\frac{1}{2\\eta_{s}} (\\|x_{s} - x^{*}\\|^{2} - \\|y_{s+1}-x^{*}\\|^{2}) +\\frac{\\eta_{s}}{2}\\|\\nabla f(x_{s})\\|^{2} - \\frac{\\alpha}{2}\\|x_{s}-x^{*}\\|^{2} \\tag{by update rule}\\\\\n\t\t\t &\\leqslant \\frac{1}{2\\eta_{s}} (\\|x_{s} - x^{*}\\|^{2} - \\|x_{s+1}-x^{*}\\|^{2}) +\\frac{\\eta_{s}}{2}\\|\\nabla f(x_{s})\\|^{2} - \\frac{\\alpha}{2}\\|x_{s}-x^{*}\\|^{2} \\tag{by Pythagorean lemma}\\\\\n\t\t\t &\\leqslant (\\frac{1}{2\\eta_{s}} - \\frac{\\alpha}{2})\\|x_{s}-x^{*}\\|^{2} -\\frac{1}{2\\eta_{s}}\\|x_{s+1}-x^{*}\\|^{2} + \\frac{\\eta_{s}L^{2}}{2} \\tag{by Lipschitzness}\n\\end{align*}\nBy multiplying \\(s\\) on both sides and substituting the step size \\(\\eta_{s}\\) by \\(\\frac{2}{\\alpha(s+1)}\\), we get\n\\[\ns(f(x_{s}) - f(x^{*})) \\leqslant \\frac{L^{2}}{\\alpha} + \\frac{\\alpha}{4}(s(s-1)\\|x_{s}-x^{*}\\|^{2} - s(s+1)\\|x_{s+1} - x^{*}\\|^{2})\n\\]\nFinally, we can find the upper bound of the function value obtained using \\(t\\) steps projected gradient descent\n\\begin{align*}\nf\\left(\\sum_{s=1}^{t}\\frac{2s}{t(t+1)}x_{s}\\right)\n&\\leqslant \\sum_{s=1}^{t}\\frac{2s}{t(t+1)}f(x_{s})\n\\tag{by Jensen's inequality}\\\\\n&\\leqslant \\frac{2}{t(t+1)}\\sum_{s=1}^{t}\\left(sf(x^{*}) + \\frac{L^{2}}{\\alpha}\n+ \\frac{\\alpha}{4}(s(s-1)\\|x_{s}-x^{*}\\|^{2} - s(s+1)\\|x_{s+1} - x^{*}\\|^{2}) \\right)\\\\\n&= \\frac{2}{t(t+1)}\\sum_{s=1}^{t}sf(x^{*}) + \\frac{2L^{2}}{\\alpha(t+1)} - \\frac{\\alpha}{2}\\|x_{t+1} - x^{*}\\|^{2} \\tag{by telescoping sum}\\\\\n&\\leqslant f(x^{*}) + \\frac{2L^{2}}{\\alpha(t+1)}\n\\end{align*}\nThis concludes that solving an optimization problem with a strongly convex objective function with projected gradient descent has a convergence rate of the order \\(\\frac{1}{t+1}\\), which is faster compared to the case purely with Lipschitzness."}]}}, {"local_id": "T5", "statement": "If \\(f\\) is in addition \\(\\alpha\\)-strongly convex w.r.t to \\(\\|\\cdot\\|_{[1-\\gamma]}\\), then we get\n\\[\n\\mathbb{E}[f(x_{t+1}) - \\arg\\min_{x \\in \\mathbb{R}^{n}} f(x)] \\leqslant \\left(1 - \\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^\\gamma}\\right)^t (f(x_1) - f(x^*)) \\ .\n\\]", "proof": {"steps": [{"n": 1, "claim": "We need the following lemma:\n\nLemma 12.4. Let \\(f\\) be an \\(\\alpha\\)-strongly convex function w.r.t. a norm \\(\\|\\cdot\\|\\). Then, \\(f(x) - f(x^{*}) \\leqslant \\frac{1}{2\\alpha}\\|\\nabla f(x)\\|_{*}^{2}\\)."}, {"n": 2, "claim": "Lemma 12.4 shows that\n\\[\n\\|\\nabla f(x_s)\\|^{*2}_{[1-\\gamma]} \\geqslant 2 \\alpha \\delta_s \\ .\n\\]\nOn the other hand, Theorem 12.2 showed that\n\\[\n\\delta_{t+1} - \\delta_t \\leqslant -\\frac{\\|\\nabla f(x_t)\\|^{*2}_{[1-\\gamma]}}{2\\sum_{i=1}^n \\beta_i^{\\gamma}}\n\\]\nCombining these two, we get\n\\begin{align*}\n\\delta_{t+1} - \\delta_t &\\leqslant -\\frac{\\alpha \\delta_t}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\\\\n\\delta_{t+1} &\\leqslant \\delta_t \\left(1 -\\frac{\\alpha}{\\sum_{i=1}^n \\beta_i^{\\gamma}} \\right)~.\n\\end{align*}\nApplying the above inequality recursively and recalling that \\(\\delta_t = \\mathbb{E}[f(x_t) - f(x^*)]\\) gives the result."}]}}], "target_local_id": "T4", "topic_domain": "Optimization", "topic_subtopic": "Algorithms & Convergence", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch8_lemma_8_3__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).\n\nDenote \\(\\triangle_{n}(\\mathcal{C})=\\operatorname*{sup}_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}\\). We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}, {"local_id": "T2", "statement": "Let \\(0\\leq g_{1},g_{2}\\leq 1,g_{i}:\\mathcal{X}\\mapsto [0,1]\\) . Then\n\\[\\int\\operatorname*{min}\\left(2,{\\frac{1}{g_{1}(x)}},{\\frac{1}{g_{2}(x)}}\\right)d P(x)\\cdot\\int g_{1}(x)d P(x)\\cdot\\int g_{2}(x)d P(x)\\leq 1\\]", "proof": {"steps": [{"n": 1, "claim": "Notice that log \\(x \\leq x - 1\\)\nSo enough to show\n\\[\\int\\operatorname*{min}\\left(2,{\\frac{1}{g_{1}}},{\\frac{1}{g_{2}}}\\right)d P+\\int g_{1}d P+\\int g_{2}d P\\leq 3\\]\nwhich is the same as\n\\[\\int\\left[\\operatorname*{min}\\left(2,\\frac{1}{g_{1}},\\frac{1}{g_{2}}\\right)+g_{1}+g_{2}\\right]d P\\leq 3\\]\nIt's enough to show\n\\[\\operatorname*{min}\\left(2,\\frac{1}{g_{1}},\\frac{1}{g_{2}}\\right)+g_{1}+g_{2}\\leq 3 .\\]\nIf min is equal to 2, then \\(\\begin{array}{ r }{g_{1},g_{2}\\le\\frac{1}{2}}\\end{array}\\) and the sum is less than 3."}, {"n": 2, "claim": "If min is equal to \\(\\frac{1}{g_{1}}\\) ,then \\(\\begin{array}{ r }{g_{1}\\ge\\frac{1}{2}}\\end{array}\\) and \\(\\begin{array}{ r }{g_{1}\\geq g_{2},\\mathrm{~s o~}\\operatorname*{min}+g_{1}+g_{2}\\leq\\frac{1}{g_{1}}+2 g_{1}\\leq 3 .}\\end{array}\\)"}]}}, {"local_id": "T3", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T4", "statement": "The number \\(\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\) of subsets picked out by C is bounded by the number of subsets shattered by C.", "proof": {"steps": [{"n": 1, "claim": "Without loss of generality, we restrict C to \\({\\mathcal{C}}: =\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}\\) , and we have \\(\\operatorname{card}({\\mathcal{C}})=\\) \\(\\Delta_{n}({\\mathcal{C}},x_{1},\\cdots,x_{n})\\)\nWe will say that C is hereditary if and only if whenever \\(B\\subseteq C\\in{\\mathcal{C}},B\\in{\\mathcal{C}}\\) .If C is hereditary, then every \\(C\\in{\\mathcal{C}}\\) is shattered by C,and the lemma is obvious."}, {"n": 2, "claim": "Otherwise,we will transform \\({\\mathcal{C}}\\to{\\mathcal{C}}^{\\prime}\\) ,hereditary, without changing the cardinality of C and without increasing the number of shattered subsets."}, {"n": 3, "claim": "Define the operators \\(T_{i}\\) for \\(i=1,\\cdots,n\\) as the following,\n\\[\\begin{array}{ r c l }{T_{i}(C)}&{=}&{\\left\\{\\begin{array}{ l l }{C-\\{x_{i}\\}}&{\\mathrm{~i f~}C-\\{x_{i}\\}\\mathrm{~i s~n o t~i n~}\\mathcal{C}}\\\\ {C}&{\\mathrm{~o t h e r w i s e}}\\end{array}\\right.}\\\\ {T_{i}(\\mathcal{C})}&{=}&{\\{T_{i}(C):C\\in\\mathcal{C}\\}.}\\end{array}\\]\nIt follows that card \\(T_{i}({\\mathcal{C}})=\\operatorname{card}{\\mathcal{C}}\\) Moreover, every \\(A\\subseteq\\{x_{1},\\cdots,x_{n}\\}\\) that is shattered by \\(T_{i}(\\mathcal{C})\\) is also shattered by \\({\\mathcal{C}}.{\\mathrm{~I f~}}x_{i}\\notin A .\\) ,then \\(\\forall C\\in\\mathcal{C},A\\bigcap C=A\\bigcap T_{i}(C)\\) , thus C and \\(T_{i}(\\mathcal{C})\\) both or neither shatter A."}, {"n": 4, "claim": "On the other hand, if \\(x_{i}\\in A\\) and A is shattered by \\(T_{i}(\\mathcal{C})\\) , then \\(\\forall B\\subseteq A,\\exists C\\in{\\mathcal{C}}\\) ,such that \\(B\\bigcup\\{x_{i}\\}=A\\bigcap T_{i}(C)\\) This means that \\(x_{i}\\in T_{i}(C)\\) ,and that \\(C\\backslash\\{x_{i}\\}\\in\\mathcal{C}\\) Thus both \\(B\\bigcup\\{x_{i}\\}\\) and \\(B\\backslash\\{x_{i}\\}\\) are picked out by C."}, {"n": 5, "claim": "Since either \\(B=B\\cup\\{x_{i}\\}\\) or \\(B=B\\backslash\\{x_{i}\\}\\) , B is picked out by C."}, {"n": 6, "claim": "Thus A is shattered by C. Apply the operator \\(T=T_{1}\\circ\\dots\\circ T_{n}\\) until \\(T^{k+1}({\\mathcal{C}})=T^{k}({\\mathcal{C}})\\) ."}, {"n": 7, "claim": "This will happen for at most \\(\\scriptstyle\\sum_{C\\in{\\mathcal{C}}}\\operatorname{card}(C)\\) times,since \\(\\begin{array}{ r }{\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(T_{i}(C))<\\sum_{C\\in\\mathcal{C}}\\operatorname{card}(C)\\mathrm{~i f~}T_{i}(\\mathcal{C})\\neq\\mathcal{C}}\\end{array}\\) ,The resulting collection \\(\\scriptstyle{\\mathcal{C}}^{\\prime}\\) is hereditary."}, {"n": 8, "claim": "This proves the lemma."}]}}], "target_local_id": "T4", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "ch16_lemma_16_1__correct", "context": "Shared setting for the results below. All definitions, standing assumptions and numbered equations that the proofs rely on are collected here.\n\nLet \\(x=(x_{1},\\ldots,x_{n})\\), \\(x^{\\prime}=(x_{1}^{\\prime},\\ldots,x_{n}^{\\prime})\\), where \\(x_{1},\\ldots,x_{n},x_{1}^{\\prime},\\ldots,x_{n}^{\\prime}\\) are i.i.d. random variables, and\n\\[d(f,g)=\\left(\\frac{1}{n}\\sum_{i=1}^{n}\\left(f(x_{i})-f(x_{i}^{\\prime})-g(x_{i})+g(x_{i}^{\\prime})\\right)^{2}\\right)^{1/2}.\\]\n\ndefinition 16.1. We say that F satisfies uniform entropy condition if\n\\[\\forall n,\\ \\forall(x_{1},\\ldots,x_{n}),\\ D({\\mathcal{F}},\\varepsilon,d_{x})\\leq D({\\mathcal{F}},\\varepsilon)\\]\nwhere \\(\\begin{array}{ r }{d_{x}(f,g)=\\left(\\frac{1}{n}\\sum_{i=1}^{n}\\left(f(x_{i})-g(x_{i})\\right)^{2}\\right)^{1/2}}\\end{array}\\)\n\ndefinition 12.3. The ε-packing number, \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) , is the marimal cardinality of an E-separated set.\nNote that \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) is decreasing in ε.\n\ndefinition 12.1. If \\(\\mathcal{C}\\) is a VC class of sets, then F is VC-subgraph class of functions and, by definition, \\(V C(\\mathcal{F})=V C(\\mathcal{C})\\)\nFor \\(f:\\mathcal{X}\\to\\mathbb{R}\\) , the subgraph of \\(f\\) is\n\\[C_{f}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}:0\\leq t\\leq f(x)\\ o r\\ f(x)\\leq t\\leq 0\\}.\\]\nDefine class of sets \\(\\mathcal{C}=\\{C_{f}:f\\in\\mathcal{F}\\}\\).\nNote that equivalent definition of \\(C_{f}\\) is\n\\[C_{f}^{\\prime}=\\{(x,t)\\in\\mathcal{X}\\times\\mathbb{R}: |f(x)|\\geq|t|\\}.\\]\n\ndefinition 12.2. Given \\(\\varepsilon > 0\\) and \\(f_{1},\\ldots,f_{N}\\in\\mathcal{F}\\) , we say that \\(f_{1},\\ldots,f_{N}\\) are E-separated if \\(d(f_{i},f_{j})>\\varepsilon\\) for any \\(i \\neq j\\)\n\nDenote \\[\\triangle_{n}(\\mathcal{C})=\\sup_{\\{x_{1},\\ldots,x_{n}\\}}\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})\\leq 2^{n}.\\] We will see that for some classes, \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\) for \\(n \\leq V\\) and \\(\\triangle_{n}(\\mathcal{C})<2^{n}\\) for \\(n > V\\) for some constant \\(V\\).\n\ndefinition 8.1. If \\(V < \\infty\\) , then C is called a VC class. V is called VC dimension of C.\n\ndefinition 8.0. For any sample \\(\\{x_{1},\\ldots,x_{n}\\}\\), the ways that \\({\\mathcal{C}}\\) intersects with the sample are \\[\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in{\\mathcal{C}}\\}.\\] Let \\[\\triangle_{n}(\\mathcal{C},x_{1},\\ldots,x_{n})=\\mathrm{card}~\\{C\\cap\\{x_{1},\\ldots,x_{n}\\}:C\\in\\mathcal{C}\\},\\] the number of different subsets picked out by \\(C\\in{\\mathcal{C}}\\). If \\(\\triangle_{n}(\\mathcal{C})=2^{n}\\), this means we can find \\(\\{x_{1},\\ldots,x_{n}\\}\\) such that \\({\\mathcal{C}}\\) can pick out any subset of it; in this case \\({\\mathcal{C}}\\) shatters \\(\\{x_{1},\\ldots,x_{n}\\}\\). Equivalently, a set \\(A\\) is shattered by \\({\\mathcal{C}}\\) when \\({\\mathcal{C}}\\) picks out every subset of \\(A\\).", "theorems": [{"local_id": "T1", "statement": "Setup. Let \\(X_1,\\dots,X_n\\) be i.i.d. random variables with common law \\(P\\) on a measurable space \\((\\mathcal{X},\\mathcal{A})\\), let \\(\\mathcal{C}\\subseteq\\mathcal{A}\\) be a class of measurable sets, and write \\(P(C)=\\mathbb{P}(X_1\\in C)\\). Let \\(X'_1,\\dots,X'_n\\) (the ghost sample) be an independent copy of \\(X_1,\\dots,X_n\\), i.e. i.i.d. \\(P\\) and independent of \\(X_1,\\dots,X_n\\). Suprema over \\(\\mathcal{C}\\) are assumed measurable; otherwise read \\(\\mathbb{P}\\) as outer probability.\n\nIf \\(t\\geq{\\sqrt{\\frac{2}{n}}}.\\) then\n\\[\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\right)\\leq 2\\mathbb{P}\\left(\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\geq t/2\\right).\\]", "proof": {"steps": [{"n": 1, "claim": "Suppose the event\n\\[\\operatorname*{sup}_{C\\in{\\mathcal{C}}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\]\noccurs.Let \\(\\begin{array}{ r }{X=(X_{1},\\ldots,X_{n})\\in\\{\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\geq t\\}}\\end{array}\\) ."}, {"n": 2, "claim": "Then\n\\[\\exists C_{X}{\\mathrm{~s u c h~t h a t~}}\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nFor a fixed C,\n\\[\\begin{array}{ r }{\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right|\\geq t/2\\right)=\\mathbb{P}\\left(\\left(\\displaystyle\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}\\geq t^{2}/4\\right)}\\\\ {\\leq\\mathrm{~(b y~C h e b y s h e v~s~I n e q)~}\\frac{4\\mathbb{E}\\left(\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C})\\right)^{2}}{t^{2}}}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i,j}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))(I(X_{j}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))}\\\\ {=\\frac{4}{n^{2}t^{2}}\\displaystyle\\sum_{i=1}^{n}\\mathbb{E}(I(X_{i}^{\\prime}\\in\\mathcal{C})-\\mathbb{P}(\\mathcal{C}))^{2}=\\frac{4 n\\mathbb{P}\\left(\\mathcal{C}\\right)\\left(1-\\mathbb{P}(\\mathcal{C})\\right)}{n^{2}t^{2}}\\leq\\frac{1}{n t^{2}}\\leq\\frac{1}{2}}\\end{array}\\]\nsince we chose \\(t\\geq\\sqrt{\\textstyle{\\frac{2}{n}}}.\\)\nSo,\n\\[\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\Bigg|\\exists C_{X}\\right)\\geq 1/2\\]\nif \\(t\\geq\\sqrt{2/n}\\) .Assume that the event\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\leq t/2\\]\noccurs."}, {"n": 3, "claim": "Recall that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\mathbb{P}\\left(C_{X}\\right)\\right|\\geq t .\\]\nHence,it must be that\n\\[\\left|{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-{\\frac{1}{n}}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\geq t/2 .\\]\nWe conclude\n\\[\\begin{array}{ r c l }{\\displaystyle\\frac 12}&{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})-\\mathbb{P}(C_{X})\\right|\\le t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &{\\le}&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C_{X})-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C_{X})\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right)}\\\\ &&{\\displaystyle\\mathbb{P}_{X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac 1n\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac 1n\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C_{X}\\right).}\\end{array}\\]\nSince indicators are 0,1-valued,\n\\[\\begin{array}{ r l r }&{}&{\\displaystyle\\frac{1}{2}T\\left(\\underbrace{\\operatorname*{sup}_{\\zeta\\in{\\mathcal C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}(C)\\right|\\ge t}_{\\Im C x}\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\Bigg|\\exists C x\\right)\\cdot I\\left(\\exists C x\\right)}\\\\ &{}&{\\displaystyle\\le\\mathbb{P}_{X,X^{\\prime}}\\left(\\underset{C\\in{\\mathcal C}}{\\operatorname*{sup}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]\nNow, take expectation with respect to \\(X_{i}^{,}\\) s to obtain\n\\[\\begin{array}{ r l r }&{}&{\\mathbb{P}_{X}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\mathbb{P}\\left(C\\right)\\right|\\ge t\\right)}\\\\ &{}&{\\displaystyle\\le 2\\cdot\\mathbb{P}_{X,X^{\\prime}}\\left(\\displaystyle\\operatorname*{sup}_{C\\in\\mathcal{C}}\\left|\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}\\in C)-\\frac{1}{n}\\sum_{i=1}^{n}I(X_{i}^{\\prime}\\in C)\\right|\\ge t/2\\right).}\\end{array}\\]"}]}}, {"local_id": "T2", "statement": "Let \\(\\xi,\\nu\\) - random variables.Assume that\n\\[\\mathbb{P}\\left(\\nu\\geq t\\right)\\leq\\Gamma e^{-\\gamma t}\\]\nwhere \\(\\Gamma\\geq 1,t\\geq 0\\) ,and \\(\\gamma > 0\\) . Furthermore, for all \\(a > 0\\) assume that\n\\[\\mathbb{E}\\phi(\\xi)\\le\\mathbb{E}\\phi(\\nu)\\]\nwhere \\(\\phi(x)=(x-a)_{+}\\) .Then\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\Gamma\\cdot e\\cdot e^{-\\gamma t}.\\]", "proof": {"steps": [{"n": 1, "claim": "Since \\(\\phi(x)=(x-a)_{+}\\) ,we have \\(\\phi(\\xi)\\geq\\phi(t)\\) whenever \\(\\xi \\geq t .\\)\n\\[\\begin{array}{ r l }&{\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\mathbb{P}\\left(\\phi(\\xi)\\geq\\phi(t)\\right)}\\\\ &{\\qquad\\leq\\displaystyle\\frac{\\mathbb{E}\\phi(\\xi)}{\\phi(t)}\\leq\\frac{\\mathbb{E}\\phi(\\nu)}{\\phi(t)}=\\frac{\\mathbb{E}\\left(\\nu-a\\right)_{+}}{(t-a)_{+}}}\\end{array}\\]\nFurthermore,\n\\[\\begin{array}{ r l }{\\displaystyle\\mathbb{E}(\\nu-a)_{+}=}&{\\mathbb{E}\\int_{0}^{(\\nu-a)_{+}}\\mathrm{1}d x}\\\\ &{=\\mathbb{E}\\int_{0}^{\\infty}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{E}I(x\\leq(\\nu-a)_{+})d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left((\\nu-a)_{+}\\geq x\\right)d x}\\\\ &{=\\int_{0}^{\\infty}\\mathbb{P}\\left(\\nu\\geq a+x\\right)d x}\\\\ &{\\leq\\int_{0}^{\\infty}\\Gamma e^{-\\gamma(a+x)}d x=\\frac{\\Gamma e^{-\\gamma a}}{\\gamma}.}\\end{array}\\]\nHence,\n\\[\\mathbb{P}\\left(\\xi\\geq t\\right)\\leq\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}=\\frac{\\Gamma\\cdot e\\cdot e^{-\\gamma t}}{1}=\\Gamma\\cdot e\\cdot e^{-\\gamma t}\\]\nwhere we chose optimal \\(\\begin{array}{ r }{a=t-\\frac{1}{\\gamma}}\\end{array}\\) to minimize \\(\\frac{\\Gamma e^{-\\gamma a}}{\\gamma(t-a)_{+}}\\)"}]}}, {"local_id": "T3", "statement": "If \\({\\mathcal{F}}\\) satisfies uniform entropy condition, then\n\\[\\mathbb{E}_{x^{\\prime}}\\int_{0}^{d(0,f)}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon,d)d\\varepsilon\\leq\\int_{0}^{\\sqrt{\\mathbb{E}_{x^{\\prime}}d(0,f)^{2}}}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon/2)d\\varepsilon\\]", "proof": {"steps": [{"n": 1, "claim": "Using inequality \\((a+b)^{2}\\leq 2(a^{2}+b^{2})\\)\n\\[\\begin{array}{ r c l }{d(f,g)}&{=}&{\\displaystyle\\left(\\frac{1}{n}\\sum_{i=1}^{n}\\left(f(x_{i})-g(x_{i})+g(x_{i}^{\\prime})-f(x_{i}^{\\prime})\\right)^{2}\\right)^{1/2}}\\\\ &{\\le}&{\\displaystyle\\left(\\frac{2}{n}\\sum_{i=1}^{n}\\left(\\left(f(x_{i})-g(x_{i})\\right)^{2}+\\left(g(x_{i}^{\\prime})-f(x_{i}^{\\prime})\\right)^{2}\\right)\\right)^{1/2}}\\\\ &{=}&{\\displaystyle 2\\left(\\frac{1}{2 n}\\sum_{i=1}^{n}\\left(\\left(f(x_{i})-g(x_{i})\\right)^{2}+\\left(g(x_{i}^{\\prime})-f(x_{i}^{\\prime})\\right)^{2}\\right)\\right)^{1/2}}\\\\ &{=}&{\\displaystyle 2 d_{x,x^{\\prime}}(f,g)}\\end{array}\\]\nSince \\(d(f,g)\\leq 2 d_{x,x^{\\prime}}(f,g)\\) , we also have\n\\[\\begin{array}{ r }{\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\mathcal{D}(\\mathcal{F},\\varepsilon/2,d_{x,x^{\\prime}}).}\\end{array}\\]\nIndeed, let \\(f_{1},...,f_{N}\\) be optimal ε-packing w.r.t. distance d."}, {"n": 2, "claim": "Then\n\\[\\varepsilon\\le d(f_{i},f_{j})\\le 2 d_{x,x^{\\prime}}(f_{i},f_{j})\\]\nand, hence,\n\\[\\varepsilon/2\\leq d_{x,x^{\\prime}}(f_{i},f_{j}).\\]\nSo, \\(f_{1},...,f_{N}\\) is ε/2-packing w.r.t. \\(d_{x,x^{\\prime}}\\) ."}, {"n": 3, "claim": "Therefore, can pack at least N and so \\(\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\mathcal{D}(\\mathcal{F},\\varepsilon/2,d_{x,x^{\\prime}})\\)\n\\[\\begin{array}{ r l }&{\\mathbb{E}_{x^{\\prime}}\\int_{0}^{d(0,f)}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon,d)d\\varepsilon\\le\\mathbb{E}_{x^{\\prime}}\\int_{0}^{d(0,f)}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon/2,d_{x,x^{\\prime}})d\\varepsilon}\\\\ &{\\qquad\\le\\displaystyle\\int_{0}^{d(0,f)}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon/2)d\\varepsilon}\\end{array}\\]\nLet \\(\\begin{array}{ r }{\\phi(x)=\\int_{0}^{x}\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon)d\\varepsilon}\\end{array}\\) .It is concave because \\(\\phi^{\\prime}(x)=\\log^{1/2}\\mathcal{D}(\\mathcal{F},\\varepsilon/2)\\) is decreasing when x is increasing (can pack less with larger balls)."}, {"n": 4, "claim": "Hence, by Jensen's inequality,\n\\[\\begin{array}{ r }{\\mathbb{E}_{x^{\\prime}}\\phi(d(0,f))\\leq\\phi(\\mathbb{E}_{x^{\\prime}}d(0,f))=\\phi(\\mathbb{E}_{x^{\\prime}}\\sqrt{d(0,f)^{2}})\\leq\\phi(\\sqrt{\\mathbb{E}_{x^{\\prime}}d(0,f)^{2}}).}\\end{array}\\]"}]}}, {"local_id": "T4", "statement": "Setup. Let \\(0<\\varepsilon\\le 1\\).\n\nAssume \\(\\mathcal{F}\\) is a VC-subgraph class and \\(V C(\\mathcal{F})=V\\) Suppose \\(-1\\leq f(x)\\leq 1\\) for all \\(f\\in{\\mathcal{F}}\\) and \\(x\\in\\mathcal{X}\\) .Let \\(x_{1},\\ldots,x_{n}\\in{\\mathcal{X}}\\) and define \\(\\begin{array}{ r }{d(f,g)=\\frac{1}{n}\\sum_{i=1}^{n}|f(x_{i})-g(x_{i})|}\\end{array}\\) . Then\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]\n(which \\(\\begin{array}{ r }{i s\\le\\left(\\frac{K}{\\varepsilon}\\right)^{V+\\delta}}\\end{array}\\) for some \\(\\delta . \\jmath\\)", "proof": {"steps": [{"n": 1, "claim": "Let \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) and \\(f_{1},\\ldots,f_{m}\\) be ε-separated, i.e.\n\\[{\\frac{1}{n}}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})| >\\varepsilon .\\]"}, {"n": 2, "claim": "Let \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) be constructed in the following way:"}, {"n": 3, "claim": "\\(z_{i}\\) is chosen uniformly from \\(x_{1},\\ldots,x_{n}\\) and \\(t_{i}\\) is uniform on \\([-1,1]\\)\nConsider \\(f_{r}\\) and \\(f_{\\ell}\\) from the ε-packing."}, {"n": 4, "claim": "Let \\(C_{f_{\\tau}}\\) and \\(C_{f_{\\ell}}\\) be subgraphs of \\(f_{r}\\) and \\(f_{\\ell}\\) Then\n\\(\\mathbb{P}\\left(C_{f_{\\tau}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n= P(At least one point \\((z_{i},t_{i})\\) is picked by \\(C_{f_{r}}\\) or \\(C_{f_{\\ell}}\\) but not picked by the other)\n\\(=1-\\mathbb{P}\\) (All points \\((z_{i},t_{i})\\) are picked either by both or by none)\n\\(\\mathbf{\\Sigma}=1-\\mathbb{P}\\left(\\left(z_{i},t_{i}\\right)\\right.\\) is picked either by both or by none)k\nSince \\(z_{i}\\) is drawn uniformly from \\(x_{1},\\ldots,x_{n}\\)\nP \\(((z_{1},t_{1})\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)\n\\[\\begin{array}{ l }{\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\mathbb{P}\\left(\\left(x_{i},t_{1}\\right)\\mathrm{~i s~p i c k e d~b y~b o t h~}C_{f r},C_{f_{\\ell}}\\mathrm{~o r~b y~n e i t h e r}\\right)}\\\\ {\\displaystyle=\\frac{1}{n}\\sum_{i=1}^{n}\\left(1-\\frac{1}{2}|f_{r}(x_{i})-f_{\\ell}(x_{i})|\\right)}\\\\ {\\displaystyle=1-\\frac{1}{2}\\frac{1}{n}\\sum_{i=1}^{n}|f_{r}(x_{i})-f_{\\ell}(x_{i})|}\\\\ {\\displaystyle=1-\\frac{1}{2}d(f_{r},f_{\\ell})\\leq 1-\\varepsilon/2\\leq e^{-\\varepsilon/2}}\\end{array}\\]\nSubstituting,\n\\(\\mathbb{P}\\left(C_{f_{r}}\\right.\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\)\n\\(=1-\\mathbb{P}\\left((z_{1},t_{1})\\right.\\) is picked by both \\(C_{f_{r}},C_{f_{\\ell}}\\) or by neither)𝑘\n\\[\\begin{array}{ l }{\\geq 1-\\left(e^{-\\varepsilon/2}\\right)^{k}}\\\\ {=1-e^{-k\\varepsilon/2}}\\end{array}\\]\nThere are (m) ways to choose \\(f_{r}\\) and \\(f_{\\ell},\\) s0\nP (All pairs \\(C_{f_{r}}\\) and \\(C_{f_{\\ell}}\\) pick out different subsets of \\((z_{1},t_{1}),\\ldots,(z_{k},t_{k}))\\geq 1-{\\binom{m}{2}}e^{-k\\varepsilon/2}.\\)\nWhat k should we choose so that \\(1-{\\binom{m}{2}}e^{-k\\varepsilon/2}>0?\\) Choose\n\\[k>{\\frac{2}{\\varepsilon}}\\log{\\binom{m}{2}}.\\]\nThen there exist \\((z_{1},t_{1}),\\dots,(z_{k},t_{k})\\) such that all \\(C_{f_{\\ell}}\\) pick out different subsets.But \\(\\{C_{f}:f\\in\\mathcal{F}\\}\\) is \\(\\mathrm{VC}\\) so by Sauer's lemma, we can pick out at most \\(\\left({\\frac{e k}{V}}\\right)^{V}\\) out of these k points, provided \\(k \\geq V\\); if instead \\(k < V\\) then \\(m\\leq 2^{k}<2^{V}\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}\\) and the claimed bound already holds, so that case may be set aside."}, {"n": 5, "claim": "Hence, \\(\\begin{array}{ r }{m\\leq\\left(\\frac{e k}{V}\\right)^{V}}\\end{array}\\) as long as \\(k>{\\frac{2}{\\varepsilon}}\\log\\left({{\\binom{m}{2}}}\\right)\\) and \\(k \\geq V\\), the case \\(k < V\\) having been disposed of above."}, {"n": 6, "claim": "The latter holds for \\(\\begin{array}{ r }{k=\\frac{2}{\\varepsilon}\\log m^{2}}\\end{array}\\) ."}, {"n": 7, "claim": "Therefore,\n\\[m\\leq\\left(\\frac{e}{V}\\frac{2}{\\varepsilon}\\log m^{2}\\right)^{V}=\\left(\\frac{4 e}{V\\varepsilon}\\log m\\right)^{V},\\]\nwhere \\(m=\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\) ."}, {"n": 8, "claim": "Hence, we get\n\\[m^{1/V}\\leq\\frac{4 e}{\\varepsilon}\\log m^{1/V}\\]\nand defining \\(m^{1/V}=s .\\)\n\\[s\\leq{\\frac{4 e}{\\varepsilon}}\\log s .\\]\nNote that \\(\\frac{s}{\\log s}\\) is increasing for \\(s \\geq e\\) and so for large enough s, the inequality will be violated."}, {"n": 9, "claim": "We now check that the inequality is violated for \\(\\begin{array}{ r }{s^{\\prime}=\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}}\\end{array}\\) ."}, {"n": 10, "claim": "Indeed, one can show that\n\\[\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{7}{\\varepsilon}\\right)^{2}>\\frac{4 e}{\\varepsilon}\\log\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)\\]\nsince\n\\[\\frac{49}{8e\\varepsilon}>\\log{\\frac{7}{\\epsilon}}.\\]\nHence, \\(m^{1/V}=s\\leq s^{\\prime}\\) and, thus,\n\\[\\mathcal{D}(\\mathcal{F},\\varepsilon,d)\\leq\\left(\\frac{8 e}{\\varepsilon}\\log\\frac{7}{\\varepsilon}\\right)^{V}.\\]"}]}}], "target_local_id": "T3", "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Function Class Complexity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "jmlr-2025-23-0832", "context": "In this section, we introduce our notation, data generation process, neural network architecture and the optimization algorithm.\n\nNotations. We use lower case letters to denote scalars and boldface letters and symbols (e.g. x) to denote vectors and matrices. We use $\\odot$ to denote element-wise product. For an integer n, we use [n] to denote the set of integers $\\{1,2,\\ldots,n\\}$ . We use $x=O(y),x=$ $\\Omega(y),x=\\Theta(y)$ to denote that there exists a constant C such that $x\\leq Cy,\\ x\\geq Cy,x=Cy$ respectively. We use $\\widetilde{O},\\widetilde{\\Omega}$ and Θe to hide polylogarithmic factor in these notations. Finally, we use $x=\\mathrm{poly}(y)$ if $x=O(y^{C})$ for some positive constant $C_{i}$ , and $x={\\mathrm{poly}}\\log y$ if $x=\\operatorname{poly}(\\log y)$\n\nDefinition 1 (Data distribution of K classes) Consider we are given the set of signal vectors $\\{\\mu\\mathbf{e}_{i}\\}_{i=1}^{K}$ , where $\\mu > 0$ denotes the strength of the signal, and $\\mathbf{e}_{i}\\in\\mathbb{R}^{d}$ (with $d>K)$ denotes the $_{i-t h}$ standard basis vector with its i-th entry being 1 and all other coordinates being 0. Each data point $\\left(\\mathbf{x},y\\right)$ with $\\mathbf{x}=[\\mathbf{x}_{1}^{\\top},\\mathbf{x}_{2}^{\\top}]^{\\top}\\in\\mathbb{R}^{2\\bar{d}}$ and $y \\in [ K ]$ is generated from the following distribution $\\mathcal{D}.$ :\n\n1. The label y is generated from a uniform distribution over $[ K ]$ \n2. A noise vector $\\boldsymbol{\\xi}$ is generated from the Gaussian distribution ${\\mathcal{N}}(\\mathbf{0},\\sigma_{n}^{2}\\mathbf{I})$ \n3. With probability $1/2_{;}$ , assign $\\mathbf{x}_{1}=\\pmb{\\mu}_{y},\\ \\mathbf{x}_{2}=\\pmb{\\xi}$ ; with probability $1/2_{;}$ , assign ${\\bf x}_{2}=$ $\\mu_{y},~\\mathbf{x}_{1}=\\pmb{\\xi}$ where $\\mu_{y}=\\mu\\mathbf{e}_{y}$\n\nNetwork architecture and random pruning. We consider a two-layer convolutional neural network model with polynomial ReLU activation $\\sigma(z)=(\\operatorname*{max}\\{0,z\\})^{q}$ , where we focus on the case when $q=3\\AA^{1}$ The network is pruned at the initialization by mask M where each entry in the mask M is generated i.i.d. from Bernoulli(p). Given the data $\\left(\\mathbf{x},y\\right)$ , the output of the neural network can be written as $F(\\mathbf{W}\\odot\\mathbf{M},\\mathbf{x})=(F_{1}(\\mathbf{W}_{1}\\odot\\mathbf{M}_{1},\\mathbf{x}),F_{2}(\\mathbf{W}_{2}\\odot$ $\\mathbf{M}_{2},\\mathbf{x}),\\ldots,F_{K}(\\mathbf{W}_{K}\\odot\\mathbf{M}_{K},\\mathbf{x}))$ where the j-th output is given by\n\n$$\n\\begin{array}{l}F_{j}(\\mathbf{W}_{j}\\odot\\mathbf{M}_{j},\\mathbf{x})=\\sum_{r=1}^{m}[\\sigma(\\langle\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r},\\mathbf{x}_{1}\\rangle)+\\sigma(\\langle\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r},\\mathbf{x}_{2}\\rangle)]\\\\ =\\sum_{r=1}^{m}[\\sigma(\\langle\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r},\\boldsymbol{\\mu}_{y}\\rangle)+\\sigma(\\langle\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r},\\boldsymbol{\\xi}\\rangle)],\\\\ \\end{array}\n$$\n\nwhere $\\mathbf{m}_{j,r}$ denotes the r-th row of $\\mathbf{M}_{j}$ . The mask M is only sampled once at the initialization and remains fixed through the entire training process. From now on, we use tilde over a symbol to denote its masked version, e.g., $\\widetilde{\\mathbf{W}}=\\mathbf{W}\\odot\\mathbf{M}$ and $\\widetilde{\\mathbf{w}}_{j,r}=\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r}$\n\nSince we have $\\pmb{\\mu}_{j}\\odot\\mathbf{m}_{j,r}=\\mathbf{0}$ , with probability $1-p,$ some neurons will not receive the corresponding signal at all and will only learn noise. Therefore, for each class $j \\in [ K ]$ , we split the neurons into two sets based on whether it receives its corresponding signal or not:\n\n$$\n\\mathcal{S}_{\\text{signal}}^{j}=\\{r\\in [m]:\\boldsymbol{\\mu}_{j}\\odot\\mathbf{m}_{j,r}\\neq\\mathbf{0}\\},\n$$\n\n$$\n\\mathcal{S}_{\\mathrm{noise}}^{j}=\\{r\\in [m]:\\boldsymbol{\\mu}_{j}\\odot\\mathbf{m}_{j,r}=\\mathbf{0}\\}.\n$$\n\nGradient descent algorithm. We consider the network is trained by cross-entropy loss with softmax. We denote by $\\begin{array}{ r }{\\mathrm{logit}_{i}(F,\\mathbf{x}): =\\frac{e^{F_{i}(\\mathbf{x})}}{\\sum_{j\\in [K]}e^{F_{j}(\\mathbf{x})}}}\\end{array}$ and the cross-entropy loss can be written as $\\ell(F(\\mathbf{x},y))= -\\log\\log\\mathrm{i}\\mathbf{\\xi}_{y}(F,\\mathbf{x})$ . The convolutional neural network is trained by minimizing the empirical cross-entropy loss given by\n\n$$\nL_{S}(\\mathbf{W})=\\underset{S}{\\mathbb{E}}\\ell [F(\\mathbf{W}\\odot\\mathbf{M};\\mathbf{x}_{i},y_{i})]=\\frac{1}{n}\\sum_{i=1}^{n}\\ell [F(\\mathbf{W}\\odot\\mathbf{M};\\mathbf{x}_{i},y_{i})],\n$$\n\nwhere $S=\\{(\\mathbf{x}_{i},y_{i})\\}_{i=1}^{n}$ is the training data set. Similarly, we define the generalization loss as\n\n$$\nL_{\\mathcal{D}}:=\\underset{(\\mathbf{x},y)}{\\mathbb{E}}[\\ell(F(\\mathbf{W}\\odot\\mathbf{M};\\mathbf{x},y))].\n$$\n\nThe model weights are initialized from a i.i.d. Gaussian $\\mathcal{N}(0,\\sigma_{0}^{2})$ . The gradient of the cross-entropy loss is given by $\\ell_{j,i}^{\\prime}: =\\ell_{j}^{\\prime}(\\mathbf{x}_{i},y_{i})=\\mathrm{logit}_{j}(F,\\mathbf{x}_{i})-\\mathbb{I}(j=y_{i})$\n\nSince\n\n$$\n\\begin{array}{l}\\nabla_{\\mathbf{w}_{j,r}}L_{S}(\\mathbf{W}\\odot\\mathbf{M})=\\nabla_{\\mathbf{w}_{j,r}\\odot\\mathbf{m}_{j,r}}L_{S}(\\mathbf{W}\\odot\\mathbf{M})\\odot\\mathbf{m}_{j,r}\\\\ =\\nabla_{\\widetilde{\\mathbf{w}}_{j,r}}L_{S}(\\widetilde{\\mathbf{W}})\\odot\\mathbf{m}_{j,r},\\\\ \\end{array}\n$$\n\nwe can write the full-batch gradient descent update of the weights as\n\n$$\n\\begin{array}{l}\\widetilde{\\mathbf{w}}_{j,r}^{(t+1)}=\\widetilde{\\mathbf{w}}_{j,r}^{(t)}-\\eta\\nabla_{\\widetilde{\\mathbf{w}}_{j,r}}L_{S}(\\widetilde{\\mathbf{W}})\\odot\\mathbf{m}_{j,r}\\\\ =\\widetilde{\\mathbf{w}}_{j,r}^{(t)}-\\frac{\\eta}{n}\\sum_{i=1}^{n}\\ell_{j,i}^{\\prime(t)}\\cdot\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\xi}_{i}\\right\\rangle\\right)\\cdot\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\\\ -\\frac{\\eta}{n}\\sum_{i=1}^{n}\\ell_{j,i}^{\\prime(t)}\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\mu}_{y_{i}}\\right\\rangle\\right)\\boldsymbol{\\mu}_{y_{i}}\\odot\\mathbf{m}_{j,r},\\\\ \\end{array}\n$$\n\nfor $j \\in [ K ]$ and $r \\in [ m ]$ , where $\\widetilde{\\pmb{\\xi}}_{j,r,i}=\\pmb{\\xi}_{i}\\odot\\mathbf{m}_{j,r}$\n\nCondition 2 We consider the parameter regime described as follows: (1) Number of classes $K=O(\\log d).\\quad(2)$ Total number of training samples n = poly log d. (3) Dimension $d\\geq C_{d}$ for some suficiently large constant $\\it C_{d}.\\it(4)$ Relationship between signal strength and noise strength: $\\mu=\\Theta(\\sigma_{n}\\sqrt{d}\\log d)=\\Theta(1)$ . (5) The number of neurons in the network $m=\\Omega({\\mathrm{poly}}\\log d).\\ (6)$ Initialization variance: $\\begin{array}{ r }{\\sigma_{0}=\\widetilde{\\Theta}(m^{-4}n^{-1}\\mu^{-1})}\\end{array}$ . (7) Learning rate: $\\Omega(1/\\operatorname{poly}(d))\\leq\\eta\\leq\\widetilde{O}(1/\\mu^{2})$ . (8) Target training loss: $\\epsilon=\\Theta(1/\\operatorname{poly}(d))$ ).\n\nConditions (1) ensures that there are not too many classes which is a mild assumption and can be satisfied by real world dataset like MNIST. Condition (2) ensure that there are enough samples in each class with high probability and at the same time not too many samples such that the noise will interfere with the neural network learning the signals. Condition (3) ensures that our setting is in high-dimensional regime. Condition (4) ensures that the full model can be trained to exhibit good generalization. Condition (5), (6) and (7) ensures that the neural network is suficiently overparameterized and can be optimized eficiently by gradient descent. Condition (7) and (8) further ensures that training time is polynomial in d. We further discuss the practical consideration of η and ε to justify their condition in Theorem 23.\n\nOur second result shows that there exists a relatively large pruning fraction (i.e., small p) such that the learned model yields poor generalization, although gradient descent is still able to drive the training error toward zero. The full proof is defered to Appendix D.\n\nTheorem 9 (Main theorem for over pruning, informal version of Theorem 41 ) Under Condition 2 if $\\begin{array}{ r }{p\\ =\\ \\Theta(\\frac{1}{K m\\log d})}\\end{array}$ , then with probability at least $1 - 1 /$ poly log d over the randomness in the data, network initialization and pruning, there exists $T =$ $O(\\eta^{-1}n\\sigma_{0}^{q-2}\\sigma_{n}^{-q}(p d)^{-q/2}+\\eta^{-1}\\epsilon^{-1}m^{4}n\\sigma_{n}^{-2}(p d)^{-1})$ such that\n\n1. The training loss is below $\\epsilon\\colon L_{S}(\\widetilde{\\mathbf{W}}^{(T)})\\le\\epsilon$ \n2. The generalization loss is large: $L_{\\mathcal{D}}(\\widetilde{\\mathbf{W}}^{(T)})\\ge\\Omega(\\log K)$\n\nIn this section, we introduce the following signal-noise decomposition of each neuron weight from Cao et al. (2022), and some useful properties for the terms in such a decomposition, which are useful in our analysis.\n\nDefinition 14 (signal-noise decomposition) For each neuron weight $j\\in [K],\\ r\\in [m]$ • there exist coeficients $\\gamma_{j,r,k}^{(t)},\\zeta_{j,r,i}^{(t)},\\omega_{j,r,i}^{(t)}$ such that\n\n$$\n\\begin{array}{l}\\widetilde{\\mathbf{w}}_{j,r}^{(t)}\\\\ =\\widetilde{\\mathbf{w}}_{j,r}^{(0)}+\\sum_{k=1}^{K}\\gamma_{j,r,k}^{(t)}\\cdot\\|\\boldsymbol{\\mu}_{k}\\|_{2}^{-2}\\cdot\\boldsymbol{\\mu}_{k}\\odot\\mathbf{m}_{j,r}+\\sum_{i=1}^{n}\\zeta_{j,r,i}^{(t)}\\cdot\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{-2}\\cdot\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}+\\sum_{i=1}^{n}\\omega_{j,r,i}^{(t)}\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{-2}\\cdot\\widetilde{\\boldsymbol{\\xi}}_{j,r,i},\\\\ \\end{array}\n$$\n\nwhere $\\gamma_{j,r,j}^{(t)}\\geq 0,\\gamma_{j,r,k}^{(t)}\\leq 0,\\zeta_{j,r,i}^{(t)}\\geq 0,\\omega_{j,r,i}^{(t)}\\leq 0 .$\n\nIt is straightforward to see the following:\n\n$$\n\\begin{array}{l}\\gamma_{j,r,k}^{(0)},\\zeta_{j,r,i}^{(0)},\\omega_{j,r,i}^{(0)}=0,\\\\ \\gamma_{j,r,j}^{(t+1)}=\\gamma_{j,r,j}^{(t)}-\\mathbb{I}(r\\in\\mathcal{S}_{\\mathrm{signal}}^{j})\\frac{\\eta}{n}\\sum_{i=1}^{n}\\ell_{j,i}^{\\prime(t)}\\cdot\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\mu}_{y_{i}}\\right\\rangle\\right)\\|\\boldsymbol{\\mu}_{y_{i}}\\|_{2}^{2}\\mathbb{I}(y_{i}=j),\\\\ \\gamma_{j,r,k}^{(t+1)}=\\gamma_{j,r,k}^{(t)}-\\mathbb{I}((\\mathbf{m}_{j,r})_{k}=1)\\frac{\\eta}{n}\\sum_{i=1}^{n}\\ell_{j,i}^{\\prime(t)}\\cdot\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\mu}_{y_{i}}\\right\\rangle\\right)\\left\\|\\boldsymbol{\\mu}_{y_{i}}\\right\\|_{2}^{2}\\mathbb{I}(y_{i}=k),\\forall j\\neq k,\\\\ \\end{array}\n$$\n\n$$\n\\zeta_{j,r,i}^{(t+1)}=\\zeta_{j,r,i}^{(t)}-\\frac{\\eta}{n}\\cdot\\ell_{j,i}^{\\prime(t)}\\cdot\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\xi}_{i}\\right\\rangle\\right)\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}\\mathbb{I}(j=y_{i}),\n$$\n\n$$\n\\omega_{j,r,i}^{(t+1)}=\\omega_{j,r,i}^{(t)}-\\frac{\\eta}{n}\\cdot\\ell_{j,i}^{\\prime(t)}\\cdot\\sigma^{\\prime}\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\xi}_{i}\\right\\rangle\\right)\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}\\mathbb{I}(j\\neq y_{i}),\n$$\n\nwhere $\\{\\gamma_{j,r,j}^{(t)}\\}_{t=1}^{T},\\{\\zeta_{j,r,i}^{(t)}\\}_{t=1}^{T}$ are increasing sequences and $\\{\\gamma_{j,r,k}^{(t)}\\}_{t=1}^{T},\\{\\omega_{j,r,i}^{(t)}\\}_{t=1}^{T}$ are decreasing sequences, because $-\\ell_{j,i}^{\\prime(t)}\\geq 0$ when $j=y_{i},$ and $-\\ell_{j,i}^{\\prime(t)}\\leq 0$ when $j\\neq y_{i}$ . By Lemma 18, we have $p d > n + K$ , and hence the set of vectors $\\{\\pmb{\\mu}_{k}\\}_{k=1}^{K}\\cup\\{\\widetilde{\\pmb{\\xi}}_{i}\\}_{i=1}^{n}$ is linearly independent with probability measure 1 over the Gaussian distribution for each $j\\in [K],r\\in [m]$ . Therefore the decomposition is unique.\n\nWe first formally restate Theorem 3.\n\nTheorem 15 (Formal Restatement of Theorem 3) Under Condition 2, choose initialization variance $\\sigma_{0}=\\widetilde\\Theta(m^{-4}n^{-1}\\mu^{-1})$ and learning rate $\\eta\\le\\widetilde{\\cal O}(1/\\mu^{2})$ . For $\\epsilon > 0$ , if $p\\ge C_{1}\\frac{\\log d}{m}$ for some suficiently large constant $C_{1}$ , then with probability at least $1-O(d^{-1})$ over the randomness in the data, network initialization and pruning, there exists $T =$ $\\widetilde O(K\\eta^{-1}\\sigma_{0}^{2-q}\\mu^{-q}+K^{2}m^{4}\\mu^{-2}\\eta^{-1}\\epsilon^{-1})$ such that the following holds:\n\n1. The training loss is below ε: $L_{S}(\\widetilde{\\mathbf{W}}^{(T)})\\le\\epsilon .$ \n2. The weights of the CNN highly correlate with its corresponding class signal: ma $\\mathfrak{c}_{r}\\gamma_{j,r,j}^{(T)}\\geq$ $\\Omega(m^{-1/q})$ for all $j \\in [ K ]$ \n3. The weights of the CNN doesn’t have high correlation with the signal from diferent classes: ma $\\mathfrak{c}_{j\\neq k,r\\in [m]}|\\gamma_{j,r,k}^{(T)}|\\leq\\widetilde{O}(\\sigma_{0}\\mu)$ \n4. None of the weights is highly correlated with the noise: max $_{:j,r,i}\\zeta_{j,r,i}^{(T)}=\\widetilde{O}(\\sigma_{0}\\sigma_{n}\\sqrt{p d})$ 2 and max $_{j,r,i}|\\omega_{j,r,i}^{(T)}| =\\widetilde{O}(\\sigma_{0}\\sigma_{n}\\sqrt{p d})$\n\nMoreover, the testing loss is upper-bounded by\n\n$$\nL_{\\mathcal{D}}(\\widetilde{\\mathbf{W}}^{(T)})\\leq O(K\\epsilon)+\\exp(-n^{2}/p).\n$$\n\nThe proof of Theorem 3 consists of the analysis of the pruning on the signal and noise for three stages of gradient descent: initialization, feature growing phase, and converging phase, and the establishment of the generalization property. We present these analysis in detail in the following subsections. A special note is that the constant C showing up in the following proof of each subsequent Lemmas is defined locally instead of globally, which means the constant C within each Lemma is the same but may be diferent across diferent Lemma.\n\nLemma 19 Suppose $p=\\Omega(1/\\mathrm{poly}\\log d)$ , and m, $n={\\mathrm{poly}}\\log d .$ . With probability at least $1-1/d,$ we have\n\n$$\n\\begin{array}{l}\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}=\\Theta(\\sigma_{n}^{2}p d),\\\\ \\left|\\left\\langle\\widetilde{\\pmb{\\xi}}_{j,r,i},\\pmb{\\xi}_{i^{\\prime}}\\right\\rangle\\right|\\leq O(\\sigma_{n}^{2}\\sqrt{p d\\log d}),\\\\ \\left|\\left\\langle\\boldsymbol{\\mu}_{k},\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\rangle\\right|\\leq|\\left\\langle\\boldsymbol{\\mu},\\boldsymbol{\\xi}_{i}\\right\\rangle|\\leq O(\\sigma_{n}\\mu\\sqrt{\\log d}),\\\\ \\end{array}\n$$\n\nfor all $j\\in\\{-1,1\\},\\ r\\in [m],\\ i,i^{\\prime}\\in [n]$ and $i\\neq i^{\\prime}$\n\nThis subsection establishes a few properties (summarized in Theorem 24) that will be used in the analysis of feature growing phase and converging phase of gradient descent presented in the next two subsections. Define $T^{\\star}=\\eta^{-1}\\mathrm{poly}(1/\\epsilon,\\mu,d^{-1},\\sigma_{n}^{-2},\\sigma_{0}^{-1}n,m,d)$ . Denote $\\alpha=\\Theta(\\log^{1/q}(T^{\\star})),~\\beta=2\\operatorname*{max}_{i,j,r,k}\\left\\{\\left|\\left.\\widetilde{\\mathbf{w}}_{j,r}^{(0)},\\pmb{\\mu}_{k}\\right.\\right|,\\left|\\left.\\widetilde{\\mathbf{w}}_{j,r}^{(0)},\\pmb{\\xi}_{i}\\right.\\right|\\right\\}$ . We need the following bound holds for our subsequent analysis.\n\n$$\n4 m^{1/q}\\max_{j,r,i}\\left\\{\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(0)},\\boldsymbol{\\mu}_{y_{i}}\\right\\rangle,C n\\alpha\\frac{\\mu\\sqrt{\\log d}}{\\sigma_{n}p d},\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(0)},\\boldsymbol{\\xi}_{i}\\right\\rangle,3 C n\\alpha\\sqrt{\\frac{\\log d}{p d}}\\right\\}\\leq 1 \\tag{1}\n$$\n\nProposition 24 Under Theorem 2, during the training time $tr $\\cdot\\gamma_{j,r,j}^{(T_{1})}\\geq m^{-1/q}\\ f o r\\ j\\in [K]$ \n2. $|\\zeta_{j,r,i}^{(t)}|,|\\omega_{j,r,i}^{(t)}|\\le{\\cal O}(\\sigma_{0}\\sigma_{n}\\sqrt{p d})$ for all j ∈ [K], r ∈ [m], i ∈ [n] and t ≤ T1. \n3. $|\\gamma_{j,r,k}^{(t)}|\\leq O(\\sigma_{0}\\mu\\operatorname{poly}\\log d)\\ f o r\\ a l l\\ j,k\\in [K],\\ j\\neq k,\\ r\\in [m]\\ a n d\\ t\\leq T_{1}.$\n\nIn this subsection, we show that gradient descent can drive the training loss toward zero while the signal in the feature is still large. An important intermediate step in our argument is the development of the following gradient upper bound for multi-class cross-entropy loss.\n\nIn this phase, we are going to show that\n\n• maxr $\\gamma_{j,r,j}^{(t)}\\geq m^{1/q}$ for all $j \\in [ K ]$ \n• ma $\\mathrm{x}_{j\\neq k,r\\in [m]}|\\gamma_{j,r,k}^{(t)}|\\leq\\beta_{1}$ where $\\beta_{1}=\\widetilde{O}(\\sigma_{0}\\mu)$ \n• max $\\cdot_{j,r,i}\\{\\zeta_{j,r,i}^{(t)},|\\omega_{j,r,i}^{(t)}|\\}\\le\\beta_{2}$ where $\\beta_{2}=O(\\sigma_{0}\\sigma_{n}\\sqrt{p d})$\n\nDefine $\\mathbf{W}^{\\star}$ as follows:\n\n$$\n\\mathbf{w}_{j,r}^{\\star}=\\mathbf{w}_{j,r}^{(0)}+\\Theta(m\\log(1/\\epsilon))\\frac{\\boldsymbol{\\mu}_{j}}{\\mu^{2}}.\n$$\n\nLemma 33 (Gradient upper bound, formal version of Theorem 6) Under Theorem 2, $f o r t\\leq T^{\\star}$ , there exists constant $C=O(K m^{2/q}$ max $\\{\\mu^{2},\\sigma_{n}^{2}p d\\})$ ) such that\n\n$$\n\\left\\|\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M}\\right\\|_{F}^{2}\\leq C L_{S}(\\widetilde{\\mathbf{W}}^{(t)}).\n$$\n\nLemma 34 For $T_{1}\\leq t\\leq T^{\\star}$ , we have for all $j\\neq y_{i}$\n\n$$\n\\left\\langle\\nabla F_{y_{i}}(\\widetilde{\\mathbf{W}}_{y_{i}}^{(t)},\\mathbf{x}_{i}),\\widetilde{\\mathbf{W}}_{y_{i}}^{\\star}\\right\\rangle-\\left\\langle\\nabla F_{j}(\\widetilde{\\mathbf{W}}_{j}^{(t)},\\mathbf{x}_{i}),\\widetilde{\\mathbf{W}}_{j}^{\\star}\\right\\rangle\\geq q\\log\\frac{2 q K}{\\epsilon}.\n$$\n\nLemma 37 Under the same assumption as Theorem 15, we have\n\n$$\n\\left\\|\\widetilde{\\mathbf{W}}^{(t)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}-\\left\\|\\widetilde{\\mathbf{W}}^{(t+1)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}\\geq 5\\eta L_{S}(\\widetilde{\\mathbf{W}}^{(t)})-\\eta\\epsilon .\n$$\n\nIn this section, we show that there exists a relatively large pruning fraction (i.e., small p) such that while gradient descent is still able to drive the training error toward zero, the learned model yields poor generalization. We first provide a formal restatement of Theorem 9.\n\nTheorem 41 (Formal Version of Theorem 9) Under Condition 2, choose initialization variance $\\sigma_{0}=\\widetilde\\Theta(m^{-4}n^{-1}\\mu^{-1})$ and learning rate $\\eta\\overset{\\cdot}{\\le}\\widetilde{O}(1/\\mu^{2})$ . For $\\begin{array}{ r }{\\epsilon>0,\\ i f p=\\Theta\\big(\\frac{1}{K m\\log d}\\big)}\\end{array}$ then with probability at least $1-1/\\log(d)$ , there exists $T={\\cal O}(\\eta^{-1}n\\sigma_{0}^{q-2}\\sigma_{n}^{-q}(p d)^{-q/2}+$ $\\eta^{-1}\\epsilon^{-1}m^{4}n\\sigma_{n}^{-2}(p d)^{-1})$ such that the following holds:\n\n1. The training loss is below ε: $L_{S}(\\widetilde{\\mathbf{W}}^{(T)})\\le\\epsilon .$ \n2. The model weight doesn’t learn any of its corresponding signal at all: $\\gamma_{j,r,j}^{(t)}=0$ for all $j\\in [K],\\ r\\in [m]$ \n3. The model weights is highly correlated with the noise: $\\begin{array}{ r }{\\operatorname*{max}_{r\\in [m]}\\zeta_{j,r,i}^{(T)}\\geq\\Omega(m^{-1/q})}\\end{array}$ if $y_{i}=j$\n\nMoreover, the testing loss is large:\n\n$$\nL_{\\mathcal{D}}(\\widetilde{\\mathbf{W}}^{(T)})\\geq\\Omega(\\log K).\n$$\n\nThe proof of Theorem 9 consists of the analysis of the over-pruning for three stages of gradient descent: initialization, feature growing phase, and converging phase, and the establishment of the generalization property. We present these analysis in detail in the following subsections.\n\nLemma 43 (Formal Restatement of Theorem 12) Under the same assumption as $T h e \\textmd{ - }$ orem $\\not 4 .$ , there exists $T_{1}r $\\cdot\\zeta_{y_{i},r,i}\\geq m^{-1/q}$ for all $i \\in [ n ]$ \n• max $\\mathfrak{c}_{j,r,i}|\\omega_{j,r,i}^{(t)}| =\\widetilde O(\\sigma_{0}\\sigma_{n}\\sqrt{p d})$ \n• max $\\mathsf{\\tilde{\\rho}}_{j,r,k}|\\gamma_{j,r,k}^{(t)}|\\le\\widetilde O(\\sigma_{0}\\mu)$\n\nFrom the first stage we know that\n\n$$\n\\widetilde{\\mathbf{w}}_{j,r}^{(T_{1})}=\\widetilde{\\mathbf{w}}_{j,r}^{(0)}+ +\\sum_{k\\neq j}\\gamma_{j,r,k}^{(t)}\\frac{\\boldsymbol{\\mu}_{k}\\odot\\mathbf{m}_{j,r}}{\\mu^{2}}+\\sum_{i=1}^{n}\\zeta_{j,r,i}^{(T_{1})}\\frac{\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}}+\\sum_{i=1}^{n}\\omega_{j,r,i}^{(T_{1})}\\frac{\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}}.\n$$\n\nNow we define $\\widetilde{\\mathbf{W}}^{\\star}$ as follows:\n\n$$\n\\widetilde{\\mathbf{w}}_{j,r}^{\\star}=\\widetilde{\\mathbf{w}}_{j,r}^{(0)}+\\Theta(m\\log(1/\\epsilon))\\left[\\sum_{i=1}^{n}\\mathbb{I}(j=y_{i})\\frac{\\widetilde{\\pmb{\\xi}}_{j,r,i}}{\\left\\|\\widetilde{\\pmb{\\xi}}_{j,r,i}\\right\\|_{2}^{2}}\\right].\n$$\n\nLemma 44 Based on the result from feature growing phase,\n\n$$\n\\left\\|\\widetilde{\\mathbf{W}}^{(T_{1})}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}\\leq O(m^{2}n^{1/2}\\log(1/\\epsilon)\\sigma_{n}^{-1}(p d)^{-1/2}).\n$$", "theorems": [{"local_id": "T1", "statement": "Lemma 42 When m = poly log d and $\\begin{array}{ r }{p=\\Theta(\\frac{1}{K m\\log d})}\\end{array}$ , with probability $1-O(1/\\log d)$ , for all class $j \\in [ K ]$ we have $|S_{\\mathrm{signal}}^{j}| =0$", "proof": {"steps": [{"n": 1, "claim": "Proof First, the probability that a given class j receives no signal is $(1-p)^{m}$ . We use the inequality that\n\n$$\n1 + t \\geq \\exp \\left\\{O (t) \\right\\} \\quad \\forall t \\in (- 1 / 4, 1 / 4).\n$$"}, {"n": 2, "claim": "Then the probability that $|S_{\\mathrm{signal}}^{j}| =0,\\ \\forall j\\in [K]$ is given by\n\n$$\n(1-p)^{K m}\\geq\\exp\\left\\{-O(p K m)\\right\\}\\geq 1-O\\left(\\frac{1}{\\log d}\\right).\n$$"}]}}, {"local_id": "T2", "statement": "Lemma 48 Under the same assumption as Theorem $\\mathit{41,}$ we have\n\n$$\n\\left\\|\\mathbf{W}^{(t)}-\\mathbf{W}^{\\star}\\right\\|_{F}^{2}-\\left\\|\\mathbf{W}^{(t+1)}-\\mathbf{W}^{\\star}\\right\\|_{F}^{2}\\geq C\\eta L_{S}(\\widetilde{\\mathbf{W}}^{(t)})-\\eta\\epsilon .\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof To simplify our notation, we define $\\widehat{F}_{j}^{(t)}(\\mathbf{x}_{i})=\\left.\\nabla F_{j}(\\widetilde{\\mathbf{W}}_{j}^{(t)},\\mathbf{x}_{i}),\\widetilde{\\mathbf{W}}_{j}^{\\star}\\right.$ . The proof is exactly the same as the proof of Lemma 37.\n\n$$\n\\left\\|\\widetilde{\\mathbf{W}}^{(t)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}-\\left\\|\\widetilde{\\mathbf{W}}^{(t+1)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}\n$$\n\n$$\n\\begin{array}{l}=2\\eta\\left\\langle\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M},\\widetilde{\\mathbf{W}}^{(t)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\rangle-\\eta^{2}\\left\\|\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M}\\right\\|_{F}^{2}\\\\ =\\frac{2\\eta}{n}\\sum_{i=1}^{n}\\sum_{j=1}^{K}\\ell_{j,i}^{\\prime(t)}\\left[q F_{j}(\\widetilde{\\mathbf{W}}_{j}^{(t)};\\mathbf{x}_{i},y_{i})-\\left\\langle\\nabla F_{j}(\\widetilde{\\mathbf{W}}_{j}^{(t)},\\mathbf{x}_{i}),\\widetilde{\\mathbf{W}}_{j}^{\\star}\\right\\rangle\\right]-\\eta^{2}\\left\\|\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M}\\right\\|_{F}^{2}\\\\ \\geq\\frac{2 q\\eta}{n}\\sum_{i=1}^{n}\\left[\\log(1+\\sum_{j\\neq y_{i}}e^{F_{j}-F_{y_{i}}})-\\log(1+\\sum_{j\\neq y_{i}}e^{(\\hat{F}_{j}-\\hat{F}_{y_{i}})/q})\\right]-\\eta^{2}\\left\\|\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M}\\right\\|_{F}^{2}\\\\ \\geq\\frac{2 q\\eta}{n}\\sum_{i=1}^{n}\\left[\\ell\\left(\\widetilde{\\mathbf{W}}^{(t)};\\mathbf{x}_{i},y_{i}\\right)-\\log\\left(1+K e^{-\\log(2 q K/\\epsilon)}\\right)\\right]-\\eta^{2}\\left\\|\\nabla L_{S}\\left(\\widetilde{\\mathbf{W}}^{(t)}\\right)\\odot\\mathbf{M}\\right\\|_{F}^{2}\\\\ \\geq\\frac{2 q\\eta}{n}\\sum_{i=1}^{n}\\left[\\ell(\\widetilde{\\mathbf{W}}^{(t)};\\mathbf{x}_{i},y_{i})-\\frac{\\epsilon}{2 q}\\right]-\\eta^{2}\\left\\|\\nabla L_{S}(\\widetilde{\\mathbf{W}}^{(t)})\\odot\\mathbf{M}\\right\\|_{F}^{2}\\\\ \\geq C\\eta L_{S}(\\widetilde{\\mathbf{W}}^{(t)})-\\eta\\epsilon,\\\\ \\end{array}\n$$\n\nwhere the first inequality follows from the convexity of the cross-entropy loss with softmax, the second inequality follows from Lemma 34, the third inequality follows because $\\log(1+x)\\leq x$ , and the last inequality follows from Lemma 33 for some constant $C>0 .\\ \\mathsf{I}$"}]}}, {"local_id": "T3", "statement": "Lemma 49 (Formal Restatement of Theorem 13) Under the same assumption as $T h e \\textmd{ - }$ orem $\\mathit{41,}$ choose $T_{2}=T_{1}+\\left\\lceil\\frac{\\left\\|\\widetilde{\\mathbf{W}}^{(T_{1})}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}}{2\\eta\\epsilon}\\right\\rceil=T_{1}+\\widetilde{O}(\\eta^{-1}\\epsilon^{-1}m^{4}n\\sigma_{n}^{-2}(p d)^{-1})$ . Then for any time t during this stage we have max $_{j,r}\\left|\\omega_{j,r,i}^{(t)}\\right| =O(\\sigma_{0}\\sqrt{p d})$ and\n\n$$\n\\frac{1}{t-T_{1}}\\sum_{s=T_{1}}^{t}L_{S}(\\widetilde{\\mathbf{W}}^{(s)})\\leq\\frac{\\left\\|\\widetilde{\\mathbf{W}}^{(T_{1})}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}}{C\\eta(t-T_{1})}+\\frac{\\epsilon}{C}.\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof We have\n\n$$\n\\left\\|\\widetilde{\\mathbf{W}}^{(s)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}-\\left\\|\\widetilde{\\mathbf{W}}^{(s+1)}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}\\geq C\\eta L_{S}(\\widetilde{\\mathbf{W}}^{(s)})-\\eta\\epsilon .\n$$"}, {"n": 2, "claim": "Taking a telescopic sum from $T_{1}$ to t yields\n\n$$\n\\sum_{s=T_{1}}^{t}L_{S}(\\widetilde{\\mathbf{W}}^{(s)})\\leq\\frac{\\left\\|\\widetilde{\\mathbf{W}}^{(T_{1})}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2}+\\eta\\epsilon(t-T_{1}+1)}{C\\eta}.\n$$"}, {"n": 3, "claim": "Combining Lemma 44, we have\n\n$$\n\\sum_{s=T_{1}}^{t}L_{S}(\\widetilde{\\mathbf{W}}^{(s)})\\leq O(\\eta^{-1}\\left\\|\\widetilde{\\mathbf{W}}^{(T_{1})}-\\widetilde{\\mathbf{W}}^{\\star}\\right\\|_{F}^{2})=\\widetilde{O}(\\eta^{-1}m^{4}n\\sigma_{n}^{-2}(p d)^{-1}).\n$$"}]}}, {"local_id": "T4", "statement": "Theorem 50 (Formal Version of the Generalization Result of Theorem 9) Under the same assumption as Theorem $\\not 4.1\\ :$ , within $O(\\eta^{-1}n\\sigma_{0}^{q-2}\\sigma_{n}^{-q}(p d)^{-q/2}+\\eta^{-1}\\epsilon^{-1}m^{4}n\\sigma_{n}^{-2}(p d)^{-1})$ iterations, we can find $\\widetilde{{\\mathbf W}}^{(T)}$ such that $L_{S}(\\widetilde{\\mathbf{W}}^{(T)})\\le\\epsilon_{:}$ , and $L_{\\mathcal{D}}(\\widetilde{\\mathbf{W}}^{(t)})\\geq\\Omega(\\log K)$", "proof": {"steps": [{"n": 1, "claim": "Proof First of all, from Theorem 49 we know there exists $t\\in [T_{1},T_{2}]$ such that $L_{S}(\\widetilde{\\mathbf{W}}^{(T)})\\le\\epsilon$ Then, we can bound\n\n$$\n\\begin{array}{l}\\left\\|\\widetilde{\\mathbf{w}}_{j,r}^{(t)}\\right\\|_{2}=\\left\\|\\widetilde{\\mathbf{w}}_{j,r}^{(0)}+\\sum_{k\\neq j}\\gamma_{j,r,k}^{(t)}\\frac{\\boldsymbol{\\mu}_{k}}{\\mu^{2}}+\\sum_{i=1}^{n}\\zeta_{j,r,i}^{(t)}\\frac{\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}}+\\sum_{i=1}^{n}\\omega_{j,r,i}^{(t)}\\frac{\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}^{2}}\\right\\|_{2}\\\\ \\leq\\left\\|\\widetilde{\\mathbf{w}}_{j,r}^{(0)}\\right\\|_{2}+\\sum_{k\\neq j}|\\gamma_{j,r,k}^{(t)}|\\frac{1}{\\mu}+\\sum_{i=1}^{n}\\zeta_{j,r,i}^{(t)}\\frac{1}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}}+\\sum_{i=1}^{n}|\\omega_{j,r,i}^{(t)}|\\frac{1}{\\left\\|\\widetilde{\\boldsymbol{\\xi}}_{j,r,i}\\right\\|_{2}}\\\\ \\leq O(\\sigma_{0}\\sqrt{d})+\\widetilde{O}(n\\sigma_{n}^{-1}(p d)^{-1/2}).\\\\ \\end{array}\n$$"}, {"n": 2, "claim": "Consider a new example $\\left(\\mathbf{x},y\\right)$ . Taking a union bound over r, with probability at least $1-d^{-1}$ , we have\n\n$$\n\\left|\\left\\langle\\mathbf{w}_{y,r}^{(t)},\\pmb{\\xi}\\right\\rangle\\right| =\\widetilde{O}(\\sigma_{0}\\sigma_{n}\\sqrt{d}+n(p d)^{-1/2}),\n$$\n\nfor all $r \\in [ m ]$ . Then,\n\n$$\n\\begin{array}{l}F_{y}(\\mathbf{x})=\\sum_{r=1}^{m}\\sigma\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\mu}_{y}\\right\\rangle\\right)+\\sigma\\left(\\left\\langle\\widetilde{\\mathbf{w}}_{j,r}^{(t)},\\boldsymbol{\\xi}\\right\\rangle\\right)\\\\ \\leq m\\max_{r}\\left|\\left\\langle\\mathbf{w}_{y,r}^{(t)},\\boldsymbol{\\xi}\\right\\rangle\\right|^{q}\\\\ \\leq m\\widetilde{O}(\\sigma_{0}^{q}\\sigma_{n}^{q}d^{q/2}+n^{q}(p d)^{-q/2})\\\\ \\leq 1,\\\\ \\end{array}\n$$\n\nwhere the last inequality follows because $\\sigma_{0}\\le\\widetilde{{\\cal O}}(m^{-1/q}\\mu^{-1})$ and $d\\geq\\widetilde\\Omega(m^{2/q}n^{2})$ . Thus, with probability at least $1 - 1 / d .$\n\n$$\n\\ell(F(\\widetilde{\\mathbf{W}}^{(t)};\\mathbf{x}))\\geq\\log(1+(K-1)e^{-1}).\n$$"}]}}], "target_local_id": null, "topic_domain": "Deep Learning Theory", "topic_subtopic": "Training Dynamics & Implicit Bias", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "jmlr-2025-23-1519", "context": "We begin by introducing some fundamental notations that will frequently appear. Suppose that the data $D_{n}: =\\{X_{1},\\ldots,X_{n}\\}$ are independent and identically distributed (i.i.d.) and drawn from an unknown distribution P that is absolutely continuous with respect to the Lebesgue measure $\\mu$ and admits a unique density function $f .$ . In this paper, we assume that $f$ is supported on $[0,1]^{d}$ , which we denote as X . Recall that for $1 \\leq p < \\infty$ and a vector $x\\in\\mathbb{R}^{d}$ , the $\\ell_{p}{\\mathrm{-norm}}$ is defined as $\\|x\\|_{p}: =(x_{1}^{p}+\\cdot\\cdot\\cdot+x_{d}^{p})^{1/p}$ , and the $\\ell_{\\infty}{\\mathrm{-norm}}$ is defined as $\\|x\\|_{\\infty}: =\\operatorname*{max}_{i=1,\\ldots,d}|x_{i}|$ . For a measurable function $g:\\mathcal{X}\\mathbb{R}$ , we define the $L_{p}{\\mathrm{-norm}}$ as $\\begin{array}{ r }{\\|g\\|_{p}: =\\big(\\int_{\\mathcal X}|g(x)|^{p}dx\\big)^{1/p}}\\end{array}$ . Let $B(x,r): =\\{x^{\\prime}\\in\\mathbb{R}^{d}:\\|x^{\\prime}-x\\|_{2}\\leq r\\}$ denote a ball in Euclidean space $\\mathbb{R}^{d}$ centered at $x\\in\\mathbb{R}^{d}$ with radius $r\\in(0,+\\infty)$ . We use $V_{d}$ to denote the volume of the d-dimensional closed unit ball. In addition, for $n\\in\\mathbb{N}_{+}$ , we write $[n]: =\\{1,\\dots,n\\}$ as the set containing integers from 1 to n and $\\mathcal{W}_{n}: =\\{(w_{1},\\ldots,w_{n})\\in\\mathbb{R}^{n}$ $\\begin{array}{ r }{\\sum_{i=1}^{n}w_{i}=1,~w_{i}\\ge 0,~i\\in [n]\\}}\\end{array}$ . For any $x\\in\\mathbb{R}$ , let bxc be the largest integer less than or equal to x and dxe be the smallest ingeter larger than or equal to x.\n\nThroughout this paper, we use $a\\vee b=\\operatorname*{max}\\{a,b\\}$ and $a\\wedge b=\\operatorname*{min}\\{a,b\\}$ . Moreover, we use the following notations to compare the magnitudes of quantities: $a_{n}\\lesssim b_{n}$ or $a_{n}={\\mathcal{O}}(b_{n})$ indicates that there exists a positive constant $c > 0$ that is independent of n such that $a_{n}\\leq cb_{n};a_{n}\\gtrsim b_{n}$ implies that there exists a positive constant $c > 0$ such that $a_{n}\\geq cb_{n};$ and $a_{n}\\asymp b_{n}$ means that $a_{n}\\lesssim b_{n}$ and $b_{n}\\lesssim a_{n}$ hold simultaneously. In this paper, we focus on the case of a fixed dimension, allowing the constant c to depend on the dimension $d .$ Finally, we use $C,C^{\\prime},c,$ and $c^{\\prime}$ to represent positive constants.\n\nAssumption 1 The data $D_{n}$ consists ofi.i.d. samples drawn from a distribution P satisfying the contamination model:\n\n$$\n\\mathrm{P}=(1-\\Pi)\\cdot\\mathrm{P}_{0}+\\Pi\\cdot\\mathrm{P}_{1},\\tag{1}\n$$\n\nwhere $\\mathrm{P_{0}}$ and $\\mathrm{P_{1}}$ denote the distributions of normal and anomalies, respectively, and $\\Pi \\in$ (0, 1) is the contamination proportion. Additionally, we assume that $\\mathrm{P_{0}}$ has a probability density function $f_{0}$ , while $\\mathrm{P_{1}}$ is uniformly distributed over $[0,1]^{d}$ with density function $f_{1}$\n\nBuilding on this framework, we explore the distance-based method for unsupervised anomaly detection, motivated by the connection between distance functions and k-nearest neighbor (kNN) density estimations highlighted by Biau et al. (2011). This method leverages the distances between data points and their nearest neighbors to assess anomalies. For any $\\boldsymbol{x}\\in\\mathbb{R}^{d}$ and a dataset $D_{n}.$ , we denote $X_{(k)}(x;D_{n})$ as the k-th nearest neighbor of x in $D_{n}$ We then define $R_{n,(k)}(x): =\\left\\|x-X_{(k)}(x;D_{n})\\right\\|_{2}$ as the distance between x and $X_{(k)}(x;D_{n})$ referred to as the k-nearest neighbor distance, or k-distance of x in $D_{n}$\n\nDistance-based methods are important and efective for anomaly detection. However, when handling large datasets, the number of nearest neighbors that need to be searched grows substantially, leading to significant computational overhead. To mitigate this issue, we incorporate the bagging technique by averaging the weighted k-distances computed on multiple disjoint sub-datasets randomly drawn from the original dataset $D_{n}$ without replacement. Let B be the number of bagging rounds pre-specified by the user, and $\\{D_{s}^{b}\\}_{b=1}^{B}$ be B disjoint subsets of $D_{n}$ , each of size s. Since the sub-samples are disjoint and the data $D_{n}$ is supposed i.i.d., this procedure is mathematically equivalent to taking the first s samples for bag 1, the following s samples for bag 2, etc. In each subset $D_{s}^{b},\\ b\\in [B]$ , let $R_{s,(k)}^{b}(x): =\\left. x-X_{(k)}(x;D_{s}^{b})\\right._{2}$ be the k-distance of x in $D_{s}^{b}$ for any integer $k\\leq s,$ , and let the weighted k-distance be defined as $\\begin{array}{ r }{R_{s}^{w,b}(x): =\\sum_{i=1}^{s}w_{i}^{b}R_{s,(i)}^{b}(x)}\\end{array}$ , with $w^{b}\\in\\mathcal{W}_{s}$ . The bagged weighted k-distances are obtained by averaging these weighted k-distances across the B sub-datasets:\n\n$$\nR_{n}^{B}(x):=\\frac{1}{B}\\sum_{b=1}^{B}R_{s}^{w,b}(x).\n$$\n\nThen, we introduce the bagged weighted k-distances for density estimation (BWDDE) as\n\n$$\nf_{n}^{B}(x):=\\frac{1}{V_{d}R_{n}^{B}(x)^{d}}\\left(\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b}\\gamma_{s,i}\\right)^{d},\\tag{2}\n$$\n\nwhere $V_{d}={\\pi}^{d/2}/\\Gamma(d/2+1)$ is the volume of the unit ball and\n\n$$\n\\gamma_{s,i}:=\\frac{\\Gamma(i+1/d)\\Gamma(s+1)}{\\Gamma(i)\\Gamma(s+1+1/d)}.\\tag{3}\n$$\n\nSince the underlying density function f in (4) is unknown, standard optimization techniques for parameter selection cannot be directly applied to weight selection in density estimation. To address this, we seek a surrogate for the empirical risk in (4) and minimize it to determine the nearest neighbor weights. To proceed, we introduce the following regularity assumptions on the underlying probability distribution P.\n\nAssumption 2 Assume that P has a Lebesgue density f with support $\\mathcal{X}=[0,1]^{d}$\n\n(i) [Lipschitz Continuity] The density f is Lipschitz continuous on $[0,1]^{d}$ , i.e., for all x, $,y\\in [0,1]^{d}$ , there exists a constant $c_{L}>0$ such that $|f(x)-f(y)|\\leq c_{L}\\|x-y\\|_{2}$\n\n(ii) [Boundness] There exist constants $\\overline{{c}}\\geq\\underline{{c}}>0$ such that $\\underline{{c}}\\le f(x)\\le\\overline{{c}}$ for all $x\\in\\mathcal{X}$\n\nUnder these assumptions, along with additional conditions on the weights, the next proposition presents a surrogate for the empirical risk (4).\n\nProposition 1 (Surrogate Risk) Let Assumption 2 hold, and let L denote the absolute value loss. Let $\\{D_{s}^{\\bar{b}}\\}_{b=1}^{B}$ be B disjoint subsets randomly drawn from $D_{n},$ with $D_{s}^{b}= $ $\\{X_{1}^{b},\\ldots,X_{s}^{b}\\}$ , and define $\\begin{array}{ r }{\\overline{{R}}_{s,(i)}^{b}: =\\sum_{j=1}^{s}R_{s,(i)}^{b}(X_{j}^{b})/s}\\end{array}$ as the average i-distances for any integer $i \\leq s$ on the subset $D_{s}^{b}$ . Furthermore, let f be the true density function and $f_{n}^{B}$ be the BWDDE as in (2). Moreover, let $k^{b}: =k(w^{b}): =\\operatorname*{sup}\\{i\\in [s]:w_{i}^{b}\\neq 0\\},\\ :\\underline{{k}}: =\\operatorname*{min}_{b\\in [B]}k^{b}$ and $\\overline{{k}}: =\\operatorname*{max}_{b\\in [B]}k^{b}$ . Finally, suppose that the following four conditions hold:\n\n(i) There exists a sequence $c_{n}\\asymp$ log n such that $\\sum_{i=1}^{cn}w_{i}^{b}\\lesssim(\\log n)/k^{b}$ for all $b \\in \\left[ B \\right]$ \n(ii) $\\begin{array}{ r }{\\underline{{k}}\\gtrsim(\\log n)^{2},\\underline{{k}}\\asymp\\overline{{k}},B\\geq 2(d^{2}+4)(\\log n)/3,B\\lesssim(\\overline{{k}}/(\\log n))^{1+2/d}}\\end{array}$ , log $s \\asymp \\log n$ , and $s\\geq\\operatorname*{max}\\{c_{1}^{\\prime},2\\overline{{k}}\\}$ , where $c_{1}^{\\prime}$ is a constant defined in Lemma ${\\mathit{12}};$ \n(iii) $\\|w^b\\|_2 \\gtrsim (k^b)^{-1/2}$ and $\\sum_{i=1}^s i^{1/d} w_i^b \\asymp (k^b)^{1/d}$ for $b \\in [B]$; \n(iv) There exist constants $C_{n,i}$ such that $\\max_{b\\in[B]} w_i^b \\lesssim C_{n,i}$ for $i\\in[s]$ and $\\sum_{i=1}^s i^{1/d-1/2} C_{n,i} \\lesssim \\overline{k}^{1/d-1/2}$.\n\nThen, there exists $N_{1}^{*}\\in\\mathbb{N}$ , specified in the proof, such that for all $n\\geq N_{1}^{*}$ and $X_{i}^{b}$ satisfying $B(X_{i}^{b},R_{s,(k^{b^{\\prime}})}^{b^{\\prime}}(X_{i}^{b}))\\stackrel{^{\\prime}}{\\subset}[0,1]^{d}$ for all $b^{\\prime}\\in [B]$ , there holds\n\n$$\nL(X_{i}^{b},f_{n}^{B})\\lesssim\\sqrt{(\\log s)/B}\\cdot\\|w^{b}\\|_{2}+R_{s}^{w,b}(X_{i}^{b}),\\qquad i\\in [s],b\\in [B],\\tag{5}\n$$\n\nwith probability $\\mathrm{P}^{Bs}$ at least $1-4/n^{2}$ . Furthermore, we have\n\n$$\n\\begin{array}{l}\\mathcal{R}_{L,D_{s}^{B}}(f_{n}^{B})\\lesssim\\mathcal{R}_{L,D_{s}^{B}}^{\\text{sur}}(f_{n}^{B}):=\\frac{1}{B}\\sum_{b=1}^{B}\\left(\\sqrt{(\\log s)/B}\\cdot\\|w^{b}\\|_{2}+\\frac{1}{s}\\sum_{i=1}^{s}R_{s}^{w,b}(X_{i}^{b})\\right)\\\\ =\\frac{1}{B}\\sum_{b=1}^{B}\\left(\\sqrt{(\\log s)/B}\\cdot\\|w^{b}\\|_{2}+\\sum_{i=1}^{s}w_{i}^{b}\\overline{{R}}_{s,(i)}^{b}\\right).\\tag{6}\\\\ \\end{array}\n$$\n\nSurrogate risk minimization (SRM). From the expression of the surrogate risk in (6), minimizing the surrogate risk is equivalent to solving the following optimization problems:\n\n$$\nw^{b,*}:=\\underset{w^{b}\\in\\mathcal{W}_{s}}{\\arg\\min}\\sqrt{(\\log s)/B}\\cdot\\|w^{b}\\|_{2}+\\sum_{i=1}^{s}w_{i}^{b}\\overline{{R}}_{s,(i)}^{b},\\quad b\\in [B].\\tag{7}\n$$\n\nDensity estimation. The discussions above indicate that the minimization problem (7) provides a practical method for determining the weights of nearest neighbors in density estimation.\n\nHowever, these weights depend on the data, introducing statistical dependence between the weights $w_{i}^{b,*}$ and the i-distance $R_{s,(i)}^{b}(x)$ for $i \\in [ s ]$ in each bag $b \\in [ B ]$ . Such dependence complicates the theoretical analysis of weighted k-distances and density estimation within the framework of statistical learning theory.\n\nTo address this issue, we employ distinct subsets of the data for computing the kdistances, ensuring their independence from the optimized weights. For simplicity, we assume that $n = 2 B s$ , which facilitates a more straightforward theoretical derivation without loss of generality. This assumption ensures that each subset is of equal size; if n is not exactly divisible by 2B, minor modifications to the partitioning scheme can be applied without afecting the theoretical conclusions. We randomly partition $D_{n}$ into B disjoint pairs of subsets $\\{(D_{s}^{b},\\widetilde{D}_{s}^{b})\\}_{b=1}^{B}$ , where each subset has size s and $D_{s}^{b}\\cap\\widetilde{D}_{s}^{b}=\\varnothing$ for each b. Let $w^{b,*}$ represent the weights obtained by solving the optimization problem (7) using $\\{D_{s}^{b}\\}_{b=1}^{B},$ and let $\\widetilde{R}_{s,(i)}^{b}(x)$ denote the i-distance of x computed using $\\{\\widetilde{D}_{s}^{b}\\}_{b=1}^{B}$ for $i \\in [ s ]$ . Then, we define the regularized k-distances as follows:\n\n$$\nR_{s}^{b,*}(x):=R_{s}^{w^{b,*},b}(x)=\\sum_{i=1}^{s}w_{i}^{b,*}\\widetilde{R}_{s,(i)}^{b}(x).\\tag{9}\n$$\n\nWe refer to the weighted average of these k-distances as the bagged regularized k-distance\n\n$$\nR_{n}^{B,*}(x):=\\frac{1}{B}\\sum_{b=1}^{B}R_{s}^{b,*}(x).\\tag{10}\n$$\n\nBy incorporating the $w^{b,*}$ and $R_{n}^{B,*}(x)$ into the BWDDE formula (2), we are able to obtain a new nearest-neighbor-based density estimator called bagged regularized k-distances for density estimation (BRDDE), expressed as\n\n$$\nf_{n}^{B,*}(x):=\\frac{1}{V_{d}R_{n}^{B,*}(x)^{d}}\\left(\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}\\right)^{d}.\\tag{11}\n$$\n\n
\nAlgorithm 2: Bagged Regularized $k$-Distances for Anomaly Detection (BRDAD)\nInput: Data $D = \\{X_1, \\cdots, X_n\\}$; Number of anomalies $m$;\nBagging rounds $B$; Subsampling size $s$.\nRandomly partition $D_n$ into $B$ disjoint pairs of subsets, denoted as $\\{(D_s^b, \\widetilde{D}_s^b)\\}_{b=1}^B$, such that $D_s^b \\cap \\widetilde{D}_s^b = \\emptyset$ for each $b$.\nfor $b \\in [B]$ do\n Compute weights $w^{b,*}$ using $D_s^b$ by (7);\n Compute the regularized $k$-distances $R_s^{b,*}(X_i)$ for $1 \\leq i \\leq n$ using (9), based on $w^{b,*}$ and $\\widetilde{D}_s^b$.\nend\nCompute the bagged regularized $k$-distances $R_n^{B,*}(X_i)$ by (10) for $1 \\leq i \\leq n$.\nSort the data $D_n = \\{X_1, \\ldots, X_n\\}$ as $\\{X_1', \\ldots, X_n'\\}$ in descending order according to their bagged regularized $k$-distances, i.e., $R_n^{B,*}(X_1') \\geq \\cdots \\geq R_n^{B,*}(X_n')$.\nOutput: Anomalies $\\{X_i'\\}_{i=1}^m$.\n
\n\nAnomaly Detection. By applying BRDDE to all samples, anomalies can be identified as instances with lower BRDDE values. However, explicit density estimation is not necessary for anomaly detection. Since density estimates serve as anomaly scores, any monotone transformation preserves their ranking (possibly in reverse) and maintains the same family of level sets, leading to identical AUC values. Thus, bagged regularized k-distances provide a suficient and practical alternative for anomaly detection. They can be accurately computed in high-dimensional spaces, and their associated weights can be eficiently optimized from (7), making them an efective approach for density-based anomaly detection.\n\nWe now introduce our anomaly detection algorithm, bagged regularized k-distances for anomaly detection (BRDAD). The dataset $D_{n}$ is sorted into the sequence $\\{X_{1}^{\\prime},\\ldots,X_{n}^{\\prime}\\}$ based on their bagged regularized k-distances in descending order, i.e. $R_{n}^{B,*}(X_{1}^{\\prime})\\geq\\cdots\\geq$ $R_{n}^{B,*}(X_{n}^{\\prime})$ . Given the pre-specified number of anomalies $m,$ the first m instances $\\{X_{i}^{\\prime}\\}_{i=1}^{m},$ are considered as the m anomalies. The complete procedure of our BRDAD algorithm is presented in Algorithm 2. As illustrated above, SRM mitigates the challenge of hyperparameter selection in density estimation. Consequently, BRDAD retains the advantages of BRDDE by using the same weights to address the sensitivity of hyperparameter selection in nearest-neighbor-based methods for unsupervised anomaly detection.\n\nIn this section, we present theoretical results related to our BRDAD algorithm. We first investigate the Huber contamination model in Section 3.1, in which we can analyze the performance of the bagged regularized k-distances from a learning theory perspective. Then, we present the convergence rates of BRDDE and BRDAD in Section 3.2 and 3.3, respectively. Finally, we provide comments and discussions on our algorithms and theoretical results in Section 3.4. We also compare our theoretical findings on the convergences of both BRDDE and BRDAD with other nearest-neighbor-based methods in this section.\n\nIn the Huber contamination model (HCM) in Assumption 1, for every instance X from $\\mathrm{P}{\\mathrm{,}}$ we can use a latent variable $Y\\in\\{0,1\\}$ that indicates which distribution it is from. More specifically, $Y = 0$ and $Y = 1$ indicate that the instance is from the normal and the anomalous distribution, respectively. As a result, the anomaly detection problem can be converted into a bipartite ranking problem where instances are labeled positive or negative implicitly according to whether it is normal or not. Let $\\widetilde{\\mathrm{P}}$ represent the joint probability distribution of $\\mathcal{X}\\times\\mathcal{Y}$ In this case, our learning goal is to learn a score function that minimizes the probability of mis-ranking a pair of normal and anomalous instances, i.e. that maximizes the area under the ROC curve (AUC). Therefore, we can study regret bounds for the AUC of the bagged regularized k-distances to evaluate its performance from the learning theory perspective. Let $r:\\mathcal{X}\\mathbb{R}$ be a score function, then the AUC of r can be written as\n\n$$\n\\mathrm{AUC}(r)=\\mathbb{E}\\big [\\mathbf{1}\\{(Y-Y^{\\prime})(r(X)-r(X^{\\prime})>0)\\}+\\mathbf{1}\\{r(X)=r(X^{\\prime})\\}/2|Y\\neq Y^{\\prime}\\big],\n$$\n\nwhere $(X,Y),(X^{\\prime},Y^{\\prime})$ are assumed to be drawn i.i.d. from $\\widetilde{\\mathrm{P}}$ . In other words, the AUC of $r$ is the probability that a randomly drawn anomaly is ranked higher than a randomly drawn normal instance by the score function $r .$ . Given the HCM in (1) and the assumption that $\\mathrm{P_{1}}$ is uniformly distributed over $[0,1]^{d}$ in Assumption 1, the posterior probability function with respect to $\\widetilde{\\mathrm{P}}$ is given by\n\n$$\n\\eta(x):=\\widetilde{\\mathrm{P}}(Y=1|X=x)=\\frac{\\Pi f_{1}(x)}{(1-\\Pi)f_{0}(x)+\\Pi f_{1}(x)}=\\Pi f(x)^{-1}.\\tag{12}\n$$\n\nThen, the optimal AUC is defined as\n\n$$\n\\mathrm{AUC}^{*}:=\\sup_{r:\\mathcal{X}\\to\\mathbb{R}}\\mathrm{AUC}(r)=1-\\frac{1}{2\\Pi(1-\\Pi)}\\mathbb{E}_{X,X^{\\prime}}\\big [\\min\\big(\\eta(X)(1-\\eta(X^{\\prime})),\\eta(X^{\\prime})(1-\\eta(X))\\big)\\big].\n$$\n\nFinally, the AUC regret of a score function r is defined as\n\n$$\n\\mathrm{Reg}^{\\mathrm{AUC}}(r):=\\mathrm{AUC}^{*}-\\mathrm{AUC}(r).\n$$\n\nAs discussed in Section 2.2, BRDAD is a density-based anomaly detection method. To establish its convergence rates under the Huber contamination model, we first derive the theoretical convergence rates of BRDDE in (11), which are presented in the next subsection.\n\nIn this section, we first provide the error decomposition for the BWDDE $f_{n}^{B}(x)$ in (2). Then, we present the upper bounds for these error terms.\n\nLet the term (I) be defined as\n\n$$\n(I):=\\frac{1}{V_{d}R_{n}^{B}(x)^{d}}\\sum_{j=0}^{d-1}\\left(\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b}\\gamma_{s,i}\\right)^{j}\\left(V_{d}^{1/d}f(x)^{1/d}R_{n}^{B}(x)\\right)^{d-1-j}.\\tag{14}\n$$\n\nIf the terms (II) and (III) are defined respectively as\n\n$$\n(II):=\\sum_{i=1}^{s}\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b}\\left(\\gamma_{s,i}-\\mathrm{P}\\left(B\\left(x,R_{s,(i)}^{b}(x)\\right)\\right)^{1/d}\\right)\\right|,\\tag{17}\n$$\n\n$$\n(III):=\\sum_{i=1}^{s}\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b}\\big(\\mathrm{P}(B(x,R_{s,(i)}^{b}(x)))^{1/d}-V_{d}^{1/d}f(x)^{1/d}R_{s,(i)}^{b}(x)\\big)\\right|,\\tag{18}\n$$\n\nthen applying the triangle inequality to (16) yields the error decomposition\n\n$$\n\\left|f_{n}^{B}(x)-f(x)\\right|\\leq(I)\\cdot(II)+(I)\\cdot(III).\\tag{19}\n$$\n\nWe emphasize that $\\gamma_{s,i}=\\mathbb{E}[\\mathrm{P}(B(x,R_{s,(i)}^{b}(x)))^{1/d}]$ for a fixed $x\\in\\mathcal{X},b\\in [B]$ , and $i \\in [ s ]$ Therefore, standard concentration inequalities can be applied to establish the convergence rates for term (II). The derivation of this equality is explained as follows: Since P has a density over $[0,1]^{d}$ with respect to the Lebesgue measure, the random variable $\\|X-x\\|_{2}$ is continuous for a fixed $x\\in\\mathcal{X}$ . By the probability integral transform, $\\operatorname{P}(B(x,\\|X-x\\|_{2}))$ is uniformly distributed over $[0,1]$ . For any $b \\in [ B ]$ , note that $X_{1}^{b},\\ldots,X_{s}^{b}$ are i.i.d. with the same distribution P. Let $U_{1}^{b},\\ldots,U_{s}^{b}$ be i.i.d. uniform [0, 1] random variables. Then\n\n$$\n\\bigl(\\mathrm{P}(x,\\|X_{1}^{b}-x\\|_{2}),\\dots,\\mathrm{P}(x,\\|X_{s}^{b}-x\\|_{2})\\bigr)\\stackrel{{\\mathcal{D}}}{{=}}\\bigl(U_{1}^{b},\\dots,U_{s}^{b}\\bigr).\n$$\n\nReordering the samples such that $\\|X_{(1)}^{b}(x)-x\\|_{2}\\leq\\cdot\\cdot\\cdot\\leq\\|X_{(s)}^{b}(x)-x\\|_{2}$ , we obtain\n\n$$\n\\left(\\mathrm{P}(B(x,R_{s,(1)}^{b}(x))),\\dots,\\mathrm{P}(B(x,R_{s,(s)}^{b}(x)))\\right)\\stackrel{{\\mathcal{D}}}{{=}}\\left(U_{(1)}^{b},\\dots,U_{(s)}^{b}\\right),\\tag{20}\n$$\n\nwhere $U_{(i)}^{b}$ is the i-th order statistic of $U_{1}^{b},\\ldots,U_{s}^{b}$ . This reduces the study of $\\mathrm{P}(B(x,R_{s,(i)}^{b}(x)))$ to the study of $U_{(i)}^{b}$ . By Corollary 1.2 in Biau and Devroye (2015), $U_{(i)}^{b}\\sim\\mathrm{Beta}(i,s+1-i)$ Hence, $\\mathbb{E}[\\mathrm{P}(B(x,R_{s,(i)}^{b}(x)))^{1/d}]=\\mathbb{E}[(U_{(i)}^{b})^{1/d}]=\\gamma_{s,i}.$\n\nThe following proposition provides the upper bounds for the error terms $(I),(II)$ , and (III), respectively.\n\nProposition 4 Let Assumption 2 hold. Furthermore, let $(I),(II)$ , and (III) be defined as in $(14),(17)$ , and (18), respectively. Let $k^{b},\\underline{{k}},$ and k be defined as in Proposition 1. Suppose that the conditions $(i)-(iv)$ in Proposition 1 hold. Then there exists $N_{1}\\in\\mathbb{N}$ , which will be specified in the proof, such that for all $n>N_{1}$ and x satisfying $B(x,R_{s,(k^{b})}^{b}(x))\\subset [0,1]^{d}$ for all $b \\in [ B ]$ , the following statements hold with probability $\\mathrm{P}^{Bs}$ at least $1-2/n^{2}$\n\n(I) $\\lesssim (\\overline{k}/s)^{-1/d}$;\n\n(II) $\\lesssim (\\overline{k}/s)^{1/d}((\\log n)/(\\overline{k}B))^{1/2}$;\n\n(III) $\\lesssim (\\log n)^{1+1/d}/(s^{1/d}\\overline{k}) + (\\overline{k}/s)^{2/d}$.\n\nThe following Proposition ensures that the solution to the surrogate risk minimization satisfies the conditions in Proposition 1 with high probability, thereby addressing Problem (i) and validating the efectiveness of our algorithm.\n\nProposition 5 Let Assumption 2 hold. Let $\\{D_{s}^{b}\\}_{b=1}^{B}$ be B disjoint subsets of size s randomly drawn from the data set $D_{n}$ . Moreover, let $w^{b,*}$ be defined as in (7), and $k^{b,*}: =k(w^{b,*}): =$ sup $\\{i\\in [n]:w_{i}^{b,*}\\neq 0\\}$ . If we choose s and B as in (13) in Theorem 2, then there exists $N_{2}\\in\\mathbb{N}$ , which will be specified in the proof, such that for all $n>N_{2}$ , the following two statements hold with probability $\\mathrm{P}^{Bs}$ at least $1-1/n^{2}$\n\n1. The conditions $(i)-(iv)$ in Proposition 1 hold for $w^{b,*}$ and $k^{b,*}$ \n2. Furthermore, we have $k^{b,*}\\asymp(n/\\log n)^{1/(d+2)}for\\ b\\in [B]$\n\nThe following lemma, which will be used several times in the sequel, provides the uniform bound on the distance between any point and its k-th nearest neighbor with a high probability when the distribution has bounded support.\n\nLemma 12 Let Assumption 2 hold. Furthermore, let $\\{D_{s}^{b}\\}_{b=1}^{B}$ be B disjoint subsets of size s randomly drawn from the data set $D_{n}$ , where $D_{s}^{b}=\\{X_{1}^{b},\\ldots,\\bar{X}_{s}^{b}\\}$ and $R_{s,(i)}^{b}(x)$ denotes the i-distance of x in the subset $D_{s}^{b}$ for $i \\in [ s ]$ . Additionally, let the sequence $c_{n}: =\\lceil 48(2d+$ 9) log $n+48\\log 2+1447$ . Suppose that $s\\geq c_{1}^{\\prime}: =\\operatorname*{max}\\{4e,d+2,C\\}$ , where C is the constant specified in Lemma 11. Then, there exist constants $0n_{1}$ , the following statement holds with probability $\\dot{\\mathrm{P}}^{Bs}$ at least $1-1/n^{2}.$\n\n$$\n\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b}\\big(\\mathrm{P}(B(x,R_{s,(i)}^{b}(x)))^{1/d}-\\gamma_{s,i}\\big)\\right|\\lesssim C_{n,i}^{\\prime}\\left(\\frac{i}{s}\\right)^{1/d}\\sqrt{\\frac{\\log n}{iB}}.\\tag{41}\n$$\n\nfor all $x\\in\\mathcal{X}$ . This implies\n\n$$\nR_{n}^{B}(x)=\\frac{1}{B}\\sum_{b=1}^{B}R_{s}^{w,b}(x)\\gtrsim(\\underline{{k}}/s)^{1/d}\\tag{47}\n$$\n\nUsing this bound with the choices of B and s in (61), and the inequality (72), we derive\n\n$$\n\\begin{array}{l}k^{b,*}\\leq\\frac{2}{c_{4}^{\\prime}(c_{3}^{\\prime})^{2d/(2+d)}}\\left(\\int_{1/2}^{1}(1-t^{1/d})^{2}dt\\right)^{-\\frac{d}{d+2}}\\left(\\frac{\\log s}{B}\\right)^{\\frac{d}{d+2}}s^{\\frac{2}{d+2}}\\\\ \\leq\\frac{2(c_{6}^{\\prime})^{\\frac{2}{d+2}}}{c_{4}^{\\prime}((c_{3}^{\\prime})^{2}c_{7}^{\\prime})^{\\frac{d}{d+2}}}\\left(\\int_{1/2}^{1}(1-t^{1/d})^{2}dt\\right)^{-\\frac{d}{d+2}}\\left(\\frac{n}{\\log n}\\right)^{\\frac{1}{d+2}}=\\frac{c_{8}^{\\prime}}{2}\\left(\\frac{n}{\\log n}\\right)^{\\frac{1}{d+2}}.\\tag{73}\\\\ \\end{array}\n$$\n\nIn this section, we present the proof related to BRDDE. The weights $w^{b,*}$ are derived using SRM based on the data for BRDDE, whereas Proposition 4 assumes that the weights are fixed and independent of the data. As a result, Proposition 4 cannot be directly applied to establish the convergence rate of our density estimator. However, Proposition 5 ensures that the weights returned by SRM satisfy the required conditions in Proposition 1 with high probability. Therefore, by making slight modifications to the proof of Proposition 4, we can establish the error decomposition of BRDDE as stated in Proposition 21.\n\nBefore proceeding, we introduce additional notation. Regarding the expression of $f^{B,*}(x)$ in (11), we define the error term $(I^{\\prime}),(II^{\\prime})$ , and $\\left(III^{\\prime}\\right)$ as follows, corresponding to $(I),(II)$ , and (III) in (14), (17), and (18):\n\n$$\n(I^{\\prime}):=\\frac{1}{V_{d}R_{n}^{B,*}(x)^{d}}\\sum_{j=0}^{d-1}\\left(\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}\\right)^{j}\\left(V_{d}^{1/d}f(x)^{1/d}R_{n}^{B,*}(x)\\right)^{d-1-j}.\\tag{79}\n$$\n\n$$\n(II^{\\prime}):=\\sum_{i=1}^{s}\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b,*}\\big(\\gamma_{s,i}-\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x)))^{1/d}\\big)\\right|,\\tag{80}\n$$\n\n$$\n(III^{\\prime}):=\\sum_{i=1}^{s}\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b,*}\\big(\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x)))^{1/d}-V_{d}^{1/d}f(x)^{1/d}\\widetilde{R}_{s,(i)}^{b}(x)\\big)\\right|.\\tag{81}\n$$\n\nFollowing a similar derivation as in (19), we obtain the error decomposition:\n\n$$\n\\left|f_{n}^{B,*}(x)-f(x)\\right|\\leq\\left(I^{\\prime}\\right)\\cdot\\left(II^{\\prime}\\right)+\\left(I^{\\prime}\\right)\\cdot\\left(III^{\\prime}\\right).\\tag{82}\n$$\n\nProposition 21 Let Assumption 2 hold. Let $(I^{\\prime}),(II^{\\prime})$ , and $\\left(III^{\\prime}\\right)$ be defined in (79), (80), and (81), respectively. Then, there exists an integer $N_{4}\\in\\mathbb{N}$ such that for all $n>N_{4}$ and any x satisfying $\\bar{B}(x,\\widetilde{R}_{s,(k^{b,*})}^{b}(x))\\subset [0,1]^{d}$ for all $b \\in [ B ]$ , with probability $\\mathrm{P}^{n}$ at least $1-2/n^{2}$ $(I^{\\prime}),\\ (II^{\\prime})$ , and $(II\\dot{I}^{\\prime})$ have upper bounds of the same asymptotic order as (I), (II), and (III) in Proposition $\\it 4$\n\nProof [of Proposition 21] Let $\\Omega_{5}$ denote the event defined by the statements in Proposition $5 .$ Applying Lemma 12 to the subset $\\{\\widetilde{D}_{s}^{b}\\}_{b=1}^{B}$ , we obtain that, with probability at least $1-1/n^{2}$ the following holds: $c_{2}^{\\prime}(i/s)^{1/d}\\leq\\widetilde{R}_{s,(i)}^{b}(x)\\leq c_{3}^{\\prime}(i/s)^{1/d}$ and $\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x)))\\asymp i/s$ for all $x\\in\\mathcal{X},b\\in [B]$ , and $c_{n}\\leq i\\leq s.$ . We define this event as $\\Omega_{6}$\n\nSince the datasets $D_{s}^{b}$ and $\\widetilde{D}_{s}^{b}$ are independent for $b \\in [ B ]$ and $w^{b,*}$ is the solution to the SRM in (7), we have\n\n$$\n\\begin{array}{l}\\mathbb{E}\\big [w_{i}^{b,*}((\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x))))^{1/d}-\\gamma_{s,i})\\big|\\Omega_{5}\\big]\\\\ =\\mathbb{E}\\big [w_{i}^{b,*}\\big|\\Omega_{5}\\big]\\cdot\\mathbb{E}\\big [(\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x))))^{1/d}-\\gamma_{s,i}\\big]=0\\\\ \\end{array}\n$$\n\nfor a fixed $x\\in\\mathcal{X}$ , where the last equality follows from (20) and the expectation is taken with respect to the empirical measure $\\widetilde{D}_{s}^{b}\\mathrm{.}$ , conditional on the event $\\Omega_{5}$ . Following the proof of Lemma 17 and conditioning on the event $\\Omega_{5}$ , for all $n>n_{1}=2d^{d}+1$ , we have\n\n$$\n\\mathrm{P}\\left(\\sup_{x\\in\\mathcal{X},i\\in [\\bar{k}]}\\left|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b,*}\\big(\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x)))^{1/d}-\\gamma_{s,i}\\big)\\right|\\lesssim C_{n,i}\\left(\\frac{i}{s}\\right)^{1/d}\\sqrt{\\frac{\\log n}{iB}}\\Bigg|\\Omega_{5}\\right)\\geq 1-\\frac{1}{n^{2}}.\n$$\n\nSince Proposition 5 ensures that $\\mathrm{P}(\\Omega_{5})\\geq 1-1/n^{2}$ , applying the conditional probability formula yields\n\n$$\n\\mathrm{P}^{n}\\Bigg(\\sup_{x\\in\\mathcal{X},i\\in [\\overline{{k}}]}\\bigg|\\frac{1}{B}\\sum_{b=1}^{B}w_{i}^{b,*}\\big(\\mathrm{P}(B(x,\\widetilde{R}_{s,(i)}^{b}(x)))^{1/d}-\\gamma_{s,i}\\big)\\bigg|\\lesssim C_{n,i}\\bigg(\\frac{i}{s}\\bigg)^{1/d}\\sqrt{\\frac{\\log n}{iB}}\\Bigg)\\geq 1-\\frac{2}{n^{2}}\n$$\n\nfor all $n>n_{1}\\lor N_{2}$ , where $N_{2}$ is the integer specified in Proposition 5. Denote this event as $\\Omega_{7}$ . By the union bound, the event $\\Omega_{5}\\cap\\Omega_{6}\\cap\\Omega_{7}$ holds with probability $\\mathrm{P}^{n}$ at least $1-4/n^{2}$ for all $n>n_{1}\\lor N_{2}$ . Since the events $\\Omega_{6}$ and $\\Omega_{7}$ correspond to the events $\\Omega_{1}$ and $\\Omega_{2}$ in the proof of Proposition 4, respectively, and given that conditions $(i)-(iv)$ in Proposition 1 hold for $w^{b,*}$ and $k^{b,*}$ on $\\Omega_{5}$ , there exists $N_{4}\\in\\mathbb{N}$ such that the upper bound for $(I^{\\prime}),(II^{\\prime})$ and $\\left(III^{\\prime}\\right)$ follow for all $n>N_{4}$ by similar arguments as in the proof of Proposition 4. (Note that $N_{4}$ may difer $N_{1}$ in that proposition.) The details are omitted. 7", "theorems": [{"local_id": "T1", "statement": "Theorem 2 Let Assumption 2 hold. Suppose that the dataset $D_{n}$ is randomly partitioned into B disjoint pairs of subsets, denoted as $\\{(D_{s}^{b},\\widetilde{D}_{s}^{b})\\}_{b=1}^{B}$ , such that $D_{s}^{b}\\cap\\widetilde{D}_{s}^{b}=\\varnothing$ for each b. Let f be the true density function, and let $f_{n}^{B,*}$ be the BRDDE defined in (11). If we choose\n\n$$\ns\\asymp(n/\\log n)^{(d+1)/(d+2)}\\quad a n d\\quad B\\asymp n^{1/(d+2)}(\\log n)^{(d+1)/(d+2)},\\tag{13}\n$$\n\nthen there exists $N_{2}^{*}\\in\\mathbb{N}$ , which will be specified in the proof, such that for all $n>N_{2}^{*}$ , with probability $\\mathrm{P}^{n}$ at least $1-4/n^{2}$ , we have\n\n$$\n\\int_{\\mathcal{X}}|f_{n}^{B,*}(x)-f(x)|d x\\lesssim n^{-1/(2+d)}(\\log n)^{(d+3)/(d+2)}.\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof [of Theorem 2] Let $\\Omega_{5},\\Omega_{6}$ , and $\\Omega_{7}$ be the events defined in the proof of Proposition 21. Following the arguments therein, the event $\\Omega_{5}\\cap\\Omega_{6}\\cap\\Omega_{7}$ holds with probability $\\mathrm{P}^{n}$ at least $1-4/n^{2}$ for all $n\\geq N_{4}$ . For the remainder of the proof, we assume that the event $\\Omega_{5}\\cap\\Omega_{6}\\cap\\Omega_{7}$ holds and that $n>N_{2}^{*}: =N_{4}$\n\nFrom (73) in the proof of Proposition 5, we have $\\overline{{k}}\\le c_{8}^{\\prime}(n/\\log n)^{1/(d+2)}/2$ . Define\n\n$$\n\\Delta_{n}:=[c_{3}^{\\prime}(c_{8}^{\\prime}(n/\\log n)^{1/(d+2)}/(2 s))^{1/d},1-c_{3}^{\\prime}(c_{8}^{\\prime}(n/\\log n)^{1/(d+2)}/(2 s))^{1/d}]^{d}.\n$$"}, {"n": 2, "claim": "On the event $\\Omega_{6}$ , for all $x\\in\\Delta_{n}$ and any $b \\in [ B ]$ , we have\n\n$$\n\\widetilde{R}_{s,(k^{b,*})}^{b}(x)\\leq c_{3}^{\\prime}(k^{b,*}/s)^{1/d}\\leq c_{3}^{\\prime}(c_{8}^{\\prime}(n/\\log n)^{1/(d+2)}/(2 s))^{1/d}.\n$$"}, {"n": 3, "claim": "Thus, for any $y\\in B\\big(x,\\widetilde{R}_{s,(k^{b,*})}^{b}(x)\\big)$ , we have\n\n$$\nd(y,\\mathbb{R}^{d}\\setminus [0,1]^{d})\\geq c_{3}^{\\prime}(c_{8}^{\\prime}(n/\\log n)^{1/(d+2)}/(2 s))^{1/d}-\\widetilde{R}_{s,(k^{b,*})}^{b}(x)\\geq 0.\n$$"}, {"n": 4, "claim": "This implies that $B\\left(x,\\widetilde{R}_{s,(k^{b,*})}^{b}(x)\\right)\\subset [0,1]^{d}$ for all $x\\in\\Delta_{n}$ and $b \\in [ B ]$ . Therefore, from Proposition 21 and inequality (82), we obtain\n\n$$\n\\left|f_{n}^{B,*}(x)-f(x)\\right|\\lesssim((\\log n)/\\overline{{k}})^{1+1/d}+\\big((\\log n)/(\\overline{{k}}B)\\big)^{1/2}+(\\overline{{k}}/s)^{1/d},\\quad x\\in\\Delta_{n}.\n$$"}, {"n": 5, "claim": "Using $k^{b,*}\\asymp(n/\\log n)^{1/(d+2)}$ from Proposition 5 and substituting the choices of B and $s,$ we obtain\n\n$$\n\\big|f_{n}^{B,*}(x)-f(x)\\big|\\lesssim n^{-1/(d+2)}(\\log n)^{(d+3)/(d+2)},\\qquad x\\in\\Delta_{n}\n$$"}, {"n": 6, "claim": "Integrating over $\\Delta_{n}$ , we get\n\n$$\n\\int_{\\Delta_{n}}|f_{n}^{B,*}(x)-f(x)|d x\\lesssim n^{-1/(d+2)}(\\log n)^{(d+3)/(d+2)}.\\tag{83}\n$$"}, {"n": 7, "claim": "On the other hand, on the event $\\Omega_{5}$ , condition (iii) in Proposition 1 holds for $w^{b,*}$ and $k^{b,*}$ , which implies that $\\textstyle\\sum_{i=1}^{s}w_{i}^{b,*}i^{1/d}\\lesssim(k^{b,*})^{1/d}$ for all $b \\in [ B ]$ . Since $\\gamma_{s,i}<((i+1/d)/(s+$ $1/d))^{1/d}\\leq(2 i\\bar{/}s)^{1/d}$ by (38), we have\n\n$$\n\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}\\lesssim\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}(i/s)^{1/d}\\lesssim\\frac{1}{B}\\sum_{b=1}^{B}(k^{b,*}/s)^{1/d}\\lesssim(\\overline{{k}}/s)^{1/d}.\n$$"}, {"n": 8, "claim": "Following similar arguments as in (47) from Proposition 4, we obtain $R_{n}^{B,*}(x)\\gtrsim(\\underline{{k}}/s)^{1/d}$ for all $x\\in\\mathcal{X}$ on the event $\\Omega_{5}\\cap\\Omega_{6}$ . This implies\n\n$$\nf_{n}^{B,*}(x)=\\frac{1}{V_{d}R_{n}^{B,*}(x)^{d}}\\bigg(\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}\\bigg)^{d}\\lesssim\\overline{{k}}/\\underline{{k}}\\lesssim 1,\\qquad x\\in\\mathcal{X}.\n$$"}, {"n": 9, "claim": "Since $\\|f\\|_{\\infty}\\leq\\overline{{c}}$ from Assumption 2, we conclude that $\\|f_{n}^{B,*}-f\\|_{\\infty}$ is bounded by a constant. Therefore, we have\n\n$$\n\\begin{array}{l}\\int_{\\mathcal{X}\\backslash\\Delta_{n}}|f_{n}^{B,*}(x)-f(x)|d x\\lesssim\\mu(\\mathcal{X}\\setminus\\Delta_{n})\\lesssim((n/\\log n)^{1/(d+2)}/s)^{1/d}\\\\ \\lesssim n^{-1/(d+2)}(\\log n)^{(d+3)/(d+2)}.\\\\ \\end{array}\n$$"}, {"n": 10, "claim": "Finally, combining this with (83), we have\n\n$$\n\\int_{\\mathcal{X}}\\left|f_{n}^{B,*}(x)-f(x)\\right|d x=\\left(\\int_{\\Delta_{n}}+\\int_{\\mathcal{X}\\backslash\\Delta_{n}}\\right)\\left|f_{n}^{B,*}(x)-f(x)\\right|d x\\lesssim n^{-1/(d+2)}(\\log n)^{(d+3)/(d+2)},\n$$\n\nwhich completes the proof."}]}}, {"local_id": "T2", "statement": "Theorem 3 Let Assumptions 1 and 2 hold. Suppose the conditions in Theorem 2 hold, including the dataset partitioning and choice of parameters s and B. Let $R_{n}^{B,*}$ be the bagged regularized k-distances returned by Algorithm 2. Then there exists $N_{2}^{*}\\in\\mathbb{N}$ , as specified in Theorem ${\\mathcal{Q}},$ such that for all $n>N_{2}^{*}$ , with probability $\\mathrm{P}^{n}$ at least $1-4/n^{2}$ , we have\n\n$$\n\\mathrm{Reg}^{\\mathrm{AUC}}(R_{n}^{B,*})\\lesssim n^{-1/(2+d)}(\\log n)^{(d+3)/(d+2)}.\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof [of Theorem 3] Let $\\Omega_{5},\\Omega_{6}$ , and $\\Omega_{7}$ be the events defined in the proof of Proposition 21. Following the arguments therein, the event $\\Omega_{5}\\cap\\Omega_{6}\\cap\\Omega_{7}$ holds with probability $\\mathrm{P}^{n}$ at least $1-4/n^{2}$ for all $n\\geq N_{4}$ . For the subsequent arguments, we assume that $\\Omega_{5}\\cap\\Omega_{6}\\cap\\Omega_{7}$ holds and that $n>N_{2}^{*}=N_{4}$\n\nLet $\\left\\{c_{n}\\right\\}$ denote the sequence from Lemma 12. On the event $\\Omega_{6},$ , for all $x\\in\\mathcal{X}$ , we have\n\n$$\n\\begin{array}{l}R_{s}^{b,*}(x)=\\sum_{i=1}^{s}w_{i}^{b,*}\\widetilde{R}_{s,(i)}^{b}(x)=\\sum_{i=1}^{c_{n}}w_{i}^{b,*}\\widetilde{R}_{s,(i)}^{b}(x)+\\sum_{i=c_{n}+1}^{s}w_{i}^{b,*}\\widetilde{R}_{s,(i)}^{b}(x)\\\\ \\leq\\widetilde{R}_{s,(c_{n})}^{b,*}(x)+\\sum_{i=c_{n}+1}^{s}w_{i}^{b,*}\\widetilde{R}_{s,(i)}^{b}(x)\\lesssim(c_{n}/s)^{1/d}+\\sum_{i=1}^{s}w_{i}^{b,*}(i/s)^{1/d},\\\\ \\end{array}\n$$"}, {"n": 2, "claim": "By Proposition 5, on the event $\\Omega_{5}$ , we have $\\textstyle\\sum_{i=1}^{s}w_{i}^{b,*}i^{1/d}\\lesssim\\overline{{k}}^{1/d}$ and $\\underline{{k}}\\gtrsim(\\log n)^{2}$ . This implies that $R_{s}^{b,*}(x)\\lesssim(c_{n}/s)^{1/d}+(\\overline{{k}}/s)^{1/d}\\lesssim(\\overline{{k}}/s)^{1/d}$ . Averaging over b in $[ B ]$ , we obtain\n\n$$\nR_{n}^{B,*}(x)=\\frac{1}{B}\\sum_{b=1}^{B}R_{s}^{b,*}(x)\\lesssim(\\bar{k}/s)^{1/d}\\tag{85}\n$$"}, {"n": 3, "claim": "On the other hand, using (38), we have\n\n$$\n\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}>\\sum_{i=1}^{s}w_{i}^{b,*}\\bigg(\\frac{i+1/d-1}{s+1+1/d}\\bigg)^{1/d}\\gtrsim\\sum_{i=1}^{s}w_{i}^{b,*}(i/s)^{1/d},\n$$\n\nwhere we use the inequality $(i+1/d-1)/(s+1+1/d)\\geq(i-1)/(s+2)\\geq(i-1)/(2s)$ Applying Proposition 5 again, we get $\\textstyle\\sum_{i=1}^{s}w_{i}^{b,*}i^{1/d}\\gtrsim\\overline{{k}}^{1/d}$ . Averaging over b in [B], we have\n\n$$\n\\frac{1}{B}\\sum_{b=1}^{B}\\sum_{i=1}^{s}w_{i}^{b,*}\\gamma_{s,i}\\gtrsim(\\overline{{k}}/s)^{1/d}.\n$$"}, {"n": 4, "claim": "Combining this with (85), we conclude that $f_{n}^{B,*}(x)$ is lower bounded by a constant for $x\\in\\mathcal{X}$ . Consequently, by Theorem 2 and Proposition 6, we obtain the desired assertion."}]}}, {"local_id": "T3", "statement": "Proposition 6 Let Assumptions 1 and 2 hold, and let f be the true density function. Let $R_{n}^{B,*}$ be the bagged regularized k-distances as in (10) and $f_{n}^{B,*}(x)$ be the BRDDE as in (11). Suppose that there exists a constant $c > 0$ such that $\\|f_{n}^{B,*}\\|_{\\infty}\\overset{\\cdot}{\\geq}c$ . Then, we have\n\n$$\n\\mathrm{Reg}^{\\mathrm{AUC}}(R_{n}^{B,*})\\lesssim\\int_{\\mathcal{X}}\\big|f_{n}^{B,*}(x)-f(x)\\big|d x.\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof [of Proposition 6] Under the Huber contamination model in Assumption 1, let $\\eta(x)$ be defined as in (12), and define $\\widehat{\\eta}(x)=\\Pi\\cdot f_{n}^{B,*}(x)^{-1}$ . By the expression of $f_{n}^{^{\\prime}{},*}(x)$ in (11), it follows that ${\\bf 1}\\{R_{n}^{B,*}(X)-R_{n}^{B,*}(X^{\\prime})>0\\}={\\bf 1}\\{\\widehat{\\eta}(X)-\\widehat{\\eta}(X^{\\prime})>0\\}$ and $\\mathbf{1}\\{R_{n}^{B,*}(X)=$ ${\\cal{R}}_{n}^{B,*}(X^{\\prime})\\}=\\mathbf{1}\\{{\\widehat\\eta}(X){=}{\\widehat\\eta}(X^{\\prime})\\}$ . Consequently, we obtain\n\n$$\n\\begin{array}{l}\\mathrm{AUC}(R_{n}^{B,*})\\\\ =\\mathbb{E}\\left[\\mathbf{1}\\left\\{\\left(Y-Y^{\\prime}\\right)\\left(R_{n}^{B,*}(X)-R_{n}^{B,*}\\left(X^{\\prime}\\right)>0\\right)\\right\\}+\\mathbf{1}\\left\\{R_{n}^{B,*}(X)=R_{n}^{B,*}\\left(X^{\\prime}\\right)\\right\\}/2\\mid Y\\neq Y^{\\prime}\\right]\\\\ =\\mathbb{E}\\big [\\mathbf{1}\\{(Y-Y^{\\prime})(\\widehat{\\eta}(X)-\\widehat{\\eta}(X^{\\prime})>0)\\}+\\mathbf{1}\\{\\widehat{\\eta}(X)=\\widehat{\\eta}(X^{\\prime})\\}/2|Y\\neq Y^{\\prime}\\big]=\\mathrm{AUC}(\\widehat{\\eta}).\\\\ \\end{array}\n$$"}, {"n": 2, "claim": "Therefore, we have $\\mathrm{Reg}^{\\mathrm{AUC}}(R_{n}^{B,*})=\\mathrm{Reg}^{\\mathrm{AUC}}(\\widehat\\eta)$ . Applying Agarwal (2013, Corollary 11), we obtain\n\n$$\n\\mathrm{Reg}^{\\mathrm{AUC}}(R_{n}^{B,*})=\\mathrm{Reg}^{\\mathrm{AUC}}(\\widehat{\\eta})\\leq\\frac{1}{\\Pi(1-\\Pi)}\\int_{\\mathcal{X}}|\\widehat{\\eta}(x)-\\eta(x)|d\\mathrm{P}_{X}(x).\\tag{84}\n$$"}, {"n": 3, "claim": "From Assumption 2, we have $\\|f\\|_{\\infty}\\geq\\underline{{c}},$ and given that $\\|f_{n}^{B,*}\\|_{\\infty}\\geq c$ , it follows that\n\n$$\n|\\widehat{\\eta}(x)-\\eta(x)| =\\frac{\\Pi\\big|f_{n}^{B,*}(x)-f(x)\\big|}{f_{n}^{B,*}(x)f(x)}\\lesssim\\big|f_{n}^{B,*}(x)-f(x)\\big|.\n$$"}, {"n": 4, "claim": "Combining this with (84) and the condition $\\|f\\|_{\\infty}\\leq\\overline{{c}}$ from Assumption 2, we establish the desired result. ■"}]}}], "target_local_id": null, "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "jmlr-2025-24-1178", "context": "In this work, we tackle feature learning and function estimation jointly through the paradigm of empirical risk minimisation. We consider a classical supervised learning problem. We have i.i.d. samples $(x_{i},y_{i})_{i\\in [n]}$ from a random variable $(X,Y)\\in\\mathcal{X}\\times\\mathcal{Y}\\subset\\mathbb{R}^{d}\\times\\mathbb{R}$ Our goal is to minimise the expected risk, which is defined as $\\mathcal{R}(f): =\\mathbb{E}_{X,Y}[\\ell(Y,f(X))]$ over some class of functions ${\\mathcal{F}}_{:}$ where \\` is a loss function mapping from $\\mathbb{R}\\times\\mathbb{R}$ to R. This can be achieved through the framework of regularised empirical risk minimisation, where the empirical risk is defined as $\\begin{array}{ r }{\\widehat{\\mathcal{R}}(f): =\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},f(x_{i}))}\\end{array}$ . Our interest in regularised empirical risk minimisation stems from its flexibility, allowing it to be applied to a wide range of problems as long as the objective can be defined as the optimisation of an expected loss. Our primary objective is to achieve the lowest possible risk, which we study in theory and in practice, while we explore the recovery of underlying features in numerical experiments. Our method draws inspiration from several lines of work, namely positive definite kernels and neural networks with their mean field limit, which we briefly review, together with the main limitations we aim to alleviate.\n\nMean-field limit. To apply a similar framework to our future estimator, we introduce the mean-field limit of an over-parameterised one-hidden layer neural network (Nitanda and Suzuki, 2017; Mei et al., 2019; Chizat and Bach, 2022; Sirignano and Spiliopoulos, 2020). When the number of neurons m is very large, the network can be rescaled as follows\n\n$$\nf(x)=\\frac{1}{m}\\sum_{j=1}^{m}\\eta_{j}\\sigma(w_{j}^{\\top}x+b_{j}),\\text{which approximates}\\int\\eta\\sigma(w^{\\top}x+b)\\mathrm{d}\\mu(\\eta,w,b),\\tag{1}\n$$\n\nwhere $\\mu$ is a probability distribution, and we can take the weights and constant terms $(w,b)$ to be constrained when the activation is 1-homogeneous,1 such as the ReLU or step func tion. This approach is valuable because, as noted by Chizat and Bach (2022), under certain conditions (convexity of the loss and penalty functions, homogeneity of the activation function), the regularised empirical risk problem optimised via gradient descent in the infinitely small step-size limit converges to the minimiser of the corresponding problem with infinitely many particles. This allows us to use a finite number of particles m in practice while still leveraging the theoretical benefits derived from the continuous framework.\n\nWe use the following notations. For a positive integer m, we define $[m]: =\\{1,\\dots,m\\}$ For a d-dimensional vector α and $i\\in [d],\\alpha_{i}$ denotes its i-th element. For a matrix A, tr A denotes its trace when A is square, $A^{-1}$ its inverse when well defined, while $A_{i,j}$ the element in its i-th row and j-th column, and $A^{\\top}$ its transpose. $I_{d}$ is the $d \\times d$ identity matrix. We use $S^{d-1}$ to denote the unit sphere in $\\mathbb{R}^{d}$ for $\\| \\cdot \\|$ a generic norm and $\\| \\cdot \\| .$ ∗ its dual norm. The $\\ell_{2},\\ell_{1}$ , and $\\ell_{\\infty}$ norms are denoted as $\\|\\cdot\\|_{2},\\|\\cdot\\|_{1}$ , and $\\|\\cdot\\|_{\\infty}$ respectively. We use $O(\\cdot)$ to denote the asymptotic behaviour of functions, indicating the order of growth. The set of probability measures on a given space S is denoted by ${\\mathcal{P}}(S)$ . A normal random variable is denoted as following the law N(mean, variance). 1 is the indicator function. For two spaces $S_{1},S_{2},S_{1}^{S_{2}}$ is the set of functions from $S_{2}$ to $S_{1}$\n\nBuilding on the limitations of current methods discussed in the introduction, we propose a novel architecture that integrates neural networks with kernel methods. This approach can be interpreted in two ways: as learning with a kernel that is itself learned during training, or as employing a one-hidden layer neural network where the weights from the input layer to the hidden layer are learned through gradient descent, while the weights and non-linearity from the hidden layer to the output are optimised explicitly. In this section, we introduce the custom function space we propose, revisit key properties of reproducing kernel Hilbert spaces (RKHS), and explore the connections between BKerNN model, kernel methods, and neural networks. Additionally, we present the various regularisation penalties we consider throughout our analysis.\n\nWe begin by considering the continuous setting, which mirrors the mean-field limit of overparameterised one-hidden layer neural networks discussed in Section 1.\n\nDefinition 1 (Infinite-Width Function Space) Let\n\n$$\n\\mathcal{F}_{\\infty}:=\\left\\{f\\mid f(\\cdot)=c+\\int_{\\mathcal{H}\\times\\mathcal{S}^{d-1}}g(w^{\\top}\\cdot)\\mathrm{d}\\mu(g,w),\\quad\\Omega_{0}(f)<\\infty\\right\\},\n$$\n\nwhere $c$ is a constant in $\\mathbb{R},S^{d-1}$ is the unit sphere for some norm $\\| \\cdot \\|$ on $\\mathbb{R}^{d}$ (typically either $\\ell_{2}$ or $\\ell_{1}\\ j$ , H is a space of functions, and µ is a probability measure on $\\mathcal{H}\\times S^{d-1}$ . We define H as $\\{g:\\mathbb{R}\\to\\mathbb{R}\\mid g(0)=0$ , g has a weak derivative $g^{\\prime}$ $\\textstyle\\int_{\\mathbb{R}}(g^{\\prime})^{2}<\\infty\\}$ . H is a Hilbert space and a Sobolev space, with the inner product defined as $\\begin{array}{ r }{\\langle\\tilde{g},\\bar{g}\\rangle_{\\mathcal{H}}=\\int\\tilde{g}^{\\prime}g^{\\prime}}\\end{array}$ . We define $\\Omega_{0}$ as the infimum over all measures which can be used to define f, i.e.\n\n$$\n\\Omega_{0}(f):=\\inf_{\\mu\\in\\mathcal{P}(\\mathcal{H}\\times\\mathcal{S}^{d-1})}\\int_{\\mathcal{H}\\times\\mathcal{S}^{d-1}}\\|g\\|_{\\mathcal{H}}\\mathrm{d}\\mu(g,w),\\tag{2}\n$$\n\nwith the infimum over $\\mu$ such that $\\begin{array}{ r }{f=c+\\int_{\\mathcal{H}\\times S^{d-1}}g(w^{\\top}\\cdot)\\mathrm{d}\\mu(g,w)}\\end{array}$ , where $\\begin{array}{ r }{\\|g\\|_{\\mathcal{H}}^{2}: =\\int_{-\\infty}^{+\\infty}(g^{\\prime})^{2}}\\end{array}$\n\nNote that c corresponds to the value of the function f evaluated at the null vector and is therefore unique, which is not necessarily the case of the measure $\\mu .\\_F_{\\infty}$ is well-defined using a “variation norm” on couples $(g,w)$ integrated w.r.t a Borel measure on $\\mathcal{H}\\times S^{d-1}$ This is the variation norm associated to the map $(g,w)\\in\\mathcal{H}\\times{\\mathcal{S}}^{d-1}\\to g(w^{\\top}.)$ (which is a function from $\\mathbb{R}^{d}$ to $\\mathbb{R},$ , see Kurkova and Sanguineti (2001) and Bach (2024, Section 9.3.2).\n\nThe function space $\\mathcal{F}_{\\infty}$ is inspired by infinite-width single hidden layer neural networks: with the addition of the intercept c, each function in this space can be seen as the integral of a linear part w and a non-linearity g over some probability distribution, as in Equation (1) where the non-linearity is $\\eta\\sigma(\\cdot)$ . Thus here the activation functions are learnt.\n\nThe approximation of $\\mathcal{F}_{\\infty}$ with m particles can then be obtained as follows.\n\nDefinition 2 (Finite-Width Function Space) Let\n\n$$\n\\mathcal{F}_{m}:=\\left\\{f\\mid f(\\cdot)=c+\\frac{1}{m}\\sum_{j=1}^{m}g_{j}(w_{j}^{\\top}\\cdot),w_{j}\\in\\mathcal{S}^{d-1},g_{j}\\in\\mathcal{H},c\\in\\mathbb{R}\\right\\}.\n$$\n\nRemark that $\\forall m\\in\\mathbb{N}^{*},\\mathcal{F}_{m}\\subset\\mathcal{F}_{\\infty}.$ , by taking the discrete probability measure uniformly supported by the particles $w_{1},\\ldots,w_{m}$\n\nWe now consider regularised empirical risk minimisation starting with the basic penalty $\\Omega_{0}$ This penalty enforces the regularity of the function and, because we use penalisation with non-squared norms, limits the cardinality of the support of $\\mu$ on the space H. While this penalty is not specifically aimed at feature learning, by limiting the number of non-zero particles, it indirectly promotes feature learning to some extent. This serves as a starting point, and we introduce more targeted penalties in Section 2.5 with a stronger feature learning behaviour. For $f\\in\\mathcal{F}_{m}$ written as in Definition 2, the penalty simplifies to $\\begin{array}{ r }{\\Omega_{0}(f)=\\frac{1}{m}\\sum_{j=1}^{m}\\|g_{j}\\|_{\\mathcal{H}}}\\end{array}$ . The learning objective is thus defined as\n\n$$\n\\hat{f}_{\\lambda}:=\\underset{f\\in\\mathcal{F}}{\\arg\\min}\\widehat{\\mathcal{R}}(f)+\\lambda\\Omega(f),\\tag{3}\n$$\n\nwhere $\\lambda > 0$ is a regularisation parameter and Ω is currently $\\Omega_{0}$ from Equation (2). The function space $\\mathcal{F}$ is either $\\mathcal{F}_{\\infty}$ or $\\mathcal{F}_{m}$ . For statistical analysis in Section 4, we consider $\\mathcal{F}_{\\infty}$ while in practice, we compute the estimator using $\\mathcal{F}_{m}$ as discussed in Section 3. The rationale for using $\\mathcal{F}_{m}$ and expecting the statistical properties of $\\mathcal{F}_{\\infty}$ is elaborated in Section 3.2.\n\nIn the continuous setting, Equation (3) corresponds to\n\n$$\n\\min_{c\\in\\mathbb{R},\\mu\\in\\mathcal{P}(\\mathcal{H}\\times\\mathcal{S}^{d-1})}\\frac{1}{n}\\sum_{i=1}^{n}\\ell\\left(y_{i},c+\\int_{\\mathcal{H}\\times\\mathcal{S}^{d-1}}g(w^{\\top}x_{i})\\mathrm{d}\\mu(g,w)\\right)+\\lambda\\int_{\\mathcal{H}\\times\\mathcal{S}^{d-1}}\\|g\\|_{\\mathcal{H}}\\mathrm{d}\\mu(g,w),\\tag{4}\n$$\n\nwhile in the m-particles setting, Equation (3) becomes\n\n$$\n\\min_{c\\in\\mathbb{R},w_{1},\\dots,w_{m}\\in\\mathcal{S}^{d-1},g_{1},\\dots,g_{m}\\in\\mathcal{H}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell\\left(y_{i},c+\\frac{1}{m}\\sum_{j=1}^{m}g_{j}\\left(w_{j}^{\\top}x_{i}\\right)\\right)+\\lambda\\frac{1}{m}\\sum_{j=1}^{m}\\|g_{j}\\|_{\\mathcal{H}},\\tag{5}\n$$\n\nwhere we clearly see a sparsity-inducing “grouped” penalty (Yuan and Lin, 2006).\n\nIn this subsection, we succinctly present some properties of reproducing kernel Hilbert spaces (RKHS) that are essential for our analysis. See Aronszajn (1950); Berlinet and Thomas-Agnan (2011) for an introduction to RKHS. Recall that we defined the Hilbert space H as\n\n$$\n\\mathcal{H}:=\\left\\{g:\\mathbb{R}\\to\\mathbb{R}\\mid g(0)=0,\\int_{\\mathbb{R}}(g^{\\prime})^{2}< +\\infty\\right\\},\n$$\n\nwith the inner product $\\begin{array}{ r }{\\langle\\tilde{g},g\\rangle_{\\mathcal{H}}=\\int_{\\mathbb{R}}\\tilde{g}^{\\prime}g^{\\prime}}\\end{array}$ . This space is a reproducing kernel Hilbert space with the reproducing kernel $k^{(B)}(a,b)=(|a| + |b| - |a-b|)/2=\\mathrm{min}(|a|,|b|)\\mathbb{1}_{a b>0}$ . This kernel, which can be referred to as the “Brownian” kernel, corresponds to the covariance of the Brownian motion at times a and b (Mishura and Shevchenko, 2017). To see that $k^{(B)}$ is the reproducing kernel of H, it sufices to check that we have the reproducing property, i.e. that\n\n$$\n\\forall g\\in\\mathcal{H},\\forall a\\in\\mathbb{R},g(a)=\\langle g,k_{a}^{(B)}\\rangle_{\\mathcal{H}},\n$$\n\nwhere $k_{a}^{(B)}:b\\in\\mathbb{R}\\to k^{(B)}(a,b)\\in\\mathbb{R}^{2}$ As a reproducing kernel, it is positive definite, meaning that for any $n\\in\\mathbb{N},\\alpha\\in\\mathbb{R}^{n}$ , and $a\\in\\mathbb{R}^{n}$ , we have $\\begin{array}{ r }{\\sum_{i,j=1}^{n}\\alpha_{i}k^{(B)}(a_{i},a_{j})\\alpha_{j}\\geq 0}\\end{array}$\n\nAdditionally, we observe that $\\lVert\\boldsymbol{k}_{a}^{(B)}\\rVert_{\\mathcal{H}}^{2}=\\langle\\boldsymbol{k}_{a}^{(B)},\\boldsymbol{k}_{a}^{(B)}\\rangle=k^{(B)}(a,a)= |a|$ and we can obtain $\\|\\boldsymbol{k}_{a}^{(B)}-\\boldsymbol{k}_{b}^{(B)}\\|_{\\mathcal{H}}^{2}= |a-b|$ in a similar manner. It is also noteworthy that by definition, the functions in H are necessarily continuous, in fact even $1 / 2 \\cdot$ -Hölder continuous as we see in Lemma 3.\n\nWe first transform the optimisation problem before considering our setup from two diferent perspectives: one through kernel learning and the other through neural networks. To transform the optimisation problem, we use the representer theorem, a well-known result in RKHS theory that allows us to replace the optimisation over functions in the RKHS with optimisation over a finite weighted sum of the kernel at the data points.\n\nIn summary, we aim to perform multiple kernel learning with a kernel parametrized by a probability measure (Lemma 6), and approximate it using particles (Lemma 5).\n\nLemma 5 shows that we are solving a regularised kernel ridge regression problem where the kernel $\\begin{array}{ r }{\\frac{1}{m}\\sum_{j=1}^{m}(|w_{j}^{\\top}x| + |w_{j}^{\\top}x^{\\prime}| - |w_{j}^{\\top}(x-x^{\\prime})|)/2}\\end{array}$ is also learnt through the weights $(w_{j})_{j\\in [m]}$ and the third term $\\begin{array}{ r }{\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\|w_{j}\\|\\quad}\\end{array}$ serves as a penalty to improve kernel learning.\n\nThe homogeneity of the kernel $k^{(B)}$ leads to well-behaved optimisation, as we discuss in Section 3.2 and see in Experiment 1 in Section 5.2. The kernel matrix K is indeed positively 1-homogeneous in the particles $(w_{j})_{j\\in [m]}$ . If we had chosen H to be the RKHS corresponding to the exponential kernel (or the Gaussian kernel), we would have faced the challenge of learning the kernel $\\begin{array}{ r }{\\sum_{j=1}^{m}e^{- |w_{j}^{\\top}(x-x^{\\prime})|}}\\end{array}$ , which exhibits a complex and nonhomogeneous dependency on the weights $(w_{j})_{j\\in [m]}$ . By using the Brownian kernel instead of the exponential kernel, we only slightly change the regularisation, regularising with $\\int_{\\mathbb{R}}(g^{\\prime})^{2}$ instead of $\\begin{array}{ r }{\\int_{\\mathbb{R}}g^{2}+\\int_{\\mathbb{R}}(g^{\\prime})^{2}}\\end{array}$ while making the optimisation more tractable.\n\nWe now present other penalties designed to achieve diferent efects. The three terms in Equation (8) correspond to the empirical risk, the standard penalty from KRR on the RKHS norm of the function, and an extra regularisation term on the learnt kernel weights. This additional term, $\\begin{array}{ r }{\\frac{\\lambda}{2 m}\\sum_{j=1}^{m}\\|w_{j}\\|}\\end{array}$ , originates from the penalty $\\Omega_{0}(f)$ in Equation (2). However, we can explore other penalties on $w_{1},\\ldots,w_{m}$ that induce various additional sparsity efects, even if they do not directly correspond to penalties on $f\\in\\mathcal{F}_{m}$ . Let $W\\in\\mathbb{R}^{d\\times m}$ be the matrix with $(w_{1},\\ldots,w_{m})$ as columns, denote by $W^{(a)}$ the a-th row of $W$ , and let $W=U S V^{\\top}$ be its singular value decomposition, with S a diagonal matrix composed of $S_{1},\\ldots,S_{\\operatorname*{min}(m,d)}$ Recall that ν is a probability distribution on $\\mathbb{R}^{d}$\n\n1. Basic penalty: $\\begin{array}{ r }{\\Omega_{\\mathrm{basic}}(w_{1},\\dots,w_{m})=\\frac{1}{2 m}\\sum_{j=1}^{m}\\left| |w_{j}|\\right|}\\end{array}$ , which we discussed in Section 2.1. In the continuous setting, it corresponds to $\\begin{array}{ r }{\\frac{1}{2}\\int_{\\mathbb{R}^{d}}\\|w\\|\\mathrm{d}\\nu(w)}\\end{array}$ . This penalty, which does not target any specific pattern in the data-generating mechanism, is the one for which we provide theoretical results in Section 4. However, it does not work as well in practice as the following penalties.\n\n2. Variable penalty: $\\begin{array}{ r }{\\Omega_{\\mathrm{variable}}(w_{1},\\dots,w_{m})=\\frac{1}{2}\\sum_{a=1}^{d}\\big(\\frac{1}{m}\\sum_{j=1}^{m}(w_{j})_{a}^{2}\\big)^{1/2}}\\end{array}$ , which is also equal to $\\begin{array}{ r }{\\frac{1}{2\\sqrt{m}}\\sum_{a=1}^{\\operatorname*{min}(m,d)}\\|W^{(a)}\\|_{2}}\\end{array}$ . This penalty, inspired by the group Lasso (Yuan and Lin, 2006), is designed for variable selection, pushing quantities $\\lVert W^{(a)}\\rVert_{2}$ towards zero, thus encouraging dependence on a few variables. In the continuous setting, it corresponds to $\\begin{array}{ r }{\\frac{1}{2}\\sum_{a=1}^{\\operatorname*{min}(m,d)}\\big(\\int_{\\mathbb{R}^{d}}|w_{a}|^{2}{\\mathrm{d}}\\nu(w)\\big)^{1/2}}\\end{array}$\n\n3. Feature penalty: $\\begin{array}{ r }{\\Omega_{\\mathrm{feature}}(w_{1},\\ldots,w_{m})=\\frac{1}{2}\\mathrm{tr}\\left(\\left(\\frac{1}{m}\\sum_{j=1}^{m}w_{j}w_{j}^{\\top}\\right)^{1/2}\\right)}\\end{array}$ , which is also equal to ${\\frac{1}{2}}\\sum_{a=1}^{\\operatorname*{min}(m,d)}{\\frac{S_{a}}{\\sqrt{m}}}$ and to the nuclear norm of W divided by $2\\sqrt{m}$ . It is used for feature learning as it is a convex relaxation of the rank, encouraging W to have low rank and thus dependence on only a few linear transformations of the data. Regularisation using the nuclear norm in the context of feature learning is wellestablished in the literature, as demonstrated by Argyriou et al. (2008). It corresponds to $\\begin{array}{ r }{\\frac 12\\operatorname{tr}\\big(\\big(\\int_{\\mathbb R^{d}}ww^{\\top}\\mathrm{d}\\nu(w)\\big)^{1/2}\\big)}\\end{array}$ in the continuous setting.\n\n4. Concave variable penalty: The concave version of the penalty for variable selection, Ωconcave variable $\\begin{array}{ r }{(w_{1},\\ldots,w_{m})=\\frac{1}{2 s}\\sum_{a=1}^{d}\\log\\left(1+\\frac{s}{\\sqrt{m}}\\|W^{(a)}\\|_{2}\\right)}\\end{array}$ , with $s \\geq 0$ . The appeal of the added concavity is discussed below. In the continuous setting, it corresponds to $\\begin{array}{ r }{\\frac{1}{2 s}\\sum_{a=1}^{d}\\log\\left(1+s\\int_{\\mathbb{R}^{d}}(w_{a})^{2}{\\mathrm{d}\\nu}(w)\\right)^{1/2})}\\end{array}$\n\n5. Concave feature penalty: The concave version of the penalty intended for feature learning, $\\Omega_{\\mathrm{concave}}$ feature $\\begin{array}{ r }{(w_{1},\\ldots,w_{m})=\\frac{1}{2 s}\\sum_{a=1}^{\\operatorname*{min}(m,d)}\\log\\left(1+\\frac{s}{\\sqrt{m}}S_{a}\\right)}\\end{array}$ for feature selection, with $s \\geq 0$ . The appeal of the added concavity is discussed below. In the continuous setting it corresponds to $\\begin{array}{ r }{\\frac{1}{2 s}\\sum_{a=1}^{d}\\log\\big(1+s\\big(\\big(\\int_{\\mathbb{R}^{d}}w w^{\\top}\\mathrm{d}\\nu(w)\\big)^{1/2}\\big)_{a,a}\\big)}\\end{array}$\n\nThe first penalty is convex in both ν and W, making it straightforward to optimise. The second and third penalties, while not convex in $\\nu,$ are convex in W due to the presence of squared and square root terms on the components of W, easing optimisation in the m particles setting. The fourth and fifth penalties are neither convex in ν nor $W .$ , instead, they are concave in W. As s approaches zero, these penalties revert to their non-concave versions. Convex penalties, while easier to handle, can be detrimental by diminishing relevant variables or features to achieve sparsity. Mitigating this efect can involve retraining with the selected variables/features or employing concave penalties, which is the choice we made here. Although concave penalties are more complex to analyse, they often yield better performance because they drive the solution towards the boundary, promoting sparsity (Fan and Li, 2001; Bach et al., 2012). We discuss the impact of the choice of regularisation in Experiment 3 in Section 5.3.\n\nNote that the link with infinite-dimensional normed function spaces and the theoretical analysis of Section 4. only applies to the first “basic” penalty. Extending the analysis of concave penalties from finite dimension (Fan and Li, 2001; Zhang, 2010) to infinite dimension remains an open problem.\n\nIn this section, we detail the process of computing the estimator for each of the penalties presented in Section 2.5. We then discuss the importance of the homogeneity of the Brownian kernel and how the optimisation with particles relates to the continuous setting.\n\nIn this section, we focus on the square loss $\\ell(y,y^{\\prime})=\\textstyle{\\frac{1}{2}}(y-y^{\\prime})^{2}$ , which allows for explicit computations. However, the method can be extended to other loss functions using gradientbased techniques, (see Bach, 2024, Chapter 5). Recalling Equation (8) and the penalties described in Section 2.5, the optimisation problem we aim to solve is\n\n$$\n\\min_{w_{1},\\dots,w_{m}\\in\\mathbb{R}^{d},c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{2 n}\\|Y-K\\alpha-c\\mathbb{1}_{n}\\|_{2}^{2}+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\lambda\\Omega_{\\text{weights}}\\left(w_{1},\\dots,w_{m}\\right),\\tag{10}\n$$\n\nwhere $\\begin{array}{ r }{K=\\frac{1}{m}\\sum_{j=1}^{m}K^{(w_{j})}}\\end{array}$ and $\\Omega_{\\mathrm{weights}}$ represents any of the penalties from Section 2.5.\n\nTo solve this problem, we alternate between exact minimisation with respect to α and $c,$ which is done in closed-form, and one improvement step for the minimisation with respect to $w_{1},\\ldots,w_{m}$ which is done using one step of proximal gradient descent. This corresponds to minimizing with respect to the $w_{1},\\ldots,w_{m}$ the infimum with respect to c and $\\alpha .$\n\nWhen the weights $w_{1},\\ldots,w_{m}$ are fixed, the kernel matrix K is also fixed, allowing us to find the solution for the constant c and the coeficients α in closed-form. By centring both the kernel matrix and the response $Y$ , we transform the problem into a classical kernel ridge regression problem, for which explicit solutions are well-known.\n\nNext, we focus on optimising $w_{1},\\ldots,w_{m}$ while keeping c and α fixed. The goal is to solve\n\n$$\n\\min_{w_{1},\\dots,w_{m}\\in\\mathbb{R}^{d}}G(w_{1},\\dots,w_{m})+\\lambda\\Omega_{\\text{weights}}(w_{1},\\dots,w_{m}),\\tag{11}\n$$\n\nwhere the dependence on $(w_{j})_{j\\in [m]}$ in the first term is through the kernel matrix K. Note that G is convex in K but not in $w_{1},\\ldots,w_{m}$ . Additionally, G is diferentiable almost everywhere, except where $w_{j}^{\\top}(x_{i}-x_{i^{\\prime}})$ for some $j\\in [m],i\\neq i^{\\prime}\\in [n]$ . However, standard practice assumes that these non-diferentiabilities average out with many data points. Meanwhile, the penalties $\\Omega_{\\mathrm{weights}}$ are not diferentiable at certain fixed points, independently of the data, similarly to the Lasso penalty. Therefore, we use proximal gradient descent to solve Equation (11). With a step-size $\\gamma > 0$ , this involves minimising\n\n$$\n\\sum_{j=1}^{m}\\frac{\\partial G}{\\partial w_{j}}(w^{\\mathrm{old}})^{\\top}(w_{j}-w_{j}^{\\mathrm{old}})+\\frac{1}{2\\gamma}\\sum_{j=1}^{m}\\|w_{j}-w_{j}^{\\mathrm{old}}\\|_{2}^{2}+\\lambda\\Omega_{\\mathrm{weights}}(w_{1},\\ldots,w_{m}),\n$$\n\nover $w_{1},\\ldots,w_{m}\\in\\mathbb{R}^{d}$ . This corresponds to the simultaneous proximal gradient descent steps $\\begin{array}{ r }{w_{j}\\mathrm{prox}_{\\lambda\\gamma\\Omega}(w_{j}-\\gamma\\frac{\\partial G}{\\partial w_{i}})}\\end{array}$ . We therefore compute the gradient and the proximal operator. For the gradient, we have the following lemma.", "theorems": [{"local_id": "T1", "statement": "Lemma 5 (Kernel Formulation of Finite-Width) Equation (5) is equivalent to\n\n$$\n\\min_{w_{1},\\dots,w_{m}\\in\\mathbb{R}^{d},c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\|w_{j}\\|,\\tag{8}\n$$\n\nwhere $\\begin{array}{ r }{K=\\frac{1}{m}\\sum_{j=1}^{m}K^{(w_{j})}}\\end{array}$ , and $K^{(w_{j})}\\in\\mathbb{R}^{n\\times n}$ is the kernel matrix $f o r$ kernel $k^{(B)}$ and projected data $(w_{j}^{\\top}x_{1},\\ldots,w_{j}^{\\top}x_{n}),\\ i . e .,K_{i,i^{\\prime}}^{(w_{j})}=(|w_{j}^{\\top}x_{i}| + |w_{j}^{\\top}x_{i^{\\prime}}| - |w_{j}^{\\top}(x_{i}-x_{i^{\\prime}})|)/2$ . Notice that there are no constraints on the particles $(w_{j})_{j\\in [m]}$ to belong to the unit sphere anymore.", "proof": {"steps": [{"n": 1, "claim": "Proof [Proof of Lemma 5] Our goal is to transform Equation (5). We begin with the following trick for the m particles setting\n\n$$\n\\frac{1}{m}\\sum_{j=1}^{m}\\|g_{j}\\|_{\\mathcal{H}}=\\inf_{\\beta\\in\\mathbb{R}_{+}^{m}}\\frac{1}{2 m}\\sum_{j=1}^{m}\\left(\\frac{\\|g_{j}\\|_{\\mathcal{H}}^{2}}{\\beta_{j}}+\\beta_{j}\\right).\n$$"}, {"n": 2, "claim": "This allows us to rewrite Equation 5 in the following way\n\n$$\n\\min_{c\\in\\mathbb{R},w_{1},\\dots,w_{m}\\in\\mathcal{S}^{d-1},g_{1},\\dots,g_{m}\\in\\mathcal{H},\\beta\\in\\mathbb{R}_{+}^{m}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell\\left(y_{i},c+\\frac{1}{m}\\sum_{j=1}^{m}g_{j}(w_{j}^{\\top}x_{i})\\right)+\\lambda\\frac{1}{2 m}\\sum_{j=1}^{m}\\left(\\frac{\\|g_{j}\\|_{\\mathcal{H}}^{2}}{\\beta_{j}}+\\beta_{j}\\right).\n$$"}, {"n": 3, "claim": "Now if we fix $(w_{j})_{j\\in [m]}$ and $(\\beta_{j})_{j\\in [m]}$ in the equation above, the minimisation problem is equivalent to\n\n$$\n\\min_{c\\in\\mathbb{R},g_{1},\\dots,g_{m}\\in\\mathcal{H}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},c+\\frac{1}{m}\\sum_{j=1}^{m}g_{j}(w_{j}^{\\top}x_{i}))+\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\frac{\\|g_{j}\\|_{\\mathcal{H}}^{2}}{\\beta_{j}}.\\tag{17}\n$$"}, {"n": 4, "claim": "Using the representer theorem (Schölkopf et al., 2001), we express each $x g_{j}(w_{j}^{\\top}x)$ as\n\n$$\nx\\to\\sum_{i=1}^{n}\\alpha_{i}^{(j)}k^{(B)}(w_{j}^{\\top}x_{i},w_{j}^{\\top}x),\n$$\n\nwhich leads to\n\n$$\n\\|g_{j}\\|_{\\mathcal{H}}^{2}=\\sum_{i,i^{\\prime}=1}^{n}\\alpha_{i}^{(j)}\\alpha_{i^{\\prime}}^{(j)}k^{(B)}(w_{j}^{\\top}x_{i},w_{j}^{\\top}x_{i^{\\prime}}).\n$$"}, {"n": 5, "claim": "Rewriting the norm and evaluation in kernel form with $K_{i,i^{\\prime}}^{(w_{j})}=k^{(B)}(w_{j}^{\\top}x_{i},w_{j}^{\\top}x_{i^{\\prime}})$ , we obtain\n\n$$\n\\|g_{j}\\|_{\\mathcal{H}}^{2}=(\\alpha^{(j)})^{\\top}K^{(w_{j})}\\alpha^{(j)},\n$$\n\nand\n\n$$\ng_{j}(w_{j}^{\\top}x_{i})=(K^{(w_{j})}\\alpha^{(j)})_{i}.\n$$"}, {"n": 6, "claim": "Thus, we transform Equation (17) into\n\n$$\n\\min_{c\\in\\mathbb{R},\\alpha^{(1)},\\dots,\\alpha^{(m)}\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},\\frac{1}{m}\\sum_{j=1}^{m}(K^{(w_{j})}\\alpha^{(j)})_{i}+c)+\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\frac{(\\alpha^{(j)})^{\\top}K^{(w_{j})}\\alpha^{(j)}}{\\beta_{j}}.\n$$"}, {"n": 7, "claim": "We show that minimisation is attained for vectors $\\alpha^{(j)}$ equal to $\\beta_{j}\\alpha$ for a single vector $\\alpha .$ Consider the convex problem\n\n$$\n\\min_{\\alpha^{(1)},\\dots,\\alpha^{(m)}\\in\\mathbb{R}^{n}}\\frac{1}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\frac{(\\alpha^{(j)})^{\\top}K^{(w_{j})}\\alpha^{(j)}}{\\beta_{j}},\n$$\n\nsubject to $\\begin{array}{ r }{\\frac{1}{m}\\sum_{j=1}^{m}K^{(w_{j})}\\alpha^{(j)}=z}\\end{array}$ where $z\\in\\mathbb{R}^{d}$ . We define the Lagrangian\n\n$$\n\\mathcal{L}(\\alpha^{(1)},\\dots,\\alpha^{(m)},\\alpha)=\\frac{1}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\frac{(\\alpha^{(j)})^{\\top}K^{(w_{j})}\\alpha^{(j)}}{\\beta_{j}}+\\alpha^{\\top}\\left(z-\\frac{1}{m}\\sum_{j}K^{(w_{j})}\\alpha^{(j)}\\right).\n$$"}, {"n": 8, "claim": "By taking the diferential of L with respect to $\\alpha^{(j)}$ at the optimum, we get\n\n$$\n\\frac{\\partial\\mathcal{L}}{\\partial\\alpha^{(j)}}=\\frac{1}{m}K^{(w_{j})}\\left(\\frac{\\alpha^{(j)}}{\\beta_{j}}-\\alpha\\right)=0.\n$$"}, {"n": 9, "claim": "The diferential with respect to α yields that at the optimum, the constraint is verified, $\\begin{array}{ r }{\\mathrm{i . e .,}z=\\frac{1}{m}\\sum_{i}K^{(w_{j})}\\alpha^{(j)}}\\end{array}$ . We note that for $\\alpha^{(j)}=\\beta_{j}\\alpha$ , all equations are satisfied, yielding the desired result."}, {"n": 10, "claim": "We can then write Equation (5) as\n\n$$\n\\min_{w_{1},\\dots,w_{m}\\in\\mathbb{R}^{d},c\\in\\mathbb{R},\\beta\\in\\mathbb{R}_{+}^{m},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\beta_{j},\n$$\n\nwith the constraints $\\forall j\\in [m],w_{j}\\in S^{d-1}$ , and $\\begin{array}{ r }{K=\\frac{1}{m}\\sum_{j=1}^{m}\\beta_{j}K^{(w_{j})}}\\end{array}$\n\nWe notice that $\\beta_{j}K^{(w_{j})}=K^{(\\beta_{j}w_{j})}$ due to the positive homogeneity of the Brownian kernel. We therefore introduce the change of variable $\\beta_{j}w_{j}=\\tilde{w}_{j}$\n\n$$\n\\min_{\\tilde{w}_{1},\\dots,\\tilde{w}_{m}\\in\\mathbb{R}^{d},c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\frac{1}{m}\\sum_{j=1}^{m}\\|\\tilde{w}_{j}\\|,\n$$\n\nwith $\\begin{array}{ r }{K=\\frac{1}{m}\\sum_{j=1}^{m}K^{(\\tilde{w}_{j})}}\\end{array}$ and no constraint on the norm of $\\tilde{w}_{j}$ . For ease of exposition in the main text, we replace w˜ by w. ■"}]}}, {"local_id": "T2", "statement": "Lemma 6 (Kernel Formulation of Infinite-Width) Equation (4) is equivalent to:\n\n$$\n\\min_{\\nu\\in\\mathcal{P}(\\mathbb{R}^{d}),c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\int_{\\mathbb{R}^{d}}\\|w\\|\\mathrm{d}\\nu(w),\\tag{9}\n$$\n\nwith $\\begin{array}{ r }{K=\\int_{\\mathbb{R}^{d}}K^{(w)}\\mathrm{d}\\nu(w)}\\end{array}$ and and $K^{(w)}\\in\\mathbb{R}^{n\\times n}$ is the kernel matrix for kernel $k^{(B)}$ and data $(w^{\\top}x_{1},\\ldots,w^{\\top}x_{n})$", "proof": {"steps": [{"n": 1, "claim": "Proof [Proof of Lemma 6] The proof follows the same steps as the proof of Lemma $5,$ systematically replacing any $\\textstyle{\\frac{1}{m}}\\sum_{j=1}^{m}$ with the appropriate integral over $\\mathcal{H}\\times\\mathcal{S}^{d-1}$ with respect to measure $\\mu .$ . Before the change of variables, the problem is\n\n$$\n\\min_{\\mu\\in\\mathcal{P}(\\mathcal{H}\\times\\mathcal{S}^{d-1}),c\\in\\mathbb{R},(\\beta_{g})_{g}\\in\\mathbb{R}_{+}^{\\mathcal{H}},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\int_{\\mathcal{H}\\times\\mathcal{S}^{d-1}}\\beta_{g}\\mathrm{d}\\mu(g,w),\n$$\n\nwhere $\\begin{array}{ r }{K=\\int_{\\mathcal{H}\\times S^{d-1}}\\beta_{g}K^{(w)}d\\mu(g,w)=\\int_{\\mathcal{H}\\times S^{d-1}}K^{(\\beta_{g}w)}d\\mu(g,w)}\\end{array}$ ."}, {"n": 2, "claim": "The change of variables $\\beta_{g}w=\\tilde{w}$ transforms the problem into\n\n$$\n\\min_{(\\beta_{g})_{g}\\in\\mathbb{R}_{+}^{\\mathcal{H}},\\nu\\in\\mathcal{P}(\\{\\beta_{g}w,g\\in\\mathcal{H},w\\in\\mathcal{S}^{d-1}\\}),c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\int_{\\mathbb{R}^{d}}\\|\\tilde{w}\\|\\mathrm{d}\\nu(\\tilde{w}),\n$$\n\nwith $\\begin{array}{ r }{K=\\int_{\\mathbb{R}^{d}}K^{(\\tilde{w})}\\mathrm{d}\\nu(\\tilde{w})}\\end{array}$ . We can consider the integral over Rd instead of $\\{\\beta_{g}w,g\\in\\mathcal{H},w\\in$ $S^{d-1}\\bigr\\}$ by extending ν with $\\nu(\\mathbb{R}^{d}\\setminus\\{\\beta_{g}w,g\\in\\mathcal{H},w\\in\\mathcal{S}^{d-1}\\})=0$ ."}, {"n": 3, "claim": "This is equivalent to considering the minimum over $\\nu\\in\\mathcal{P}(\\mathbb{R}^{d})$ instead of the minimum over $(\\beta_{g})_{g\\in\\mathcal{H}}\\in\\mathbb{R}_{+}^{\\mathcal{H}}$ and $\\nu\\in\\mathcal{P}(\\{\\beta_{g}w,g\\in\\mathcal{H},w\\in\\mathcal{S}^{d-1}\\})$ , as we discuss now."}, {"n": 4, "claim": "Indeed, the first minimum is smaller as it is considered over a larger space, but they are equal because both the norm $\\| \\cdot \\|$ and the kernel K are positively homogeneous. Hence, the problem finally becomes\n\n$$\n\\min_{\\nu\\in\\mathcal{P}(\\mathbb{R}^{d}),c\\in\\mathbb{R},\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{n}\\sum_{i=1}^{n}\\ell(y_{i},(K\\alpha)_{i}+c)+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha+\\frac{\\lambda}{2}\\int_{\\mathbb{R}^{d}}\\|\\tilde{w}\\|\\mathrm{d}\\nu(\\tilde{w}),\n$$\n\nwith $\\begin{array}{ r }{K=\\int_{\\mathbb{R}^{d}}K^{(\\tilde{w})}\\mathrm{d}\\nu(\\tilde{w})}\\end{array}$ . For ease of exposition in the main text, we replace $\\tilde{w}$ by w."}]}}, {"local_id": "T3", "statement": "Lemma 7 (Optimisation for Fixed Particles) For fixed $w_{1},\\ldots,w_{m}$ and hence a fixed $K$ , define\n\n$$\nG(w_{1},\\dots,w_{m}):=\\min_{\\alpha\\in\\mathbb{R}^{n},c\\in\\mathbb{R}}\\frac{1}{2 n}\\|Y-K\\alpha-c\\mathbb{1}_{n}\\|_{2}^{2}+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha .\n$$\n\nThe optimisation problem defining G is solved by\n\n$$\n\\alpha=(\\tilde{K}+n\\lambda I)^{-1}\\tilde{Y}\\quad\\mathrm{and}\\quad c=\\frac{\\mathbb{1}^{\\top}Y}{n}-\\frac{\\mathbb{1}^{\\top}K\\alpha}{n},\n$$\n\nwhere $\\tilde{K}: =\\Pi K\\Pi$ and $\\begin{array}{ r }{\\tilde{Y}: =Y-\\frac{\\mathbb{1}\\mathbb{1}^{\\top}Y}{n}}\\end{array}$ , with $\\begin{array}{ r }{\\Pi=I-\\frac{\\mathbb{1}\\mathbb{1}^{\\top}}{n}}\\end{array}$ being the centring matrix. The objective value is then\n\n$$\nG(w_{1},\\dots,w_{m})=\\frac{\\lambda}{2}\\tilde{Y}^{\\top}(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y}.\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof [Proof of Lemma 7] For a fixed $\\alpha,$ , the optimal c is given by $\\begin{array}{ r }{c=\\frac{\\mathbb{1}^{\\top}Y}{n}-\\frac{\\mathbb{1}^{\\top}K\\alpha}{n}}\\end{array}$ Substituting this back into the objective function, we obtain\n\n$$\n\\min_{\\alpha\\in\\mathbb{R}^{n}}\\frac{1}{2 n}\\|\\Pi Y-\\Pi K\\alpha\\|_{2}^{2}+\\frac{\\lambda}{2}\\alpha^{\\top}K\\alpha,\n$$\n\nwhich is minimised for α satisfying $(K\\Pi K+n\\lambda K)\\alpha=K\\Pi Y$ . We can further simplify this by observing that if $(\\Pi K+n\\lambda I)\\alpha=\\Pi Y$ , then the previous condition is satisfied."}, {"n": 2, "claim": "From the equation nλα $= \\Pi Y - \\Pi K \\alpha$ , we can deduce that $\\Pi \\alpha = \\alpha$ because $\\Pi^{2}=\\Pi$ Therefore, we can express α as $\\alpha=\\Pi\\tilde{\\alpha}$ . Substituting this change of variable into the original problem, we define $\\tilde{K}: =\\Pi K\\Pi$ and $\\tilde{Y}: =\\Pi Y$ , transforming the problem into\n\n$$\n\\min_{\\tilde{\\alpha}\\in\\mathbb{R}^{n}}\\frac{1}{2 n}\\|\\tilde{Y}-\\tilde{K}\\tilde{\\alpha}\\|_{2}^{2}+\\frac{\\lambda}{2}\\tilde{\\alpha}^{\\top}\\tilde{K}\\tilde{\\alpha}.\n$$"}, {"n": 3, "claim": "This is a standard kernel ridge regression problem (noting that $\\tilde{K}$ is still a valid kernel matrix), for which the solution is known to be $\\tilde{\\alpha}=(\\tilde{K}+n\\lambda I)^{-1}\\tilde{Y}$ . We also have $\\Pi\\tilde{\\alpha}=\\tilde{\\alpha}.$ implying $\\alpha=\\tilde{\\alpha}$ because one can show that $\\mathbb{1}^{\\top}\\tilde{\\alpha}=0$ . To see why, note that $\\mathbb{1}^{\\top}\\tilde{\\alpha}=\\langle\\mathbb{1},\\tilde{\\alpha}\\rangle=$ $\\langle(\\tilde{K}+n\\lambda I)^{-1}\\mathbf{1},\\tilde{Y}\\rangle$ . Since $(\\tilde{K}+n\\lambda I)^{-1}\\mathbf{1}$ is proportional to 1 (as 1 is an eigenvector of $\\tilde{K}+n\\lambda I$ and its inverse), and $\\langle\\tilde{Y},\\mathbb{1}\\rangle=0$ , we obtain the desired result."}, {"n": 4, "claim": "Finally, we verify the optimal condition $(K\\Pi K+n\\lambda K)\\alpha=K\\Pi Y$ . Given $(\\Pi K\\Pi+$ $n\\lambda I)\\tilde{\\alpha}=\\Pi Y$ by definition, multiplying by K yields $(K\\Pi K\\Pi+n\\lambda K)\\tilde{\\alpha}=K\\Pi Y$ . Since $\\tilde{\\alpha}=\\alpha=\\Pi\\alpha$ , the desired result follows. ■"}]}}, {"local_id": "T4", "statement": "Lemma 8 (Gradient of G) Let $j \\in [ m ]$ , then\n\n$$\n\\frac{\\partial G}{\\partial w_{j}}=\\frac{\\lambda}{4}\\frac{1}{m}\\sum_{i,i^{\\prime}=1}^{n}z_{i}z_{i^{\\prime}}\\mathrm{sign}(w_{j}^{\\top}(x_{i}-x_{i^{\\prime}}))(x_{i}-x_{i^{\\prime}}),\n$$\n\nwhere $z=(\\tilde{K}+n\\lambda I)^{-1}\\tilde{Y}$", "proof": {"steps": [{"n": 1, "claim": "Proof [Proof of Lemma 8] First, we compute the derivative of $\\begin{array}{ r }{G=\\frac{\\lambda}{2}\\tilde{Y}^{\\top}(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y}}\\end{array}$ with respect to $w_{j}$\n\n$$\n\\begin{array}{l}\\frac{\\partial G}{\\partial w_{j}}=\\sum_{i,i^{\\prime}=1}^{n}\\frac{\\partial G}{\\partial K_{i,i^{\\prime}}}\\frac{\\partial K_{i,i^{\\prime}}}{\\partial w_{j}}\\\\ =\\frac{1}{m}\\sum_{i,i^{\\prime}=1}^{n}\\frac{\\partial G}{\\partial K_{i,i^{\\prime}}}\\frac{\\left(\\operatorname{sign}\\left(w_{j}^{\\top}x_{i}\\right)x_{i}+\\operatorname{sign}\\left(w_{j}^{\\top}x_{i^{\\prime}}\\right)x_{i^{\\prime}}-\\operatorname{sign}\\left(w_{j}^{\\top}\\left(x_{i}-x_{i^{\\prime}}\\right)\\right)\\left(x_{i}-x_{i^{\\prime}}\\right)\\right)}{2}.\\tag{18}\\\\ \\end{array}\n$$"}, {"n": 2, "claim": "We know that\n\n$$\n\\frac{\\partial G}{\\partial(\\tilde{K}+\\lambda n I)}= -\\frac{\\lambda}{2}(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y}\\tilde{Y}^{\\top}(\\tilde{K}+\\lambda n I)^{-1},\n$$\n\nthus\n\n$$\n\\begin{array}{l}\\frac{\\partial G}{\\partial K_{i,i^{\\prime}}}=\\sum_{l,k}\\frac{\\partial G}{\\partial(\\tilde{K}+\\lambda n I)_{l,k}}\\frac{\\partial(\\Pi K\\Pi+\\lambda n I)_{l,k}}{\\partial K_{i,i^{\\prime}}}\\\\ =\\sum_{l,k}-\\frac{\\lambda}{2}((\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y}\\tilde{Y}^{\\top}(\\tilde{K}+\\lambda n I)^{-1})_{l,k}\\Pi_{l,i}\\Pi_{i^{\\prime},k}\\\\ = -\\frac{\\lambda}{2}\\left(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y}\\tilde{Y}^{\\top}(\\tilde{K}+\\lambda n I)^{-1}\\Pi\\right)_{i,i^{\\prime}}\\\\ = -\\frac{\\lambda}{2}(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})_{i}(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})_{i^{\\prime}}.\\\\ \\end{array}\n$$"}, {"n": 3, "claim": "Substituting this back into Equation (18) and introducing $S_{j}\\in\\mathbb{R}^{n\\times n}$ with $(S_{j})_{i,i^{\\prime}}=$ $(\\mathrm{sign}(w_{j}^{\\top}x_{i})x_{i}+\\mathrm{sign}(w_{j}^{\\top}x_{i^{\\prime}})x_{i^{\\prime}}-\\mathrm{sign}(w_{j}^{\\top}(x_{i}-x_{i^{\\prime}}))(x_{i}-x_{i^{\\prime}}))/2,$ , we get\n\n$$\n\\begin{array}{l}\\frac{\\partial G}{\\partial w_{j}}= -\\frac{\\lambda}{2 m}\\sum_{i,i^{\\prime}=1}^{n}(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})_{i}(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})_{i^{\\prime}}(S_{j})_{i,i^{\\prime}}\\\\ = -\\frac{\\lambda}{2 m}\\operatorname{tr}\\left((\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})^{\\top}S_{j}(\\Pi(\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})\\right)\\\\ = -\\frac{\\lambda}{2 m}\\operatorname{tr}\\left(((\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})^{\\top}\\Pi S_{j}\\Pi((\\tilde{K}+\\lambda n I)^{-1}\\tilde{Y})\\right).\\\\ \\end{array}\n$$"}, {"n": 4, "claim": "This implies that we can replace $(S_{j})_{i,i^{\\prime}}$ with the i-th, i0-th component of any matrix with the same centred version, such as ${\\tilde{S}}_{j}$ where $(\\tilde{S}_{j})_{i,i^{\\prime}}= -\\mathrm{sign}(w_{j}^{\\top}(x_{i}-x_{i}^{\\prime}))(x_{i}-x_{i}^{\\prime})$ 2 yielding the desired result."}]}}], "target_local_id": null, "topic_domain": "Deep Learning Theory", "topic_subtopic": "Representation & Expressivity", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "jmlr-2025-24-2016", "context": "Throughout this paper, real numbers are represented by lowercase, non-bold letters, such as a, while vectors in $\\mathbb{R}^{d}$ for d $\\geq 2$ are written in boldface lowercase, such as a. Constant vectors are denoted using bold numerals, such as 1 and 0. The ith element of a is denoted by $a_{i}.$ For indexed vector such as $\\mathbf{a}_{j}$ , its ith element is denoted as $a_{j i}$ . Unless otherwise specified, random variables are written in uppercase non-bold (for example, X), while random vectors use bold uppercase (for example, X). The ith element of X and $\\mathbf{X}_{j}$ are denoted as $X_{i}$ and $X_{j i}$ , respectively. The set of non-negative integers is denoted by $\\mathbb{N}_{0}: =\\{0,1,2,...\\}$ . For positive integers u and v, [u] represents $\\{1,\\ldots,u\\}$ , and $[u]^{v}$ denotes its Cartesian product taken v times. A set of u elements indexed by i is written as $\\{a_{i}\\}_{i\\in [u]}: =\\{a_{1},...,a_{u}\\}$ . For any real $s > 0$ , s denotes the largest integer strictly smaller than s. For $a,b\\in\\mathbb{R}$ , we define $a\\vee b: =\\operatorname*{max}\\{a,b\\}$ and $a\\wedge b: =\\operatorname*{min}\\{a,b\\}$ . Given $\\mathbf{w}\\in\\mathbb{R}^{d}$ and $p \\geq 1$ , its $\\ell_{p}.$ -norm and $\\ell_{\\infty}{\\mathrm{-n o r m}}$ are defined by $\\begin{array}{ r }{\\|\\mathbf{w}\\|_{p}: =\\left(\\sum_{i=1}^{d}|w_{i}|^{p}\\right)^{1/p}}\\end{array}$ and $\\|\\mathbf{w}\\|_{\\infty}: =\\operatorname*{max}\\{|w_{1}|,\\ldots,|w_{d}|\\}$ respectively. For a function supported on $[0,1]^{d}$ , its $\\mathbb{L}_{p}$ -norm and sup-norm are defined as follows:\n\n$$\n\\|f\\|_{\\mathbb{L}_{p}}:=\\left(\\int_{[0,1]^{d}}|f(\\mathbf{x})|^{p}d\\mathbf{x}\\right)^{1/p},\\quad 1\\leq p<\\infty,\\quad\\|f\\|_{\\infty}:=\\sup\\left\\{|f(\\mathbf{x})|:\\mathbf{x}\\in [0,1]^{d}\\right\\}.\n$$\n\nFor any u, $\\mathbf{v}\\in\\mathbb{R}^{d}$ , with $u_{j}\\leq v_{j}$ for $j=1,\\ldots,d,$ a hyperrectangle $[\\mathbf{u},\\mathbf{v}]$ is defined as follows:\n\n$$\n[\\mathbf{u},\\mathbf{v}]:=\\prod_{j=1}^{d}[u_{j},v_{j}].\n$$\n\nGiven the privacy parameter $\\alpha > 0$ , we write $z_{\\alpha}: =e^{2\\alpha}-e^{-2\\alpha}=2\\sinh(2\\alpha)$ . A constant that only depends on parameters $\\theta_{1},\\theta_{2},\\ldots$ . is denoted as $C(\\theta_{1},\\theta_{2},\\ldots)$ . The indicator function $\\mathbb{1}(\\mathcal{A})$ takes value 1 if the event $\\mathcal{A}$ is true and 0 otherwise.\n\nLet $\\mathcal{P}$ denote the space of pairs of distributions of interest: multinomial distributions taking values in [k] or continuous distributions taking values in $[0,1]^{d}.$ . Given a pair of distributions $(P_{Y},P_{Z})\\in\\mathcal{P}$ , for each $i\\in [n_{1}]$ , the ith data owner draws $Y_{i}$ from $P_{Y}$ independently from the others. Similarly, for each $j\\in [n_{2}]$ , the jth data owner independently draws $Z_{j}$ from $P_{Z}$ We allow the sample sizes $n_{1}$ and $n_{2}$ to difer, and assume $n_{1}~\\leq~n_{2}$ , without loss of generality, throughout this paper. We denote the pooled sample size as $n: =n_{1}+n_{2}$ Under the LDP constraint, each owner releases only a randomized transformation of their raw sample, formally referred to as an LDP view:\n\nDefinition 1 (Local diferential privacy) Given a privacy level $\\alpha > 0$ , let $X_{i}$ and ${\\tilde{X}}_{i}$ be random elements mapped to measurable spaces $(\\mathcal{X},\\mathcal{F})$ and $(\\tilde{\\mathcal{X}}_{i},\\tilde{\\mathcal{F}}_{i})$ , respectively, for each $i \\in [ n ]$ . Then ${\\tilde{X}}_{i}$ is an α-local diferentially private $\\left(\\alpha-LDP\\right)$ view of $X_{i}$ if there exists a bivariate function $Q_{i}({\\cdot}\\mid\\cdot):\\tilde{\\mathcal{F}}_{i}\\times\\mathcal{X}\\mapsto [0,1]$ such that:\n\n1. For any $x\\in\\mathcal{X},Q_{i}(\\cdot|x)$ is a conditional distribution of ${\\tilde{X}}_{i}$ given $X_{i}=x_{\\mathrm{~}}$ \n2. For any $A\\in\\tilde{\\mathcal{F}}_{i},x\\mapsto Q_{i}(A\\vert x)$ is a measurable function on $\\mathcal{X}_{i}$ , and \n3. For any $x,x^{\\prime}\\in\\mathcal{X}\\times\\mathcal{X}$ and $A\\in\\tilde{\\mathcal{F}}_{i}$ , the inequality $Q_{i}(A\\mid x)\\le e^{\\alpha}Q_{i}(A\\mid x^{\\prime})$ holds.\n\nLet ${\\mathcal{Q}}_{\\alpha}$ denote the collection of function sets $\\{Q_{i}\\}_{i=1}^{n}$ satisfying the above properties. Then $Q\\in\\mathcal{Q}_{\\alpha}$ is called an α-LDP mechanism (or channel) associated with $\\{X_{i}\\}_{i=1}^{n}$\n\nLet $\\mathcal{P}_{0}$ and $\\mathcal{P}_{1}$ denote the collections of null and alternative distributions, respectively, corresponding to $H_{0}$ and $H_{1}$ introduced in (1). In the minimax framework, we focus on a subset of $\\mathcal{P}_{1}$ , denoted as $\\mathcal{P}_{1}(\\rho_{n_{1},n_{2}})$ , where $\\rho_{n_{1},n_{2}}$ indicates a minimum separation between $\\mathcal{P}_{1}(\\rho_{n_{1},n_{2}})$ and $\\mathcal{P}_{0}$\n\nGiven a privacy mechanism $Q,$ the curator evaluates a test function $\\begin{array}{ r }{\\Delta_{Q}:\\prod_{i=1}^{n}\\tilde{\\mathcal{X}}_{i}\\mapsto}\\end{array}$ $\\{0,1\\}$ on the α-LDP views and rejects $H_{0}$ if $\\Delta_{Q}\\ =\\ 1$ and accepts $H_{0}$ otherwise. Our objective is to design the private test $\\Delta_{Q}$ that controls the type I and II errors uniformly over distributions in $\\mathcal{P}_{0}$ and $\\mathcal{P}_{1}(\\rho_{n_{1},n_{2}})$ , respectively. In particular, for fixed $\\gamma,\\beta\\in(0,1)$ , we aim for the private test $\\Delta_{Q}$ to satisfy the following conditions:\n\n$$\n\\text{Type I error:}\\sup_{(P_{Y},P_{Z})\\in\\mathcal{P}_{0}}\\mathbb{E}[\\Delta_{Q}]\\leq\\gamma\\quad \\text{and}\\quad \\text{Type II error:}\\sup_{(P_{Y},P_{Z})\\in\\mathcal{P}_{1}(\\rho_{n_{1},n_{2}})}\\mathbb{E}[1-\\Delta_{Q}]\\leq\\beta .\\tag{2}\n$$\n\nLet $\\Phi_{\\gamma}^{\\alpha}$ be the set of α-LDP level-γ tests, which take α-LDP views as inputs and control the type I error as in (2). The quality of a level-γ test $\\Delta_{Q,\\gamma}\\in\\Phi_{\\gamma}^{\\alpha}$ is measured by its uniform separation, which quantifies how close two hypotheses can be while still being reliably distinguished by $\\Delta_{Q,\\gamma}$ . In more technical terms, the uniform separation $\\tilde{\\rho}_{n_{1},n_{2}}(\\Delta_{Q,\\gamma})$ is the smallest separation $\\rho_{n_{1},n_{2}}$ which accomplishes the type II error control as in (2), namely,\n\n$$\n\\tilde{\\rho}_{n_{1},n_{2}}\\left(\\Delta_{Q,\\gamma}\\right):=\\inf\\left\\{\\rho_{n_{1},n_{2}}>0:\\sup_{\\left(P_{Y},P_{Z}\\right)\\in\\mathcal{P}_{1}\\left(\\rho_{n_{1},n_{2}}\\right)}\\mathbb{E}\\left[1-\\Delta_{Q,\\gamma}\\right]\\leq\\beta\\right\\}.\\tag{3}\n$$\n\nSince diferent α-LDP mechanism $Q$ may assume diferent $\\tilde{\\mathcal{X}}_{i}^{\\flat}\\mathrm{s}$ , a test $\\Delta_{Q,\\gamma}$ depends on a particular LDP mechanism $Q .$ . Therefore, an optimal private level-γ test can be described as a pair of an α-LDP mechanism and a test function, designed to achieve the minimal uniform separation (3). We define this minimal uniform separation as the optimal testing separation under LDP, which we refer to as the minimax testing separation:\n\nDefinition 2 (α-LDP non-asymptotic minimax testing separation) For a fixed privacy level $\\alpha > 0$ , the α-LDP non-asymptotic minimax separation of testing is defined as\n\n$$\n\\rho_{n_{1},n_{2},\\alpha}^{*}:=\\inf_{Q\\in\\mathcal{Q}_{\\alpha}}\\inf_{\\Delta_{Q,\\gamma}\\in\\Phi_{\\gamma}^{\\alpha}}\\tilde{\\rho}_{n_{1},n_{2}}(\\Delta_{Q,\\gamma}).\\tag{4}\n$$\n\nIn this section, we switch gears to testing for equality between two multivariate densities under the LDP constraint. To this end, we consider two classes of smooth densities, namely the Hölder ball and Besov ball, and establish the minimax testing separation in terms of the $\\mathbb{L}_{2}$ distance for each class. Especially, we derive the upper bound for the minimax testing separation by building on the multinomial permutation test introduced in Section 3.2 with a careful discretization scheme. We also introduce an aggregated test, which is adaptive to the unknown smoothness parameter.\n\nWe start by formally defining the Hölder ball and Besov ball. The Hölder ball generalizes Lipschitz continuity and can be thought of as functions with bounded fractional derivatives. The following definition of the Hölder ball rephrases the one stated in Section 2.1 of Arias-Castro et al. (2018).\n\nDefinition 8 (Hölder ball) The Hölder ball with smoothness parameter $s > 0$ and radius $R > 0$ , denoted as $B_{d,s}^{\\mathrm{H}}(R)$ , is the class of functions $f:[0,1]^{d}\\mapsto\\mathbb{R}$ satisfying the following conditions:\n\n1. $\\left|f^{(\\lfloor s\\rfloor)}(\\mathbf{x})-f^{(\\lfloor s\\rfloor)}(\\mathbf{x}^{\\prime})\\right|\\leq R\\left\\|\\mathbf{x}-\\mathbf{x}^{\\prime}\\right\\|^{s-\\lfloor s\\rfloor}$ , for all $\\mathbf{x},\\mathbf{x}^{\\prime}\\in [0,1]^{d}$ . \n2. $\\|f^{(s^{\\prime})}\\|_{\\infty}\\leq R$ , for each $s^{\\prime}\\in [\\left\\lfloor s\\right\\rfloor]$\n\nwhere $f^{(\\lfloor s\\rfloor)}$ denotes the $\\lfloor s \\rfloor$ -order derivative of $f .$\n\nThe Besov ball, on the other hand, measures the smoothness of a function by capturing its abrupt oscillations through wavelets. In this respect, it can address spatially inhomogeneous functions whose smoothness can vary across their domain. To elaborate, we consider an orthonormal wavelet basis of $\\mathbb{L}_{2}([0,1]^{d})$ at a fixed prime resolution level $J\\in{\\mathbb{N}}_{0}$ . We denote this basis as ${\\overline{{\\Phi}}}_{J}\\cup(\\cup_{j\\geq J}{\\overline{{\\Psi}}}_{j})$ , which are classified into two distinct categories. For $\\phi\\in\\overline{{\\Phi}}_{J}$ the scaling coeficient $\\begin{array}{ r }{\\mathbf{\\bar{\\theta}}_{\\phi}(\\mathbf{\\bar{f}}): =\\int_{[0,1]^{d}}f(\\mathbf{x})\\phi(\\mathbf{x})}\\end{array}$ dx detects an overall trend of $f .$ On the other hand, for $\\psi\\in\\overline{{\\Psi}}_{j}$ with its resolution level $j \\geq J$ , the wavelet coeficient $\\theta_{\\psi}(f): =$ $\\begin{array}{ r }{\\int_{[0,1]^{d}}f(\\mathbf{x})\\psi(\\mathbf{x})}\\end{array}$ dx captures abrupt oscillations from the general trend. As J and $j$ increase, the coeficients capture more detailed behaviors. Among many existing types of wavelet basis, this paper focuses on Haar multivariate wavelet basis. It is useful because projecting densities onto a subset of this basis is equivalent to applying equal-sized binning, as used in our test proposed in Section 4.3. Consequently, the discretization error inherent in the test can be characterized by the corresponding wavelet coeficients. This basis is constructed by taking tensor products of many rescaled and shifted versions of two basic univariate functions (see Appendix B.3 for the details).\n\nThe Besov ball can be defined through the magnitudes of wavelet coeficients. The following definition paraphrases the one presented in Section 3 of Tang and Yang (2023).\n\nDefinition 9 (Besov seminorm and Besov ball) Fix a smoothness parameter $s > 0$ , a microscopic parameter $1 \\leq q \\leq \\infty$ , and a wavelet basis $\\overline{{\\Phi}}_{0}\\cup(\\bigcup_{j\\geq 0}\\overline{{\\Psi}}_{j})$ . The Besov seminorm of $f\\in\\mathbb{L}_{2}([0,1]^{d})$ is defined using the sequences of its wavelet coeficients $\\left(\\theta_{\\psi}(f)\\right)_{\\psi\\in\\overline{{\\Psi}}_{j}}$ as follows:\n\n$$\n\\|f\\|_{s,2,q}:=\\left\\{\\begin{array}{l l}\\left[\\sum_{j=0}^{\\infty}2^{j s q}\\big(\\sum_{\\psi\\in\\overline{{\\Psi}}_{j}}|\\theta_{\\psi}(f)|^{2}\\big)^{\\frac{q}{2}}\\right]^{\\frac{1}{q}},&1\\leq q<\\infty,\\\\ \\sup_{j\\in\\mathbb{N}_{0}}2^{j s}\\big(\\sum_{\\psi\\in\\overline{{\\Psi}}_{j}}|\\theta_{\\psi}(f)|^{2}\\big)^{\\frac{1}{2}},&q=\\infty .\\end{array}\\right.\n$$\n\nFor a radius $R > 0$ , we define the Besov ball $B_{d,s,q}^{\\mathrm{B}}(R)$ as\n\n$$\n\\mathcal{B}_{d,s,q}^{\\mathrm{B}}(R):=\\{f\\in\\mathbb{L}_{2}([0,1]^{d}):\\|f\\|_{s,2,q}\\leq R\\}.\n$$\n\nBuilding on the smooth distribution classes defined in Definition 10, we formally define the two density testing problems of interest and present the minimax testing rate applicable to both. In this subsection, we assume that the smoothness parameter s for Hölder ball and Besov ball is known, addressing the case of unknown s in Section 4.4.\n\nAssume that the pair of data-generating distributions $(P_{\\mathbf{Y}},P_{\\mathbf{Z}})$ is contained in a class $\\mathcal{P}.$ The curator uses two sets of α-LDP views $\\{\\tilde{\\mathbf{Y}}_{i}\\}_{i\\in [n_{1}]}$ and $\\{\\tilde{\\mathbf{Z}}_{j}\\}_{j\\in [n_{2}]}$ , privatized as described in Section 2.1, to decide whether $(P_{\\mathbf{Y}},P_{\\mathbf{Z}})$ came from\n\n$$\n\\mathcal{P}_{0}:=\\left\\{\\left(P_{\\mathbf{Y}},P_{\\mathbf{Z}}\\right)\\in\\mathcal{P}:f_{\\mathbf{Y}}=f_{\\mathbf{Z}}\\right\\}\\text{or}\\mathcal{P}_{1}\\left(\\rho_{n_{1},n_{2}}\\right):=\\left\\{\\left(P_{\\mathbf{Y}},P_{\\mathbf{Z}}\\right)\\in\\mathcal{P}:\\|f_{\\mathbf{Y}}-f_{\\mathbf{Z}}\\|_{\\mathbb{L}_{2}}\\geq\\rho_{n_{1},n_{2}}\\right\\},\\tag{12}\n$$\n\nwhere $f_{\\mathbf{Y}}$ and $f_{\\mathbf{Z}}$ are densities of $P_{\\mathbf{Y}}$ and $P_{\\mathbf{Z}}.$ , respectively. We consider the problems of $\\mathcal{P}=\\mathcal{P}_{d,s}^{\\mathrm{H,2}}(R)$ and $\\mathcal{P}=\\mathcal{P}_{d,s,q}^{\\mathrm{B},2}(R)$ . Notably, while we focus on the class of either being Hölder or Besov smooth distributions, the permutation-based test presented in Section 4.3 guarantees type I error control over a broader class of null distributions beyond those defined over Hölder or Besov balls.\n\nLet us fix the type I error $\\gamma\\in(0,1)$ and the type II error $\\beta\\in(0,1)$ such that $2 \\gamma + \\beta < 1$ as in Section 3.1, and assume further that $n_{\\mathrm{1}}\\alpha^{2}\\geq 1$ , similarly considered in Lam-Weil et al. (2022). The main result of this section, stated below, establishes a lower bound as well as an upper bound for the minimax separation for two-sample density testing under the LDP constraint.\n\nWe outline the construction of multivariate Haar wavelets, following Giné and Nickl (2015), Section 4.3.6, and Autin et al. (2010), Section 2. For $f:[0,1]\\to\\mathbb{R}$ and integers $u,v,$ define the re-scaled and shifted version as $f_{u,v}(x): =2^{u/2}f(2^{u}x-v)$ . Define the univariate Haar scaling and wavelet functions from [0, 1] to $\\mathbb{R}$ as\n\n$$\n\\phi(x):=\\mathbb{1}(0\\leq x<1)\\quad \\text{and}\\quad\\psi(x):=\\mathbb{1}(0\\leq x<1/2)-\\mathbb{1}(1/2\\leq x<1),\n$$\n\nrespectively. A multivariate Haar wavelet basis is indexed by its prime resolution level $J\\in{\\mathbb{N}}_{0}$ , with each element characterized by up to three (multi) indices that range over:\n\n1. Re-scaling: $\\mathbb{N}\\setminus [J-1]$ 2 \n2. Shifting: $\\Lambda(j): =\\{0,1,\\ldots,(2^{j}-1)\\}^{d}$ , for an integer $j \\geq J$ \n3. On-of: $\\mathcal{T}: =\\{0,1\\}^{d}\\backslash\\{0$\n\nrespectively. For any $\\pmb{k}=(k_{1},\\dots,k_{d})\\in\\Lambda(J)$ , let $\\phi_{J,k}:[0,1]^{d}\\to\\mathbb{R}$ be a tensor product of the re-scaled and shifted $\\phi^{\\prime}\\mathrm{s},$ , evaluated at $\\mathbf{x}=(x_{1},\\ldots,x_{d})\\in [0,1]^{d}\\mathrm{.}$\n\n$$\n\\phi_{J,\\boldsymbol{k}}(\\mathbf{x}):=\\prod_{p=1}^{d}\\phi_{J,k_{p}}(x_{p}).\n$$\n\nFor a resolution level $j\\geq J,$ , and for any $\\ell=(\\ell_{1},\\dots,\\ell_{d})\\in\\Lambda(j)$ , let $\\psi_{i,\\ell}^{\\epsilon}:[0,1]^{d}\\to\\mathbb{R}$ be a mixed tensor product of re-scaled and shifted $\\phi^{\\prime}\\mathrm{s}$ and $\\psi\\mathrm{s}$ , evaluated at $\\mathbf{x}=(x_{1},\\ldots,x_{d})\\in$ $[0,1]^{d}$ :\n\n$$\n\\psi_{j,\\ell}^{\\epsilon}(\\mathbf{x}):=\\prod_{p=1}^{d}\\left\\{\\phi_{j,\\ell_{p}}(x_{p})\\right\\}^{1-\\epsilon_{p}}\\left\\{\\psi_{j,\\ell_{p}}(x_{p})\\right\\}^{\\epsilon_{p}}.\n$$\n\nThe Haar multivariate wavelet basis at prime resolution level J is defined as\n\n$$\n\\Phi_{J}\\cup\\left(\\bigcup_{j\\geq J}\\Psi_{j}\\right),\\text{where}\\Phi_{J}:=\\left\\{\\phi_{J,\\boldsymbol{k}}\\right\\}_{\\boldsymbol{k}\\in\\Lambda(J)}\\text{and}\\Psi_{j}:=\\left\\{\\psi_{j,\\ell}^{\\epsilon}\\right\\}_{\\ell\\in\\Lambda(j),\\epsilon\\in\\mathcal{I}}.\\tag{26}\n$$\n\nThis section analyzes the error arising from comparing discretized multinomial probability vectors instead of the original multivariate densities. Given the number of bins $\\kappa,$ let $B_{1},\\ldots,B_{\\kappa^{d}}$ enumerate d-dimensional hypercubes with side length $1 / \\kappa$ . For a density $f_{\\mathbf{Y}}.$ its step function approximation is defined as:\n\n$$\n\\hat{f}_{\\mathbf{Y}}(\\mathbf{y}):=\\sum_{m\\in [\\kappa^{d}]}\\mathbb{1}(\\mathbf{y}\\in B_{m})\\kappa^{d}\\int_{B_{m}}f_{\\mathbf{Y}}(\\mathbf{t})d\\mathbf{t}.\\tag{27}\n$$\n\nBy the argument in Arias-Castro et al. (2018), the lower bound for the minimax testing rate in the one-sample problem, denoted as $\\rho_{n_{1},\\alpha}^{*}$ , also provides a lower bound for the minimax separation in two-sample case, denoted as $\\rho_{n_{1},n_{2},\\alpha}^{*}.$ . Thus, we focus on bounding $\\rho_{n_{1},\\alpha}^{*}$ in the following proof.\n\nProof In the one-sample setting, let $f_{0}$ denote the known density $f_{\\mathbf{Z}}$ , and assume that the data-generating distribution $P\\mathbf{\\hat{Y}}$ lies within the following class:\n\nDefinition 23 (Smooth distribution classes) Let $\\mathcal{P}_{d,s}^{\\mathrm{H},1}(R)$ denote the set of distributions $P\\mathbf{\\hat{Y}}$ whose density function $f_{\\mathbf{Y}}$ satisfies $(f_{\\mathbf{Y}}-f_{0})\\in B_{d,s}^{\\mathrm{H}}(R)$ and $\\|f_{\\mathbf{Y}}-f_{0}\\|_{\\mathbb{L}_{2}}\\leq R$ Similarly, define $\\mathcal{P}_{d,s,q}^{\\mathrm{B},1}(R)$ by replacing $B_{d,s}^{\\mathrm{H}}(R)$ with $B_{d,s,q}^{\\mathrm{B}}(R)$\n\nThe one-sample density testing problem is defined as follows: Given $\\{\\tilde{\\mathbf{Y}}_{i}\\}_{i\\in [n_{1}]}$ generated from $P\\mathbf{\\hat{Y}}$ and privatized via α-LDP mechanism $Q,$ , decide whether $P\\mathbf{\\hat{Y}}$ came from\n\n$$\n\\mathcal{P}_{0}=\\{P_{\\mathbf{Y}}\\in\\mathcal{P}:f_{\\mathbf{Y}}=f_{0}\\}\\quad \\text{or}\\quad\\mathcal{P}_{1}(\\rho_{n_{1}})=\\{P_{\\mathbf{Y}}\\in\\mathcal{P}:\\|f_{\\mathbf{Y}}-f_{0}\\|_{\\mathbb{L}_{2}}\\geq\\rho_{n_{1}}\\}.\\tag{72}\n$$\n\nWe consider two problems: (i) $\\mathcal{P}=\\mathcal{P}_{d,s}^{\\mathrm{H},1}(R)$ , and (ii) $\\mathcal{P}=\\mathcal{P}_{d,s,q}^{\\mathrm{B},1}(R)$ , with significant overlap in most of the proof steps.\n\nWe derive the lower bound by testing the uniform null hypothesis against a carefully constructed mixture alternative. This alternative balances two objectives regarding the distances between the distributions: achieving suficient separation in $\\mathbb{L}_{2}$ distance without the $\\alpha{\\mathrm{-}}\\mathrm{LDP}$ constraint, and ensuring indistinguishability in the total variation distance under the $\\alpha{\\mathrm{-}}\\mathrm{LDP}$ constraint. The mixture construction follows the approach in Appendix A.2.2 of Lam-Weil et al. (2022), where uniform densities are perturbed by eigenfunctions of the integral operator created from the $\\alpha{\\mathrm{-}}\\mathrm{LDP}$ mechanism. We generalize this construction to multivariate Besov and Hölder smoothness classes.\n\nAs defined in Definition 1, let $Q\\in\\mathcal{Q}_{\\alpha}$ be a non-interactive $\\alpha{\\mathrm{-}}\\mathrm{LDP}$ mechanism, and $\\{Q_{i}\\}_{i\\in [n_{1}]}$ be its marginals. By Lemma B.1 of Lam-Weil et al. (2022), for each $i\\in [n_{1}]$ , there exists a probability measure $\\mu_{i}$ such that $Q_{i}(\\cdot|\\mathbf{y}_{i})$ is absolutely continuous with respect to $\\mu_{i}$ for all $\\mathbf{y}_{i}\\in [0,1]^{d}$ . Denote its density with respect to $\\mu_{i}$ by $q_{i}(\\tilde{\\mathbf{y}}_{i}|\\mathbf{y}_{i})$ . Using this, we define the private counterpart of a density function on $[0,1]^{d};$\n\nDefinition 24 (Private counterpart of density) Let f be a probability density on $[0,1]^{d}$ and Q be an $\\alpha{-}L D P$ mechanism with marginal conditional densities $q_{i}(\\tilde{\\bf y}_{i}\\mid\\bf y)$ with respect to $\\mu_{i}$ . The private counterpart of f is defined as\n\n$$\n\\tilde{f}_{i}(\\tilde{\\mathbf{y}}_{i}):=\\int_{[0,1]^{d}}q_{i}(\\tilde{\\mathbf{y}}_{i}\\mid\\mathbf{y})f(\\mathbf{y})d\\mathbf{y}.\n$$\n\nLet $f_{0}$ denote the uniform density supported on $[0,1]^{d}$ . Using its private counterpart, we introduce the following integral operator whose kernel resembles the likelihood ratio of the privatized densities:\n\nDefinition 25 (Privacy mechanism integral operator) For each $i\\in [n_{1}]$ , define an operator $L_{i}:[0,1]^{d}\\times\\tilde{\\mathcal{X}}\\mathbb{R}$ as:\n\n$$\nL_{i}(\\mathbf{s},\\mathbf{t}):=\\frac{q_{i}(\\mathbf{t}|\\mathbf{s})}{\\sqrt{\\tilde{f}_{0,i}(\\mathbf{t})}}.\n$$\n\nUsing $L_{i}$ as a kernel function, we define an integral operator $K_{i}:\\mathbb{L}_{2}([0,1]^{d})\\to\\mathbb{L}_{2}(\\tilde{\\mathcal{X}},d\\mu_{i})$ as:\n\n$$\n(K_{i}f)(\\cdot):=\\int_{[0,1]^{d}}L_{i}(\\mathbf{y},\\cdot)f(\\mathbf{y})d\\mathbf{y}.\n$$\n\nLet $K_{i}^{*}$ denote the adjoint of $K_{i}$ . Finally, by aggregating all the operators for $i\\in [n_{1}]$ , we define a symmetric and positive semidefinite integral operator:\n\n$$\nK:=\\sum_{i=1}^{n_{1}}\\frac{1}{n_{1}}K_{i}^{*}K_{i}.\n$$\n\nFor $f\\in\\mathbb{L}_{2}\\big([0,1]^{d}\\big)$ , the operator K yields the expected squared privatized likelihood ratio:\n\n$$\n\\begin{array}{l}\\langle K f,f\\rangle=\\frac{1}{n_{1}}\\sum_{i=1}^{n}\\int_{\\tilde{\\mathcal{X}}_{i}}\\frac{\\left(\\int_{[0,1]^{d}}q_{i}(\\tilde{\\mathbf{y}}_{i}|\\mathbf{y})f(\\mathbf{y})d\\mathbf{y}\\right)^{2}}{\\tilde{f}_{0,i}(\\tilde{\\mathbf{y}}_{i})}d\\mu_{i}(\\tilde{\\mathbf{y}}_{i})\\\\ =\\frac{1}{n_{1}}\\sum_{i=1}^{n}\\int_{\\tilde{\\mathcal{X}}_{i}}\\frac{\\tilde{f}_{i}(\\tilde{\\mathbf{y}}_{i})^{2}}{\\tilde{f}_{0,i}(\\tilde{\\mathbf{y}}_{i})}\\frac{d Q_{f_{0}}}{\\tilde{f}_{0,i}(\\tilde{\\mathbf{y}}_{i})}=\\frac{1}{n_{1}}\\sum_{i=1}^{n}\\mathbb{E}_{Q_{f_{0}}}\\left[\\frac{\\tilde{f}_{i}^{2}(\\tilde{\\mathbf{y}}_{i})}{\\tilde{f}_{0,i}^{2}(\\tilde{\\mathbf{y}}_{i})}\\right].\\tag{73}\\\\ \\end{array}\n$$\n\nWe construct each mixture element by adding carefully chosen eigenfunctions of K as bumps to $f_{0},$ , ensuring the resulting densities belong to the Hölder or Besov classes. Specifically, we define two orthonormal sets of smoothness-inducing functions—one for Besov smoothness and one for Hölder smoothness. For a positive integer J and $\\omega{>}0$ , we set $\\kappa=2^{J}$ and determine the number of functions as $\\kappa^{d}$ . The parameter $\\omega$ controls the perturbation height. The value of $J$ and $\\omega$ will be optimized later to achieve a tight lower bound. Both orthonormal sets have cardinality $\\kappa^{d}$ , the supports of their elements partition $[0,1]^{d}$ without overlap, each element has the $\\mathbb{L}_{\\infty}$ norm bounded by $\\kappa^{d/2}$ , and is orthogonal to $f_{0}$ . We start by defining the orthonormal set for the Besov ball, consisting of bounded step functions from the multivariate Haar basis.\n\nDefinition 26 (Orthonormal set for the Besov ball) Consider the Haar wavelet basis on $[0,1]^{d}$ with a prime resolution level $J\\in\\mathbb{N}$ , as defined in Appendix B.3. Set $\\kappa=2^{J}$ and define $\\Lambda(\\bar{J}): =\\{0,1,\\ldots,(\\kappa{-}1)\\}^{d}.$ . Fix a d-dimensional on-of multi-index $\\epsilon^{*}: =\\{1,0,0,\\dots,0\\}$ Let B $B$ represent the elements with this multi-index, drawn from the mixed tensor product set at the lowest resolution level J. Specifically, we define:\n\n$$\n\\mathbb{B}_{B}:=\\{\\psi_{J,\\ell}^{\\epsilon^{*}}\\}_{\\ell\\in\\Lambda(J)}.\n$$\n\nSince all results ahead hold for any non-zero $\\epsilon^{*}$ , the specific choice in Definition 26 is arbitrary. Each element of $\\mathbb{B}_{B}$ is orthogonal to $f_{0}$ because its multi-index has at least one non-zero entry. In that dimension of non-zero entry, the scaled and shifted Haar wavelet function $\\psi(x)=\\mathbb{1}_{[0,1/2)}(x)-\\mathbb{1}_{[1/2,1)}(x)$ , which integrates to zero, contributes to the integral. By Fubini’s theorem, this ensures that the entire integral equals zero. Next we define the orthonormal set for Hölder ball:\n\nDefinition 27 (Orthonormal set for the Hölder ball) For a smoothness parameter $s >$ 0, let $\\bar{\\varphi}:\\mathbb{R}^{d}\\to$ R be an infinitely diferentiable function supported on $[0,1]^{d}$ satisfying $\\begin{array}{ r }{\\|\\bar{\\varphi}\\|_{\\mathbb{L}_{2}}=1,\\ \\|\\bar{\\varphi}\\|_{\\mathbb{L}_{\\infty}}<\\infty,\\int_{[0,1]^{d}}\\bar{\\varphi}=0}\\end{array}$ , and $\\|\\bar{\\varphi}^{(s^{\\prime})}\\|_{\\infty}<\\infty$ for $s^{\\prime}\\in\\{1,\\ldots,(\\lfloor s\\rfloor+1)\\}$ . For $J\\in\\mathbb{N}_{.}$ , set $\\kappa=2^{J}$ and define $\\Lambda(J): =\\{0,1,...,(\\kappa-1)\\}^{d},\\varphi_{J,\\ell}(\\mathbf{y}): =\\kappa^{d/2}\\bar{\\varphi}(\\kappa\\mathbf{y}-\\ell)$ for $\\ell\\in\\Lambda(J)$ , and $\\mathbb{B}_{H}: =\\{\\varphi_{J,\\ell}\\}_{\\ell\\in\\Lambda(J)}$ , meaning scaled and shifted copies $o f\\bar{\\varphi}$\n\nNow we are ready to define the mixtures, one for Besov and one for Hölder ball.\n\nDefinition 28 (Mixture alternatives) For the Hölder ball, let $V=\\operatorname{Span}(\\{f_{0}\\}\\cup\\mathbb{B}_{H})$ Construct an orthonormal basis of V as $\\{f_{0}\\}\\cup\\{u_{t}\\}_{t=1}^{\\kappa^{d}}$ , where each $u_{t}$ is an eigenfunction of K with eigenvalue $\\lambda_{t}$ . For each $t\\in [\\kappa^{d}]$ , since ut is orthogonal to $f_{0}$ , it integrates to zero. Recall that $z_{\\alpha}=e^{2\\alpha}-e^{-2\\alpha}~f o r~\\alpha>0$ , and set $\\widetilde{\\lambda}_{t}=(\\lambda_{t}/z_{\\alpha}^{2})\\vee\\kappa^{-d}$ . Fix $\\omega > 0$ . For any $\\pmb{\\eta}=(\\eta_{1},\\dots,\\eta_{\\kappa^{d}})\\in\\{-1,1\\}^{\\kappa^{d}}$ , define the perturbed density as:\n\n$$\nf_{\\omega,\\kappa}^{\\eta}:=f_{0}+\\omega\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}u_{t}.\\tag{74}\n$$\n\nSince $u_{t}\\in V$ for each $t\\in [\\kappa^{d}]$ , we can also write:\n\n$$\nf_{\\omega,\\kappa}^{\\eta}=f_{0}+\\omega\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\sum_{\\psi\\in\\mathbb{B}_{H}}\\theta_{\\psi}(u_{t})\\psi,\\tag{75}\n$$\n\nwhere $\\theta_{\\psi}(u_{t})$ is the Fourier coeficient of $u_{t}$ with respect to $\\psi$ . The mixture for Hölder ball, denoted as $\\nu_{\\rho}^{H}$ , is defined as the uniform probability measure over $\\{f_{\\omega,\\kappa}^{\\eta}:\\eta\\in\\{-1,1\\}^{\\kappa^{d}}\\}$ $T h e$ mixture for the Besov ball, denoted as $\\nu_{\\rho}^{B}$ , is defined through the same procedure as above, with B $H$ replaced by $\\mathbb{B}_{B}$\n\nWe next establish a series of conditions on κ and $\\omega$ to ensure that the mixture elements belong to the smooth density class with high probability.\n\nLemma 30 (Nonnegativity) For any $f_{\\omega,\\kappa}^{\\eta}$ drawn from either the distribution $\\nu_{\\rho}^{H}$ or $\\nu_{\\rho}^{B}$ 2 we always have $\\begin{array}{ r }{\\int_{[0,1]^{d}}f_{\\omega,\\kappa}^{\\eta}(\\mathbf{y})d\\mathbf{y}=1}\\end{array}$ . Also, $f_{\\omega,\\kappa}^{\\eta}\\geq 0$ with a probability greater than $1 - \\gamma$ if\n\n$$\n\\omega\\leq\\frac{\\kappa^{-d}}{\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}}.\\tag{77}\n$$\n\nLemma 32 (Besov class) With probability at least $1 - \\gamma$ , a function drawn from $\\nu_{\\rho}^{\\mathrm{B}}$ lies in $B_{d,s,q}^{\\mathrm{B}}(R)$ if\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(s+d)}}{\\sqrt{2\\log(\\kappa^{d}/\\gamma)}}.\\tag{78}\n$$\n\nFinally, we characterize the condition for κ and $\\omega$ that ensures any valid private test fails.\n\nVerification of nonnegativeness with high probability. The proof follows the approach of Lemma B.5 in Lam-Weil et al. (2022), with an adjustment for the change of basis. Since the proof is the same for $\\nu_{\\rho}^{H}$ and $\\nu_{\\rho}^{B}$ , we state if only for $\\nu_{\\rho}^{B}$ . For each $\\boldsymbol{\\psi}\\in\\mathbb{B}_{B}$ , define an\n\nevent $A_{\\psi}$ as:\n\n$$\nA_{\\psi}:=\\left[\\left|\\omega\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\theta_{\\psi}(u_{t})\\right|\\geq\\kappa^{-d/2}\\right],\n$$\n\nwhich belongs to σ-algebra generated by $\\eta .$ . Since the sum of independent scaled Rademacher variables inside $A_{\\psi}$ is sub-Gaussian with variance proxy $\\begin{array}{ r }{\\omega^{2}\\tilde{\\lambda}_{t}^{-1}\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\psi}^{2}(u_{t})}\\end{array}$ , by the union bound, we have:\n\n$$\n\\begin{array}{l}\\mathbb{P}_{\\nu_{\\rho}^{B}}\\left(\\bigcup_{\\psi\\in\\mathbb{B}_{B}}A_{\\psi}\\right)\\leq\\sum_{\\psi\\in\\mathbb{B}_{B}}2\\exp\\left(\\frac{-\\kappa^{-d}}{2\\omega^{2}\\tilde{\\lambda}_{t}^{-1}\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\psi}^{2}(u_{t})}\\right)\\\\ \\stackrel{(a)}{\\leq}2\\sum_{\\psi\\in\\mathbb{B}_{B}}\\exp\\left(\\frac{-\\kappa^{-2 d}}{2\\omega^{2}\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\psi}^{2}(u_{t})}\\right)\\\\ \\stackrel{(b)}{=}2\\kappa^{d}\\exp\\left(\\frac{-\\kappa^{-2 d}}{2\\omega^{2}}\\right),\\tag{81}\\\\ \\end{array}\n$$\n\nwhere step (a) uses $\\tilde{\\lambda_{t}}\\leq\\kappa^{-d}$ and step (b) uses the following equality that stems from the fact that $u_{t}\\mathrm{'s}$ are orthonormal eigenbasis of V and the orthonormality of $\\mathbb{B}_{B}$ :\n\n$$\n\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\psi}^{2}(u_{t})=\\langle\\psi,\\sum_{t=1}^{\\kappa^{d}}\\langle\\psi,u_{t}\\rangle_{\\mathbb{L}_{2}}u_{t}\\rangle_{\\mathbb{L}_{2}}=\\langle\\psi,\\psi\\rangle_{\\mathbb{L}_{2}}=1.\n$$", "theorems": [{"local_id": "T1", "statement": "Lemma 29 $(\\mathbb{L}_{2}$ separation) For any density $f_{\\omega,\\kappa}^{\\eta}$ drawn from $\\nu_{\\rho},$ the $\\mathbb{L}_{2}$ distance from $f_{0}$ is bounded as:\n\n$$\n\\left\\|\\left\\|f_{\\omega,\\kappa}^{\\eta}-f_{0}\\right\\|\\right\\|_{\\mathbb{L}_{2}}\\geq\\kappa^{d}\\omega\\sqrt{3/4}.\\tag{76}\n$$", "proof": {"steps": [{"n": 1, "claim": "Proof Since $f_{\\omega,\\kappa}^{\\eta}-f_{0}$ is a weighted sum of orthonormal singular vectors of $Q,$ its $\\mathbb{L}_{2}$ norm $\\|f_{\\eta}-f_{0}\\|_{\\mathbb{L}_{2}}$ is bounded below by a quantity involving the sum of the corresponding singular values of $Q .$ . Bounding this sum by $z_{\\alpha}^{2}=e^{2\\alpha}-e^{-2\\alpha}$ , using the definition of the α-LDP constraint, completes the proof. 7"}]}}, {"local_id": "T2", "statement": "Lemma 31 (Hölder class) With probability at least $1 - \\gamma$ , a function drawn from $\\nu_{\\rho}^{H}$ lies in $B_{d,s}^{\\mathrm{H}}(R)$ if\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(d+s)}}{C(s,\\bar{\\varphi})\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}},\n$$\n\nwhere $\\begin{array}{ r }{C(s,\\bar{\\varphi}): =\\operatorname*{max}_{s^{\\prime}\\in\\{1,\\dots,(\\lfloor s\\rfloor+1)\\}}4\\|\\bar{\\varphi}^{(s^{\\prime})}\\|_{\\infty}}\\end{array}$", "proof": {"steps": [{"n": 1, "claim": "Proof We verify the two steps mentioned above in order."}, {"n": 2, "claim": "Hölder continuity of derivatives with high probability. Fix arbitrary $\\mathbf{y}_{1},\\mathbf{y}_{2}\\in [0,1]^{d}$ . Since each $\\varphi\\in\\mathbb{B}_{H}$ has disjoint support, we can specify the element of $\\mathbb{B}_{H}$ whose $\\lfloor s \\rfloor -$ derivative has support containing $\\mathbf{y}_{1}$ and $\\mathbf{y}_{2}$ , say $\\varphi_{\\mathbf{y}_{1}}$ and $\\varphi_{\\mathbf{y}_{2}}$ . Then using the fact that $\\varphi_{\\mathbf{y}_{1}}^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{2})-$ $\\varphi_{\\mathbf{y}_{2}}^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{1})=0$ , we can write the diference of the s -derivative of $f_{\\omega,\\kappa}^{\\eta}$ as\n\n$$\n\\begin{array}{l}|(f_{\\omega,\\kappa}^{\\eta})^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{1})-(f_{\\omega,\\kappa}^{\\eta})^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{2})|\\\\ =\\omega\\left|\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\left\\{\\theta_{\\varphi_{\\mathbf{y}_{1}}}(u_{t})\\varphi_{\\mathbf{y}_{1}}^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{1})-\\theta_{\\varphi_{\\mathbf{y}_{2}}}(u_{t})\\varphi_{\\mathbf{y}_{2}}^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{2})\\right\\}\\right|\\\\ \\leq\\omega\\left|\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi_{\\mathbf{y}_{1}}}\\left(u_{t}\\right)\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\left(\\varphi_{\\mathbf{y}_{1}}^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{1}\\right)-\\varphi_{\\mathbf{y}_{1}}^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{2}\\right)\\right)\\right|(82)\\\\ +\\omega\\left|\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi_{\\mathbf{y}_{2}}}\\left(u_{t}\\right)\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\left(\\varphi_{\\mathbf{y}_{2}}^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{1}\\right)-\\varphi_{\\mathbf{y}_{2}}^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{2}\\right)\\right)\\right|,(83)\\\\ \\end{array}\n$$\n\nwhere the last inequality uses the triangle inequality."}, {"n": 3, "claim": "We separately bound the terms (82) and (83), starting with (82). For $\\mathbf{y}~\\in~[0,1]^{d}$ , recall from (27) that $\\varphi_{\\mathbf{y}_{1}}$ has the form $\\kappa^{d/2}\\varphi(\\kappa\\mathbf{y}-\\pmb{\\ell})$ . By the chain rule, its $\\lfloor s \\rfloor$ -mixed partial derivatives are written as\n\n$$\n\\varphi_{\\mathbf{y}_{1}}^{(\\lfloor s\\rfloor)}(\\mathbf{y})=\\kappa^{(d/2)+\\lfloor s\\rfloor}\\bar{\\varphi}^{(\\lfloor s\\rfloor)}(\\kappa\\mathbf{y}-\\boldsymbol{\\ell}).\\tag{84}\n$$"}, {"n": 4, "claim": "Using the above equality, the mean value theorem and the boundedness of all partial mixed derivatives specified in Definition 27, the term (82) is upper bounded by\n\n$$\n\\omega\\kappa^{(d/2)+\\lfloor s\\rfloor}\\bigg|\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi_{\\mathbf{y}_{1}}}(u_{t})\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\bigg|\\left(2\\|\\bar{\\varphi}^{(\\lfloor s\\rfloor)}\\|_{\\infty}\\wedge\\|\\bar{\\varphi}^{(\\lfloor s+1\\rfloor)}\\|_{\\infty}\\kappa\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|\\right),\n$$\n\nBounding the term (83) using the same argument, we obtain the following bound:\n\n$$\n\\begin{array}{l}\\left|\\left(f_{\\omega,\\kappa}^{\\boldsymbol{\\eta}}\\right)^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{1}\\right)-\\left(f_{\\omega,\\kappa}^{\\boldsymbol{\\eta}}\\right)^{(\\lfloor s\\rfloor)}\\left(\\mathbf{y}_{2}\\right)\\right|\\\\ \\leq\\omega\\kappa^{(d/2)+\\lfloor s\\rfloor}\\left(\\left|\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi_{\\mathbf{y}_{1}}}\\left(u_{t}\\right)\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\right| +\\left|\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi_{\\mathbf{y}_{2}}}\\left(u_{t}\\right)\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\right|\\right)\\left(2\\|\\bar{\\varphi}^{(\\lfloor s\\rfloor)}\\|_{\\infty}\\wedge\\|\\bar{\\varphi}^{(\\lfloor s+1\\rfloor)}\\|_{\\infty}\\kappa\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|\\right).\\tag{85}\\\\ \\end{array}\n$$"}, {"n": 5, "claim": "For each $\\varphi\\in\\mathbb{B}_{H}$ , let $A_{\\varphi}$ be an event within the σ-algebra generated by $\\eta_{\\mathrm{:}}$ , defined as follows:\n\n$$\nA_{\\varphi}:=\\left[\\left|\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\theta_{\\varphi}(u_{t})\\right|\\geq\\sqrt{2\\kappa^{d}\\log(2\\kappa^{d}/\\gamma)}\\right].\\tag{86}\n$$"}, {"n": 6, "claim": "Since the sum of independent scaled Rademacher variables inside $A_{\\varphi}$ is sub-Gaussian with variance proxy $\\begin{array}{ r }{\\tilde{\\lambda}_{t}^{-1}\\sum_{t=1}^{\\kappa^{d}}\\theta_{\\varphi}^{2}(u_{t})}\\end{array}$ , by the same technique as (81), we have $\\begin{array}{ r }{\\mathbb{P}_{\\nu_{\\rho}^{H}}\\bigl(\\bigcap_{\\varphi\\in\\mathbb{B}_{H}}A_{\\varphi}^{c}\\bigr)\\geq}\\end{array}$\n\n$1 - \\gamma / 2$ . Under the event $\\cap_{\\varphi\\in\\mathbb{B}_{H}}A_{\\varphi}^{c}$ , the bound (85) continues to\n\n$$\n\\begin{array}{l}|(f_{\\omega,\\kappa}^{\\boldsymbol{\\eta}})^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{1})-(f_{\\omega,\\kappa}^{\\boldsymbol{\\eta}})^{(\\lfloor s\\rfloor)}(\\mathbf{y}_{2})|\\stackrel{(a)}{\\leq}\\omega\\kappa^{\\frac{d}{2}+\\lfloor s\\rfloor}2\\sqrt{2\\kappa^{d}\\log(2\\kappa^{d}/\\gamma)}\\left(2\\|\\bar{\\varphi}^{(\\lfloor s\\rfloor)}\\|_{\\infty}\\wedge\\|\\bar{\\varphi}^{(\\lfloor s+1\\rfloor)}\\|_{\\infty}\\kappa\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|\\right)\\\\ \\stackrel{(b)}{\\leq}\\omega\\kappa^{\\frac{d}{2}+\\lfloor s\\rfloor}\\sqrt{2\\kappa^{d}\\log(2\\kappa^{d}/\\gamma)}C_{2}(s,\\bar{\\varphi})(1\\wedge\\kappa\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|)\\\\ \\stackrel{(c)}{\\leq}\\omega\\kappa^{\\frac{d}{2}+\\lfloor s\\rfloor}\\sqrt{2\\kappa^{d}\\log(2\\kappa^{d}/\\gamma)}C_{2}(s,\\bar{\\varphi})\\kappa^{(s-\\lfloor s\\rfloor)}\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|^{s-\\lfloor s\\rfloor}\\\\ =\\omega\\kappa^{d+s}\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}C_{2}(s,\\bar{\\varphi})\\|\\mathbf{y}_{1}-\\mathbf{y}_{2}\\|^{s-\\lfloor s\\rfloor},\\tag{87}\\\\ \\end{array}\n$$\n\nwhere $C_{2}(s,\\bar{\\varphi}): =\\big(4\\||\\bar{\\varphi}^{(\\lfloor s\\rfloor)}\\|_{L_{\\infty}}\\vee 2\\||\\bar{\\varphi}^{(\\lfloor s+1\\rfloor)}\\|_{L_{\\infty}}\\big)$ , step (a) uses the event $\\cap_{\\varphi\\in{\\mathbb B}_{H}}A_{\\varphi}^{c}$ , step (b) uses the basic inequality that\n\n$$\n(a\\times 1)\\land(b\\times c)\\leq(a\\lor b)\\times(1\\land c)\\quad \\text{for} a,b,c\\geq 0,\n$$\n\nand step (c) holds by the following fact: When $(1\\land c)\\leq 1$ and $0 \\leq s - \\lfloor s \\rfloor < 1$ , it holds that\n\n$$\n(1\\land c)\\leq(1\\land c)^{s-\\lfloor s\\rfloor}\\leq c^{s-\\lfloor s\\rfloor}.\n$$"}, {"n": 7, "claim": "Starting from inequality (87), we solve for $\\omega$ in $\\omega\\kappa^{d+s}\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}C_{2}(s,\\bar{\\varphi})\\leq R .$ Solving for $\\omega,$ we obtain\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(d+s)}}{C_{2}(s,\\bar{\\varphi})\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}}.\\tag{88}\n$$"}, {"n": 8, "claim": "Therefore, if $\\omega$ satisfies this inequality, then with probability at least $1 - \\gamma / 2$ , the Lipschitz property from Definition 8 holds for a function $f_{\\omega,\\kappa}^{\\eta}$ drawn from $\\nu_{\\rho}^{H}$\n\nBounded derivatives with high probability. Fix an integer $s^{\\prime}\\in\\left[\\left\\lfloor s\\right\\rfloor\\right]$ and an arbitrary ${\\textbf{ y }}\\in$ $[0,1]^{d}$ . Since each $\\varphi\\in\\mathbb{B}_{H}$ has disjoint support, we can specify the element of $\\mathbb{B}_{H}$ whose s0-derivative has support containing y, say $\\varphi_{\\mathbf{y}}$ . Using (84) to the basis expansion of $f_{\\omega,\\kappa}^{\\eta}$ with respect to $\\mathbb{B}_{H}$ , we compute the $s^{\\prime}.$ -derivative of $f_{\\omega,\\kappa}^{\\eta}$ as:\n\n$$\n(f_{\\omega,\\kappa}^{\\pmb{\\eta}})^{(s^{\\prime})}(\\mathbf{y})=\\omega\\kappa^{\\frac{d}{2}+s^{\\prime}}\\biggl(\\sum_{t=1}^{\\kappa^{d}}\\eta_{t}\\tilde{\\lambda}_{t}^{-1/2}\\theta_{\\varphi_{\\mathbf{y}}}(u_{t})\\biggr)\\bar{\\varphi}^{(s^{\\prime})}(\\kappa\\mathbf{y}-\\pmb{\\ell}).\n$$"}, {"n": 9, "claim": "Under the event $\\cap_{\\varphi\\in{\\mathbb{B}}_{H}}A_{\\varphi}^{c}$ as defined in (86), the derivative above is bounded by\n\n$$\n(f_{\\omega,\\kappa}^{\\eta})^{(s^{\\prime})}(\\mathbf{y})\\leq\\kappa^{d+s^{\\prime}}\\||\\varphi^{(s^{\\prime})}\\||_{\\infty}\\omega\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}.\n$$"}, {"n": 10, "claim": "We solve for $\\omega$ in $\\kappa^{d+s^{\\prime}}\\|\\varphi^{(s^{\\prime})}\\|_{\\infty}\\omega\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}\\leq R$ . Solving for $\\omega,$ , we obtain\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(d+s^{\\prime})}}{\\|\\|\\varphi^{(s^{\\prime})}\\|\\|_{\\infty}\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}}.\\tag{89}\n$$"}, {"n": 11, "claim": "Therefore, if ω satisfies this inequality, then with probability at least $1 - \\gamma / 2$ , the s0-derivative of $f_{\\omega,\\kappa}^{\\eta}$ drawn from $\\nu_{\\rho}^{H}$ is bounded by R. Combining the above condition for $s^{\\prime}\\in [\\left\\lfloor s\\right\\rfloor]$ , we conclude that if\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(d+s)}}{C_{3}(s,\\bar{\\varphi})\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}},\\tag{90}\n$$\n\nwhere $\\begin{array}{ r }{C_{3}(s,\\bar{\\varphi}): =\\operatorname*{max}_{s^{\\prime}\\in\\{1,\\dots,\\lfloor s\\rfloor\\}}\\||\\bar{\\varphi}^{(s^{\\prime})}\\||_{\\infty}}\\end{array}$ , then with probability at least $1 - \\gamma / 2$ , the bounded derivatives property of Definition 8 holds for a function $f_{\\omega,\\kappa}^{\\eta}$ drawn from $\\nu_{\\rho}^{H}$"}, {"n": 12, "claim": "Conclusion.\n\nCombining the conditions (88) and (90), we conclude that if\n\n$$\n\\omega\\leq\\frac{R\\kappa^{-(d+s)}}{C_{4}(s,\\bar{\\varphi})\\sqrt{2\\log(2\\kappa^{d}/\\gamma)}},\\tag{91}\n$$\n\nwhere $\\begin{array}{ r }{C_{4}(s,\\bar{\\varphi}): =\\operatorname*{max}_{s^{\\prime}\\in\\{1,\\dots,(\\lfloor s\\rfloor+1)\\}}4\\||\\bar{\\varphi}^{(s^{\\prime})}\\|_{\\infty}}\\end{array}$ , then with probability at least $1 - \\gamma$ , for a function $f_{\\omega,\\kappa}^{\\eta}$ drawn from $\\nu_{\\rho}^{H}$ , we have $f_{\\omega,\\kappa}^{\\eta}\\in\\mathcal{B}_{d,s}^{\\mathrm{H}}(R)$ . This completes the proof Lemma 31."}]}}, {"local_id": "T3", "statement": "Lemma 33 (Indistinguishability) Under the conditions of Lemmas 30 and $^{31,}$ if\n\n$$\n\\omega\\leq(n z_{\\alpha}^{2})^{-1/2}\\left(\\frac{\\log [1+4(1-2\\gamma-\\beta)^{2}]}{\\kappa^{d}}\\right)^{1/4},\\tag{79}\n$$\n\nthen no valid $\\alpha{-}L D P$ test of level γ can distinguish between the uniform density $f_{0}$ and the alternatives in (72) (with $\\dot{\\mathcal{P}}=\\mathcal{P}_{d,s}^{\\mathrm{H},\\mathrm{i}}(R))$ with type II error less than $\\beta$ . The same conclusion holds when $\\mathcal{P}_{d,s}^{\\mathrm{H},1}(R)$ and the condition in 31 is replaced by $\\mathcal{P}_{d,s,q}^{\\mathrm{B},1}(R)$ and the condition in 32, respectively.", "proof": {"steps": [{"n": 1, "claim": "Proof The argument applies to both $(\\mathcal{P}_{d,s}^{\\mathrm{H},1}(R),\\nu_{\\rho}^{H})$ and $(\\mathcal{P}_{d,s,q}^{\\mathrm{B},1}(R),\\nu_{\\rho}^{B})$ . For simplicity, denote the distribution class and mixture as $\\mathcal{P}$ and $\\nu_{\\rho},$ , respectively. Let $L_{Q_{\\nu_{o}}^{n}}(\\tilde{\\mathbf{Y}}_{1},\\ldots,\\tilde{\\mathbf{Y}}_{n_{1}})$ be the likelihood ratio between $\\boldsymbol{Q}_{\\nu_{\\rho}}^{n}$ and $Q_{f_{0}}^{n}$ . Define the total variation distance as $\\|\\mathbb{P}_{Q_{\\nu_{\\rho}}^{n}}-$ $\\begin{array}{ r }{\\mathbb{P}_{Q_{f_{0}}^{n}}\\|_{\\mathrm{TV}}: =\\frac{1}{2}\\int|LQ_{\\nu_{\\rho}}^{n}-1|\\ d\\mathbb{P}_{Q_{f_{0}}^{n}}}\\end{array}$ , and chi-square divergence as $\\begin{array}{ r }{\\chi^{2}(Q_{\\nu_{\\rho}}^{n}\\Vert Q_{f_{0}}^{n}): =\\frac 12\\big(\\mathbb{E}_{Q_{f_{0}}^{n}}[L_{Q_{\\nu_{\\rho}}^{n}}(\\tilde{\\mathbf{Y}}_{1},\\ldots,\\tilde{\\mathbf{Y}}_{n_{1}})^{2}-}\\end{array}$ $1\\bar{\\jmath})^{1/2}$ ."}, {"n": 2, "claim": "The minimax type II error is lower bounded as:\n\n$$\n\\begin{array}{l}\\inf_{\\Delta_{\\gamma,Q}}\\sup_{f\\in\\mathcal{P}}\\mathbb{P}_{Q_{f}^{n}}\\left(\\Delta_{\\gamma,Q}(\\tilde{\\mathbf{Y}}_{1},\\dots,\\tilde{\\mathbf{Y}}_{n_{1}})=0\\right)\\geq\\inf_{\\Delta_{\\gamma,Q}}\\mathbb{P}_{Q_{\\nu_{\\rho}}^{n}}\\left(\\Delta_{\\gamma,Q}(\\tilde{\\mathbf{Y}}_{1},\\dots,\\tilde{\\mathbf{Y}}_{n_{1}})=0\\right)-\\gamma\\\\ \\geq 1-2\\gamma-\\|Q_{\\nu_{\\rho}^{H}}^{n}-Q_{f_{0}}^{n}\\|_{\\mathrm{TV}}\\\\ \\geq 1-2\\gamma-\\frac{1}{2}\\sqrt{\\chi^{2}(Q_{\\nu_{\\rho}}^{n}\\|Q_{f_{0}}^{n})},\\tag{80}\\\\ \\end{array}\n$$\n\nwhere the last inequality uses the inequality between chi-square divergence and total variation distance $\\chi^{2}(Q_{\\nu_{\\rho}}^{n}\\|Q_{f_{0}}^{n})\\geq 4\\|Q_{\\nu_{\\rho}}^{n}-Q_{f_{0}}^{n}\\|_{\\mathrm{TV}}^{2}$ (see, for example, Lemma B.2 of Lam-Weil et al., 2022)."}, {"n": 3, "claim": "Thus it sufices to verify that the condition in (79) implies that the last righthand side term in (80) is lower bounded by $\\beta .$ . Thus the proof is completed by bounding the chi-square divergence as $\\chi^{2}(Q_{\\nu_{\\rho}}^{n}\\Vert Q_{f_{0}}^{n})\\leq-1+$ $\\exp(n_{1}^{2}\\omega^{4}z_{\\alpha}^{4}\\kappa^{d})$, by using the equation (73) and the definition in (74) involving the orthonormal singular vectors of $Q$"}]}}], "target_local_id": null, "topic_domain": "Statistical Learning Theory", "topic_subtopic": "Statistical Estimation & Minimax Theory", "label": "correct", "error_step": null, "error_class6": [], "error_explanation": null} {"id": "jmlr-2026-24-0771", "context": "Notation. Scalars are denoted in lower-case and vectors in lower-case bold, e.g. $x\\in\\mathbb{R}$ and $\\mathbf{x}\\in\\mathbb{R}^{n}$ . Note that these will sometimes denote random variables depending on the context. We maintain an analogous notation for scalar-valued and vector-valued functions, e.g., $f$ and $f .$ . The ith coordinate of the vector x is denoted by $\\mathbf{\\mathcal{x}}_{i}$ . The set containing the first n integers excluding 0 is denoted by [n]. Given a subset of indices $S \\subseteq [ n ]$ , x denotes the subvector consisting of entries $\\mathbf{\\nabla}_{\\mathbf{x}_{i}}$ for $i \\in S$ . Given a sequence of T random vectors $(\\pmb{x}^{1},\\dots,\\pmb{x}^{T})$ , the subsequence consisting of the first t elements is denoted by $\\pmb{x}^{\\le t}: =(\\pmb{x}^{1},...,\\pmb{x}^{t})$ , and analogously for $\\scriptstyle{\\pmb x}^{