Skip to content

[mccall_q] The state index is described as running to n=50, but the code uses n=10 and n=30 #1149

Open

Description

@mmcky

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.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WT8bMYDDNE7ziutLwZmeMX

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions