Interpreting a matrix calculation
Clash Royale CLAN TAG#URR8PPP
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty margin-bottom:0;
up vote
5
down vote
favorite
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
add a comment |Â
up vote
5
down vote
favorite
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
1
Hint: think of standardization and consider the variance of $vecc^prime vecx.$
– whuber♦
yesterday
add a comment |Â
up vote
5
down vote
favorite
up vote
5
down vote
favorite
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
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
linear-algebra
edited yesterday
asked yesterday


Workhorse
1262
1262
1
Hint: think of standardization and consider the variance of $vecc^prime vecx.$
– whuber♦
yesterday
add a comment |Â
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
add a comment |Â
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.
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.
add a comment |Â
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.
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.
add a comment |Â
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.
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.
add a comment |Â
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.
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.
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.
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.
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
1
Hint: think of standardization and consider the variance of $vecc^prime vecx.$
– whuber♦
yesterday