Consider two randomly chosen vectors (a,b) and (c,d) within the unit square, where a,b,c, and d are chosen uniformly from [0,1]. What is the expected angle between the vectors?
traucaderx7
Open question
2022-08-14
Average angle between two randomly chosen vectors in a unit square Consider two randomly chosen vectors (a,b) and (c,d) within the unit square, where a,b,c, and d are chosen uniformly from [0,1]. What is the expected angle between the vectors?
Answer & Explanation
Siena Bennett
Beginner2022-08-15Added 17 answers
Step 1 We have . Denote the polar coordinates of the two points by and . We need two separate cases according as the points are in the same or different octants. For the same octant, the integral over the region is
Step 2 For different octants, the integral over the region is
There are 4 symmetric copies of the first region and 2 of the second, for a total of This is not too different from the value if the points are picked from the first quadrant of the unit disk.
Ashlynn Hale
Beginner2022-08-16Added 4 answers
Step 1 For this sort of problem, the first thing to do is minimize the numbers of variable you need to work with as much as possible. In this case, you can work with the angles of the two vectors directly. Let - and - and - be the common CDF for , i.e.
The average angle you want is the expected value of , To compute this, we need the CDF for and
Step 2 This allows us to express the average angle as an integral
Integrate by part and notice , we find
It is easy to see for . Change variable to and integrate, the end result is: