Transition probability from a constant rate

Converts a constant event rate into the probability that the event occurs within an interval of length Delta, among people at risk at the start of the interval. The function exp is the exponential function.

Signature

p = 1 - exp(-h * Delta)
Inputs
InputsDefinitionUnit
hConstant hazard (instantaneous rate) of the event among people still at riskevents per person per unit of time, for example per year
DeltaLength of the interval, usually the model cycle length, in the same time unit as htime, for example years
Output
pProbability that a person at risk at the start of the interval has the event before its endprobability from 0 to 1

Function

Rate and transition probability conversion function

Maps an event rate and a time interval to the probability that the event occurs within that interval, and back again. Rates are converted rather than probabilities divided, because a probability is tied to the length of the interval over which it was observed. The converted probability then enters a transition matrix used in the cohort update s_(t+1) = s_t P described on the Markov Model page.

Computational function

  • Computational function: annual event rate to a model-cycle transition probability

    Takes the inputs a model usually holds, an event rate per year and a cycle length in months, and returns the transition probability for one cycle. It converts the cycle length into years and then applies the constant-rate formula HE-FM-TP-001. The inputs therefore differ from the formula's variables: the formula needs an interval in the same time unit as the rate, and the function builds that interval from the cycle length.

    Inputs and outputs: r_annual: Constant event rate per year, as reported by the source; required, zero or above. Unit: events per person-year.; L_months: Length of one model cycle in months, for example 1 for a monthly model or 3 for a quarterly one; required, above zero. Unit: months.; p_cycle: Probability that the event occurs within one model cycle. Unit: probability from 0 to 1.

    Assumption: The event rate is constant across the year, so every cycle within the year has the same probability, and a month counts as one twelfth of a year. Where the rate changes with age or time since treatment, the function is applied cycle by cycle with the rate for that period.

    Worked example (Monthly cycle from an annual rate of 0.24): An annual event rate of 0.24 in a model with monthly cycles gives a cycle probability of about 0.0198, slightly below the 0.02 obtained by dividing the rate by 12. r_annual = 0.24; L_months = 1; p_cycle = 0.019801

    Worked example (Twelve-month cycle reproduces the annual conversion): With a 12-month cycle the function returns the ordinary annual conversion: a rate of 0.10 gives a probability of about 0.0952, as in HE-EX-TP-001. r_annual = 0.10; L_months = 12; p_cycle = 0.095163

    Worked example (Zero annual rate gives a zero cycle probability): A rate of zero returns a cycle probability of zero whatever the cycle length, a limiting case that checks the implementation. r_annual = 0; L_months = 1; p_cycle = 0

    Excel: =1-EXP(-AnnualRate*CycleMonths/12) With the annual rate in a cell named AnnualRate and the cycle length in months in a cell named CycleMonths, the formula returns the cycle probability.

    R: cycle_prob <- function(annual_rate, cycle_months) 1-exp(-annual_rate * cycle_months / 12) Vectorised, so annual_rate may hold one rate per age band or per cycle and the result is a vector of cycle probabilities.

    Python: def cycle_prob(annual_rate, cycle_months): return 1-math.exp(-annual_rate * cycle_months / 12) Uses the math module for a single value; replacing math.exp with numpy.exp gives the vectorised form.

    Test (Longer cycles give larger cycle probabilities): For a positive rate, the probability for a three-month cycle exceeds the probability for a one-month cycle. Expected result: TRUE. Excel check: =(1-EXP(-AnnualRate*3/12))>(1-EXP(-AnnualRate*1/12))

    Test (Twelve monthly cycles compound back to the annual conversion): One minus the monthly probability of staying event-free raised to the power 12 equals the annual probability from the same rate. Expected result: TRUE. Excel check: =ABS((1-(1-(1-EXP(-AnnualRate/12)))^12)-(1-EXP(-AnnualRate)))<1E-9

    Common error (Dividing the annual rate by 12 and using the result as a probability): Treating the annual rate divided by 12 as the monthly probability overstates it: 0.02 against 0.0198 at a rate of 0.24, and the gap widens as rates rise. The rate has to pass through the exponential conversion.

    Source: Gidwani R, Russell LB. Estimating transition probabilities from published evidence: a tutorial for decision modelers. PharmacoEconomics. 2020;38(11):1153-1164. Equations 8 to 10 on converting between rates and probabilities for a chosen time interval.

    p_cycle = 1 - exp(-r_annual * L_months / 12)

Try this function

Implementations

  • Excel

    Probability from a rate in one cell

    Excel returns the interval probability from named cells holding the rate and the interval length in matching units.

    =1-EXP(-Rate*CycleLength)

Assumptions

  • Constant hazard across the interval

    The rate h does not change within the interval. When the hazard changes with age or time since an event, the conversion is applied cycle by cycle with the rate for each cycle, or the probability is taken from a fitted survival curve.

  • One exit from the starting state

    The formula describes a single event that removes the person from the starting state. When a state has two or more exits, each exit probability comes from the joint formula for competing hazards on this page, not from this formula applied to each exit separately.

Worked examples

  • Annual cycle at a rate of 0.10 per year

    A constant rate of 0.10 per year gives a one-year probability of about 0.0952, slightly below the rate because people who have the event early in the year are no longer at risk. The figure matches the comparator probability in the Hazard Ratio article.

    h = 0.10; Delta = 1; p = 0.0952
  • Three-month cycle at a total exit rate of 0.20

    A constant total exit rate of 0.20 per year over a three-month cycle gives a probability of leaving the state of about 0.04877, the total exit probability in the article's competing-risks example.

    h = 0.20; Delta = 0.25; p = 0.04877

Common errors

  • Using the rate itself as a probability

    Entering a rate directly as a per-cycle probability overstates the risk, and can exceed 1 at high rates. At a rate of 1 per year the one-year probability is about 0.632, not 1.

Sources

  • Rate and probability equations for two-state transitions

    Gidwani R, Russell LB. Estimating transition probabilities from published evidence: a tutorial for decision modelers. PharmacoEconomics. 2020;38(11):1153-1164. Section on the probability-rate equations when there are two state transitions (equations 8 to 10).

    View source →

  • Conversion between rates and probabilities in economic models

    Fleurence RL, Hollenbeak CS. Rates and probabilities in economic modelling: transformation, translation and appropriate application. PharmacoEconomics. 2007;25(1):3-6.

    View source →

Canonical Identity

Stable URI · Machine-readable · Resolvable · CC BY 4.0

This formula is licensed under Creative Commons Attribution 4.0 International (CC BY 4.0).

Author: Dr Darrin Baines · Publisher: Intelligent Parameters Ltd · Identifier: https://healtheconomics.wiki/formula/transition-probability-from-a-constant-rate