Skip to content

Conversation

@Abhishek6122008
Copy link

@Abhishek6122008 Abhishek6122008 commented Nov 21, 2025

This PR adds a new tutorial notebook demonstrating how to work with
vector-valued (shaped) random variables in PyMC.
It addresses feature request #4007.


The notebook introduces a beginner-friendly example showing how to:

  • define vector-valued mu and sigma parameters using shape=
  • generate grouped data and integer labels
  • use indexing (mu[data_labels], sigma[data_labels]) to map observations
    to the correct group parameters
  • fit the model using pm.sample
  • visualize posterior means vs. true simulated values

This notebook provides a simple, clear demonstration intended for new users.


Notebook location

examples/howto/vector_variables.ipynb


Checklist


Any feedback and notices for further adjustments would be greatly appriciated as this is my first ever pr.

@review-notebook-app
Copy link

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@Abhishek6122008 Abhishek6122008 marked this pull request as ready for review November 21, 2025 19:55
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.

1 participant