How to solve for $mathbf{w}$ in this equation? [closed]












-1












$begingroup$


I'm stuck in this problem. I don't know what to do next. The only thing that comes in my mind is to write this as M (M = order of x) equations and solve them. We have to solve for w (which is also a M dimensional vector).



alt



The answer to the problem is:



alt



where



alt



alt



P.S. The $mathbf{w}_{MAP}$ is the MAP estimate of the $mathbf{w}$ random variable. The solution to above equation gives $mathbf{w}_{MAP}$.










share|cite|improve this question











$endgroup$



closed as off-topic by Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste Dec 25 '18 at 16:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    You write that $M$ is the order of $X$, but you never say what $X$ is.
    $endgroup$
    – Gerry Myerson
    Dec 24 '18 at 18:32










  • $begingroup$
    Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
    $endgroup$
    – Rohan Bhatia
    Dec 24 '18 at 18:42


















-1












$begingroup$


I'm stuck in this problem. I don't know what to do next. The only thing that comes in my mind is to write this as M (M = order of x) equations and solve them. We have to solve for w (which is also a M dimensional vector).



alt



The answer to the problem is:



alt



where



alt



alt



P.S. The $mathbf{w}_{MAP}$ is the MAP estimate of the $mathbf{w}$ random variable. The solution to above equation gives $mathbf{w}_{MAP}$.










share|cite|improve this question











$endgroup$



closed as off-topic by Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste Dec 25 '18 at 16:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste

If this question can be reworded to fit the rules in the help center, please edit the question.
















  • $begingroup$
    You write that $M$ is the order of $X$, but you never say what $X$ is.
    $endgroup$
    – Gerry Myerson
    Dec 24 '18 at 18:32










  • $begingroup$
    Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
    $endgroup$
    – Rohan Bhatia
    Dec 24 '18 at 18:42
















-1












-1








-1





$begingroup$


I'm stuck in this problem. I don't know what to do next. The only thing that comes in my mind is to write this as M (M = order of x) equations and solve them. We have to solve for w (which is also a M dimensional vector).



alt



The answer to the problem is:



alt



where



alt



alt



P.S. The $mathbf{w}_{MAP}$ is the MAP estimate of the $mathbf{w}$ random variable. The solution to above equation gives $mathbf{w}_{MAP}$.










share|cite|improve this question











$endgroup$




I'm stuck in this problem. I don't know what to do next. The only thing that comes in my mind is to write this as M (M = order of x) equations and solve them. We have to solve for w (which is also a M dimensional vector).



alt



The answer to the problem is:



alt



where



alt



alt



P.S. The $mathbf{w}_{MAP}$ is the MAP estimate of the $mathbf{w}$ random variable. The solution to above equation gives $mathbf{w}_{MAP}$.







linear-algebra






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Dec 24 '18 at 18:42







Rohan Bhatia

















asked Dec 24 '18 at 17:10









Rohan BhatiaRohan Bhatia

1014




1014




closed as off-topic by Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste Dec 25 '18 at 16:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste

If this question can be reworded to fit the rules in the help center, please edit the question.







closed as off-topic by Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste Dec 25 '18 at 16:00


This question appears to be off-topic. The users who voted to close gave this specific reason:


  • "This question is missing context or other details: Please provide additional context, which ideally explains why the question is relevant to you and our community. Some forms of context include: background and motivation, relevant definitions, source, possible strategies, your current progress, why the question is interesting or important, etc." – Saad, KReiser, Lee David Chung Lin, mrtaurho, Namaste

If this question can be reworded to fit the rules in the help center, please edit the question.












  • $begingroup$
    You write that $M$ is the order of $X$, but you never say what $X$ is.
    $endgroup$
    – Gerry Myerson
    Dec 24 '18 at 18:32










  • $begingroup$
    Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
    $endgroup$
    – Rohan Bhatia
    Dec 24 '18 at 18:42




















  • $begingroup$
    You write that $M$ is the order of $X$, but you never say what $X$ is.
    $endgroup$
    – Gerry Myerson
    Dec 24 '18 at 18:32










  • $begingroup$
    Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
    $endgroup$
    – Rohan Bhatia
    Dec 24 '18 at 18:42


















