markprince77
New member
- Joined
- Dec 1, 2008
- Messages
- 2
Here is the question, that I am struggling with:
If n cities are located at various points along a straight highway, at what point along the road should an airport be located in order to minimize the sum of the distances from the n cities to the airport.
I am pretty sure that the answer is the median, due to the minimization of the mean absolute error rule, but I am unsure how to demonstrate this answer.
I started by sketching n points along a line of d distance. I think that the p.f. of the function will be something like 1/d|A -xi|, where A is the location of the airport, and xi is the location of each city i=1,..., n
I also know that the formula for finding a median is 1/2>=Pr(X<=m) and 1/2>=Pr(X>=m), but that is where I am stuck. Any help would be greatly appreciated.
If n cities are located at various points along a straight highway, at what point along the road should an airport be located in order to minimize the sum of the distances from the n cities to the airport.
I am pretty sure that the answer is the median, due to the minimization of the mean absolute error rule, but I am unsure how to demonstrate this answer.
I started by sketching n points along a line of d distance. I think that the p.f. of the function will be something like 1/d|A -xi|, where A is the location of the airport, and xi is the location of each city i=1,..., n
I also know that the formula for finding a median is 1/2>=Pr(X<=m) and 1/2>=Pr(X>=m), but that is where I am stuck. Any help would be greatly appreciated.