Add Stan vs PyMC Rosetta Stone notebook (refs #7771)#8090
Open
mikjkd wants to merge 2 commits intopymc-devs:mainfrom
Open
Add Stan vs PyMC Rosetta Stone notebook (refs #7771)#8090mikjkd wants to merge 2 commits intopymc-devs:mainfrom
mikjkd wants to merge 2 commits intopymc-devs:mainfrom
Conversation
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)
|
Check out this pull request on See visual diffs & provide feedback on Jupyter Notebooks. Powered by ReviewNB |
There was a problem hiding this comment.
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>
6ed20cc to
38f5772
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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:
docs/source/learn/core_notebooks/rosetta_stone_pymc_stan.ipynbdocs/source/learn/index.mdto include the notebook in the Learn docs navigationRelated Issue
Checklist
Type of change