Repository navigation
mccall_q: match intermediate's copy, apart from the title's number - #83
Conversation
dp's mccall_q is a copy of lectures/mccall_q.md in
QuantEcon/lecture-python.myst, which has moved on since dp took it.
This brings dp's file in line with intermediate's current one, so the
copy is mechanical again:
- sentence-case section headings;
- typo corrections ("objection" to "option", "illegitimate",
"previous", "prematurely", "algorithm", "vis a vis" to "versus");
- the Q-learning figure's legend, with the errors rounded to two
decimals and placed below the plot;
- progress prints that step by `max(1, N // 10)`;
- no repeated value function iteration before the epoch loop.
The one line that differs is the title. Intermediate's is
"Job Search X", because its series has a lecture dp doesn't carry
(mccall_risk, Job Search V). In dp's book this is the ninth Job Search
lecture, so it stays "Job Search IX".
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL
There was a problem hiding this comment.
🟡 Changes recommended
The lecture text contains an active factual inconsistency: its claim about quitting accelerating learning conflicts with the seeded experiment’s plotted results and remains unresolved.
1 open issue
What changed in this PR
Synchronizes lectures/mccall_q.md with the current intermediate lecture while preserving the DP-specific Job Search IX title.
Changes:
- Corrects section headings, wording, spelling, grammar, and spacing.
- Improves progress reporting and Q-learning plot legend formatting.
- Removes a duplicated value-function iteration calculation.
| File | Description |
|---|---|
| lectures/mccall_q.md | Updates the lecture prose and executable examples to match the intermediate version while retaining DP-specific numbering. |
Review effort: Lite (adaptive)
Validation: a full validationFresh builds with no cache of this branch and of main, each executing every notebook in
Main moved during the validation. Its render, at The changed lecture. mccall_q differs from main only as this pull request intends: the headings, the typo corrections and the changed code lines. Every printed output is identical. Figures 1 to 4 are identical. Figures 5 and 6, the two epoch plots, are 860 × 529 pixels against main's 860 × 525, because their legend now sits below the plot with its errors rounded to two decimals. Build logs. The two executions' logs have the same warning lines (15 distinct, the same counts), and the renders' logs match too. The rest of the HTML. 34 of 57 pages differ in all. Besides mccall_q:
Packages installed inside cells. Five pages run |

What
dp's
mccall_qis a copy of intermediate's (lectures/mccall_q.mdin QuantEcon/lecture-python.myst), and intermediate's copy has moved on since dp took it. This brings dp's file in line with intermediate's current one, so that the copy is mechanical again. After this pull request, dp's file differs from intermediate's in one line, the title:Intermediate's series has a lecture that dp's doesn't carry (
mccall_risk, Job Search V), so in dp's book this is the ninth Job Search lecture, and it keeps that number.What comes across from intermediate:
max(1, N // 10);mcm.VFI().The paragraph on whether letting a worker quit speeds up learning is unchanged here. QuantEcon/lecture-python.myst#1145 raises it with intermediate, and dp will follow whatever changes there.
Validation
Done on 2026-11-23, a full validation; the evidence is in the comment below. Fresh builds with no cache of this branch and of main, each rendered from its own cache, all green, in the same image. mccall_q differs from main only as intended: every printed output and figures 1 to 4 are identical, and figures 5 and 6 differ by their legend. The other differing pages are main's two new commits (#79, #80), output noise and the status page.
This changes lecture content, so it needs a person's review.
🤖 Generated with Claude Code
https://claude.ai/code/session_01WT8bMacV9Lmy1VLUc6XJoL