ExamSaathi learning library · Government exams · SSC CGL quantitative foundations; published syllabus labelled 2024 · Quantitative aptitude

Exponential distribution: waiting times and the memoryless property

Model the waiting time until the next arrival or failure with the exponential distribution: find chances with e^(-lambda t), get the mean, SD, variance and median from the rate lambda, recover lambda from a given mean or probability, and use the memoryless property.

Status: original pilot lesson. Teacher review is pending. It is not a complete course or official exam material.

You will learn to

Before you start

This lesson uses the number e, about 2.7183, raised to negative powers. Such values come from a calculator or a table, and every one used here is rounded to 4 decimal places: e^(-0.25) = 0.7788, e^(-0.5) = 0.6065, e^(-1) = 0.3679, e^(-1.5) = 0.2231 and e^(-2) = 0.1353. The natural logarithm ln undoes e, so ln(e^(-2)) = -2, and ln 2 is about 0.6931. A waiting time can be any length, not just a whole number of minutes, so its chances are areas under a curve and the chance of one exact instant is 0; this is why 'less than' and 'at most' give the same answer. The waiting time is called T, a particular time is t, and the average number of arrivals or failures per unit of time is the rate lambda, written as a word. As in every lesson here, x means multiply.

When the exponential model fits

Suppose customers reach a bank counter in Patna one at a time, independently of one another, at a steady average rate of lambda per minute. The time T from now until the next customer arrives then follows an exponential distribution with rate lambda. The same model describes the hours until a bulb fails, when failures strike at random at a constant rate and a used bulb is no more likely to fail soon than a new one. The density is lambda x e^(-lambda t) for t >= 0, and 0 for negative t. It is highest at t = 0 and falls steadily, so short waits are common and long waits grow rarer and rarer, while the total area under the curve stays 1. Three results answer most questions. Waiting longer than t: P(T > t) = e^(-lambda t). The wait over by time t: P(T <= t) = 1 - e^(-lambda t). The wait ending between times a and b: P(a < T < b) = e^(-lambda a) - e^(-lambda b). Keep the units matched: 3 customers an hour is a rate of 3 / 60 = 0.05 per minute.

Mean, spread and median from the rate

The mean waiting time is 1 / lambda, the SD is also 1 / lambda, and so the variance is 1 / lambda^2. With customers arriving at 0.25 a minute, the mean wait is 1 / 0.25 = 4 minutes, the SD is 4 minutes and the variance is 16 (minutes squared). Because the rate and the mean are reciprocals, a given mean fixes the rate: a mean life of 500 hours means lambda = 1 / 500 = 0.002 per hour. The median is the time by which half of all waits are over, so e^(-lambda x median) = 0.5, which gives median = (ln 2) / lambda, about 0.6931 / lambda, or 0.6931 times the mean. It is smaller than the mean because a few very long waits pull the mean up. A given probability also fixes the rate. If P(T > 5) = 0.3679, which is e^(-1) to 4 decimal places, then 5 x lambda = 1 and lambda = 0.2 per minute. In general, P(T > t) = p gives lambda = -ln(p) / t.

No memory, and the link with Poisson counts

The exponential model forgets the past. Suppose you have already waited s minutes and no one has come. The chance of waiting at least t more minutes is P(T > s + t given T > s) = e^(-lambda (s + t)) / e^(-lambda s) = e^(-lambda t), which is exactly P(T > t), the chance for someone who has only just started waiting. The minutes already spent make no difference. For bulbs, one that has already glowed for 800 hours is as likely to last another 300 hours as a new bulb is to last its first 300 hours. So the model suits failures caused by chance shocks, such as a fuse blowing in a voltage surge, and not wear-out failures such as a worn tyre, where an old item is more likely to fail soon. The link with the Poisson lesson takes one line: if the number of arrivals in any t units of time is Poisson with mean lambda x t, then the time until the next arrival is exponential with rate lambda, because waiting longer than t means that no arrival falls in those t units.

Common mistakes

Treating lambda as the mean: a rate of 4 calls an hour gives a mean gap of 1/4 hour, or 15 minutes, not 4 hours. Mixing units, such as a rate per hour with a time in minutes. Using e^(-lambda t) for 'within t' or 'at most t'; that is the chance of waiting longer, and the chance that the wait is over by t is 1 minus it. Adding e^(-lambda a) and e^(-lambda b) for a range instead of subtracting. Giving the variance as 1 / lambda; it is 1 / lambda^2, while the SD equals the mean. Halving the mean to get the median; the median is about 0.6931 times the mean. Adding the time already waited when the memoryless property applies; only the extra time counts. Cutting e-values to 2 decimal places, which can throw off the third decimal of the result.

A routine for waiting-time questions

