You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[mccall_q] The state index is described as running to n=50, but the code uses n=10 and n=30 #1149
In lectures/mccall_q.md, the paragraph before the Q-learning class says "For simplicity and convenience, we let s represent the state index between $0$ and $n=50$ and $w_s=w[s]$." The code sets n, a, b = 10, 200, 100 for the first run and n, a, b = 30, 200, 100 for the second ("Now, let us compute the case with a larger state space: $n=30$ instead of $n=10$"), with a wage grid of n+1 points, so no run uses $n=50$.
A possible wording: "we let s represent the state index, running from $0$ to $n$ (here $n=10$, and later $n=30$), and $w_s=w[s]$." The lecture's code is unaffected.
lecture-dp's copy of the lecture has the same sentence (QuantEcon/lecture-dp#83 made it identical to this one, apart from the title) and will take the corrected wording with its next copy. It was noticed in that PR's review.
Activity