Commit fa6930a
Expand the first-step analysis for mean first passage time
The derivation of the mean first passage recursion was too compressed, and it
also pointed at markov_chains_I for expected unemployment durations, which
that lecture poses as a question but never actually derives.
The rewrite makes three hidden steps explicit:
* the first step costs one period regardless of where it lands, which is
where the leading 1 comes from
* the k = j term is present but contributes m_ij * 0, so the sum over k != j
omits it because it is zero, not because the case is impossible
* writing T_kj for the remaining journey uses the Markov property, since the
time from k must not depend on having arrived via i
Adds an underbraced display separating the three contributions, a two-state
sanity check where the recursion collapses to the geometric waiting time
1/alpha, and the matrix form (I - M_-j) t = 1 that the code actually solves.
The diagonal convention now carries its justification: by ergodicity the chain
spends a fraction psi*(j) of its time in j, so returns occur once every
1/psi*(j) periods.
Verified numerically: T[0,1] = 1/alpha exactly for the two-state chain,
diag(T) = 1/psi*, and the recursion residual is zero.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent f87f54b commit fa6930a
1 file changed
Lines changed: 48 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
378 | 378 | | |
379 | 379 | | |
380 | 380 | | |
381 | | - | |
| 381 | + | |
382 | 382 | | |
383 | | - | |
| 383 | + | |
384 | 384 | | |
385 | | - | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
| 398 | + | |
| 399 | + | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
| 403 | + | |
| 404 | + | |
| 405 | + | |
| 406 | + | |
386 | 407 | | |
387 | 408 | | |
388 | 409 | | |
389 | 410 | | |
390 | 411 | | |
391 | 412 | | |
392 | 413 | | |
393 | | - | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
394 | 437 | | |
395 | | - | |
| 438 | + | |
396 | 439 | | |
397 | 440 | | |
398 | 441 | | |
| |||
0 commit comments