Skip to content

Fix definition of primitive matrix and clarify Hamilton matrix reference #584

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Nanakjoth
Copy link

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.

Copy link

netlify bot commented Apr 21, 2025

Deploy Preview for taupe-gaufre-c4e660 ready!

Name Link
🔨 Latest commit b071ffe
🔍 Latest deploy log https://app.netlify.com/sites/taupe-gaufre-c4e660/deploys/6805f6d347a19200085d7564
😎 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
Collaborator

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

Copy link
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 Copilot and HumphreyYang April 23, 2025 23:41
Copy link

@Copilot 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

@@ -238,7 +238,7 @@ A = \begin{bmatrix} 0.5 & 0.1 \\
\end{bmatrix}
$$

$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
Preview

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 is powered by AI, so mistakes are possible. Review output carefully before use.

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.

3 participants