# Problem with pm.Categorical

**URL:** <https://discourse.pymc.io/t/problem-with-pm-categorical/611>\
**Category:** Questions\
**Created:** [November 28, 2017, 4:31pm UTC](https://discourse.pymc.io/t/problem-with-pm-categorical/611 "2017-11-28T16:31:54Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![junpenglao](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/junpenglao/32/8_2.png) [@junpenglao](https://discourse.pymc.io/u/junpenglao)\
**Post date:** [November 28, 2017, 9:02pm UTC](https://discourse.pymc.io/t/problem-with-pm-categorical/611/4 "2017-11-28T21:02:54Z")

</div>

lol. BTW you might want to use a Dirichlet prior so it generates unit vector `p`

---

_[View the full topic](https://discourse.pymc.io/t/problem-with-pm-categorical/611)._
