Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Sep 7, 2025

This PR addresses multiple style guide violations in the ar1_bayes.md lecture file to ensure compliance with the QuantEcon style guide.

Changes Made

Title Formatting (Title Rule #1)

  • Fixed extra space in main title: "Posterior Distributions for AR(1) Parameters""Posterior Distributions for AR(1) Parameters"

Section Heading Capitalization (Title Rule #2)

  • "PyMC Implementation""PyMC implementation"
  • "Numpyro Implementation""Numpyro implementation"

One-Sentence Paragraphs (Writing Rule #2)
Split 8 multi-sentence paragraphs into individual one-sentence paragraphs, including:

  • Paragraph about NUTS samplers and library support
  • Explanation of MCMC algorithm advantages
  • Description of conditioning procedures
  • Mathematical explanations about Bayes' Law

Unicode Greek Letters in Code (Code Rule #4)
Replaced text Greek letters with Unicode symbols throughout all code blocks:

  • rhoρ in function definitions and variable assignments
  • sigmaσ in function definitions and variable assignments

Applied consistently across:

  • ar1_simulate() function
  • PyMC model definitions
  • NumPyro model definitions

JAX Installation (JAX Rule #1)

  • Removed jax from !pip install numpyro jax command to avoid installing suboptimal jax[cpu] version

Technical Impact

All changes preserve the technical accuracy and educational content of the lecture while improving:

  • Readability through proper paragraph structure
  • Code consistency with economics notation conventions
  • Optimal dependency installation for JAX environments

The lecture maintains full functionality while adhering to QuantEcon style standards.

Fixes #592.


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

…reek letters

Co-authored-by: mmcky <8263752+mmcky@users.noreply.github.com>
Comment on lines +148 to +152
* If we think $y_0$ is drawn from the stationary distribution ${\mathcal N}(0, \frac{\sigma_x^{2}}{1-\rho^2})$, then it is a good idea to use this distribution as $f(y_0)$.
Why?
Because $y_0$ contains information about $\rho, \sigma_x$.
Copy link
Contributor

Choose a reason for hiding this comment

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

not useful -- part of a list element.

Copilot AI changed the title [WIP] [ar1_bayes] Review lecture for style-guide compliance Fix ar1_bayes lecture style guide compliance Sep 7, 2025
Copilot AI requested a review from mmcky September 7, 2025 23:05
@HumphreyYang
Copy link
Member

Hi @mmcky, is this PR based on the main branch? Perhaps we can try to prompt copilot in the PR.

@mmcky mmcky closed this Sep 7, 2025
@mmcky mmcky deleted the copilot/fix-592 branch September 7, 2025 23:35
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.

[ar1_bayes] Review lecture for style-guide compliance

3 participants