Skip to content

Lecture Improvement Project #173

Closed
Closed

Description

@HumphreyYang

When running through the list, please follow the following workflow:

  1. Please assign yourself to one of the lectures below by adding an @{GitHub username} next to a lecture.

  2. First, read each lecture carefully and check for typos and mathos (mathematical errors). If a derivation has a gap, consider adding an exercise to help fill it.

  3. Rewrite the code in JAX where beneficial or feasible. One useful criterion is to check whether there are extensive loops or if the code is accelerated with numba.

  4. Submit one pull request (PR) per lecture and tag @mmcky and @HumphreyYang for review.

Note

Sometimes there are good reasons to implement a single change across multiple lectures. If you think this applies
then please coordinate with @mmcky and @HumphreyYang, as these PRs can cause merge conflicts and complexity.

  1. Note any questions or concerns in the PR. We’ll gather these into a bi-weekly summary/news feed for the group.

  2. Synchronize updates to the Chinese version by tagging the Translation (English -> Mandarin) in Projects and marking the status as 'To do'.

Intermediate Series

Tools and Techniques

Elementary Statistics

Bayes Law

Note for this section, there are discrepencies in terms of tools we used. Consider unifying them and write a introductory section for numpyro in bayes_nonconj?)

Statistics and Information

(This chapter is currently being updated by Tom. Please refrain from reviewing it.)

Linear Programming

  • opt_transport
  • von_neumann_model

Introduction to Dynamics

Search

(Code in this chapter is similar in nature, consider convert the chapter to JAX)

Consumption, Savings and Capital

  • cass_koopmans_1
  • cass_koopmans_2
  • cass_fiscal
  • cass_fiscal_2
  • ak2 [jax] (AK model uses big loops that can be accelerated by JAX.)
  • cake_eatingproblem @longye-tian
  • cake_eating_numerical @longye-tian
  • optgrowth @longye-tian
  • optgrowth_fast [jax] (This lecture teaches Numba specifically, consider converting to JAX entirely) @HumphreyYang
  • coleman_policy_iter [jax] (Time-iteration; clear @jit usage; good JAX target) @longye-tian
  • egm_policy_iter [jax] (egm is implemented in JAX here) @longye-tian
  • ifp [jax] (Uses numba at the moment) @longye-tian
  • ifp_advanced [jax] (Uses numba at the moment) @longye-tian

LQ Control

  • lqcontrol @matheusvillasb
  • lagrangian_lqdp
  • cross_product_trick
  • perm_income
  • perm_income_cons
  • lq_inventories

Multiple Agent Models

Asset Pricing and Finance

Data and Empirics

Auctions

Advanced Series

Tools and Techniques

  • orth_proj
  • stationary_densities
  • muth_kalman
  • discrete_dp

LQ Control

  • cons_news
  • smoothing
  • smoothing_tax
  • markov_jump_lq
  • tax_smoothing_1
  • tax_smoothing_2
  • tax_smoothing_3
  • lqramsey

Multiple Agent Models

Dynamic Linear Economies

  • hs_recursive_models
  • growth_in_dles
  • lucas_asset_pricing_dles
  • irfs_in_hall_model
  • permanent_income_dles
  • rosen_schooling_model
  • cattle_cycles
  • hs_invertibility_example

Risk, Model Uncertainty, and Robustness

  • five_preferences [jax] (Analytic kernels with @njit)
  • entropy
  • robustness
  • rob_markov_perf

Time Series Models

  • arma
  • estspec
  • additive_functionals
  • lu_tricks
  • classical_filtering
  • knowing_forecasts_of_others

Asset Pricing and Finance

Dynamic Programming Squared

  • un_insure [jax] (Not accelerated, but with big iteration of C)
  • dyn_stack
  • calvo_machine_learn
  • calvo
  • calvo_abreu
  • opt_tax_recur
  • amss [jax] (Heavy DP with jit/jitclass; good JAX target)
  • amss2
  • amss3
  • chang_ramsey
  • chang_credible

Activity

  1. jstac commented on Aug 5, 2025

    @jstac
    Contributor

    Thanks @HumphreyYang ! Great summary.

    I learned a new word -- mathos :-)

    All help is appreciated. If a lecture is not computationally intensive and it's written in numpy then we may as well keep it that way. As @HumphreyYang says, any lecture that's computationally intensive or accelerated by numba need to be considered as candidates for shifting to JAX. And all lectures will benefit from review.

  2. changed the title [-][intermediate] Lecture Modernization Project[/-] [+]Lecture Improvement Project[/+] on Aug 5, 2025
  3. HumphreyYang commented on Aug 11, 2025

    @HumphreyYang
    MemberAuthor

    To everyone reading this issue:

    Lectures with the [jax] tag at the end are generally good candidates for JAX conversion in the first round. These are typically lectures that have been partially implemented in JAX, are similar to lectures already in JAX, or would benefit from being converted to JAX.

  4. mmcky commented on Aug 12, 2025

    @mmcky
    Contributor

    @QuantEcon/lecture-review-modernization just a reminder to attach your @{github-username} against a lecture of interest.

    For RAs that have recently joined the team, we are also starting to use the good first issue tag if you prefer to take a look at that list and take ownership of one of these issue. You can also tag yourself against a lecture and specify styleguide review to indicate you would like to read a lecture and apply the QuantEcon Style Guide for example.

  5. mmcky commented on Aug 17, 2025

    @mmcky
    Contributor

    @QuantEcon/lecture-review-modernization -- once you are ready to open a DRAFT PR -- please copy+paste a link to the PR (after your name) in the table above. This makes reviews pretty convenient as we go down the list, the status of the link automatically updates once the PR is merged, and it links your PR to this issue. Thanks.

    We will run through tomorrow how to open a DRAFT PR, and a few other GitHub tips.

  6. pinned this issue on Aug 26, 2025
  7. jstac commented on Aug 5, 2026

    @jstac
    Contributor

    @HumphreyYang @mmcky @kp992

    I'm going to close this meta JAX conversion issue since the list is out of date and some lectures here have already been flagged as not suitable for JAX conversion --- also not recorded.

    The issue is just folded into the style guide, which recommends JAX conversion whenever it earns its keep. There's an extensive discussion there and suggestions for benchmarking.

    Anyone bringing a suitable lecture into compliance with the style guide will hit this.

    More style guide compliance efforts are most appreciated.

    Thanks for all your efforts so far.

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