# Advice with hierarchical model

**URL:** <https://discourse.pymc.io/t/advice-with-hierarchical-model/1925>\
**Category:** Questions\
**Created:** [September 16, 2018, 9:46pm UTC](https://discourse.pymc.io/t/advice-with-hierarchical-model/1925 "2018-09-16T21:46:12Z")\
**Posts on this page:** 1\
**Showing post:** 9

<div class="post-metadata">

**Author:** ![\_eigenfoo](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/_eigenfoo/32/3059_2.png) [@\_eigenfoo](https://discourse.pymc.io/u/_eigenfoo)\
**Post date:** [September 19, 2018, 4:07am UTC](https://discourse.pymc.io/t/advice-with-hierarchical-model/1925/9 "2018-09-19T04:07:40Z")

</div>

Again quoting straight from the blog post (we really should port all these tips into an FAQ, shouldn’t we?):

`The number of effective samples is smaller than XYZ for some parameters.`

- Quoting [Junpeng Lao on discourse.pymc3.io](https://discourse.pymc.io/t/the-number-of-effective-samples-is-smaller-than-25-for-some-parameters/1050/3): “A low number of effective samples is usually an indication of strong autocorrelation in the chain.”
- Make sure you’re using an efficient sampler like NUTS. (And not, for instance, Metropolis-Hastings. (I mean seriously, it’s the 21st century, why would you ever want Metropolis-Hastings?))
- Tweak the acceptance probability ( `target_accept` ) - it should be large enough to ensure good exploration, but small enough to not reject all proposals and get stuck.

Also, I think that prior visualization will be moved to ArviZ, see [this issue](https://github.com/pymc-devs/pymc3/issues/3104). But we appreciate any code you think would be good to contribute!

---

_[View the full topic](https://discourse.pymc.io/t/advice-with-hierarchical-model/1925)._
