Fiveable

๐Ÿ”€Stochastic Processes Unit 7 Review

QR code for Stochastic Processes practice questions

7.4 Alternating renewal processes

7.4 Alternating renewal processes

Written by the Fiveable Content Team โ€ข Last updated August 2025
Written by the Fiveable Content Team โ€ข Last updated August 2025
๐Ÿ”€Stochastic Processes
Unit & Topic Study Guides

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 (X1,Y1),(X2,Y2),โ€ฆ(X_1, Y_1), (X_2, Y_2), \ldots where XnX_n is the duration of the nnth on period and YnY_n is the duration of the nnth off period. The pairs are independent and identically distributed, though XnX_n and YnY_n 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 (Xn,Yn)(X_n, Y_n) are i.i.d. across cycles. Within a single cycle, XnX_n and YnY_n may or may not be independent of each other, but the pairs themselves are i.i.d.
  • Both XnX_n and YnY_n are non-negative random variables with finite means: E[X]<โˆž\mathbb{E}[X] < \infty and E[Y]<โˆž\mathbb{E}[Y] < \infty.
  • 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 XnX_n is the duration of the nnth interval where the system is active or functioning. The off period YnY_n is the duration of the nnth interval where the system is inactive. A single cycle has length Xn+YnX_n + Y_n.

Concrete examples:

  • A factory machine runs for a random time XnX_n before failing, then takes a random time YnY_n to repair.
  • A web server is operational for XnX_n hours, then goes down for maintenance lasting YnY_n 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:

ฯ€on=E[X]E[X]+E[Y]\pi_{\text{on}} = \frac{\mathbb{E}[X]}{\mathbb{E}[X] + \mathbb{E}[Y]}

and similarly for the "off" state:

ฯ€off=E[Y]E[X]+E[Y]\pi_{\text{off}} = \frac{\mathbb{E}[Y]}{\mathbb{E}[X] + \mathbb{E}[Y]}

Why does this work? Over many cycles, the law of large numbers tells you the average cycle length converges to E[X]+E[Y]\mathbb{E}[X] + \mathbb{E}[Y], and the average on-time per cycle converges to E[X]\mathbb{E}[X]. The ratio gives the long-run proportion.

Example: A machine has E[X]=90\mathbb{E}[X] = 90 hours (mean time between failures) and E[Y]=10\mathbb{E}[Y] = 10 hours (mean repair time). Then ฯ€on=9090+10=0.9\pi_{\text{on}} = \frac{90}{90+10} = 0.9, so the machine is available 90% of the time in the long run.

Note that these limiting probabilities depend only on the means of XX and YY, 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 E[X]\mathbb{E}[X] and E[Y]\mathbb{E}[Y] are the building blocks for most long-run calculations. In reliability engineering, these have standard names:

  • MTBF (Mean Time Between Failures) = E[X]\mathbb{E}[X]
  • MTTR (Mean Time To Repair) = E[Y]\mathbb{E}[Y]

For exponential distributions with rates ฮป\lambda (failure rate) and ฮผ\mu (repair rate):

E[X]=1ฮป,E[Y]=1ฮผ\mathbb{E}[X] = \frac{1}{\lambda}, \qquad \mathbb{E}[Y] = \frac{1}{\mu}

This gives the steady-state availability as ฮผฮป+ฮผ\frac{\mu}{\lambda + \mu}.

Applications of alternating renewal

On and off periods, Introduction to Repairable Systems - ReliaWiki

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: A=ฯ€onA = \pi_{\text{on}}, the long-run fraction of time the system is operational.
  • Failure frequency: In the long run, failures occur at rate 1E[X]+E[Y]\frac{1}{\mathbb{E}[X] + \mathbb{E}[Y]} 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 ฯ€on\pi_{\text{on}}.

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 tt, two quantities describe where you are within the current cycle:

  • Age (backward recurrence time) A(t)A(t): the time elapsed since the most recent renewal before tt.
  • Residual life (forward recurrence time) B(t)B(t): the time remaining until the next renewal after tt.

If the most recent renewal occurred at time SnS_n and the next occurs at Sn+1S_{n+1}, then A(t)=tโˆ’SnA(t) = t - S_n and B(t)=Sn+1โˆ’tB(t) = S_{n+1} - t.

As tโ†’โˆžt \to \infty, the distributions of A(t)A(t) and B(t)B(t) converge to limiting distributions that depend on the full cycle-length distribution (not just the mean). For a cycle length Z=X+YZ = X + Y with CDF FZF_Z, the limiting density of the residual life is:

fB(x)=1โˆ’FZ(x)E[Z],xโ‰ฅ0f_{B}(x) = \frac{1 - F_Z(x)}{\mathbb{E}[Z]}, \qquad x \geq 0

This is the equilibrium (or spread) distribution of the cycle length.

Renewal functions and equations

The renewal function M(t)=E[N(t)]M(t) = \mathbb{E}[N(t)] gives the expected number of renewals (completed cycles) by time tt. It satisfies the renewal equation:

M(t)=FZ(t)+โˆซ0tM(tโˆ’x)โ€‰dFZ(x)M(t) = F_Z(t) + \int_0^t M(t - x)\, dF_Z(x)

where FZF_Z is the CDF of the cycle length Z=X+YZ = X + Y.

Solving this integral equation directly is usually hard. Two common approaches:

  1. Laplace transforms: Take the transform of both sides. The convolution becomes a product, giving M^(s)=F^Z(s)1โˆ’F^Z(s)\hat{M}(s) = \frac{\hat{F}_Z(s)}{1 - \hat{F}_Z(s)}, which you can invert (analytically for simple distributions, numerically otherwise).

  2. Numerical methods: Discretize time and solve the equation iteratively.

The elementary renewal theorem provides the asymptotic result: M(t)tโ†’1E[Z]\frac{M(t)}{t} \to \frac{1}{\mathbb{E}[Z]} as tโ†’โˆžt \to \infty. 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 Qij(t)Q_{ij}(t), which gives the probability of transitioning to state jj within time tt given the current state is ii.

When there are exactly two states and the transitions always alternate (on โ†’\to off โ†’\to on โ†’โ‹ฏ\to \cdots), 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 ii has its own holding-time distribution, and a transition probability matrix governs which state comes next.

The limiting probability of being in state ii generalizes to:

ฯ€i=piโ€‰E[Zi]โˆ‘jpjโ€‰E[Zj]\pi_i = \frac{p_i \, \mathbb{E}[Z_i]}{\sum_j p_j \, \mathbb{E}[Z_j]}

where pip_i is the stationary probability of visiting state ii (from the embedded Markov chain) and E[Zi]\mathbb{E}[Z_i] is the mean holding time in state ii. This formula reduces to the two-state version when there are only on and off states with deterministic alternation.