The University of Edinburgh · FACULTY OF MATHEMATICS

MATH11029 Chap.5 First Passage, Costs and Reversibility

- one subject, every graph, every model, every mark
6 Chapters2-page Bible
Our own words - no uploaded lecturer files
Updated for this semester
Chapter 5 of 10 · MATH11029

First Passage, Costs and Reversibility

Turn path questions into boundary systems

First-passage analysis focuses on the first time a chain reaches a state or set. For the probability of reaching A before B, assign value one on A and zero on B. At every interior state, condition on the next transition and write the unknown value as a probability-weighted average of neighbouring values.

The boundary values give the system its meaning and must appear before the interior equations.

Mean hitting time uses the same first-step architecture with a crucial change. The target value is zero, and each interior equation adds one step before averaging future times.

Omitting that one produces a probability equation instead of a time equation.

Match costs to their time horizon

A state cost can be accumulated until a target, discounted across transitions or averaged over the long run. Under irreducible positive recurrence, the stationary long-run average is the stationary weighted sum of state costs.

That result does not automatically answer a finite-horizon total or a reward paid only on transitions.

Use detailed balance as a reversible shortcut

A stationary chain is reversible when its time reversal has the same transition law. Detailed balance pairs stationary flows along each edge: pi_i p_ij equals pi_j p_ji. Summing these pairwise equations produces global balance.

Solve edge ratios, normalize, and check consistency around cycles. Failure of detailed balance does not mean no stationary distribution exists; it means the chain is not reversible under that candidate.

Check direction and scale

A higher chance of moving toward the target should raise its hitting probability.

A larger self-loop usually increases mean time to absorption without changing the relative boundary choice in the same way. Cost answers need units, while probabilities remain unitless. These direction and dimension checks reveal when similar-looking systems have been mixed.

In this chapter

What this chapter covers

  • 01

    First Passage Time

  • 02

    Hitting Probability

  • 03

    Mean Hitting Time

  • 04

    State Cost

  • 05

    Reversed Process

  • 06

    Detailed Balance

Worked example · free

Solve a boundary probability

Q [6 marks]. AskSia-authored practice. A chain has absorbing states zero and two. From state one it moves to zero with probability 0.3, stays at one with probability 0.3 and moves to two with probability 0.4. Find the probability of reaching two before zero. The weighting is a study aid, not a University marking scheme.
Hitting probabilities solve a boundary-value problem.Hitting probabilities solve a boundary-value problem. Boundary states carry fixed values zero and one, while each interior value is a transition-weighted average.boundary Bh=0interior iboundary Ah=1interior values are weighted averages of neighbouring values
Hitting probabilities solve a boundary-value problem. Boundary states carry fixed values zero and one, while each interior value is a transition-weighted average.
  • 2Set boundary values at zero and two.
  • 2Condition on the next transition from one.
  • 1Solve the self-referential linear equation.
  • 1Check the probability range.
Let h0=0 and h2=1. First-step conditioning gives h1=0.3h0+0.3h1+0.4h2. Therefore 0.7h1=0.4 and h1=4/7, about 0.571. The self-loop represents any number of delayed attempts and must remain inside the equation; using only the immediate upward probability 0.4 would undercount eventual success.
Sia tip — Write boundary values before the interior equation so each unknown retains its probability meaning.
Glossary

Key terms

Hitting Time
Hitting Time is the first time a process enters a specified state or set.
Boundary Value
Boundary Value fixes the outcome of a first-passage function on target or competing sets.
State Reward
State Reward assigns a value earned or paid while the chain occupies a state.
Reversed Process
Reversed Process reads a stationary path backward through time.
Detailed Balance
Detailed Balance equates stationary probability flow in both directions along each edge.
FAQ

First Passage, Costs and Reversibility FAQ

Why do mean hitting equations include one?

Conditioning on the first step leaves the process in a new state after one transition has already elapsed. The remaining expected time is averaged over destination states, but the completed step must be added. Hitting-probability equations do not add one because probability is not accumulated with each transition.

What does a self-loop do to a hitting calculation?

A self-loop returns the process to the same unknown value, so it appears as a term involving that value on the right side. Solving the linear equation accounts for arbitrarily many repeated loops. Dropping the term counts only paths that leave immediately and usually understates eventual time or probability.

Does failure of detailed balance rule out stationarity?

No. Detailed balance is a convenient sufficient condition for global balance and reversibility. A non-reversible chain may still have a stationary distribution obtained from pi P=pi. Inconsistent pairwise flow ratios show that the detailed-balance shortcut does not apply, not that long-run mass is impossible.

How are long-run costs calculated?

When the chain is irreducible and positive recurrent and c(i) is cost per step in state i, weight each state cost by its stationary probability and sum. This yields cost per step. A cost charged on transitions or accumulated only until a target requires a different reward equation.

Study strategy

Exam move

Write probability and mean-time boundary systems side by side and highlight the added one in the time equations. Practise solving a self-loop system, then change one transition and predict the answer direction. For reversibility, derive stationary ratios edge by edge and verify normalization and global balance. Solve one problem by direct path reasoning and by the linear system to compare methods.

Add a state-cost version and label whether the result is total cost to absorption or cost per step in stationarity. Around a cycle, multiply detailed-balance ratios and check consistency before committing to the reversible shortcut.

Working through First Passage, Costs and Reversibility in MATH11029? Sia is AskSia’s AI Mathematics tutor — ask any MATH11029 First Passage, Costs and Reversibility question and get a clear, step-by-step explanation grounded in how MATH11029 is taught and assessed. Read this chapter free, then take your hardest questions to Sia.

A+Everything unlocked
Unlocks this Bible + all 10 of your subjects at The University of Edinburgh, plus 1,000+ more Bibles across the AskSia library.
Sia - your MATH11029 tutor, unlimited, worked the way the exam marks it
The full 2-page Bible + practice bank with worked solutions
Chrome extension - sync your LMS so Sia knows your deadlines
Bilingual EN / Chinese on every Bible and every Sia answer
$0.99 Trial
30-day money-back · cancel in one tap · how it works