Expand (x-μi)ᵀΣ⁻¹(x-μi) Homework

  • Thread starter Thread starter devonho
  • Start date Start date
  • Tags Tags
    Expanding
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
7 replies · 2K views
devonho
Messages
8
Reaction score
0

Homework Statement



I need help with expanding:

[itex](\bf{x-\mu_{i}})^{t}\Sigma^{-1}(\bf{x-\mu_{i}})[/itex]

[itex]\bf{x,\mu_{i}}[/itex] are column vectors.
[itex]\Sigma[/itex] is a square matrix.

Thank you.

Homework Equations



Can:

[itex] \bf{x}^t\Sigma^{-1}\bf{\mu_{i}}[/itex]

be written as?

[itex] \bf{\mu_{i}}^t\Sigma^{-1}\bf{x}[/itex]

I've tried to compute this numerically and the answer is no.


The Attempt at a Solution



[itex] (\bf{x-\mu_{i}})^{t}\Sigma^{-1}(\bf{x-\mu_{i}})<br /> =<br /> \bf{x}^t\Sigma^{-1}\bf{x}+<br /> \bf{\mu_{i}}^t\Sigma^{-1}\bf{\mu_{i}}-<br /> \bf{x}^t\Sigma^{-1}\bf{\mu_{i}}-<br /> \bf{\mu_{i}}^t\Sigma^{-1}\bf{x}[/itex]

 
Physics news on Phys.org


devonho said:

Homework Statement



I need help with expanding:

[itex](\bf{x-\mu_{i}})^{t}\Sigma^{-1}(\bf{x-\mu_{i}})[/itex]

[itex]\bf{x,\mu_{i}}[/itex] are column vectors.
[itex]\Sigma[/itex] is a square matrix.

Thank you.

Homework Equations



Can:

[itex] \bf{x}^t\Sigma^{-1}\bf{\mu_{i}}[/itex]

be written as?

[itex] \bf{\mu_{i}}^t\Sigma^{-1}\bf{x}[/itex]

I've tried to compute this numerically and the answer is no.


The Attempt at a Solution



[itex] (\bf{x-\mu_{i}})^{t}\Sigma^{-1}(\bf{x-\mu_{i}})<br /> =<br /> \bf{x}^t\Sigma^{-1}\bf{x}+<br /> \bf{\mu_{i}}^t\Sigma^{-1}\bf{\mu_{i}}-<br /> \bf{x}^t\Sigma^{-1}\bf{\mu_{i}}-<br /> \bf{\mu_{i}}^t\Sigma^{-1}\bf{x}[/itex]

I don't understand your problem. The result in (3) is correct. If *you* derived that result, then you have obtained the desired result. On the other hand, if you mean that somebody else has given you the result in (3) and you don't know how they got it, that is a different question. So, what, exactly are you asking?

RGV
 


Mark44 said:
BTW, [itex]\Sigma[/itex] is a horrible name for a matrix for the reason that it is used primarily to mean summation.

I agree with you. Nevertheless, it is often used in Statistics and Econometrics, etc., to denote the variance-covariance matrix of a multidimensional random variable.

RGV
 


devonho said:

Homework Statement




Can:

[itex] \bf{x}^t\Sigma^{-1}\bf{\mu_{i}}[/itex]

be written as?

[itex] \bf{\mu_{i}}^t\Sigma^{-1}\bf{x}[/itex]

I've tried to compute this numerically and the answer is no.

The answer is yes IF the matrix [tex]\Sigma[/tex] is symmetric. Since
[tex] \bf{\mu_i}^t \Sigma^{-1} \bf{x}[/tex]

is a scalar, it equals its transpose, so
[tex] \bf{\mu_i}^t \Sigma^{-1} \bf{x} = \left(\bf{\mu_i}^t \Sigma^{-1} \bf{x}\right)^t = \bf{x}^t \Sigma^{-1} \bf{\mu_i}[/tex]

Did the example you used have sigma symmetric? (If it is a variance-covariance matrix, it has to be symmetric).
 


Hi all, thanks for the replies. The goal was to get:

[itex](\bf{x-\mu_{i}})^{t}\Sigma^{-1}(\bf{x-\mu_{i}}) <br /> = \bf{x}^t\Sigma^{-1}\bf{x}+ \bf{\mu_{i}}^t\Sigma^{-1}\bf{\mu_{i}}- 2\bf{x}^t\Sigma^{-1}\bf{\mu_{i}}[/itex]

Hence,
[itex] \bf{\mu_i}^t \Sigma^{-1} \bf{x} = \bf{x}^t \Sigma^{-1} \bf{\mu_i}[/itex]

Was what I needed. Thanks.
 


Thanks for the help. I wrote the long proof.

If [itex] m_{12}=m_{21}, m_{13}=m_{31},m_{32}=m_{23},[/itex]

[itex] \bf{x} = \left[<br /> \begin{array}{ccc}<br /> x_1 \\ x_2 \\ x_3<br /> \end{array}<br /> \right][/itex]

[itex] \bf{y} = \left[<br /> \begin{array}{ccc}<br /> y_1 \\ y_2 \\ y_3<br /> \end{array}<br /> \right][/itex]

[itex] \bf{M} = <br /> \left[<br /> \begin{array}{ccc}<br /> m_{11} & m_{12} & m_{13} \\<br /> m_{21} & m_{22} & m_{23} \\<br /> m_{31} & m_{32} & m_{33}<br /> \end{array}<br /> \right][/itex]


then

[itex] \bf{y^tMx}=[/itex]
[itex] \begin{array}{ccc}<br /> x_1y_1m_{11}+<br /> (x_1y_2+x_2y_1)m_{12}+<br /> (x_1y_3 + x_3y_1)m_{13}+<br /> x_2y_2m_{22}+<br /> (x_2y_3 + x_3y_2)m_{23}+<br /> x_3y_3m_{33}<br /> \end{array}[/itex]

[itex] \bf{x^tMy}=[/itex]
[itex] \begin{array}{ccc}<br /> \begin{array}{ccc}<br /> (x_1m_{11}+x_2m_{21}+x_3m_{31})y_1 + (x_1m_{12}+x_2m_{22}+x_3m_{32})y_2 + (x_1m_{13}+x_2m_{23}+x_3m_{33})y_3<br /> \end{array}<br /> \\=<br /> \begin{array}{ccc}<br /> x_1y_1m_{11}+<br /> (x_2y_1+<br /> x_1y_2)m_{12}+<br /> (x_3y_1+ <br /> x_1y_3)m_{13}+<br /> x_2y_2m_{22}+<br /> (x_3y_2+ <br /> x_2y_3)m_{23}+<br /> x_3y_3m_{33}<br /> \end{array}<br /> \end{array}[/itex]
[itex] =\bf{y^tMx}[/itex]
 
Last edited: