Optimizing Expected Cost for Traveling to an Appointment

Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
1 reply · 2K views
twoski
Messages
177
Reaction score
2

Homework Statement



Suppose that if you are s minutes early for an appointment, then you incur cost s * $3,
while if you are s minutes late, you incur cost s * $5. Suppose the travel time from your
present location and the location of the appointment is a continuous random variable with
pdf f(x) such that f(x) = (1/10)e-x/10 if x ≥ 0 and f(x) = 0 if x < 0. How many minutes before your appointment should you depart in order to minimize your expected cost?


The Attempt at a Solution



So i want to find E[X] and then the variance i assume...

[itex]E[X] = \int_{0}^{∞} x( 1/10e^{-x/10})[/itex]

But if i evaluate this I'm going to get either 0 or infinity... So should this just be an indefinite integral?
 
Physics news on Phys.org
twoski said:

Homework Statement



Suppose that if you are s minutes early for an appointment, then you incur cost s * $3,
while if you are s minutes late, you incur cost s * $5. Suppose the travel time from your
present location and the location of the appointment is a continuous random variable with
pdf f(x) such that f(x) = (1/10)e-x/10 if x ≥ 0 and f(x) = 0 if x < 0. How many minutes before your appointment should you depart in order to minimize your expected cost?

The Attempt at a Solution



So i want to find E[X] and then the variance i assume...

[itex]E[X] = \int_{0}^{∞} x( 1/10e^{-x/10})[/itex]

But if i evaluate this I'm going to get either 0 or infinity... So should this just be an indefinite integral?

Computing EX has nothing to do with the problem. You want to look at expected COST, which will depend on when you leave. Write a formula for the cost function, given that you leave m minutes before your appointment and the trip takes x minutes. Then take the expected value of that cost function.
 
Last edited: