Skip to content

Add Stan vs PyMC Rosetta Stone notebook (refs #7771)#8090

Open
mikjkd wants to merge 2 commits intopymc-devs:mainfrom
mikjkd:Integrate-notebook-comparing-Stan-and-PyMC-#7771
Open

Add Stan vs PyMC Rosetta Stone notebook (refs #7771)#8090
mikjkd wants to merge 2 commits intopymc-devs:mainfrom
mikjkd:Integrate-notebook-comparing-Stan-and-PyMC-#7771

Conversation

@mikjkd
Copy link

@mikjkd mikjkd commented Feb 4, 2026

Integrate the “Rosetta Stone” notebook by Ricardo Vieira comparing how models are defined in PyMC and Stan. The notebook focuses on syntax differences, parameterization, forward draws / prior predictive, and the “one-parameter-one-distribution” assumption.

Closes #7771

Description

This PR:

  • adds docs/source/learn/core_notebooks/rosetta_stone_pymc_stan.ipynb
  • updates docs/source/learn/index.md to include the notebook in the Learn docs navigation

Related Issue

Checklist

  • Checked that the pre-commit linting/style checks pass (for the modified files)
  • Included tests that prove the fix is effective or that the new feature works (N/A: docs-only notebook)
  • Added necessary documentation (example notebook)
  • If you are a pro: each commit corresponds to a relevant logical change

Type of change

  • New feature / enhancement
  • Bug fix
  • Documentation
  • Maintenance
  • Other (please specify):

Integrate notebook by Ricardo Vieira comparing how models are defined in PyMC and Stan, covering syntax differences, parameter handling, forward draws, and the one-parameter-one-distribution assumption.

(refs pymc-devs#7771)
Copilot AI review requested due to automatic review settings February 4, 2026 14:14
@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

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 PR integrates a "Rosetta Stone" notebook that compares how statistical models are defined in PyMC versus Stan. The notebook provides a detailed pedagogical comparison covering syntax differences, parameterization approaches, forward sampling/prior predictive methods, and the fundamental "one-parameter-one-distribution" design philosophy that distinguishes PyMC from Stan.

Changes:

  • Adds a comprehensive Jupyter notebook explaining PyMC and Stan differences through worked examples
  • Updates the Learn documentation index to include the new notebook
  • Provides practical examples of translating models between the two frameworks

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 6 comments.

File Description
docs/source/learn/core_notebooks/rosetta_stone_pymc_stan.ipynb New notebook with detailed PyMC vs Stan comparison including syntax, distributions, transforms, and practical examples
docs/source/learn/core_notebooks/index.md Updated table of contents to include the new rosetta_stone_pymc_stan notebook

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Squashed commits from Copilot Suggestion

Co-Authored-By: Copilot <175728472+Copilot@users.noreply.github.com>
@mikjkd mikjkd force-pushed the Integrate-notebook-comparing-Stan-and-PyMC-#7771 branch from 6ed20cc to 38f5772 Compare February 4, 2026 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs hackathon Suitable for hackathon

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Integrate notebook comparing Stan and PyMC

1 participant