What is the expected distance between endpoints of n line segments of length 1 connected at random angles?

clovnerie0q

clovnerie0q

Answered question

2022-10-09

What is the expected distance between endpoints of n line segments of length 1 connected at random angles?
Start at the origin and take n line segments and connect them end to end each at random angles. What is the expected distance of the endpoint from the origin of the resulting path?
Clearly when n = 1 the expected distance is 1. When n = 2 we can find the expected distance by integrating
1 2 π 0 2 π 2 sin ( x 2 ) d x = 4 π
For n = 3, it is easy to simulate and find the distance is approximately 1.58. For n = 4 the simulated distance is 1.82 and for n = 5 we get approximately 2.02.
Can one find a general formula for any n?

Answer & Explanation

Paige Paul

Paige Paul

Beginner2022-10-10Added 11 answers

Step 1
Let each line segment be a unit vector
< c o s ( θ ) , s i n ( θ ) >
Adding up n unit vectors gives the resultant vector from the beginning to the end of the string
k = 1 n < c o s ( θ k ) , s i n ( θ k ) >
The magnitude of the resultant vector is the distance from beginning to end
D = | < k = 1 n c o s ( θ k ) , k = 1 n s i n ( θ k ) > |
Step 2
That equals
( k = 1 n c o s ( θ k ) ) 2 + ( k = 1 n s i n ( θ k ) ) 2
To find the average distance, we need to add up the distances from every possible combination of thetas and divide by the number of combinations. Since each theta can be any value between 0 and 2 pi, we use an integral
1 ( 2 π ) n 0 2 π 0 2 π ( k = 1 n c o s ( θ k ) ) 2 + ( k = 1 n s i n ( θ k ) ) 2 d θ 1 d θ n
Solve that and you get your average distance for any n

Do you have a similar question?

Recalculate according to your conditions!

New Questions in High school geometry

Ask your question.
Get an expert answer.

Let our experts help you. Answer in as fast as 15 minutes.

Didn't find what you were looking for?