Skip to content

Conversation

@xuanguang-li
Copy link
Contributor

This pull request modernizes the markov_asset.md notebook by refactoring the codebase to use JAX and JAX NumPy.

  • Refactored all numerical computations and linear algebra from numpy and numpy.linalg to jax.numpy and jax.numpy.linalg.
  • Replaced the mutable AssetPriceModel class with an immutable, type-safe NamedTuple version and introduced a create_ap_model factory function for consistent construction.
  • Updated function signatures and internal logic to use the new model structure.
  • Replaced manual Python loops with JAX functional control flow constructs such as jax.lax.while_loop and jax.lax.fori_loop.
  • Fixed minor bugs in parameter initialization, state handling, and tolerance defaults.

@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-654--sunny-cactus-210e3e.netlify.app (0317e4a)

📚 Changed Lecture Pages: harrison_kreps, markov_asset, two_auctions

@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-654--sunny-cactus-210e3e.netlify.app (76c64b2)

📚 Changed Lecture Pages: harrison_kreps, markov_asset, two_auctions

@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-654--sunny-cactus-210e3e.netlify.app (02dfe6e)

📚 Changed Lecture Pages: harrison_kreps, markov_asset, two_auctions

@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-654--sunny-cactus-210e3e.netlify.app (211ec24)

📚 Changed Lecture Pages: harrison_kreps, markov_asset, two_auctions

@xuanguang-li xuanguang-li marked this pull request as ready for review October 27, 2025 08:51
@github-actions
Copy link

📖 Netlify Preview Ready!

Preview URL: https://pr-654--sunny-cactus-210e3e.netlify.app (cb2995a)

📚 Changed Lecture Pages: markov_asset

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

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

2 participants