Memoryless Property

Math
Memoryless Property

Understanding the Memoryless Property

The memoryless property is a curious and powerful characteristic of some probability distributions. It states that, for certain random events, what has already happened in the past does not influence what will happen in the future.

This property is found only in two probability distributions:

  • Geometric (in discrete contexts)
  • Exponential (in continuous contexts)

And what this means in practice?

Geometric Distribution: Trials Until Success

Imagine you are flipping a biased coin, which has a 20% chance of landing heads (success). You repeat the experiment until you get the first head. The variable that counts how many trials were made follows a geometric distribution.

The memoryless property says that:

Pr(X > k + n | X > k) = Pr(X > n)

In other words: if you have already tried k times without success, the chance of needing n more trials is the same as it was at the start — as if the previous k failures never happened.

Intuition: The system does not "learn" from the mistakes. The past is ignored. Every new trial is a new independent chance.

Exponential Distribution: Time Until the Next Event

Now imagine a system where failures occur randomly over time — like a server breakdown or customers arriving at a checkout. The time between events follows an exponential distribution.

The memoryless property here is:

Pr(X > s + t | X > t) = Pr(X > s)

This means that if you have already waited t minutes for an event, the probability of it taking s more minutes is the same as waiting s minutes from the beginning. The "clock" is always reset.

In short

  • Geometric Distribution: Number of trials until the first success. The memory of the past does not affect the next chances.
  • Exponential Distribution: Time until the next event. The time that has already passed does not affect the expected time.

Real-World Applications

  • Geometric Distribution: Number of attempts until establishing a network connection in unstable or congested systems.
  • Exponential Distribution: Time between failures of electronic components or servers in systems operating continuously.

Comparing with "Memory" Distributions

Not all distributions ignore the past. Distributions such as the binomial or normal take into account the process's history:

  • Binomial: The chance of success depends on the total number of trials and previous successes. Each experiment is linked to a "past".
  • Normal: Models continuous variables where averages, deviations, and previous values directly influence future predictions.

This differentiates the geometric and exponential distributions as useful tools when the past doesn't matter — for example, in queue systems, computer networks, or independent probabilistic tests.

Python Example: Simulating Geometric Distribution

 
        import random 
        def attempts_until_success(p): 
            attempts = 0 
            while True: 
                attempts += 1 
                if random.random() < p: 
                    return attempts 
        # Simulating 10 rounds with 20% chance of success 
        for i in range(10): 
            print(f"Round {i+1}: success on attempt
{attempts_until_success(0.2)}")

Key Phrase

Forget the mistakes of the past, focus on what is yet to come. This is the essence of the memoryless property: nothing that has already happened changes what can still happen.

Additional Source