Bob Waits for the Bus
As the building entrance door closes behind, Bob glances at his post-it note. It has the directions and address of the car dealer. Bob is finally ready to buy his first (used) car. He walks to the nearby bus stop jubilantly thinking he will seldom use the bus again. Bob is tired of the waiting. Throughout these years the one thing he could establish is that the average wait time for his inbound 105 at the Cross St @ Main St is 15 minutes.
Bob may not care, but we know that his wait time follows an exponential distribution that has a probability density function .
The random variable T, the wait time between buses is an exponential distribution with parameter . He waits 15 minutes on average. Some days he boards the bus earlier than 15 minutes, and some days he waits much longer.
Looking at the function , and the typical information we have for exponential distribution, i.e., the average wait time, it will be useful to relate the parameter to the average wait time.
The average wait time is the average of the distribution — the expected value E[.].
E[X] for a continuous distribution, as you know from lesson 24 is .
Applying this using the limits of the exponential distribution, we can derive the following.
The definite integral is .
So we have
The parameter is a non-negative real number (), and represents the reciprocal of the expected value of T.
In Bob’s case, since the average wait time (E[T]) is 15 minutes, the parameter is 0.066.
Bob gets to the bus shelter, greets the person next to him and thinks to himself “Hope the wait will not exceed 10 minutes today.”
Please tell him the probability he waits more than 10 minutes is 0.5134.
Bob is visibly anxious. He turns his hand and looks at his wristwatch. “10 minutes. The wait won’t be much longer.”
Please tell him about the memoryless property of the exponential distribution. The probability that he waits for another ten minutes, given he already waited 10 minutes is also 0.5134.
Let’s see how. We will assume t represents the first ten minutes and s represents the second ten minutes.
The probability distribution of the remaining time until the event occurs is always the same regardless of the time that passed.
There is no memory in the process. The history is not relevant. The time to next arrival is not influenced by when the last event or arrival occurred.
This property is unique to the strictly decreasing functions: exponential and the geometric distributions.
The probability that Bob has to wait another s minutes (t + s) given that he already waited t minutes is the same as the probability that Bob waited the first s minutes. It is independent of the current wait time.
Bob Gets His First Chevy
Bob arrives at the dealers. He loves the look of the red 1997 Chevy. He looks over the window pane; “Ah, manual shift!” That made up his mind. He knows what he is getting. The price was reasonable. A good running engine is all he needed to drive it away.
The manager was young, a Harvard alum, as Bob identified from things in the room. “There is no guarantee these days with academic inflation, … the young lad is running a family business, … or his passion is to sell cars,” he thought to himself.
The manager tells him that the engine is in perfect running condition and the average breakdown time is four years. Bob does some estimates ($$$$) in his mind while checking out the car. He is happy with what he is getting and closes the deal.
Please tell Bob that there is a 22% likelihood that his Chevy manual shift will break down in the first year.
The number of years this car will run ~ exponential
distribution with a rate () of 1/4.
Since the average breakdown time (expected value E[T]) is four years, the parameter = 1/4.
Bob should also know that there is a 37% chance that his car will still be running fine after four years.
Bob in Four Years
Bob used the car for four years now with regular servicing, standard oil changes, and tire rotations. The engine is great.
Since the average lifetime has passed, should he think about a new car? How long should we expect his car to continue without a breakdown? Another four years?
Since he used it for four years, what is the probability that there will be no breakdown until the next four years?
You guessed it, 37%.
Now let’s have a visual interpretation of this memoryless property.
The probability distribution of the wait time (engine breakdown) for = 1/4 looks like this.
Let us assume another random variable , as the breakdown time after four years of usage. The lower bound for is 0 (since we measure from four years), and the upper bound is .
For any values , the distribution is another exponential function — it is shifted by four years.
Watch this animation, you will understand it better.
The original distribution is represented using the black line. The conditional distribution is shown as a red line using links.
The same red line with links (truncated at 4) is shown as the shifted exponential distribution (). So, the red line with links from t = 4 is the same as the original function from t = 0. It is just shifted.
The average value of is four years. The average value of is also four. They have the same distribution.
If Bob reads our lessons, he’d understand that his Chevy will serve him, on the average, another four years.
Just like the car dealer’s four-year liberal arts degree from Harvard is forgotten, Bob’s four-year car usage history is forgotten — Memoryless.
As the saying goes, some memories are best forgotten, but the lessons from our classroom are never forgotten.
If you find this useful, please like, share and subscribe.
You can also follow me on Twitter @realDevineni for updates on new lessons.