A trick used in Rademacher complexity related Theorem Unicorn Meta Zoo #1: Why another podcast? Announcing the arrival of Valued Associate #679: Cesar Manara 2019 Moderator Election Q&A - Questionnaire 2019 Community Moderator Election ResultsProve Reccurrent Neural Network can exhibit oscillatory behaviorWhy is Reconstruction in Autoencoders Using the Same Activation Function as Forward Activation, and not the Inverse?An unbiased simulator for policy simulation in reinforcement learningWeight decay in neural networkLocally Weighted Regression (Loess) - Robustifying iterationsBackpropagation - softmax derivativeHow does binary cross entropy work?Why Gradient methods work in finding the parameters in Neural Networks?A question on realizable sample complexityWhy is a lower bound necessary in proofs of VC-dimensions for various examples of hypotheses?

Putting Ant-Man on house arrest

Suing a Police Officer Instead of the Police Department

Why aren't road bicycle wheels tiny?

What to do with someone that cheated their way though university and a PhD program?

Why did Israel vote against lifting the American embargo on Cuba?

"Whatever a Russian does, they end up making the Kalashnikov gun"? Are there any similar proverbs in English?

Has a Nobel Peace laureate ever been accused of war crimes?

How to dissolve shared line segments together in QGIS?

Why isn't everyone flabbergasted about Bran's "gift"?

Why didn't the Space Shuttle bounce back into space many times as possible so that it loose lot of kinetic energy over there?

yticklabels on the right side of yaxis

Is it OK if I do not take the receipt in Germany?

Why does the Cisco show run command not show the full version, while the show version command does?

What is a 'Key' in computer science?

I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?

Can I criticise the more senior developers around me for not writing clean code?

How much XP should you award if the encounter was not solved via battle?

Bright yellow or light yellow?

What was Apollo 13's "Little Jolt" after MECO?

Delete Strings name, John, John Doe, Doe to name, John Doe

Is Bran literally the world's memory?

What is the ongoing value of the Kanban board to the developers as opposed to management

Trigonometric and Exponential Integration

Mechanism of the formation of peracetic acid



A trick used in Rademacher complexity related Theorem



Unicorn Meta Zoo #1: Why another podcast?
Announcing the arrival of Valued Associate #679: Cesar Manara
2019 Moderator Election Q&A - Questionnaire
2019 Community Moderator Election ResultsProve Reccurrent Neural Network can exhibit oscillatory behaviorWhy is Reconstruction in Autoencoders Using the Same Activation Function as Forward Activation, and not the Inverse?An unbiased simulator for policy simulation in reinforcement learningWeight decay in neural networkLocally Weighted Regression (Loess) - Robustifying iterationsBackpropagation - softmax derivativeHow does binary cross entropy work?Why Gradient methods work in finding the parameters in Neural Networks?A question on realizable sample complexityWhy is a lower bound necessary in proofs of VC-dimensions for various examples of hypotheses?










4












$begingroup$


I am currently working on the proof of Theorem 3.1 in the book "Foundations of Machine Learning" (page 35, First edition), and there is a key trick used in the proof (equation 3.10 and 3.11):



$$beginalign*
&E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right] \
&textwhere Bbb P(sigma_i=1)=Bbb P(sigma_i=-1)=frac12
endalign*$$



It is also shown in the lecture pdf page 8 in this link:
https://cs.nyu.edu/~mohri/mls/lecture_3.pdf



This is possible because $z_i$ and $z'_i$ can be swapped. My question is, why can we swap $z_i$ and $z'_i$? In the book, it says this is possible because "we are taking the expectation over all possible $S$ and $S'$, it will not affect the overall expectation." Unfortunately, I don't understand the meaning or intuition of this part.



Thank you very much for reading the question and for your time!










share|improve this question











