Covariance matrix and projectionCovariance matrix of data projected onto eigenvectors is diagonal.Covariance matrix of Y when we have the covariance matrix of XHow can the variance of data be represented as this product of the principal direction and the covariance matrix?Covariance matrix as linear transformationI - P projection matrixEigenvectors of covariance matrix vs Eigenvectors of transformation matrix and PCACovariance matrix multiplied by eigenvectorHow to compute projection matrix for gradient projection algorithm?Can off-diagonals be nonzero for covariance matrix after PCA?Mean vector and covariance matrix
Term for the "extreme-extension" version of a straw man fallacy?
Was a professor correct to chastise me for writing "Dear Prof. X" rather than "Dear Professor X"?
How do I go from 300 unfinished/half written blog posts, to published posts?
Can the discrete variable be a negative number?
Class Action - which options I have?
Flow chart document symbol
Did Dumbledore lie to Harry about how long he had James Potter's invisibility cloak when he was examining it? If so, why?
Hostile work environment after whistle-blowing on coworker and our boss. What do I do?
What does 算不上 mean in 算不上太美好的日子?
How to check is there any negative term in a large list?
Inappropriate reference requests from Journal reviewers
How do scammers retract money, while you can’t?
Avoiding estate tax by giving multiple gifts
Pole-zeros of a real-valued causal FIR system
Two monoidal structures and copowering
A Rare Riley Riddle
Sort a list by elements of another list
What is paid subscription needed for in Mortal Kombat 11?
A problem in Probability theory
Customer Requests (Sometimes) Drive Me Bonkers!
Is this apparent Class Action settlement a spam message?
Is there a korbon needed for conversion?
Is exact Kanji stroke length important?
Short story about space worker geeks who zone out by 'listening' to radiation from stars
Covariance matrix and projection
Covariance matrix of data projected onto eigenvectors is diagonal.Covariance matrix of Y when we have the covariance matrix of XHow can the variance of data be represented as this product of the principal direction and the covariance matrix?Covariance matrix as linear transformationI - P projection matrixEigenvectors of covariance matrix vs Eigenvectors of transformation matrix and PCACovariance matrix multiplied by eigenvectorHow to compute projection matrix for gradient projection algorithm?Can off-diagonals be nonzero for covariance matrix after PCA?Mean vector and covariance matrix
$begingroup$
I have troubles understanding a geometrical meaning of a covariance matrix.
Let's say we have a data set containing two points (-1,1), (-1,2) and write them in to the matrix
$$D = beginbmatrix
-1 & -1\
1 & 2
endbmatrix.
$$
Then we'll choose the unit-vector $v = left( frac1sqrt2, frac1sqrt2 right)^T$.
And now, in this article is the following statement:
So, if we would like to represent the covariance matrix with a vector
and its magnitude, we should simply try to find the vector that points
into the direction of the largest spread of the data, and whose
magnitude equals the spread (variance) in this direction.
If we define this vector as $v$, then the projection of our data $D$
onto this vector is obtained as $v^TD$, and the
variance of the projected data is $v^TSigma v$.
The covariance matrix $Sigma$ looks like this:
$$
Sigma = beginbmatrix
0 & 0\
0 & frac12
endbmatrix
$$
Also, the projection of $D$ onto $v$ is the following vector:
$$
v^TD = beginbmatrix
0\
sqrt2 - frac1sqrt2
endbmatrix
$$
So, in our case
$$
v^TSigma v = left[ frac1sqrt2, frac1sqrt2 right] beginbmatrix
0 & 0\
0 & frac12
endbmatrix
beginbmatrix
frac1sqrt2\
frac1sqrt2
endbmatrix = frac14.
$$
So, could you, please, explain, how can $v^TSigma v$ be a variance of values projected on $v$? I would really appreciate "the proof", that $v^TSigma v$ equals variance, as I don't see, why it is true.
linear-algebra variance covariance projection
$endgroup$
|
show 2 more comments
$begingroup$
I have troubles understanding a geometrical meaning of a covariance matrix.
Let's say we have a data set containing two points (-1,1), (-1,2) and write them in to the matrix
$$D = beginbmatrix
-1 & -1\
1 & 2
endbmatrix.
$$
Then we'll choose the unit-vector $v = left( frac1sqrt2, frac1sqrt2 right)^T$.
And now, in this article is the following statement:
So, if we would like to represent the covariance matrix with a vector
and its magnitude, we should simply try to find the vector that points
into the direction of the largest spread of the data, and whose
magnitude equals the spread (variance) in this direction.
If we define this vector as $v$, then the projection of our data $D$
onto this vector is obtained as $v^TD$, and the
variance of the projected data is $v^TSigma v$.
The covariance matrix $Sigma$ looks like this:
$$
Sigma = beginbmatrix
0 & 0\
0 & frac12
endbmatrix
$$
Also, the projection of $D$ onto $v$ is the following vector:
$$
v^TD = beginbmatrix
0\
sqrt2 - frac1sqrt2
endbmatrix
$$
So, in our case
$$
v^TSigma v = left[ frac1sqrt2, frac1sqrt2 right] beginbmatrix
0 & 0\
0 & frac12
endbmatrix
beginbmatrix
frac1sqrt2\
frac1sqrt2
endbmatrix = frac14.
$$
So, could you, please, explain, how can $v^TSigma v$ be a variance of values projected on $v$? I would really appreciate "the proof", that $v^TSigma v$ equals variance, as I don't see, why it is true.
linear-algebra variance covariance projection
$endgroup$
1
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
1
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
1
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20
|
show 2 more comments
$begingroup$
I have troubles understanding a geometrical meaning of a covariance matrix.
Let's say we have a data set containing two points (-1,1), (-1,2) and write them in to the matrix
$$D = beginbmatrix
-1 & -1\
1 & 2
endbmatrix.
$$
Then we'll choose the unit-vector $v = left( frac1sqrt2, frac1sqrt2 right)^T$.
And now, in this article is the following statement:
So, if we would like to represent the covariance matrix with a vector
and its magnitude, we should simply try to find the vector that points
into the direction of the largest spread of the data, and whose
magnitude equals the spread (variance) in this direction.
If we define this vector as $v$, then the projection of our data $D$
onto this vector is obtained as $v^TD$, and the
variance of the projected data is $v^TSigma v$.
The covariance matrix $Sigma$ looks like this:
$$
Sigma = beginbmatrix
0 & 0\
0 & frac12
endbmatrix
$$
Also, the projection of $D$ onto $v$ is the following vector:
$$
v^TD = beginbmatrix
0\
sqrt2 - frac1sqrt2
endbmatrix
$$
So, in our case
$$
v^TSigma v = left[ frac1sqrt2, frac1sqrt2 right] beginbmatrix
0 & 0\
0 & frac12
endbmatrix
beginbmatrix
frac1sqrt2\
frac1sqrt2
endbmatrix = frac14.
$$
So, could you, please, explain, how can $v^TSigma v$ be a variance of values projected on $v$? I would really appreciate "the proof", that $v^TSigma v$ equals variance, as I don't see, why it is true.
linear-algebra variance covariance projection
$endgroup$
I have troubles understanding a geometrical meaning of a covariance matrix.
Let's say we have a data set containing two points (-1,1), (-1,2) and write them in to the matrix
$$D = beginbmatrix
-1 & -1\
1 & 2
endbmatrix.
$$
Then we'll choose the unit-vector $v = left( frac1sqrt2, frac1sqrt2 right)^T$.
And now, in this article is the following statement:
So, if we would like to represent the covariance matrix with a vector
and its magnitude, we should simply try to find the vector that points
into the direction of the largest spread of the data, and whose
magnitude equals the spread (variance) in this direction.
If we define this vector as $v$, then the projection of our data $D$
onto this vector is obtained as $v^TD$, and the
variance of the projected data is $v^TSigma v$.
The covariance matrix $Sigma$ looks like this:
$$
Sigma = beginbmatrix
0 & 0\
0 & frac12
endbmatrix
$$
Also, the projection of $D$ onto $v$ is the following vector:
$$
v^TD = beginbmatrix
0\
sqrt2 - frac1sqrt2
endbmatrix
$$
So, in our case
$$
v^TSigma v = left[ frac1sqrt2, frac1sqrt2 right] beginbmatrix
0 & 0\
0 & frac12
endbmatrix
beginbmatrix
frac1sqrt2\
frac1sqrt2
endbmatrix = frac14.
$$
So, could you, please, explain, how can $v^TSigma v$ be a variance of values projected on $v$? I would really appreciate "the proof", that $v^TSigma v$ equals variance, as I don't see, why it is true.
linear-algebra variance covariance projection
linear-algebra variance covariance projection
edited Mar 18 at 12:32
Eenoku
asked Mar 18 at 0:10
EenokuEenoku
410316
410316
1
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
1
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
1
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20
|
show 2 more comments
1
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
1
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
1
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20
1
1
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
1
1
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
1
1
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20
|
show 2 more comments
0
active
oldest
votes
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
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3152258%2fcovariance-matrix-and-projection%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
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.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3152258%2fcovariance-matrix-and-projection%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
1
$begingroup$
The variance is $v^TSigmav$ not $v^TDv$
$endgroup$
– David M.
Mar 18 at 1:18
$begingroup$
@DavidM. Thank you for the correction!
$endgroup$
– Eenoku
Mar 18 at 1:45
1
$begingroup$
Also, $v^TDneq Dv$, as $D$ is not symmetric!
$endgroup$
– David M.
Mar 18 at 1:49
$begingroup$
@DavidM. Thank you again!
$endgroup$
– Eenoku
Mar 18 at 1:59
1
$begingroup$
@DavidM. They weren't pedantic, but necessary :) Something like $beginbmatrix 0&0\0½ endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20