Statistics & probability

Continuous time Markov bridge calculator conditioned on endpoint states

Calculate intermediate CTMC state probabilities conditional on specified starting and ending states.

Your numbers

Valid JSON.
Valid JSON; preserve the shown array or object structure.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

A continuous-time Markov bridge describes a chain known to start in one state and finish in another at a fixed later time. This extra endpoint information changes the probabilities of intermediate states.

THE FORMULARowgeneratorQ withoffdiagonal≥0,rowzero;P(t)=exp(Qt). Forbridgea at0,b atT, denominatorP_ab(T)>0. At0≤t≤T, bridgeprobk=P_ak(t)P_kb(T-t)/P_ab(T). Expectedoccupancyintegral ∫P_ai(s)P_ib(T-s)ds/denom;expectedjumpcounti→j=q_ij ∫P_ai(s)P_jb(T-s)ds/denom. IntegralsviaVanLoanblockexp oradaptivequadraturewitherror. Do notnormalizeunreachableendpoint or pretendrarity=impossibility.

A worked example

With the prefilled inputs, endpointProbability = 0.8646647167633812.

Good to know

Exact conditional identity evaluated through numerical uniformization; bridge marginal distributions only, not independent path samples or jump counts.

Condition on both endpoints

A continuous-time Markov bridge describes a chain known to start in one state and finish in another at a fixed later time. This extra endpoint information changes the probabilities of intermediate states.

It is different from an ordinary forward transition calculation, which conditions only on the start. The distinction is especially important when the endpoint is rare or absorbing.

Absorbing-chain bridge marginalsEndpoint conditioning changes intermediate state probabilitiesP₀ = 0.2689P₁ = 0.7311t=0t=1t=2Rate 0→1 is 1; condition on start 0 and final state 1.
Scroll across to see the full diagram.
For rate1 from state0 to absorbing state1, conditioned on endpoint1 at time2, state0 probability at time1 is1/(e+1), while state1 has e/(e+1).

Compare with the Continuous time Markov chain calculator from a rate matrix. Condition intermediate states and expected jump counts on a specified start and end within a fixed time; unconditional transition probabilities do not describe bridges.

Specify a valid rate generator

Use the prefilled input structure and preserve the declared column or index order. Off-diagonal generator entries are nonnegative transition rates and every row sums to zero. The diagonal is the negative total exit rate from that row's state.

The rates and elapsed times need compatible units. A row with all zero entries represents an absorbing state, which can make certain endpoint combinations impossible rather than merely unlikely. The generator input has nonnegative off-diagonal rates and zero row sums. Rates have inverse-time units, so the horizon and query times must use the corresponding time unit. Choose a start-state label and an end-state label, with a positive horizon and query times inside that interval. The conditioning event must have a transition probability greater than the numerical rarity threshold. An impossible endpoint and a merely very rare endpoint are scientifically different situations, but both may be rejected here when stable numerical conditioning cannot be established.

Check endpoint reachability

The bridge denominator is the ordinary transition probability from the chosen start to the chosen endpoint over the full interval. A bridge cannot be conditioned on an event with probability zero.

Very small positive probabilities also require care because ordinary floating-point calculations can underflow. A numerical failure to resolve a rare endpoint should remain a diagnostic instead of being normalized into a plausible-looking distribution.

Combine two transition intervals

For an intermediate state, multiply the probability of reaching it from the start by the probability of reaching the required endpoint from it in the remaining time. Divide by the full endpoint probability.

Summing these bridge probabilities over all states gives one. At the interval boundaries, the distribution must collapse to the supplied start and endpoint states, providing useful checks on orientation and matrix conventions.

An absorbing two-state example

Let state zero jump to absorbing state one at rate one. Condition on starting at zero and being at one by time two; at time one the bridge probability of still being at zero is1/(e+1).

The other probability is e/(e+1). Exactly one jump occurs on every compatible path, while expected time in state zero is1-2/(e²-1), the mean of an exponential waiting time truncated at two.

Read occupation and jump summaries

Expected occupation times integrate bridge probabilities over time and sum to the full interval length. They describe average time spent in each state across all compatible paths.

Expected transition counts integrate a different two-part bridge expression multiplied by the corresponding jump rate. They need not be integers because they average path counts over a conditional distribution.

Do not infer a hidden path with certainty

A bridge distribution summarizes uncertainty between endpoints; it does not reveal which intermediate events actually occurred. Different paths can share the same start and endpoint.

Use the result to reason about conditional trajectories under the specified generator. Estimating the generator, testing a Markov assumption and reconstructing real events from additional observations are separate statistical tasks. For a query time t, the numerator for state i multiplies the transition probability from the start to i over t by the probability from i to the endpoint over the remaining horizon. Dividing by the full endpoint probability yields the conditional marginal. This formula preserves dependence on both endpoint conditions and is not equivalent to normalizing one unconditioned transition row. The output lists one probability vector per requested time and checks its total mass. It does not provide occupation-time integrals, expected jump counts or sampled bridge trajectories. Marginals at different times must not be sampled independently and described as a valid continuous-time path. Exact conditional identity evaluated through numerical uniformization; bridge marginal distributions only, not independent path samples or jump counts.

A few questions, answered

Can I condition on an unreachable endpoint?

No. A zero-probability endpoint event does not define this bridge distribution.

Why are intermediate probabilities different from ordinary transitions?

They incorporate the requirement to reach the specified final state in the remaining time.

Does this page return expected jump counts?

No. It returns conditional state probabilities at the requested times. Jump counts require additional path integrals and are outside this implementation.

Can I sample the returned probability rows independently to obtain a path?

No. Bridge states at different times are dependent. Independent draws from the marginals do not generally form a valid continuous-time trajectory.

Find your calculator

Start typing to explore the library.