2

I was trying to solve this question through a different method and I am not getting the right answer.

So my approach was first to figure out what would be the average distance between two points on a line. I did this by making assuming a function f(x,y)= |x-y|, here I imagine a line where x and y are distances from one of the end points. The mod of their difference would give the distance. Assuming the line is of unit length, I calculate the volume of the graph and divide by the area on the x-y plane. My reasoning being that the volume is basically the infinte sum of all the possible distances and the area on the x-y plane being the sum of the number of pairs we could get. By this method, I do get the correct answer 1/3. I don't know if this is even correct.

Now, I extend this idea to the problem. My reasoning is that if we find all the lines whose endpoints are on the perimeter and then using the above method find the average. It would cover all the points inside the square.

enter image description here

On calculating the end result I get 0.337. Can someone tell me where I am wrong or maybe if I can not extend this idea.

1 Answers1

2

My understanding of your approach (correct me if I'm wrong) is that you want to compute the average distance between two points in the unit square by the following two-step process:

  1. Compute the average distance between two arbitrary perimeter points on the square.
  2. Compute the average distance between two arbitrary points lying on a line segment that is the length you computed in step 1.

Your reasoning is that any two points in the square determine a unique line segment between perimeter points, so by averaging over all those line segments, we should be able to get the answer. In fact, average distance between points on a line segment varies linearly with respect to the length of the line segment, so this in principle will get you a meaningful answer.

It's just not a meaningful answer to the question you're asking.

This will tell you the average distance between two points in the square chosen by first picking two perimeter points uniformly (that are not on the same side of the square), and then picking two points uniformly on the resulting line segment. But the key is this does not result in a uniform distribution of points on the square.

Put simply, your resulting pair of points will be more heavily weighted toward short line segments (e.g. a segment briefly crossing one corner) than if you chose the points uniformly. Two uniformly-chosen points in the square are more likely to be on a long perimeter line segment than a short one, precisely because such lines are longer.

Edit: For an illustration of how different your distribution is from uniform, let's calculate the odds that both points show up in the same triangular corner region, bounded by the segment that intersects with the perimeter 1/10 of the distance from the corner:

corner areas

If we use a uniform distribution, this should only occur with probability $.02 \times .02 \times 1/4 = 0.0001$. Each point has a 2% chance of landing in one of these areas, and there is a $1/4$ chance they landed in the same area.

In your distribution, this occurs with probability $2/3 \times 0.1 \times 0.1 \approx 0.0067$. That is, there's a $2/3$ likelihood of picking two adjacent sides, followed by a $1/10$ chance for each point that it is close enough to the shared corner. This is $\approx 67$ times more likely than uniform.

  • I though my question has basically died and no one would answer. I have explained my method in much greater detail in this question if you are willing to... please take a look https://math.stackexchange.com/questions/4455557/how-to-find-the-average-distance-between-two-points-in-a-square-of-length-1-by – Rajdeep Singh May 24 '22 at 03:50
  • I can explain the difference in method breifly tho.. My idea is to consider a line that is formed by two points on the perimeter the, the sum of all the distances that could be marked by two points on that perimeter line will be $\frac {l^3}{3}$ so if I integrate this expression for the entire perimeter I would get all the possible distance that could be marked by two points on a square. – Rajdeep Singh May 24 '22 at 04:00