Interpreting a matrix calculation

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;







up vote
5
down vote

favorite
1












I recently came across this problem, although trivial to compute by hand - is a little challenging for me to interpret. Notably, we have three matrices:



$$vecc=
beginbmatrix
0.5 \
0.5
endbmatrix,hspace0.2in
vecx=
beginbmatrix
2 \
3
endbmatrix,hspace0.2in
vecmu=
beginbmatrix
1 \
2
endbmatrix, hspace0.2in
mathbfSigma =
beginbmatrix
2 & 1 \
1 & 4
endbmatrix
$$



We then have the following calculation, which I have solved below.



$vecc^,T(vecx-vecmu) (vecc^ TmathbfSigmavecc)^-1$
$=beginbmatrix

0.5
endbmatrix$



The calculation is trivial. However, how do I interpret this solution - assuming $vecx$ is a data vector, $vecmu$ is a mean vector, and $mathbfSigma$ is a covariance matrix?










share|cite|improve this question



















  • 1




    Hint: think of standardization and consider the variance of $vecc^prime vecx.$
    – whuber♦
    yesterday
















up vote
5
down vote

favorite
1












I recently came across this problem, although trivial to compute by hand - is a little challenging for me to interpret. Notably, we have three matrices:



$$vecc=
beginbmatrix
0.5 \
0.5
endbmatrix,hspace0.2in
vecx=
beginbmatrix
2 \
3
endbmatrix,hspace0.2in
vecmu=
beginbmatrix
1 \
2
endbmatrix, hspace0.2in
mathbfSigma =
beginbmatrix
2 & 1 \
1 & 4
endbmatrix
$$



We then have the following calculation, which I have solved below.



$vecc^,T(vecx-vecmu) (vecc^ TmathbfSigmavecc)^-1$
$=beginbmatrix

0.5
endbmatrix$



The calculation is trivial. However, how do I interpret this solution - assuming $vecx$ is a data vector, $vecmu$ is a mean vector, and $mathbfSigma$ is a covariance matrix?










share|cite|improve this question



















  • 1




    Hint: think of standardization and consider the variance of $vecc^prime vecx.$
    – whuber♦
    yesterday












up vote
5
down vote

favorite
1









up vote
5
down vote

favorite
1






1





I recently came across this problem, although trivial to compute by hand - is a little challenging for me to interpret. Notably, we have three matrices:



$$vecc=
beginbmatrix
0.5 \
0.5
endbmatrix,hspace0.2in
vecx=
beginbmatrix
2 \
3
endbmatrix,hspace0.2in
vecmu=
beginbmatrix
1 \
2
endbmatrix, hspace0.2in
mathbfSigma =
beginbmatrix
2 & 1 \
1 & 4
endbmatrix
$$



We then have the following calculation, which I have solved below.



$vecc^,T(vecx-vecmu) (vecc^ TmathbfSigmavecc)^-1$
$=beginbmatrix

0.5
endbmatrix$



The calculation is trivial. However, how do I interpret this solution - assuming $vecx$ is a data vector, $vecmu$ is a mean vector, and $mathbfSigma$ is a covariance matrix?










share|cite|improve this question















I recently came across this problem, although trivial to compute by hand - is a little challenging for me to interpret. Notably, we have three matrices:



$$vecc=
beginbmatrix
0.5 \
0.5
endbmatrix,hspace0.2in
vecx=
beginbmatrix
2 \
3
endbmatrix,hspace0.2in
vecmu=
beginbmatrix
1 \
2
endbmatrix, hspace0.2in
mathbfSigma =
beginbmatrix
2 & 1 \
1 & 4
endbmatrix
$$



We then have the following calculation, which I have solved below.



$vecc^,T(vecx-vecmu) (vecc^ TmathbfSigmavecc)^-1$
$=beginbmatrix

0.5
endbmatrix$



The calculation is trivial. However, how do I interpret this solution - assuming $vecx$ is a data vector, $vecmu$ is a mean vector, and $mathbfSigma$ is a covariance matrix?







linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited yesterday

























asked yesterday









Workhorse

1262




1262







  • 1




    Hint: think of standardization and consider the variance of $vecc^prime vecx.$
    – whuber♦
    yesterday












  • 1




    Hint: think of standardization and consider the variance of $vecc^prime vecx.$
    – whuber♦
    yesterday







1




1




Hint: think of standardization and consider the variance of $vecc^prime vecx.$
– whuber♦
yesterday




Hint: think of standardization and consider the variance of $vecc^prime vecx.$
– whuber♦
yesterday










1 Answer
1






active

oldest

votes

















up vote
6
down vote













Consider the random variable $$y = c^T x$$Then the mean of $y$ is
$$E(y) = c^T E(x) = c^T mu$$
and variance of $y$ is
$$var(y) = E(y - c^T mu)^2 = E(y^2) - (c^T mu)^2 = E(y^2) + c^T mumu^T c tag*$$
But
$$y^2 = (c^Tx)^2 = c^Tx c^Tx= c^Txx^Tc$$
So $$E(y^2) = c^TE(xx^T)c = c^T(Sigma - mumu^T)c tag**$$
Replace $(**)$ is $(*)$, we get
$$var(y) = c^TSigma c$$
Let $z$ be a standard version of $y$, i.e.
$$z = fracy - E(y)var(y) = fracc^Tx - c^Tmuc^TSigma c = c^T(x - mu)(c^TSigma c)^-1 $$
So, you have computed the $z$ here.






