Expected Distance of Unit Vectors

Calculus Level 2

Two unit vectors in two-dimensional space a ^ \hat{\textbf{a}} and b ^ \hat{\textbf{b}} are added together. The expected magnitude of the resulting vector a+b \textbf{a+b} is equal to E . E. What is 100 E ? \lfloor100E\rfloor?


Also try Daniel Liu's Expected Distance on a Circle .

Image credit: Wikipedia P.Fraundorf


The answer is 127.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

3 solutions

Discussions for this problem are now closed

Avineil Jain
May 6, 2014

The net resultant of vectors is given by the cosine law.

Let | a + b | = S \textbf{| a + b | = S}

S = 1 + 1 + 2 c o s θ \textbf{S} = \sqrt{ 1 + 1 + 2 cosθ}

S = 2 c o s θ 2 \textbf {S} = 2 cos \frac{θ}{2}

Therefore, average or expected value is given by-

S a v g = 0 π 2 c o s θ 2 d θ 0 π d θ S_{avg} = \frac{\int_{0}^{\pi} 2 cos \frac{θ}{2}dθ}{\int_{0}^{\pi} dθ}

The limits are taken from 0 to π \pi since θ can vary from 0 to π \pi .

S a v g = 1.273 S_{avg} = 1.273

[ 100 S a v g ] = 127 [100 S_{avg}] = 127

I am not convinced with the answer.

Image Image

Fix one of the vectors as i ^ \hat{i} (orange). The other vector (blue) which is at an angle θ \theta with the first one can be picked from a "cone" of vectors (the vectors are in 3-D space) with the probability 2 π sin θ 4 π d θ = sin θ 2 d θ \frac{2\pi \sin\theta}{4\pi}\,d\theta=\frac{\sin \theta}{2}d\theta . The magnitude is given by: 2 + 2 cos θ \sqrt{2+2\cos\theta} . Hence, the expected value is:

0 π 2 + 2 cos θ sin θ 2 d θ \displaystyle \int_0^{\pi} \sqrt{2+2\cos\theta}\frac{\sin\theta}{2}d\theta

@Avineil Jain and @Trevor B. , can you please clarify?

Pranav Arora - 7 years, 1 month ago

I think I needed to specify that the vectors were in 2-D space. Can you try that again and tell me if you get 4 π \frac{4}{\pi} ? Sorry for the inconvenience.

Trevor B. - 7 years, 1 month ago

Thanks for the quick response!

I got 4 π \frac{4}{\pi} when I assumed the vectors to be in 2-D space. The problem is OK now, I guess. My argument could be wrong too, though.

Pranav Arora - 7 years, 1 month ago

@Pranav Arora I don't know anything about 3-D vectors, so can someone confirm that Pranav's integral would be correct if the vectors were in 3-dimensional space and that the answer would be 4 3 \frac{4}{3} ?

Trevor B. - 7 years, 1 month ago

i think ur correct

Beakal Tiliksew - 7 years, 1 month ago

Well I thought that 2 vectors are always co planar, so this problem becomes limited for 2-D.

Avineil Jain - 7 years, 1 month ago

Yes, two vectors are always coplanar but you cannot say that there is only one vector which is at some angle to the other, you have infinite choices.

Pranav Arora - 7 years, 1 month ago

@Pranav Arora But I still think the "cone" logic is wrong. I am still not convinced what is the harm in approaching this problem by 2-D.

Avineil Jain - 7 years, 1 month ago

I am not sure if this is correct. Sqrt(x^2) = mod(x) and not x.

Mayur Choudhary - 7 years ago
Aaaaa Bbbbb
May 7, 2014

It is easy to see angle between two vectors changes from 0 to 2pi, but it is the same for two ranges: [0, pi] and [pi, 2pi]. So can use the expression to calculate: 2 ( 1 2 π ) 0 π 2 c o s ( x 2 ) = 4 π r e s u l t = 127 2(\frac{1}{2\pi}) \int_0^{\pi} 2cos(\frac{x}{2})=\frac{4}{\pi} \Rightarrow result=\boxed{127}

Experimental Mathematics!!

>>> s = 0
>>> import math
>>> addvector = lambda x: math.sqrt(1+1+2*1*1*math.cos(x))
>>> for i in xrange(0,628):
...     x = float(i)/100
...     s += addvectors(x)
... 
>>> int(100*s/628)
127

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...