calvo_machine_learn#
Series: lecture-dp
File:
lectures/calvo_machine_learn.mdAudit date: 2026-05-28
Categories audited: writing, math, code, jax, figures, references, links, admonitions
Overall score: 5.3 / 10
Priority: HIGH
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
7/10 |
H2/H3 mostly sentence case; many long paragraphs. |
Math |
3/10 |
|
Code |
5/10 |
pip install not at top (line 402 — three blocks for |
JAX |
out of scope |
uses JAX but JAX rules out of scope per spec. |
Figures |
8/10 |
No matplotlib titles, no figsize, no Title-Case labels. |
References |
4/10 |
Eight narrative-author |
Links |
5/10 |
Some markdown links to other QuantEcon series; |
Admonitions |
N/A |
No exercises / proofs. |
Issues#
Critical#
None found.
High severity#
[qe-math-002] —
^T(uppercase T) used as transpose throughout the gradient-descent quadratic-form derivations (e.g.g^T \vec{\mu},\vec{\mu}^T M \vec{\mu},B^T \vec{\beta}). Lines: 870, 872, 875, 877, 880, 889-891. Count: 13+ occurrences. Should be\top.[qe-math-004] —
\mathbf{I}used for the identity matrix (lines 875, 877, 880);\mathbfdecoration prohibited.[qe-code-003] — Three
!pip installcalls placed mid-lecture (line 402-404) rather than at the top.optaxandstatsmodelsare also installed there.[qe-code-006] —
optax(a binary/JAX-companion package) installed without installation notes about Anaconda incompatibility.
Medium severity#
[qe-math-004] —
\vec \mu,\vec \theta,\vec \beta,\vec vused throughout in narrative and math. Count: dozens.[qe-ref-001] — Author-name narrative citations using parenthetical
{cite}instead of textual{cite:t}. Count: 8 occurrences (“Calvo ”, “Chang ”, “Cagan ”, “Sargent and Wallace’s ”, etc.).[qe-writing-001] — Many multi-sentence paragraphs (e.g. 39-54, 56-67).
[qe-writing-005] — Double-backtick quotes
machine learning,gradient descent,dynamic programming squaredused in narrative.
Low severity#
[qe-math-013 (proposed)] — Mixed eq-label style: some
$$ … $$ (label)(line 181, 864) withouteq:prefix.
Strengths#
Lecture title in correct Title Case.
H2/H3 mostly sentence case (“Introduction”, “The model”, “Model components”, “Parameters and variables”, “Timing protocol”, “A gradient descent algorithm”, “Implementation”).
Matrices use
bmatrix(8 matrix blocks).Definitions bolded (“state”, “Bellman equations”, “time inconsistency”, “machine learning”, “square summable”).
Equation labels and
{eq}references used cleanly.“IID”/Greek-letter conventions consistent.
No
\tag, noalign-inside-$$issues.No matplotlib title / figsize / spine violations.
Recommended actions#
Replace every
^Tused as transpose with^\top.Drop
\mathbf{I}→ plainI; drop\vecarrows from sequence symbols.Switch narrative
Author {cite}…to{cite:t}form.Move all
!pip installcalls (line 402-404) to the top of the lecture; add note thatoptaxrequires JAX/non-Anaconda installation.Replace ````…```` quoting with
**bold**or*italic*.Tighten multi-sentence paragraphs.