share|cite|improve this answer










New contributor




Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

















    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: "65"
    ;
    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',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













     

    draft saved


    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f366448%2finterpreting-a-matrix-calculation%23new-answer', 'question_page');

    );

    Post as a guest






























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    6
    down vote













    Consider the random variable $$y = c^T x$$Then the mean of $y$ is
    $$E(y) = c^T E(x) = c^T mu$$
    and variance of $y$ is
    $$var(y) = E(y - c^T mu)^2 = E(y^2) - (c^T mu)^2 = E(y^2) + c^T mumu^T c tag*$$
    But
    $$y^2 = (c^Tx)^2 = c^Tx c^Tx= c^Txx^Tc$$
    So $$E(y^2) = c^TE(xx^T)c = c^T(Sigma - mumu^T)c tag**$$
    Replace $(**)$ is $(*)$, we get
    $$var(y) = c^TSigma c$$
    Let $z$ be a standard version of $y$, i.e.
    $$z = fracy - E(y)var(y) = fracc^Tx - c^Tmuc^TSigma c = c^T(x - mu)(c^TSigma c)^-1 $$
    So, you have computed the $z$ here.






    share|cite|improve this answer










    New contributor




    Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.





















      up vote
      6
      down vote













      Consider the random variable $$y = c^T x$$Then the mean of $y$ is
      $$E(y) = c^T E(x) = c^T mu$$
      and variance of $y$ is
      $$var(y) = E(y - c^T mu)^2 = E(y^2) - (c^T mu)^2 = E(y^2) + c^T mumu^T c tag*$$
      But
      $$y^2 = (c^Tx)^2 = c^Tx c^Tx= c^Txx^Tc$$
      So $$E(y^2) = c^TE(xx^T)c = c^T(Sigma - mumu^T)c tag**$$
      Replace $(**)$ is $(*)$, we get
      $$var(y) = c^TSigma c$$
      Let $z$ be a standard version of $y$, i.e.
      $$z = fracy - E(y)var(y) = fracc^Tx - c^Tmuc^TSigma c = c^T(x - mu)(c^TSigma c)^-1 $$
      So, you have computed the $z$ here.






      share|cite|improve this answer










      New contributor




      Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.



















        up vote
        6
        down vote










        up vote
        6
        down vote









        Consider the random variable $$y = c^T x$$Then the mean of $y$ is
        $$E(y) = c^T E(x) = c^T mu$$
        and variance of $y$ is
        $$var(y) = E(y - c^T mu)^2 = E(y^2) - (c^T mu)^2 = E(y^2) + c^T mumu^T c tag*$$
        But
        $$y^2 = (c^Tx)^2 = c^Tx c^Tx= c^Txx^Tc$$
        So $$E(y^2) = c^TE(xx^T)c = c^T(Sigma - mumu^T)c tag**$$
        Replace $(**)$ is $(*)$, we get
        $$var(y) = c^TSigma c$$
        Let $z$ be a standard version of $y$, i.e.
        $$z = fracy - E(y)var(y) = fracc^Tx - c^Tmuc^TSigma c = c^T(x - mu)(c^TSigma c)^-1 $$
        So, you have computed the $z$ here.






        share|cite|improve this answer










        New contributor




        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        Consider the random variable $$y = c^T x$$Then the mean of $y$ is
        $$E(y) = c^T E(x) = c^T mu$$
        and variance of $y$ is
        $$var(y) = E(y - c^T mu)^2 = E(y^2) - (c^T mu)^2 = E(y^2) + c^T mumu^T c tag*$$
        But
        $$y^2 = (c^Tx)^2 = c^Tx c^Tx= c^Txx^Tc$$
        So $$E(y^2) = c^TE(xx^T)c = c^T(Sigma - mumu^T)c tag**$$
        Replace $(**)$ is $(*)$, we get
        $$var(y) = c^TSigma c$$
        Let $z$ be a standard version of $y$, i.e.
        $$z = fracy - E(y)var(y) = fracc^Tx - c^Tmuc^TSigma c = c^T(x - mu)(c^TSigma c)^-1 $$
        So, you have computed the $z$ here.







        share|cite|improve this answer










        New contributor




        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        share|cite|improve this answer



        share|cite|improve this answer








        edited yesterday





















        New contributor




        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.









        answered yesterday









        Ahmad Bazzi

        1815




        1815




        New contributor




        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.





        New contributor





        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.






        Ahmad Bazzi is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
        Check out our Code of Conduct.



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstats.stackexchange.com%2fquestions%2f366448%2finterpreting-a-matrix-calculation%23new-answer', 'question_page');

            );

            Post as a guest













































































            Comments

            Popular posts from this blog

            What does second last employer means? [closed]

            List of Gilmore Girls characters

            Confectionery