# Dimensions vs shape

**URL:** <https://discourse.pymc.io/t/dimensions-vs-shape/17045>\
**Category:** General\
**Created:** [May 27, 2025, 2:22pm UTC](https://discourse.pymc.io/t/dimensions-vs-shape/17045 "2025-05-27T14:22:02Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dipanshu\_Chaudhary](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/dipanshu_chaudhary/32/9259_2.png) [@Dipanshu\_Chaudhary](https://discourse.pymc.io/u/Dipanshu_Chaudhary)\
**Post date:** [May 27, 2025, 2:22pm UTC](https://discourse.pymc.io/t/dimensions-vs-shape/17045/1 "2025-05-27T14:22:02Z")

</div>

Hi everyone,  
I was focused on the discussion weather to use dimensions or shape argument in my hierarchical bayesian models, the understanding i have is that we use dimensions when we already have a categorical feature in our data segmenting different groups (we can also create this feature and then we pass those unique values from that categorical feature into out dims argument) and we use shape in the other case.

---

<div class="post-metadata">

**Author:** ![ricardoV94](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/ricardov94/32/5775_2.png) [@ricardoV94](https://discourse.pymc.io/u/ricardoV94)\
**Post date:** [May 28, 2025, 5:52am UTC](https://discourse.pymc.io/t/dimensions-vs-shape/17045/2 "2025-05-28T05:52:00Z")

</div>

You can use both but dims already informs the shape of the variable
