Skip to content

FIX: Define missing discount factor to resolve NameError in MPE notebook#867

Open
HG-Cheng wants to merge 1 commit intoQuantEcon:mainfrom
HG-Cheng:fix-markov-beta-nameerror
Open

FIX: Define missing discount factor to resolve NameError in MPE notebook#867
HG-Cheng wants to merge 1 commit intoQuantEcon:mainfrom
HG-Cheng:fix-markov-beta-nameerror

Conversation

@HG-Cheng
Copy link
Copy Markdown

@HG-Cheng HG-Cheng commented May 5, 2026

Description:
In the Markov Perfect Equilibrium lecture, the cell calculating the LQ stationary values throws a NameError during notebook execution. This occurs because the discount factor (beta = 0.96) is defined inside the external script duopoly_mpe.py. Since the :load: directive only renders the script statically without executing it in the active Jupyter kernel, beta remains undefined in the notebook namespace.

This PR explicitly defines beta = 0.96 in the execution cell to ensure the qe.LQ model initializes correctly and the notebook builds successfully.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant