How to find $partialchi^2/partial a$ where $chi^2=sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2}$?












0














How to find $partialchi^2/partial a$ where $chi^2=sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2}$?



My attempt:
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{partial}{partial a}sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}sum_{i=1}^N-a\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}a^N\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdot Ncdot a^{N-1}\
end{align}



Is this correct?



EDIT:
As per the accepted answer, this is how I got my final partial derivative.
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&=dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}Bigg]-dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&= 0-dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}+dfrac{-a}{sigma_2^2}+cdots+dfrac{-a}{sigma_N^2}Bigg]\
&= -Bigg[dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}Bigg]+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_2^2}Bigg]+cdots+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_N^2}Bigg]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+cdots+dfrac{-1}{sigma_N^2}cdotdfrac{partial}{partial a}[a]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}+dfrac{-1}{sigma_2^2}+cdots+dfrac{-1}{sigma_N^2}Bigg]\
&= sum_{i=1}^{N}dfrac{1}{sigma_i^2}\
end{align}










share|cite|improve this question




















  • 1




    Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
    – kolobokish
    Nov 26 at 17:40


















0














How to find $partialchi^2/partial a$ where $chi^2=sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2}$?



My attempt:
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{partial}{partial a}sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}sum_{i=1}^N-a\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}a^N\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdot Ncdot a^{N-1}\
end{align}



Is this correct?



EDIT:
As per the accepted answer, this is how I got my final partial derivative.
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&=dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}Bigg]-dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&= 0-dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}+dfrac{-a}{sigma_2^2}+cdots+dfrac{-a}{sigma_N^2}Bigg]\
&= -Bigg[dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}Bigg]+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_2^2}Bigg]+cdots+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_N^2}Bigg]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+cdots+dfrac{-1}{sigma_N^2}cdotdfrac{partial}{partial a}[a]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}+dfrac{-1}{sigma_2^2}+cdots+dfrac{-1}{sigma_N^2}Bigg]\
&= sum_{i=1}^{N}dfrac{1}{sigma_i^2}\
end{align}










share|cite|improve this question




















  • 1




    Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
    – kolobokish
    Nov 26 at 17:40
















0












0








0







How to find $partialchi^2/partial a$ where $chi^2=sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2}$?



My attempt:
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{partial}{partial a}sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}sum_{i=1}^N-a\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}a^N\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdot Ncdot a^{N-1}\
end{align}



Is this correct?



EDIT:
As per the accepted answer, this is how I got my final partial derivative.
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&=dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}Bigg]-dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&= 0-dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}+dfrac{-a}{sigma_2^2}+cdots+dfrac{-a}{sigma_N^2}Bigg]\
&= -Bigg[dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}Bigg]+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_2^2}Bigg]+cdots+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_N^2}Bigg]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+cdots+dfrac{-1}{sigma_N^2}cdotdfrac{partial}{partial a}[a]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}+dfrac{-1}{sigma_2^2}+cdots+dfrac{-1}{sigma_N^2}Bigg]\
&= sum_{i=1}^{N}dfrac{1}{sigma_i^2}\
end{align}










share|cite|improve this question















How to find $partialchi^2/partial a$ where $chi^2=sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2}$?



My attempt:
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{partial}{partial a}sum_{i=1}^Ndfrac{-a}{sigma_i^2}\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}sum_{i=1}^N-a\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdotdfrac{partial}{partial a}a^N\
&=sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-dfrac{1}{sigma_i^2}cdot Ncdot a^{N-1}\
end{align}



Is this correct?



EDIT:
As per the accepted answer, this is how I got my final partial derivative.
begin{align}
dfrac{partial}{partial a}sum_{i=1}^Ndfrac{D(x_i)-a-b(x_i)^2}{sigma_i^2} &= dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}-sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&=dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{D(x_i)-b(x_i)^2}{sigma_i^2}Bigg]-dfrac{partial}{partial a}Bigg[sum_{i=1}^Ndfrac{-a}{sigma_i^2}Bigg]\
&= 0-dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}+dfrac{-a}{sigma_2^2}+cdots+dfrac{-a}{sigma_N^2}Bigg]\
&= -Bigg[dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_1^2}Bigg]+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_2^2}Bigg]+cdots+dfrac{partial}{partial a}Bigg[dfrac{-a}{sigma_N^2}Bigg]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+dfrac{-1}{sigma_1^2}cdotdfrac{partial}{partial a}[a]+cdots+dfrac{-1}{sigma_N^2}cdotdfrac{partial}{partial a}[a]Bigg]\
&= -Bigg[dfrac{-1}{sigma_1^2}+dfrac{-1}{sigma_2^2}+cdots+dfrac{-1}{sigma_N^2}Bigg]\
&= sum_{i=1}^{N}dfrac{1}{sigma_i^2}\
end{align}







partial-derivative






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Nov 26 at 17:37

























asked Nov 26 at 17:09









kaisa

1019




1019








  • 1




    Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
    – kolobokish
    Nov 26 at 17:40
















  • 1




    Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
    – kolobokish
    Nov 26 at 17:40










1




1




Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
– kolobokish
Nov 26 at 17:40






Sorry, my mistake. (The sign is wrong.) The answer should be $-sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$. When you split the sum the sign is always held "+".
– kolobokish
Nov 26 at 17:40












1 Answer
1






active

oldest

votes


















0














Nope. If $D$, $b$ and $sigma$ are independet of $a$, then the partial differential of their combination should be zero. Second mistake is the sign you used. (between sum signs it should be "+"). However later you corrected it. Next you can't take our $frac{1}{sigma_{i}^{2}}$ out of the sum sign (as $sigma_i$-s depends on $i$). And the last mistake is that sum of $a$-s is not $a^{N}$, but rather $aN$. So as to me the answer should be $sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$ (because partial of $frac{a}{sigma_{i}^{2}}$ is $frac{1}{sigma_{i}^{2}}$).



If $D$, $b$ and $sigma$ depends on $a$(As it may when the initial problem comes from statistics), then the dependence form is crucial. (Without it you can't explicitly tell what the partial will be.)



Sorry(too long to type it as comment).






share|cite|improve this answer





















    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%2f3014606%2fhow-to-find-partial-chi2-partial-a-where-chi2-sum-i-1n-dfracdx-i%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









    0














    Nope. If $D$, $b$ and $sigma$ are independet of $a$, then the partial differential of their combination should be zero. Second mistake is the sign you used. (between sum signs it should be "+"). However later you corrected it. Next you can't take our $frac{1}{sigma_{i}^{2}}$ out of the sum sign (as $sigma_i$-s depends on $i$). And the last mistake is that sum of $a$-s is not $a^{N}$, but rather $aN$. So as to me the answer should be $sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$ (because partial of $frac{a}{sigma_{i}^{2}}$ is $frac{1}{sigma_{i}^{2}}$).



    If $D$, $b$ and $sigma$ depends on $a$(As it may when the initial problem comes from statistics), then the dependence form is crucial. (Without it you can't explicitly tell what the partial will be.)



    Sorry(too long to type it as comment).






    share|cite|improve this answer


























      0














      Nope. If $D$, $b$ and $sigma$ are independet of $a$, then the partial differential of their combination should be zero. Second mistake is the sign you used. (between sum signs it should be "+"). However later you corrected it. Next you can't take our $frac{1}{sigma_{i}^{2}}$ out of the sum sign (as $sigma_i$-s depends on $i$). And the last mistake is that sum of $a$-s is not $a^{N}$, but rather $aN$. So as to me the answer should be $sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$ (because partial of $frac{a}{sigma_{i}^{2}}$ is $frac{1}{sigma_{i}^{2}}$).



      If $D$, $b$ and $sigma$ depends on $a$(As it may when the initial problem comes from statistics), then the dependence form is crucial. (Without it you can't explicitly tell what the partial will be.)



      Sorry(too long to type it as comment).






      share|cite|improve this answer
























        0












        0








        0






        Nope. If $D$, $b$ and $sigma$ are independet of $a$, then the partial differential of their combination should be zero. Second mistake is the sign you used. (between sum signs it should be "+"). However later you corrected it. Next you can't take our $frac{1}{sigma_{i}^{2}}$ out of the sum sign (as $sigma_i$-s depends on $i$). And the last mistake is that sum of $a$-s is not $a^{N}$, but rather $aN$. So as to me the answer should be $sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$ (because partial of $frac{a}{sigma_{i}^{2}}$ is $frac{1}{sigma_{i}^{2}}$).



        If $D$, $b$ and $sigma$ depends on $a$(As it may when the initial problem comes from statistics), then the dependence form is crucial. (Without it you can't explicitly tell what the partial will be.)



        Sorry(too long to type it as comment).






        share|cite|improve this answer












        Nope. If $D$, $b$ and $sigma$ are independet of $a$, then the partial differential of their combination should be zero. Second mistake is the sign you used. (between sum signs it should be "+"). However later you corrected it. Next you can't take our $frac{1}{sigma_{i}^{2}}$ out of the sum sign (as $sigma_i$-s depends on $i$). And the last mistake is that sum of $a$-s is not $a^{N}$, but rather $aN$. So as to me the answer should be $sum_{i=1}^{N}frac{1}{sigma_{i}^{2}}$ (because partial of $frac{a}{sigma_{i}^{2}}$ is $frac{1}{sigma_{i}^{2}}$).



        If $D$, $b$ and $sigma$ depends on $a$(As it may when the initial problem comes from statistics), then the dependence form is crucial. (Without it you can't explicitly tell what the partial will be.)



        Sorry(too long to type it as comment).







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Nov 26 at 17:31









        kolobokish

        40438




        40438






























            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.





            Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


            Please pay close attention to the following guidance:


            • 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.


            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%2f3014606%2fhow-to-find-partial-chi2-partial-a-where-chi2-sum-i-1n-dfracdx-i%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

            Probability when a professor distributes a quiz and homework assignment to a class of n students.

            Aardman Animations

            Are they similar matrix