lqcontrol#
Series: lecture-dp
File:
lectures/lqcontrol.mdAudit date: 2026-05-28
Categories audited: writing, math, code, jax, figures, references, links, admonitions
Overall score: 5.6 / 10
Priority: HIGH
Score breakdown#
Category |
Score |
One-line note |
|---|---|---|
Writing |
5/10 |
Title Case H2/H3 headings throughout; some short paragraphs. |
Math |
3/10 |
Apostrophe transpose everywhere; matrices use |
Code |
7/10 |
Unicode Greek; pip-install at top; PEP8 mostly OK; figsize used 5×. |
JAX |
out of scope |
not a JAX lecture. |
Figures |
5/10 |
Title-Case |
References |
7/10 |
All citations parenthetical via |
Links |
4/10 |
Two raw markdown links to |
Admonitions |
8/10 |
Exercises use labels + |
Issues#
Critical#
None found.
High severity#
[qe-math-002] — Apostrophe
'used as transpose throughout the file (e.g.x_t' R x_t,u_t' Q u_t,A' P_T A,B' P_T B). Lines: 100, 253, 271, 293, 316, 480, 494-495, 503, 513-514, 524, 536, 600, 809, 940. Count: 70+ occurrences.[qe-math-003] — Matrices use
\left( \begin{array}{...} ... \end{array} \right)rather thanbmatrix. Lines: 170, 176, 182, 188, 195, 213, 221, 229, 237, 623, 631, 976, 986, 996, 1006, 1028, 1038. Count: 17 array-matrix blocks.[qe-writing-006] — Systemic Title Case on H2/H3 headings. Examples:
### The Law of Motion(84),## Optimality -- Finite Horizon(298),### The Objective(305),### Time-Varying Parameters(785),### Adding a Cross-Product Term(800),### Infinite Horizon(842),### Certainty Equivalence(910),## Further Applications(920),### Application 1: Age-Dependent Income Process(923). Count: 12+ headings.
Medium severity#
[qe-math-010 (proposed)] — Expectation uses bare
\mathbb Ewithout braces (line 100). Count: 1.[qe-fig-006] — Title-Case
xlabel('Time')on 4 figures. Lines: 702, 770, 1348, 1497. Should be lowercase'time'.[qe-fig-001] —
figsize=set 5 times. Lines: 683, 753, 1330, 1479, 1542. Most plots do not need an explicitfigsize.[qe-fig-002] — 5 static PNG figures referenced (
solution_lqc_ex1.png,solution_lqc_ex2.png,solution_lqc_ex3_g1.png,solution_lqc_ex3_g10.png,solution_lqc_ex3_g50.png). Lines: 1051, 1121, 1197, 1201, 1205. Prefer code-generated figures.[qe-link-002] — Two raw markdown links to
python-advanced.quantecon.org(lu_tricks.html,classical_filtering.html) where{doc}with intersphinx is preferred. Line: 54. Count: 2.[qe-writing-001] — Many multi-sentence paragraphs (e.g. 138-140, 156-162).
Low severity#
[qe-writing-005] — “Riccati equations” (line 53) bolded but never formally introduced as a definition.
Strengths#
Lecture title correctly Title Case.
Equation labels and
{eq}cross-references used cleanly throughout.No
\tag, noaligninside$$, noi.i.d..Greek letters in narrative and code use plain Unicode where relevant.
pip install correctly placed at top of lecture.
Exercises use proper
exercise-start/solution-startgating with labels.Solutions wrapped in
:class: dropdown.
Recommended actions#
Replace every
'used as transpose with^\top— biggest single fix.Replace every
\left(\begin{array}{...} ... \end{array}\right)matrix with\begin{bmatrix} ... \end{bmatrix}.Convert all H2/H3 headings to sentence case.
Lowercase
'Time'axis labels to'time'.Replace markdown URL links to
python-advanced.quantecon.orgwith{doc}intersphinx references.Regenerate the 5 static
solution_lqc_ex*.pngfigures from the solution code cells instead of bundling PNGs.Standardize
\mathbb Eto\mathbb{E}.