Expected value of inner product of uniformly distributed random unit vectors

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
3
down vote

favorite












I am trying to understand the solution to the following problem:




Let $mathbfx, mathbfy$ be two independent, uniformly distributed random unit vectors. Show that $mathbbElanglemathbfx, mathbfy rangle^2 = Theta(frac1n)$




The solution goes as follows:



Let $mathbfx$ and $mathbfy$ be two random unit vectors in $mathbbR^n$. By rotational invariance, all random variables of the form $langle mathbfx, yrangle^2$ have the same distribution, where $y$ is a unit vector $mathbbElangle mathbfx, e_1 rangle^2$ (i.e. possible realizations of $mathbfy)$. If follows that $mathbbElanglemathbfx, mathbfy rangle^2 = mathbbElanglemathbfx, e_1 rangle^2$ where $e_1$ is the first coordinate vector[*].



Knowing that we can represent $mathbfx$ in terms of a standard Gaussian vector, we write $mathbfx = fracu$ where $mathbfu sim N(0, mathrmId)$. Multiplying a Gaussian $ N(mu, Sigma)$ with a matrix $A$ gives another Gaussian $N(Amu, ASigma A^top)$. Therefore $langlemathbfx, e_1 rangle^2 sim N(0, 1)$. As a result, we want to compute the expectation of the random variable: $mathbfX = fracmathbfu_1^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ with $mathbfu_i stackreliidsim N(0,1)$.



The random variables $mathbfX_i=fracmathbfu_i^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ for $i in [n]$ have the same distribution and therefore the same expectation. We have that $sum_i mathbfX_i = fracmathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2 = 1$. By linearity of expectation we conclude that $mathbbEmathbfX_1 = frac1n$.



The part that I don't understand is the [*] one. How we can restrict $mathbfy$ to be just some coordinate vector? Can anyone give a more intuitive explanation that maybe will involve some calculations using the rotational invariance?







share|cite|improve this question















  • 1




    Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
    – Jack D'Aurizio♦
    Aug 6 at 17:07











  • Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
    – dimkou
    Aug 6 at 17:12






  • 1




    A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
    – Jack D'Aurizio♦
    Aug 6 at 17:14











  • $langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
    – dimkou
    Aug 6 at 17:16















up vote
3
down vote

favorite












I am trying to understand the solution to the following problem:




Let $mathbfx, mathbfy$ be two independent, uniformly distributed random unit vectors. Show that $mathbbElanglemathbfx, mathbfy rangle^2 = Theta(frac1n)$




The solution goes as follows:



Let $mathbfx$ and $mathbfy$ be two random unit vectors in $mathbbR^n$. By rotational invariance, all random variables of the form $langle mathbfx, yrangle^2$ have the same distribution, where $y$ is a unit vector $mathbbElangle mathbfx, e_1 rangle^2$ (i.e. possible realizations of $mathbfy)$. If follows that $mathbbElanglemathbfx, mathbfy rangle^2 = mathbbElanglemathbfx, e_1 rangle^2$ where $e_1$ is the first coordinate vector[*].



Knowing that we can represent $mathbfx$ in terms of a standard Gaussian vector, we write $mathbfx = fracu$ where $mathbfu sim N(0, mathrmId)$. Multiplying a Gaussian $ N(mu, Sigma)$ with a matrix $A$ gives another Gaussian $N(Amu, ASigma A^top)$. Therefore $langlemathbfx, e_1 rangle^2 sim N(0, 1)$. As a result, we want to compute the expectation of the random variable: $mathbfX = fracmathbfu_1^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ with $mathbfu_i stackreliidsim N(0,1)$.



The random variables $mathbfX_i=fracmathbfu_i^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ for $i in [n]$ have the same distribution and therefore the same expectation. We have that $sum_i mathbfX_i = fracmathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2 = 1$. By linearity of expectation we conclude that $mathbbEmathbfX_1 = frac1n$.



The part that I don't understand is the [*] one. How we can restrict $mathbfy$ to be just some coordinate vector? Can anyone give a more intuitive explanation that maybe will involve some calculations using the rotational invariance?







share|cite|improve this question















  • 1




    Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
    – Jack D'Aurizio♦
    Aug 6 at 17:07











  • Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
    – dimkou
    Aug 6 at 17:12






  • 1




    A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
    – Jack D'Aurizio♦
    Aug 6 at 17:14











  • $langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
    – dimkou
    Aug 6 at 17:16













up vote
3
down vote

favorite









up vote
3
down vote

favorite











I am trying to understand the solution to the following problem:




Let $mathbfx, mathbfy$ be two independent, uniformly distributed random unit vectors. Show that $mathbbElanglemathbfx, mathbfy rangle^2 = Theta(frac1n)$




The solution goes as follows:



Let $mathbfx$ and $mathbfy$ be two random unit vectors in $mathbbR^n$. By rotational invariance, all random variables of the form $langle mathbfx, yrangle^2$ have the same distribution, where $y$ is a unit vector $mathbbElangle mathbfx, e_1 rangle^2$ (i.e. possible realizations of $mathbfy)$. If follows that $mathbbElanglemathbfx, mathbfy rangle^2 = mathbbElanglemathbfx, e_1 rangle^2$ where $e_1$ is the first coordinate vector[*].



