How this calculation works
A continuous-time Markov chain evolves using a generator of transition rates rather than a matrix of one-step probabilities. This calculator validates the row-generator convention, evaluates the matrix exponential and checks that the result is stochastic. The current version reports transient transition probabilities and the selected-time state distribution.
P(t)=exp(tQ), pi(t)=pi(0)P(t).A worked example
For two states with unit transition rates in both directions, Q has rows (−1,1),(1,−1). Starting in state zero, its probability at time one is (1+exp(−2))/2, about 0.567668. The other probability is the complement and both converge toward one half.
Good to know
Up to six states, nonnegative off-diagonal rates and zero row sums. Matrix-exponential norm limits apply. This version has no stationary-family or hitting-time mode. An arbitrary discrete transition matrix is not automatically converted into a rate generator.
Rates and probabilities have different dimensions
Each off-diagonal generator entry is a nonnegative transition rate with inverse-time units. The diagonal is minus the total departure rate, making every row sum zero. A row-stochastic probability matrix has row sum one and cannot simply be entered as a generator without changing the continuous-time model.
The waiting time in a state is exponential with rate equal to its total departure rate, under the homogeneous Markov assumptions. A zero departure rate makes that state absorbing. The exponential matrix aggregates paths with zero, one or arbitrarily many jumps during the selected interval rather than assuming one jump per time unit.
The Markov chain calculator from a transition matrix covers the nearby task. A generator contains rates with zero row sums; discrete transition probabilities use a different model.
The exponential describes every possible jump count
The row-vector convention evolves the initial distribution by multiplying on the left of P(t). Transposing the generator while retaining a row initial vector would generally produce the wrong evolution. The page checks initial normalization and the stochasticity of the calculated transition rows so orientation mistakes are not hidden by an automatic renormalization.
The two-state symmetric example has a closed form involving one decaying exponential. More general verification checks the semigroup relation P(s+t)=P(s)P(t), nonnegative transition probabilities and row sums. These are useful numerical certificates but do not establish that observed data follow exponential waiting times or time-homogeneous transition rates.
Transient output is not an unimplemented stationary solver
This version reports transient probabilities at a selected time. It does not expose stationary-family or hitting-time outputs, which require additional recurrence and reachability handling in reducible chains. The visible description states that boundary rather than suggesting every discrete Markov-chain mode has already been replicated for continuous time.
Matrix-exponential norm and dimension limits bound numerical work and scaling. A large rate multiplied by a long horizon can exceed those limits even if a theoretical transition matrix exists. Such a refusal indicates the supported computation has been exceeded; it is not a statement that the continuous-time stochastic process is invalid.
Interpret generator entries as instantaneous rates
For i≠j, qij is the rate of moving from state i to state j per unit time. The diagonal qii is minus the total exit rate from state i, making each row sum to zero. For a small interval dt, P(dt)≈I+Qdt; this is an approximation, not a finite-time formula for arbitrary dt.
The holding time in state i is exponential with mean 1/(−qii) when the exit rate is positive. Conditional on leaving, destination j has probability qij/(−qii). A row of zeros is an absorbing state. These interpretations explain why a generator contains negative diagonal entries even though the transition matrix exp(tQ) contains nonnegative probabilities.
Solve the symmetric two-state chain by hand
For Q=[[-1,1],[1,−1]] and initial distribution (1,0), symmetry gives p0(t)=(1+exp(−2t))/2 and p1(t)=(1−exp(−2t))/2. At t=1 they are approximately 0.5676676 and 0.4323324. The largest-state-probability metric is the first of these, while the table retains the full distribution.
At t=0, exp(0Q)=I and the original distribution is returned. At large times this particular chain approaches (0.5,0.5), but that observation is a property of this irreducible symmetric example. It is not a stationary-distribution mode in the calculator, and a general reducible generator can have different long-run behavior depending on the initial state.
Keep row conventions and time units aligned
This page treats the initial distribution as a row vector and evolves it as p(t)=p(0)exp(tQ). A reference written with column distributions may use a transposed generator. Copying that matrix unchanged can reverse the intended convention or fail the row-sum checks. Confirm the meaning of rows before entering rates.
If rates are per hour, the requested time must be in hours. Multiplying every rate by 60 while dividing time by 60 preserves tQ and the result; changing only one changes the process. A discrete transition matrix with rows summing to one is not a generator. Obtaining a generator from a finite-step matrix is a separate embeddability problem, not automatic diagonal subtraction.
Read transient probabilities without assuming a full reliability model
The matrix exponential accounts for any number of transitions within the selected interval, including leaving and returning to the initial state. Therefore a diagonal transition probability is not the probability of never leaving. For the two-state example, remaining continuously in state zero until t=1 has probability exp(−1), smaller than the probability of being there at time one.
The form checks stochasticity of the computed exponential within numerical tolerance and enforces a bounded matrix norm. It does not add confidence intervals to estimated rates, compute first-passage times or model time-varying rates. Those require additional inputs or algorithms. Treat the result as conditional on the supplied constant generator and initial distribution.
A few questions, answered
Can I enter a transition-probability matrix as Q?
No. Q contains rates, has zero row sums and nonnegative off-diagonal entries.
Does this version compute hitting times?
No. The current supported output is transient evolution at a selected time.
Is a diagonal transition probability the probability of no transitions?
No. It includes paths that leave and return. The probability of no exit from state i by time t is exp(qii t).
Can I paste a discrete-step transition matrix here?
No. This form needs a row generator with zero row sums and nonnegative off-diagonal rates, in inverse-time units.