$endgroup$
















    4












    $begingroup$


    I am currently working on the proof of Theorem 3.1 in the book "Foundations of Machine Learning" (page 35, First edition), and there is a key trick used in the proof (equation 3.10 and 3.11):



    $$beginalign*
    &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right] \
    &textwhere Bbb P(sigma_i=1)=Bbb P(sigma_i=-1)=frac12
    endalign*$$



    It is also shown in the lecture pdf page 8 in this link:
    https://cs.nyu.edu/~mohri/mls/lecture_3.pdf



    This is possible because $z_i$ and $z'_i$ can be swapped. My question is, why can we swap $z_i$ and $z'_i$? In the book, it says this is possible because "we are taking the expectation over all possible $S$ and $S'$, it will not affect the overall expectation." Unfortunately, I don't understand the meaning or intuition of this part.



    Thank you very much for reading the question and for your time!










    share|improve this question











    $endgroup$














      4












      4








      4





      $begingroup$


      I am currently working on the proof of Theorem 3.1 in the book "Foundations of Machine Learning" (page 35, First edition), and there is a key trick used in the proof (equation 3.10 and 3.11):



      $$beginalign*
      &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right] \
      &textwhere Bbb P(sigma_i=1)=Bbb P(sigma_i=-1)=frac12
      endalign*$$



      It is also shown in the lecture pdf page 8 in this link:
      https://cs.nyu.edu/~mohri/mls/lecture_3.pdf



      This is possible because $z_i$ and $z'_i$ can be swapped. My question is, why can we swap $z_i$ and $z'_i$? In the book, it says this is possible because "we are taking the expectation over all possible $S$ and $S'$, it will not affect the overall expectation." Unfortunately, I don't understand the meaning or intuition of this part.



      Thank you very much for reading the question and for your time!










      share|improve this question











      $endgroup$




      I am currently working on the proof of Theorem 3.1 in the book "Foundations of Machine Learning" (page 35, First edition), and there is a key trick used in the proof (equation 3.10 and 3.11):



      $$beginalign*
      &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right] \
      &textwhere Bbb P(sigma_i=1)=Bbb P(sigma_i=-1)=frac12
      endalign*$$



      It is also shown in the lecture pdf page 8 in this link:
      https://cs.nyu.edu/~mohri/mls/lecture_3.pdf



      This is possible because $z_i$ and $z'_i$ can be swapped. My question is, why can we swap $z_i$ and $z'_i$? In the book, it says this is possible because "we are taking the expectation over all possible $S$ and $S'$, it will not affect the overall expectation." Unfortunately, I don't understand the meaning or intuition of this part.



      Thank you very much for reading the question and for your time!







      machine-learning theory pac-learning






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 10 at 12:07









      Esmailian

      3,746420




      3,746420










      asked Apr 8 at 0:35









      ML studentML student

      594




      594




















          1 Answer
          1






          active

          oldest

          votes


















          3












          $begingroup$

          This requires hell of a derivation, but I liked the question :)




          My question is, why can we swap $z_i$ and $z'_i$?




          The key insight is that notation $S sim mathcalD^m$ is equivalent to $Z_1 sim mathcalD, cdots, Z_m sim mathcalD$. This translates to
          $$E_S,S'[.]=E_Z_1,cdots,Z_m,Z'_1,cdots,Z'_m[.]$$
          which remains the same by reordering the $Z$s.



          Therefore the swap argument can be shown by



          1. Singling out an arbitrary term $k$ from $sum_i=1^m$,

          2. Switching $E_Z_k,Z'_k$ to $E_Z'_k,Z_k$, and

          3. Renaming the variables.

          That is,
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextexpand=
          E_colorblueZ_1,cdots,Z_m,Z'_1,cdots,Z'_mleft[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]\
          &oversettextseparate=
          E_cdots,Z_k,cdots,Z'_k,cdotsleft[undersetg in mathcalGtextsup frac1mleft(colorblueg(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextswitch=
          E_cdots,colorblueZ'_k,cdots,colorblueZ_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(g(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextreorder=
          E_cdots,Z'_k,cdots,Z_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(colorblue-(g(z_k)-g(z'_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] (*)
          endalign*$$

          Now by renaming $Z_k leftrightarrow Z'_k$, and thus $z_k leftrightarrow z'_k$ in $(*)$ we have:
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextrename= E_cdots,colorblueZ_k,cdots,colorblueZ'_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(-(g(colorbluez'_k)-g(colorbluez_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          &oversettextcollapse= E_S,S'left[undersetg in mathcalGtextsupfrac1mleft(-(g(z'_k)-g(z_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          endalign*$$



          which corresponds to $boldsymbolsigma=(sigma_1=1,cdots,sigma_k = -1,cdots,sigma_m=1)$.



          We have proved this equality by switching the sign of arbitrary index $k$. Therefore, by defining
          $$f(boldsymbolsigma):=E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]$$
          we have shown that
          $$forall boldsymbolsigma_1, boldsymbolsigma_2,f(boldsymbolsigma_1)=f(boldsymbolsigma_2).$$
          For example:
          $$beginalign*
          f(boldsymbol1)&=f(sigma_1=1,cdots,sigma_k=1, cdots,sigma_m=1)\
          &=f(sigma_1=1,cdots,sigma_k=-1, cdots,sigma_m=1)
          endalign*$$

          Knowing that there is $2^m$ equi-probable vectors $boldsymbolsigma_i$, we finally have
          $$beginalign*
          E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]&=f(boldsymbol1) \
          &=frac12^m f(boldsymbolsigma_1)+cdots+frac12^mf(boldsymbolsigma_2^m)\
          &=E_boldsymbolsigma[f(boldsymbolsigma)] \
          &=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]
          endalign*$$

          $square$






          share|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
            $endgroup$
            – ML student
            Apr 9 at 9:39











          Your Answer








          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "557"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48842%2fa-trick-used-in-rademacher-complexity-related-theorem%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          3












          $begingroup$

          This requires hell of a derivation, but I liked the question :)




          My question is, why can we swap $z_i$ and $z'_i$?




          The key insight is that notation $S sim mathcalD^m$ is equivalent to $Z_1 sim mathcalD, cdots, Z_m sim mathcalD$. This translates to
          $$E_S,S'[.]=E_Z_1,cdots,Z_m,Z'_1,cdots,Z'_m[.]$$
          which remains the same by reordering the $Z$s.



          Therefore the swap argument can be shown by



          1. Singling out an arbitrary term $k$ from $sum_i=1^m$,

          2. Switching $E_Z_k,Z'_k$ to $E_Z'_k,Z_k$, and

          3. Renaming the variables.

          That is,
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextexpand=
          E_colorblueZ_1,cdots,Z_m,Z'_1,cdots,Z'_mleft[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]\
          &oversettextseparate=
          E_cdots,Z_k,cdots,Z'_k,cdotsleft[undersetg in mathcalGtextsup frac1mleft(colorblueg(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextswitch=
          E_cdots,colorblueZ'_k,cdots,colorblueZ_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(g(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextreorder=
          E_cdots,Z'_k,cdots,Z_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(colorblue-(g(z_k)-g(z'_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] (*)
          endalign*$$

          Now by renaming $Z_k leftrightarrow Z'_k$, and thus $z_k leftrightarrow z'_k$ in $(*)$ we have:
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextrename= E_cdots,colorblueZ_k,cdots,colorblueZ'_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(-(g(colorbluez'_k)-g(colorbluez_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          &oversettextcollapse= E_S,S'left[undersetg in mathcalGtextsupfrac1mleft(-(g(z'_k)-g(z_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          endalign*$$



          which corresponds to $boldsymbolsigma=(sigma_1=1,cdots,sigma_k = -1,cdots,sigma_m=1)$.



          We have proved this equality by switching the sign of arbitrary index $k$. Therefore, by defining
          $$f(boldsymbolsigma):=E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]$$
          we have shown that
          $$forall boldsymbolsigma_1, boldsymbolsigma_2,f(boldsymbolsigma_1)=f(boldsymbolsigma_2).$$
          For example:
          $$beginalign*
          f(boldsymbol1)&=f(sigma_1=1,cdots,sigma_k=1, cdots,sigma_m=1)\
          &=f(sigma_1=1,cdots,sigma_k=-1, cdots,sigma_m=1)
          endalign*$$

          Knowing that there is $2^m$ equi-probable vectors $boldsymbolsigma_i$, we finally have
          $$beginalign*
          E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]&=f(boldsymbol1) \
          &=frac12^m f(boldsymbolsigma_1)+cdots+frac12^mf(boldsymbolsigma_2^m)\
          &=E_boldsymbolsigma[f(boldsymbolsigma)] \
          &=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]
          endalign*$$

          $square$






          share|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
            $endgroup$
            – ML student
            Apr 9 at 9:39















          3












          $begingroup$

          This requires hell of a derivation, but I liked the question :)




          My question is, why can we swap $z_i$ and $z'_i$?




          The key insight is that notation $S sim mathcalD^m$ is equivalent to $Z_1 sim mathcalD, cdots, Z_m sim mathcalD$. This translates to
          $$E_S,S'[.]=E_Z_1,cdots,Z_m,Z'_1,cdots,Z'_m[.]$$
          which remains the same by reordering the $Z$s.



          Therefore the swap argument can be shown by



          1. Singling out an arbitrary term $k$ from $sum_i=1^m$,

          2. Switching $E_Z_k,Z'_k$ to $E_Z'_k,Z_k$, and

          3. Renaming the variables.

          That is,
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextexpand=
          E_colorblueZ_1,cdots,Z_m,Z'_1,cdots,Z'_mleft[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]\
          &oversettextseparate=
          E_cdots,Z_k,cdots,Z'_k,cdotsleft[undersetg in mathcalGtextsup frac1mleft(colorblueg(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextswitch=
          E_cdots,colorblueZ'_k,cdots,colorblueZ_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(g(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextreorder=
          E_cdots,Z'_k,cdots,Z_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(colorblue-(g(z_k)-g(z'_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] (*)
          endalign*$$

          Now by renaming $Z_k leftrightarrow Z'_k$, and thus $z_k leftrightarrow z'_k$ in $(*)$ we have:
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextrename= E_cdots,colorblueZ_k,cdots,colorblueZ'_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(-(g(colorbluez'_k)-g(colorbluez_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          &oversettextcollapse= E_S,S'left[undersetg in mathcalGtextsupfrac1mleft(-(g(z'_k)-g(z_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          endalign*$$



          which corresponds to $boldsymbolsigma=(sigma_1=1,cdots,sigma_k = -1,cdots,sigma_m=1)$.



          We have proved this equality by switching the sign of arbitrary index $k$. Therefore, by defining
          $$f(boldsymbolsigma):=E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]$$
          we have shown that
          $$forall boldsymbolsigma_1, boldsymbolsigma_2,f(boldsymbolsigma_1)=f(boldsymbolsigma_2).$$
          For example:
          $$beginalign*
          f(boldsymbol1)&=f(sigma_1=1,cdots,sigma_k=1, cdots,sigma_m=1)\
          &=f(sigma_1=1,cdots,sigma_k=-1, cdots,sigma_m=1)
          endalign*$$

          Knowing that there is $2^m$ equi-probable vectors $boldsymbolsigma_i$, we finally have
          $$beginalign*
          E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]&=f(boldsymbol1) \
          &=frac12^m f(boldsymbolsigma_1)+cdots+frac12^mf(boldsymbolsigma_2^m)\
          &=E_boldsymbolsigma[f(boldsymbolsigma)] \
          &=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]
          endalign*$$

          $square$






          share|improve this answer









          $endgroup$








          • 1




            $begingroup$
            Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
            $endgroup$
            – ML student
            Apr 9 at 9:39













          3












          3








          3





          $begingroup$

          This requires hell of a derivation, but I liked the question :)




          My question is, why can we swap $z_i$ and $z'_i$?




          The key insight is that notation $S sim mathcalD^m$ is equivalent to $Z_1 sim mathcalD, cdots, Z_m sim mathcalD$. This translates to
          $$E_S,S'[.]=E_Z_1,cdots,Z_m,Z'_1,cdots,Z'_m[.]$$
          which remains the same by reordering the $Z$s.



          Therefore the swap argument can be shown by



          1. Singling out an arbitrary term $k$ from $sum_i=1^m$,

          2. Switching $E_Z_k,Z'_k$ to $E_Z'_k,Z_k$, and

          3. Renaming the variables.

          That is,
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextexpand=
          E_colorblueZ_1,cdots,Z_m,Z'_1,cdots,Z'_mleft[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]\
          &oversettextseparate=
          E_cdots,Z_k,cdots,Z'_k,cdotsleft[undersetg in mathcalGtextsup frac1mleft(colorblueg(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextswitch=
          E_cdots,colorblueZ'_k,cdots,colorblueZ_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(g(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextreorder=
          E_cdots,Z'_k,cdots,Z_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(colorblue-(g(z_k)-g(z'_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] (*)
          endalign*$$

          Now by renaming $Z_k leftrightarrow Z'_k$, and thus $z_k leftrightarrow z'_k$ in $(*)$ we have:
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextrename= E_cdots,colorblueZ_k,cdots,colorblueZ'_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(-(g(colorbluez'_k)-g(colorbluez_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          &oversettextcollapse= E_S,S'left[undersetg in mathcalGtextsupfrac1mleft(-(g(z'_k)-g(z_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          endalign*$$



          which corresponds to $boldsymbolsigma=(sigma_1=1,cdots,sigma_k = -1,cdots,sigma_m=1)$.



          We have proved this equality by switching the sign of arbitrary index $k$. Therefore, by defining
          $$f(boldsymbolsigma):=E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]$$
          we have shown that
          $$forall boldsymbolsigma_1, boldsymbolsigma_2,f(boldsymbolsigma_1)=f(boldsymbolsigma_2).$$
          For example:
          $$beginalign*
          f(boldsymbol1)&=f(sigma_1=1,cdots,sigma_k=1, cdots,sigma_m=1)\
          &=f(sigma_1=1,cdots,sigma_k=-1, cdots,sigma_m=1)
          endalign*$$

          Knowing that there is $2^m$ equi-probable vectors $boldsymbolsigma_i$, we finally have
          $$beginalign*
          E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]&=f(boldsymbol1) \
          &=frac12^m f(boldsymbolsigma_1)+cdots+frac12^mf(boldsymbolsigma_2^m)\
          &=E_boldsymbolsigma[f(boldsymbolsigma)] \
          &=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]
          endalign*$$

          $square$






          share|improve this answer









          $endgroup$



          This requires hell of a derivation, but I liked the question :)




          My question is, why can we swap $z_i$ and $z'_i$?




          The key insight is that notation $S sim mathcalD^m$ is equivalent to $Z_1 sim mathcalD, cdots, Z_m sim mathcalD$. This translates to
          $$E_S,S'[.]=E_Z_1,cdots,Z_m,Z'_1,cdots,Z'_m[.]$$
          which remains the same by reordering the $Z$s.



          Therefore the swap argument can be shown by



          1. Singling out an arbitrary term $k$ from $sum_i=1^m$,

          2. Switching $E_Z_k,Z'_k$ to $E_Z'_k,Z_k$, and

          3. Renaming the variables.

          That is,
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextexpand=
          E_colorblueZ_1,cdots,Z_m,Z'_1,cdots,Z'_mleft[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]\
          &oversettextseparate=
          E_cdots,Z_k,cdots,Z'_k,cdotsleft[undersetg in mathcalGtextsup frac1mleft(colorblueg(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextswitch=
          E_cdots,colorblueZ'_k,cdots,colorblueZ_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(g(z'_k)-g(z_k)+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] \
          &oversettextreorder=
          E_cdots,Z'_k,cdots,Z_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(colorblue-(g(z_k)-g(z'_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right] (*)
          endalign*$$

          Now by renaming $Z_k leftrightarrow Z'_k$, and thus $z_k leftrightarrow z'_k$ in $(*)$ we have:
          $$beginalign*
          &E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right] \
          &oversettextrename= E_cdots,colorblueZ_k,cdots,colorblueZ'_k,cdotsleft[undersetg in mathcalGtextsupfrac1mleft(-(g(colorbluez'_k)-g(colorbluez_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          &oversettextcollapse= E_S,S'left[undersetg in mathcalGtextsupfrac1mleft(-(g(z'_k)-g(z_k))+sum_i=1; neq k^m g(z'_i)-g(z_i)right)right]\
          endalign*$$



          which corresponds to $boldsymbolsigma=(sigma_1=1,cdots,sigma_k = -1,cdots,sigma_m=1)$.



          We have proved this equality by switching the sign of arbitrary index $k$. Therefore, by defining
          $$f(boldsymbolsigma):=E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]$$
          we have shown that
          $$forall boldsymbolsigma_1, boldsymbolsigma_2,f(boldsymbolsigma_1)=f(boldsymbolsigma_2).$$
          For example:
          $$beginalign*
          f(boldsymbol1)&=f(sigma_1=1,cdots,sigma_k=1, cdots,sigma_m=1)\
          &=f(sigma_1=1,cdots,sigma_k=-1, cdots,sigma_m=1)
          endalign*$$

          Knowing that there is $2^m$ equi-probable vectors $boldsymbolsigma_i$, we finally have
          $$beginalign*
          E_S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m g(z'_i)-g(z_i)right]&=f(boldsymbol1) \
          &=frac12^m f(boldsymbolsigma_1)+cdots+frac12^mf(boldsymbolsigma_2^m)\
          &=E_boldsymbolsigma[f(boldsymbolsigma)] \
          &=E_boldsymbolsigma,S,S'left[undersetg in mathcalGtextsupfrac1msum_i=1^m sigma_i(g(z'_i)-g(z_i))right]
          endalign*$$

          $square$







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Apr 8 at 20:26









          EsmailianEsmailian

          3,746420




          3,746420







          • 1




            $begingroup$
            Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
            $endgroup$
            – ML student
            Apr 9 at 9:39












          • 1




            $begingroup$
            Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
            $endgroup$
            – ML student
            Apr 9 at 9:39







          1




          1




          $begingroup$
          Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
          $endgroup$
          – ML student
          Apr 9 at 9:39




          $begingroup$
          Thank you so much for your time! Great explanation of what was happening in between equation 3.10 and 3.11. I really enjoyed going through the detailed derivations.
          $endgroup$
          – ML student
          Apr 9 at 9:39

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Data Science Stack Exchange!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          Use MathJax to format equations. MathJax reference.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fdatascience.stackexchange.com%2fquestions%2f48842%2fa-trick-used-in-rademacher-complexity-related-theorem%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Adding axes to figuresAdding axes labels to LaTeX figuresLaTeX equivalent of ConTeXt buffersRotate a node but not its content: the case of the ellipse decorationHow to define the default vertical distance between nodes?TikZ scaling graphic and adjust node position and keep font sizeNumerical conditional within tikz keys?adding axes to shapesAlign axes across subfiguresAdding figures with a certain orderLine up nested tikz enviroments or how to get rid of themAdding axes labels to LaTeX figures

          Tähtien Talli Jäsenet | Lähteet | NavigointivalikkoSuomen Hippos – Tähtien Talli

          Do these cracks on my tires look bad? The Next CEO of Stack OverflowDry rot tire should I replace?Having to replace tiresFishtailed so easily? Bad tires? ABS?Filling the tires with something other than air, to avoid puncture hassles?Used Michelin tires safe to install?Do these tyre cracks necessitate replacement?Rumbling noise: tires or mechanicalIs it possible to fix noisy feathered tires?Are bad winter tires still better than summer tires in winter?Torque converter failure - Related to replacing only 2 tires?Why use snow tires on all 4 wheels on 2-wheel-drive cars?