How to show that the simple least square estimators minimizes the SSE using the second partial derivative...












1












$begingroup$


I am trying to apply the second partial derivative test to show that the simple least square estimators $hatbeta_0$ and $hatbeta_1$ does minimize the sum of the squared errors based on page 3 of this lecture notes. Based on the second last equations on page 3, I found that:



$frac{partial^2 SSE}{partial hatbeta_0^2} = 2n > 0 $, which should show that this is a minimum if the second condition holds true. However, in trying to evaluate the second condition, I ended up with:



$2n*2{sum}x^2 - 4({sum}x)^2$. I'm unsure if I did something wrong and if not, how do I prove that this is greater than zero?










share|cite|improve this question









$endgroup$

















    1












    $begingroup$


    I am trying to apply the second partial derivative test to show that the simple least square estimators $hatbeta_0$ and $hatbeta_1$ does minimize the sum of the squared errors based on page 3 of this lecture notes. Based on the second last equations on page 3, I found that:



    $frac{partial^2 SSE}{partial hatbeta_0^2} = 2n > 0 $, which should show that this is a minimum if the second condition holds true. However, in trying to evaluate the second condition, I ended up with:



    $2n*2{sum}x^2 - 4({sum}x)^2$. I'm unsure if I did something wrong and if not, how do I prove that this is greater than zero?










    share|cite|improve this question









    $endgroup$















      1












      1








      1





      $begingroup$


      I am trying to apply the second partial derivative test to show that the simple least square estimators $hatbeta_0$ and $hatbeta_1$ does minimize the sum of the squared errors based on page 3 of this lecture notes. Based on the second last equations on page 3, I found that:



      $frac{partial^2 SSE}{partial hatbeta_0^2} = 2n > 0 $, which should show that this is a minimum if the second condition holds true. However, in trying to evaluate the second condition, I ended up with:



      $2n*2{sum}x^2 - 4({sum}x)^2$. I'm unsure if I did something wrong and if not, how do I prove that this is greater than zero?










      share|cite|improve this question









      $endgroup$




      I am trying to apply the second partial derivative test to show that the simple least square estimators $hatbeta_0$ and $hatbeta_1$ does minimize the sum of the squared errors based on page 3 of this lecture notes. Based on the second last equations on page 3, I found that:



      $frac{partial^2 SSE}{partial hatbeta_0^2} = 2n > 0 $, which should show that this is a minimum if the second condition holds true. However, in trying to evaluate the second condition, I ended up with:



      $2n*2{sum}x^2 - 4({sum}x)^2$. I'm unsure if I did something wrong and if not, how do I prove that this is greater than zero?







      partial-derivative least-squares






      share|cite|improve this question













      share|cite|improve this question











      share|cite|improve this question




      share|cite|improve this question










      asked Dec 29 '18 at 20:08









      YandleYandle

      1254




      1254






















          1 Answer
          1






          active

          oldest

          votes


















          1












          $begingroup$

          It seems that you are on the right track. You can divide both sides of the equation by 4 and $n^2$.



          $$frac1n{sum_{i=1}^n}x_i^2 - frac1{n^2}left({sum_{i=1}^n}x_iright)^2$$



          This is the definition of the (empirical) $text{variance}$ for $n$ values, which is always larger than $0$ (at least one $x_ineq overline x$). It can be further transformed to get a more familiar expression. We use that $frac1{n^2}left({sum_{i=1}^n}x_iright)^2=left(frac1{n}{sum_{i=1}^n}x_iright)^2=overline x^2$



          $$frac1n{sum_{i=1}^n}x_i^2 - overline x^2$$



          Adding at subtracting $2overline x^2$



          $$frac1n{sum_{i=1}^n}x_i^2 underbrace{- 2overline x^2+2overline x^2}_{=0}- overline x^2$$



          $$frac1n{sum_{i=1}^n}x_i^2 - 2overline x^2+overline x^2$$



          $$frac1n{sum_{i=1}^n}x_i^2 - 2left(frac1n sum_{i=1}^{n} x_iright) overline x+overline x^2$$



          $$frac1n{sum_{i=1}^n}x_i^2 - 2frac1n sum_{i=1}^{n} x_ioverline x++overline x^2$$



          $$frac1nsum_{i=1}^{n} left(x_i^2-2x_ioverline x+overline x^2right)$$



          Using the first binomial fomumla we get another common version of the variance



          $$frac1nsum_{i=1}^{n} left(x_i-overline xright)^2>0$$



          A square of a number is always positive if the squared number is not $0$. Again $x_ineq overline x$ in at least one case.






          share|cite|improve this answer









          $endgroup$













            Your Answer





            StackExchange.ifUsing("editor", function () {
            return StackExchange.using("mathjaxEditing", function () {
            StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
            StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
            });
            });
            }, "mathjax-editing");

            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "69"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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
            },
            noCode: true, onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3056206%2fhow-to-show-that-the-simple-least-square-estimators-minimizes-the-sse-using-the%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









            1












            $begingroup$

            It seems that you are on the right track. You can divide both sides of the equation by 4 and $n^2$.



            $$frac1n{sum_{i=1}^n}x_i^2 - frac1{n^2}left({sum_{i=1}^n}x_iright)^2$$



            This is the definition of the (empirical) $text{variance}$ for $n$ values, which is always larger than $0$ (at least one $x_ineq overline x$). It can be further transformed to get a more familiar expression. We use that $frac1{n^2}left({sum_{i=1}^n}x_iright)^2=left(frac1{n}{sum_{i=1}^n}x_iright)^2=overline x^2$



            $$frac1n{sum_{i=1}^n}x_i^2 - overline x^2$$



            Adding at subtracting $2overline x^2$



            $$frac1n{sum_{i=1}^n}x_i^2 underbrace{- 2overline x^2+2overline x^2}_{=0}- overline x^2$$



            $$frac1n{sum_{i=1}^n}x_i^2 - 2overline x^2+overline x^2$$



            $$frac1n{sum_{i=1}^n}x_i^2 - 2left(frac1n sum_{i=1}^{n} x_iright) overline x+overline x^2$$



            $$frac1n{sum_{i=1}^n}x_i^2 - 2frac1n sum_{i=1}^{n} x_ioverline x++overline x^2$$



            $$frac1nsum_{i=1}^{n} left(x_i^2-2x_ioverline x+overline x^2right)$$



            Using the first binomial fomumla we get another common version of the variance



            $$frac1nsum_{i=1}^{n} left(x_i-overline xright)^2>0$$



            A square of a number is always positive if the squared number is not $0$. Again $x_ineq overline x$ in at least one case.






            share|cite|improve this answer









            $endgroup$


















              1












              $begingroup$

              It seems that you are on the right track. You can divide both sides of the equation by 4 and $n^2$.



              $$frac1n{sum_{i=1}^n}x_i^2 - frac1{n^2}left({sum_{i=1}^n}x_iright)^2$$



              This is the definition of the (empirical) $text{variance}$ for $n$ values, which is always larger than $0$ (at least one $x_ineq overline x$). It can be further transformed to get a more familiar expression. We use that $frac1{n^2}left({sum_{i=1}^n}x_iright)^2=left(frac1{n}{sum_{i=1}^n}x_iright)^2=overline x^2$



              $$frac1n{sum_{i=1}^n}x_i^2 - overline x^2$$



              Adding at subtracting $2overline x^2$



              $$frac1n{sum_{i=1}^n}x_i^2 underbrace{- 2overline x^2+2overline x^2}_{=0}- overline x^2$$



              $$frac1n{sum_{i=1}^n}x_i^2 - 2overline x^2+overline x^2$$



              $$frac1n{sum_{i=1}^n}x_i^2 - 2left(frac1n sum_{i=1}^{n} x_iright) overline x+overline x^2$$



              $$frac1n{sum_{i=1}^n}x_i^2 - 2frac1n sum_{i=1}^{n} x_ioverline x++overline x^2$$



              $$frac1nsum_{i=1}^{n} left(x_i^2-2x_ioverline x+overline x^2right)$$



              Using the first binomial fomumla we get another common version of the variance



              $$frac1nsum_{i=1}^{n} left(x_i-overline xright)^2>0$$



              A square of a number is always positive if the squared number is not $0$. Again $x_ineq overline x$ in at least one case.






              share|cite|improve this answer









              $endgroup$
















                1












                1








                1





                $begingroup$

                It seems that you are on the right track. You can divide both sides of the equation by 4 and $n^2$.



                $$frac1n{sum_{i=1}^n}x_i^2 - frac1{n^2}left({sum_{i=1}^n}x_iright)^2$$



                This is the definition of the (empirical) $text{variance}$ for $n$ values, which is always larger than $0$ (at least one $x_ineq overline x$). It can be further transformed to get a more familiar expression. We use that $frac1{n^2}left({sum_{i=1}^n}x_iright)^2=left(frac1{n}{sum_{i=1}^n}x_iright)^2=overline x^2$



                $$frac1n{sum_{i=1}^n}x_i^2 - overline x^2$$



                Adding at subtracting $2overline x^2$



                $$frac1n{sum_{i=1}^n}x_i^2 underbrace{- 2overline x^2+2overline x^2}_{=0}- overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2overline x^2+overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2left(frac1n sum_{i=1}^{n} x_iright) overline x+overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2frac1n sum_{i=1}^{n} x_ioverline x++overline x^2$$



                $$frac1nsum_{i=1}^{n} left(x_i^2-2x_ioverline x+overline x^2right)$$



                Using the first binomial fomumla we get another common version of the variance



                $$frac1nsum_{i=1}^{n} left(x_i-overline xright)^2>0$$



                A square of a number is always positive if the squared number is not $0$. Again $x_ineq overline x$ in at least one case.






                share|cite|improve this answer









                $endgroup$



                It seems that you are on the right track. You can divide both sides of the equation by 4 and $n^2$.



                $$frac1n{sum_{i=1}^n}x_i^2 - frac1{n^2}left({sum_{i=1}^n}x_iright)^2$$



                This is the definition of the (empirical) $text{variance}$ for $n$ values, which is always larger than $0$ (at least one $x_ineq overline x$). It can be further transformed to get a more familiar expression. We use that $frac1{n^2}left({sum_{i=1}^n}x_iright)^2=left(frac1{n}{sum_{i=1}^n}x_iright)^2=overline x^2$



                $$frac1n{sum_{i=1}^n}x_i^2 - overline x^2$$



                Adding at subtracting $2overline x^2$



                $$frac1n{sum_{i=1}^n}x_i^2 underbrace{- 2overline x^2+2overline x^2}_{=0}- overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2overline x^2+overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2left(frac1n sum_{i=1}^{n} x_iright) overline x+overline x^2$$



                $$frac1n{sum_{i=1}^n}x_i^2 - 2frac1n sum_{i=1}^{n} x_ioverline x++overline x^2$$



                $$frac1nsum_{i=1}^{n} left(x_i^2-2x_ioverline x+overline x^2right)$$



                Using the first binomial fomumla we get another common version of the variance



                $$frac1nsum_{i=1}^{n} left(x_i-overline xright)^2>0$$



                A square of a number is always positive if the squared number is not $0$. Again $x_ineq overline x$ in at least one case.







                share|cite|improve this answer












                share|cite|improve this answer



                share|cite|improve this answer










                answered Dec 29 '18 at 21:20









                callculuscallculus

                17.9k31427




                17.9k31427






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Mathematics 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%2fmath.stackexchange.com%2fquestions%2f3056206%2fhow-to-show-that-the-simple-least-square-estimators-minimizes-the-sse-using-the%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

                    Human spaceflight

                    Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?

                    張江高科駅