Skip to content

Conversation

@Nanakjoth
Copy link
Contributor

This PR fixes two minor issues referenced in #576:

  1. Primitive matrix definition : Updated the condition to say $A^k$ is positive for some $k \in \mathbb{N}$, which is the correct definition of a primitive matrix.

  2. Hamilton matrix: Replaced the misleading term "Hamilton matrix" with "Hamilton’s transition matrix (mc_eg2)" to avoid confusion with Hamiltonian matrices in physics.

I hope this fix was helpful, Happy to make any changes if needed — just let me know.

@netlify
Copy link

netlify bot commented Apr 21, 2025

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit 19602c3
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/680a24ed229bfc00089065b7
😎 Deploy Preview https://deploy-preview-584--taupe-gaufre-c4e660.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@HumphreyYang
Copy link
Member

Thanks @Nanakjoth for contribution! I just pushed some minor updates to the PR.

Copy link
Contributor Author

@Nanakjoth Nanakjoth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update to use an internal {ref} ensures consistency in documentation referencing.

@mmcky
Copy link
Contributor

mmcky commented Apr 23, 2025

thanks @Nanakjoth and @HumphreyYang

@Nanakjoth here is the documentation for the syntax on internal references for jupyter-book
https://jupyterbook.org/en/stable/content/references.html.

@mmcky mmcky requested review from HumphreyYang and Copilot April 23, 2025 23:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This pull request refines the definition of a primitive matrix and clarifies the reference to Hamilton’s transition matrix.

  • Updates the primitive matrix condition to state that A^k is everywhere positive for some k.
  • Changes the reference for the Hamilton matrix to use a reStructuredText reference pointing to mc_eg2.
Comments suppressed due to low confidence (1)

lectures/eigen_II.md:395

  • [nitpick] To fully align with the PR description and avoid any ambiguity with Hamiltonian matrices from physics, consider updating the reference text to explicitly say 'Hamilton’s transition matrix'.
So Perron-Frobenius theorem explains why both {ref}`Imam and Temple matrix <mc_eg3>` and {ref}`Hamilton matrix <mc_eg2>` converge to a stationary distribution, which is the Perron projection of the two matrices 
$$
$A$ here is also a primitive matrix since $A^k$ is everywhere nonnegative for $k \in \mathbb{N}$.
$A$ here is also a primitive matrix since $A^k$ is everywhere positive for some $k \in \mathbb{N}$.
Copy link

Copilot AI Apr 23, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[nitpick] The updated definition appears correct; however, consider explicitly stating 'strictly positive' to align precisely with the standard mathematical definition of a primitive matrix.

Suggested change
$A$ here is also a primitive matrix since $A^k$ is everywhere positive for some $k \in \mathbb{N}$.
$A$ here is also a primitive matrix since $A^k$ is strictly positive for some $k \in \mathbb{N}$.
Copilot uses AI. Check for mistakes.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@HumphreyYang @jstac what do you think of this [nitpick] AI review?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks @mmcky,

I think everywhere positive matches the definition of primitive matrices so I think we should keep it : )

@Nanakjoth
Copy link
Contributor Author

Thanks for sharing the documentation, @mmcky! 📚, Now after the AI review, it looks Great. Please let me know if there’s anything else I can help with, I’m looking forward to seeing this merged😊.

@mmcky
Copy link
Contributor

mmcky commented Jun 16, 2025

thanks so much @Nanakjoth and @HumphreyYang

@mmcky mmcky merged commit 25db3e1 into QuantEcon:main Jun 16, 2025
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants