Exercise
The Pilsdorff Beer Company runs a fleet of
trucks along the 100 mile road from Hangtown to Dry Gulch. The trucks are old, and are apt to break down at any point along the road with equal probability. Where should the company locate a garage so as to minimize the expected distance from a typical breakdown to the garage? In other words, if [math]X[/math] is a random variable giving the location of the breakdown, measured, say, from Hangtown, and [math]b[/math] gives the location of the garage, what choice of [math]b[/math] minimizes [math]E(|X - b|)[/math]? Now suppose [math]X[/math] is not distributed uniformly over [math][0,100][/math], but instead has density function [math]f_X(x) = 2x/10,00[/math]. Then what choice of [math]b[/math] minimizes [math]E(|X - b|)[/math]?