Knowing that we can represent $mathbfx$ in terms of a standard Gaussian vector, we write $mathbfx = fracu$ where $mathbfu sim N(0, mathrmId)$. Multiplying a Gaussian $ N(mu, Sigma)$ with a matrix $A$ gives another Gaussian $N(Amu, ASigma A^top)$. Therefore $langlemathbfx, e_1 rangle^2 sim N(0, 1)$. As a result, we want to compute the expectation of the random variable: $mathbfX = fracmathbfu_1^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ with $mathbfu_i stackreliidsim N(0,1)$.



The random variables $mathbfX_i=fracmathbfu_i^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ for $i in [n]$ have the same distribution and therefore the same expectation. We have that $sum_i mathbfX_i = fracmathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2 = 1$. By linearity of expectation we conclude that $mathbbEmathbfX_1 = frac1n$.



The part that I don't understand is the [*] one. How we can restrict $mathbfy$ to be just some coordinate vector? Can anyone give a more intuitive explanation that maybe will involve some calculations using the rotational invariance?







share|cite|improve this question











I am trying to understand the solution to the following problem:




Let $mathbfx, mathbfy$ be two independent, uniformly distributed random unit vectors. Show that $mathbbElanglemathbfx, mathbfy rangle^2 = Theta(frac1n)$




The solution goes as follows:



Let $mathbfx$ and $mathbfy$ be two random unit vectors in $mathbbR^n$. By rotational invariance, all random variables of the form $langle mathbfx, yrangle^2$ have the same distribution, where $y$ is a unit vector $mathbbElangle mathbfx, e_1 rangle^2$ (i.e. possible realizations of $mathbfy)$. If follows that $mathbbElanglemathbfx, mathbfy rangle^2 = mathbbElanglemathbfx, e_1 rangle^2$ where $e_1$ is the first coordinate vector[*].



Knowing that we can represent $mathbfx$ in terms of a standard Gaussian vector, we write $mathbfx = fracu$ where $mathbfu sim N(0, mathrmId)$. Multiplying a Gaussian $ N(mu, Sigma)$ with a matrix $A$ gives another Gaussian $N(Amu, ASigma A^top)$. Therefore $langlemathbfx, e_1 rangle^2 sim N(0, 1)$. As a result, we want to compute the expectation of the random variable: $mathbfX = fracmathbfu_1^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ with $mathbfu_i stackreliidsim N(0,1)$.



The random variables $mathbfX_i=fracmathbfu_i^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2$ for $i in [n]$ have the same distribution and therefore the same expectation. We have that $sum_i mathbfX_i = fracmathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2mathbfu_1^2+mathbfu_2^2+dots+mathbfu_n^2 = 1$. By linearity of expectation we conclude that $mathbbEmathbfX_1 = frac1n$.



The part that I don't understand is the [*] one. How we can restrict $mathbfy$ to be just some coordinate vector? Can anyone give a more intuitive explanation that maybe will involve some calculations using the rotational invariance?









share|cite|improve this question










share|cite|improve this question




share|cite|improve this question









asked Aug 6 at 17:00









dimkou

535




535







  • 1




    Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
    – Jack D'Aurizio♦
    Aug 6 at 17:07











  • Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
    – dimkou
    Aug 6 at 17:12






  • 1




    A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
    – Jack D'Aurizio♦
    Aug 6 at 17:14











  • $langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
    – dimkou
    Aug 6 at 17:16













  • 1




    Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
    – Jack D'Aurizio♦
    Aug 6 at 17:07











  • Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
    – dimkou
    Aug 6 at 17:12






  • 1




    A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
    – Jack D'Aurizio♦
    Aug 6 at 17:14











  • $langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
    – dimkou
    Aug 6 at 17:16








1




1




Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
– Jack D'Aurizio♦
Aug 6 at 17:07





Let $R$ be the rotation which brings $y$ to $e_1$. Then $langle x,yrangle = langle Rx, Ryrangle = langle Rx, e_1rangle$, but $Rx$ and $x$ are identically distributed.
– Jack D'Aurizio♦
Aug 6 at 17:07













Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
– dimkou
Aug 6 at 17:12




Thanks! Can you elaborate a bit on why $Rx$ and $x$ have the same distribution? Is it because the uniform distribution doesn't change for affine tranformations?
– dimkou
Aug 6 at 17:12




1




1




A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
– Jack D'Aurizio♦
Aug 6 at 17:14





A uniform distribution over a (hyper-)sphere stays uniform if such sphere is rotated.
– Jack D'Aurizio♦
Aug 6 at 17:14













$langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
– dimkou
Aug 6 at 17:16





$langle x,yrangle = |x|cdot|y|cdotcostheta$, where $theta$ is the angle between $x$ and $y$. $theta$ is invariant under isometric transformations (isometric $to$ conformal), and so they are $|x|$ and $|y|$.
– dimkou
Aug 6 at 17:16
















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',
convertImagesToLinks: true,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
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%2f2874097%2fexpected-value-of-inner-product-of-uniformly-distributed-random-unit-vectors%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f2874097%2fexpected-value-of-inner-product-of-uniformly-distributed-random-unit-vectors%23new-answer', 'question_page');

);

Post as a guest













































































Comments

Popular posts from this blog

What is the equation of a 3D cone with generalised tilt?

Color the edges and diagonals of a regular polygon

Relationship between determinant of matrix and determinant of adjoint?