Skip to content

Conversation

@Abhishek6122008
Copy link

Description

This PR adds a new core notebook vectorized_variables.ipynb under
docs/source/learn/core_notebooks/.

The notebook provides a clear and concise tutorial demonstrating how to work
with vectorized and shaped random variables in PyMC. It addresses the request
in Issue #4007 by showing:

  • How to define RVs with shapes / dims / coords
  • How to slice and index vector-valued parameters (e.g., mu[data_labels])
  • How broadcasting works in PyMC models
  • How to model multiple groups simultaneously using vectorized priors
  • A small end-to-end example model that mirrors the use case described in Documentation: Create a tutorial demonstrating vector variables #4007

The goal is to give users a direct, accessible reference for one of the most
common modeling patterns in PyMC: handling multiple groups with vector-valued
parameters.

Related Issue

Checklist

  • Added new example notebook
  • Confirmed the notebook renders correctly in the docs
  • Checked pre-commit linting
  • Tests not required for documentation notebooks

Type of change

  • Documentation (new example notebook)

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@github-actions github-actions bot added the docs label Nov 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Documentation: Create a tutorial demonstrating vector variables

1 participant