# \#indexing

**URL:** https://discourse.pymc.io/tag/indexing/37.md

[Latest](https://discourse.pymc.io/latest.md) · [Categories](https://discourse.pymc.io/categories.md) · [Tags](https://discourse.pymc.io/tags.md)

---

## [Help figuring out simple categorical indexing](https://discourse.pymc.io/t/help-figuring-out-simple-categorical-indexing/10963)

<div class="topic-metadata">

**Author:** [@omrihar](https://discourse.pymc.io/u/omrihar)\
**Replies:** 3\
**Last updated:** [December 13, 2022, 5:45pm UTC](https://discourse.pymc.io/t/help-figuring-out-simple-categorical-indexing/10963 "2022-12-13T17:45:58Z")

</div>

Hi all, and apologies if it’s a simple question. I’ve tried googling and for some reason still can’t wrap my head around it… I’m trying to create a function that generated models which could have differing number of cat…

---

## [Accessing elements of multivariate distribution](https://discourse.pymc.io/t/accessing-elements-of-multivariate-distribution/10469)

<div class="topic-metadata">

**Author:** [@tkd2147](https://discourse.pymc.io/u/tkd2147)\
**Replies:** 2\
**Last updated:** [September 25, 2022, 11:53pm UTC](https://discourse.pymc.io/t/accessing-elements-of-multivariate-distribution/10469 "2022-09-25T23:53:53Z")

</div>

I would like to build a hierarchical model of sorts… essentially - I would like to sample level\_0 = Normal('level\_0', mu=0, sigma=1, size=2) mapping = \[0,1,0,1,1\] mu = level\_0\[mapping\] #this line clearly does not work -…

---

## [Extended Monty Hall problem](https://discourse.pymc.io/t/extended-monty-hall-problem/8634)

<div class="topic-metadata">

**Author:** [@dchu1991](https://discourse.pymc.io/u/dchu1991)\
**Replies:** 2\
**Last updated:** [January 23, 2022, 6:53am UTC](https://discourse.pymc.io/t/extended-monty-hall-problem/8634 "2022-01-23T06:53:20Z")

</div>

As I was going through the pymc 4.0 tutorial, I thought I could extend the Monty Hall problem to having multiple doors and really observe the addition of the probabilities. I started by defineing this helper function th…
