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













1












$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.










share|cite|improve this question











$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&frac12 endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
    $endgroup$
    – Eenoku
    Mar 18 at 2:20
















1












$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.










share|cite|improve this question











$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&frac12 endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
    $endgroup$
    – Eenoku
    Mar 18 at 2:20














1












1








1





$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.










share|cite|improve this question











$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






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








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&frac12 endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
    $endgroup$
    – Eenoku
    Mar 18 at 2:20













  • 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&frac12 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&frac12 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&frac12 endbmatrix$ ? I'm afraid I exchanged columns with rows before in hurry...
$endgroup$
– Eenoku
Mar 18 at 2:20











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
);



);













draft saved

draft discarded


















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















draft saved

draft discarded
















































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.




draft saved


draft discarded














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





















































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







Popular posts from this blog

How should I support this large drywall patch? Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How do I cover large gaps in drywall?How do I keep drywall around a patch from crumbling?Can I glue a second layer of drywall?How to patch long strip on drywall?Large drywall patch: how to avoid bulging seams?Drywall Mesh Patch vs. Bulge? To remove or not to remove?How to fix this drywall job?Prep drywall before backsplashWhat's the best way to fix this horrible drywall patch job?Drywall patching using 3M Patch Plus Primer

random experiment with two different functions on unit interval Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)Random variable and probability space notionsRandom Walk with EdgesFinding functions where the increase over a random interval is Poisson distributedNumber of days until dayCan an observed event in fact be of zero probability?Unit random processmodels of coins and uniform distributionHow to get the number of successes given $n$ trials , probability $P$ and a random variable $X$Absorbing Markov chain in a computer. Is “almost every” turned into always convergence in computer executions?Stopped random walk is not uniformly integrable

Lowndes Grove History Architecture References Navigation menu32°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661132°48′6″N 79°57′58″W / 32.80167°N 79.96611°W / 32.80167; -79.9661178002500"National Register Information System"Historic houses of South Carolina"Lowndes Grove""+32° 48' 6.00", −79° 57' 58.00""Lowndes Grove, Charleston County (260 St. Margaret St., Charleston)""Lowndes Grove"The Charleston ExpositionIt Happened in South Carolina"Lowndes Grove (House), Saint Margaret Street & Sixth Avenue, Charleston, Charleston County, SC(Photographs)"Plantations of the Carolina Low Countrye