# Switching between class distributions

**URL:** <https://discourse.pymc.io/t/switching-between-class-distributions/4340>\
**Category:** Questions\
**Created:** [January 10, 2020, 1:39pm UTC](https://discourse.pymc.io/t/switching-between-class-distributions/4340 "2020-01-10T13:39:09Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Gon\_F](https://avatars.discourse-cdn.com/v4/letter/g/f14d63/32.png) [@Gon\_F](https://discourse.pymc.io/u/Gon_F)\
**Post date:** [January 11, 2020, 4:58am UTC](https://discourse.pymc.io/t/switching-between-class-distributions/4340/2 "2020-01-11T04:58:26Z")

</div>

Hello. This is definitely possible, and I think you need to utilize a Dirichlet prior to make this work. Look through these two resources for a primer, [link1](https://discourse.pymc.io/t/multivariate-switch-function/2102) and [link2](https://stats.stackexchange.com/questions/234385/how-to-build-a-pymc-model-to-detect-multiple-switch-points).

---

_[View the full topic](https://discourse.pymc.io/t/switching-between-class-distributions/4340)._