$begingroup$
You write that $M$ is the order of $X$, but you never say what $X$ is.
$endgroup$
– Gerry Myerson
Dec 24 '18 at 18:32




$begingroup$
You write that $M$ is the order of $X$, but you never say what $X$ is.
$endgroup$
– Gerry Myerson
Dec 24 '18 at 18:32












$begingroup$
Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
$endgroup$
– Rohan Bhatia
Dec 24 '18 at 18:42






$begingroup$
Sorry, I meant small $x_i$. It's a M dimensional vector. w is also a M dimensional vector
$endgroup$
– Rohan Bhatia
Dec 24 '18 at 18:42












1 Answer
1






active

oldest

votes


















3












$begingroup$

By writing $(w^Tx)x$ as $x(x^Tw) = (xx^T)w$ you can write the equation as
$$-r_{dx}(N) = lambda w - left(sum_{i=1}^N x_i x_i^Tright) w$$
$$-r_{dx}(N) = left(lambda I - sum_{i=1}^N x_i x_i^Tright) w$$
$$left( sum_{i=1}^N x_i x_i^T - lambda Iright) w = r_{dx}(N)$$
$$w = left( sum_{i=1}^N x_i x_i^T - lambda Iright)^{-1} r_{dx}(N)$$






share|cite|improve this answer









$endgroup$




















    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    3












    $begingroup$

    By writing $(w^Tx)x$ as $x(x^Tw) = (xx^T)w$ you can write the equation as
    $$-r_{dx}(N) = lambda w - left(sum_{i=1}^N x_i x_i^Tright) w$$
    $$-r_{dx}(N) = left(lambda I - sum_{i=1}^N x_i x_i^Tright) w$$
    $$left( sum_{i=1}^N x_i x_i^T - lambda Iright) w = r_{dx}(N)$$
    $$w = left( sum_{i=1}^N x_i x_i^T - lambda Iright)^{-1} r_{dx}(N)$$






    share|cite|improve this answer









    $endgroup$


















      3












      $begingroup$

      By writing $(w^Tx)x$ as $x(x^Tw) = (xx^T)w$ you can write the equation as
      $$-r_{dx}(N) = lambda w - left(sum_{i=1}^N x_i x_i^Tright) w$$
      $$-r_{dx}(N) = left(lambda I - sum_{i=1}^N x_i x_i^Tright) w$$
      $$left( sum_{i=1}^N x_i x_i^T - lambda Iright) w = r_{dx}(N)$$
      $$w = left( sum_{i=1}^N x_i x_i^T - lambda Iright)^{-1} r_{dx}(N)$$






      share|cite|improve this answer









      $endgroup$
















        3












        3








        3





        $begingroup$

        By writing $(w^Tx)x$ as $x(x^Tw) = (xx^T)w$ you can write the equation as
        $$-r_{dx}(N) = lambda w - left(sum_{i=1}^N x_i x_i^Tright) w$$
        $$-r_{dx}(N) = left(lambda I - sum_{i=1}^N x_i x_i^Tright) w$$
        $$left( sum_{i=1}^N x_i x_i^T - lambda Iright) w = r_{dx}(N)$$
        $$w = left( sum_{i=1}^N x_i x_i^T - lambda Iright)^{-1} r_{dx}(N)$$






        share|cite|improve this answer









        $endgroup$



        By writing $(w^Tx)x$ as $x(x^Tw) = (xx^T)w$ you can write the equation as
        $$-r_{dx}(N) = lambda w - left(sum_{i=1}^N x_i x_i^Tright) w$$
        $$-r_{dx}(N) = left(lambda I - sum_{i=1}^N x_i x_i^Tright) w$$
        $$left( sum_{i=1}^N x_i x_i^T - lambda Iright) w = r_{dx}(N)$$
        $$w = left( sum_{i=1}^N x_i x_i^T - lambda Iright)^{-1} r_{dx}(N)$$







        share|cite|improve this answer












        share|cite|improve this answer



        share|cite|improve this answer










        answered Dec 24 '18 at 18:47









        LinAlgLinAlg

        10k1521




        10k1521















            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