1. Check the setting: a waiting time or a lifetime, with arrivals or failures at a steady rate and no wearing out. 2. Find lambda in the unit of the question: lambda = 1 / mean, or lambda = -ln(p) / t from a given P(T > t) = p. 3. Pick the form: longer than t is e^(-lambda t); within t is 1 - e^(-lambda t); between a and b is e^(-lambda a) - e^(-lambda b). 4. Write each e-value to 4 decimal places. 5. If some time has already passed, use only the extra time. 6. Summary figures: mean = SD = 1 / lambda, variance = 1 / lambda^2 and median = 0.6931 / lambda. 7. Sense-check: each answer is a chance from 0 to 1, and the median comes out smaller than the mean.

Worked examples

  1. At a bank counter in Patna, customers arrive at random, one at a time, at an average rate of 15 an hour. Let T be the number of minutes until the next customer arrives. Using e^(-0.5) = 0.6065 and e^(-1.5) = 0.2231, find (a) the mean waiting time, (b) P(T > 2), (c) P(T <= 6) and (d) P(2 < T < 6).

    1. In minutes the rate is lambda = 15 / 60 = 0.25 per minute, so the mean wait is 1 / 0.25 = 4 minutes.
    2. (b) P(T > 2) = e^(-0.25 x 2) = e^(-0.5) = 0.6065.
    3. (c) P(T <= 6) = 1 - e^(-0.25 x 6) = 1 - e^(-1.5) = 1 - 0.2231 = 0.7769.
    4. (d) P(2 < T < 6) = e^(-0.5) - e^(-1.5) = 0.6065 - 0.2231 = 0.3834.
    5. Check: P(T <= 2) + P(2 < T < 6) + P(T > 6) = 0.3935 + 0.3834 + 0.2231 = 1.

    Answer: The mean wait is 4 minutes; P(T > 2) = 0.6065, P(T <= 6) = 0.7769 and P(2 < T < 6) = 0.3834.

  2. The life T, in hours, of the bulbs fitted in the corridors of a hostel in Bhopal is exponential with mean 2,000 hours. Find lambda, the SD and the variance of T, and the median life. Using e^(-0.25) = 0.7788, find the probability that a bulb fails within its first 500 hours.

    1. lambda = 1 / mean = 1 / 2000 = 0.0005 per hour.
    2. SD = mean = 2,000 hours, so the variance = 2000^2 = 4,000,000 (hours squared).
    3. Median = 0.6931 / 0.0005 = 0.6931 x 2000 = 1,386.2, about 1,386 hours, which is below the mean of 2,000 hours.
    4. P(T <= 500) = 1 - e^(-0.0005 x 500) = 1 - e^(-0.25) = 1 - 0.7788 = 0.2212.

    Answer: lambda = 0.0005 per hour, the SD is 2,000 hours, the variance is 4,000,000 hours squared, the median life is about 1,386 hours, and P(T <= 500) = 0.2212.

  3. At a small jewellery shop in Jaipur, the time T in minutes until the next customer walks in is exponential. The chance that no customer comes in the next 10 minutes is 0.6065, which is e^(-0.5) to 4 decimal places. (a) Find lambda and the mean time between customers. (b) The owner has already waited 15 minutes without a customer. Using e^(-1) = 0.3679, find the chance that he waits at least 20 more minutes.

    1. P(T > 10) = e^(-10 x lambda) = e^(-0.5), so 10 x lambda = 0.5 and lambda = 0.05 per minute.
    2. Mean time between customers = 1 / 0.05 = 20 minutes.
    3. (b) By the memoryless property the 15 minutes already spent do not matter: P(T > 15 + 20 given T > 15) = P(T > 20) = e^(-0.05 x 20) = e^(-1) = 0.3679.
    4. Check from the definition, with e^(-1.75) = 0.1738 and e^(-0.75) = 0.4724: P(T > 35) / P(T > 15) = 0.1738 / 0.4724 = 0.3679.

    Answer: lambda = 0.05 per minute, the mean time between customers is 20 minutes, and the chance of waiting at least 20 more minutes is 0.3679.

Practice checks

  1. Calls reach a gas-cylinder booking helpline in Chennai at random at an average rate of 4 an hour. Let T be the gap between two calls, in minutes. What are the mean and the variance of T?
  2. The time T a passenger waits for a shared taxi at a stand in Shillong is exponential with mean 5 minutes. Using e^(-0.2) = 0.8187 and e^(-0.6) = 0.5488, what is the probability that the wait is between 1 and 3 minutes?
  3. The life of a fuse in a transformer near Nashik is exponential with mean 1,000 hours. A fuse has already worked for 600 hours. Using e^(-0.4) = 0.6703, what is the probability that it works for at least 400 more hours?
  4. The time between two power cuts in a village near Bhagalpur is exponential with mean 18 hours. Using ln 2 = 0.6931, what is the median time between power cuts?
  5. At a sweet shop in Kolkata, the chance that a customer waits more than 6 minutes to be served is 0.1353, which is e^(-2) to 4 decimal places. If the waiting time is exponential, what is its standard deviation?

Sources checked