Q.6.14

Question

An ambulance travels back and forth at a constant speed along a road of length L. At a certain moment of time, an accident occurs at a point uniformly distributed on the road. [That is, the distance of the point from one of the fixed ends of the road is uniformly distributed over (0, L).] Assuming that the ambulance’s location at the moment of the accident is also uniformly distributed, and assuming independence of the variables, compute the distribution of the distance of the ambulance from the accident. 

Step-by-Step Solution

Verified
Answer

The distribution of the distance of the ambulance from the accident is fZ(a)=2(L-a)L2

1Step 1: Content Introduction

The length of the line connecting two places is the distance between them. If the two locations are on the same horizontal or vertical line, the distance between them can be calculated by subtracting the non-overlapping coordinates.

2Step 2: Content Explanation

Define random variables X and Y to be positions of the ambulance and the accident on the road. We are given that X, Y~Unif(0,L) and that X and Y are independent. Hence, the joint density function of X and Y is

  f(x,y)=FX(x)FY(y)         =1L2

for (x , y)(0 , L2), otherwise it is equal to zero. Random variable that marks the distance between these two positions is Z:= (X - Y). Lets find the cumulative distribution of Z.

P(Za)=1-P (Z>a)              =1-(L-a)2L2

3Step 3: Conclusion

The last equality is got when we consider the squares (0,L)in the two dimensional plane. Event Z>a is equivalent to the set of points where X and Y differ more than a. And that sets in fact consisted of two rights triangles (one upper and one lower) with the length of side L - a.

Finally the density function of Z is fZ(a)=ddaP(Za)= 2(L-a)L2