Definition of alternating renewal processes
An alternating renewal process describes a system that cycles between two states repeatedly over time. Think of a machine that runs, then breaks down, gets repaired, runs again, breaks down again, and so on. Each full cycle (one "on" period plus one "off" period) constitutes a renewal, and the process restarts probabilistically after each cycle.
More formally, you have a sequence of paired random variables where is the duration of the th on period and is the duration of the th off period. The pairs are independent and identically distributed, though and don't need to follow the same distribution as each other.
Key assumptions
- The system alternates between exactly two states (often called "on"/"off" or "up"/"down").
- The cycle pairs are i.i.d. across cycles. Within a single cycle, and may or may not be independent of each other, but the pairs themselves are i.i.d.
- Both and are non-negative random variables with finite means: and .
- The system starts in one of the two states at time zero (typically the "on" state).
Alternating states
On and off periods
The on period is the duration of the th interval where the system is active or functioning. The off period is the duration of the th interval where the system is inactive. A single cycle has length .
Concrete examples:
- A factory machine runs for a random time before failing, then takes a random time to repair.
- A web server is operational for hours, then goes down for maintenance lasting hours.
Distributions of on/off times
The on and off durations can follow any non-negative distribution. Common choices include:
- Exponential (memoryless property makes analysis tractable)
- Gamma (useful when a state duration is the sum of several exponential phases)
- Weibull (common in reliability, since it can model increasing or decreasing failure rates)
The choice depends on the system you're modeling. Exponential is the simplest analytically, but real systems often exhibit aging or wear-out effects that require Weibull or gamma fits. Parameters are typically estimated from historical failure and repair data.
Long-run properties
Limiting probabilities
The central result for alternating renewal processes comes from the renewal reward theorem (or the key renewal theorem). The long-run fraction of time the system spends in the "on" state is:
and similarly for the "off" state:
Why does this work? Over many cycles, the law of large numbers tells you the average cycle length converges to , and the average on-time per cycle converges to . The ratio gives the long-run proportion.
Example: A machine has hours (mean time between failures) and hours (mean repair time). Then , so the machine is available 90% of the time in the long run.
Note that these limiting probabilities depend only on the means of and , not on the full distributions. This is a powerful feature: you don't need to know the exact shape of the distributions to compute long-run availability.
Mean on/off durations
The quantities and are the building blocks for most long-run calculations. In reliability engineering, these have standard names:
- MTBF (Mean Time Between Failures) =
- MTTR (Mean Time To Repair) =
For exponential distributions with rates (failure rate) and (repair rate):
This gives the steady-state availability as .
Applications of alternating renewal

Reliability theory
Alternating renewal is the natural model for a single repairable component. The on period is the component's lifetime until failure; the off period is the repair duration. From this model you can derive:
- Steady-state availability: , the long-run fraction of time the system is operational.
- Failure frequency: In the long run, failures occur at rate per unit time.
These metrics directly inform maintenance scheduling and spare-parts inventory decisions.
Queueing systems
When a server in a queue is unreliable, alternating renewal models the server's availability. The on period is the time the server works before breaking down; the off period is the repair time. Performance measures like average queue length and waiting time depend on the server's availability, which you can compute from .
Applications include call centers with agent breaks, manufacturing lines with machine failures, and cloud servers with intermittent outages.
Age and residual life
Forward and backward recurrence times
At any time , two quantities describe where you are within the current cycle:
- Age (backward recurrence time) : the time elapsed since the most recent renewal before .
- Residual life (forward recurrence time) : the time remaining until the next renewal after .
If the most recent renewal occurred at time and the next occurs at , then and .
As , the distributions of and converge to limiting distributions that depend on the full cycle-length distribution (not just the mean). For a cycle length with CDF , the limiting density of the residual life is:
This is the equilibrium (or spread) distribution of the cycle length.
Renewal functions and equations
The renewal function gives the expected number of renewals (completed cycles) by time . It satisfies the renewal equation:
where is the CDF of the cycle length .
Solving this integral equation directly is usually hard. Two common approaches:
-
Laplace transforms: Take the transform of both sides. The convolution becomes a product, giving , which you can invert (analytically for simple distributions, numerically otherwise).
-
Numerical methods: Discretize time and solve the equation iteratively.
The elementary renewal theorem provides the asymptotic result: as . So in the long run, renewals occur at a constant rate equal to the reciprocal of the mean cycle length.
Generalizations and extensions
Semi-Markov processes
Semi-Markov processes generalize alternating renewal by allowing the next state's identity and holding time to depend on the current state. The transition structure is described by a semi-Markov kernel , which gives the probability of transitioning to state within time given the current state is .
When there are exactly two states and the transitions always alternate (on off on ), the semi-Markov process reduces to the standard alternating renewal process. The added flexibility of semi-Markov models is useful when transition patterns are more complex, such as multi-state degradation models in reliability.
Multivariate alternating renewal
When a system cycles through more than two states, you get a multivariate alternating renewal process. Each state has its own holding-time distribution, and a transition probability matrix governs which state comes next.
The limiting probability of being in state generalizes to:
where is the stationary probability of visiting state (from the embedded Markov chain) and is the mean holding time in state . This formula reduces to the two-state version when there are only on and off states with deterministic alternation.