# Rewriting Likelihood with DensityDist() outputs MissingInputError

**URL:** <https://discourse.pymc.io/t/rewriting-likelihood-with-densitydist-outputs-missinginputerror/7141>\
**Category:** Questions\
**Created:** [April 1, 2021, 1:07pm UTC](https://discourse.pymc.io/t/rewriting-likelihood-with-densitydist-outputs-missinginputerror/7141 "2021-04-01T13:07:03Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![non87](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/non87/32/3859_2.png) [@non87](https://discourse.pymc.io/u/non87)\
**Post date:** [April 1, 2021, 6:15pm UTC](https://discourse.pymc.io/t/rewriting-likelihood-with-densitydist-outputs-missinginputerror/7141/8 "2021-04-01T18:15:33Z")

</div>

Thanks for the explanation. Everything makes more sense now.  
Indeed, it took me a while to figure out how to pass the `mu_home` parameter, since it is not truly observed. I figure it out based on this topic [DensityDist from scipy.stats distribution - #3 by balarsen](https://discourse.pymc.io/t/densitydist-from-scipy-stats-distribution/1245/3) . However, in the very same topic, the `DensityDist` is sampled without passing any extra argument to the sampler. I guess that was correct when the topic was written, but the same code would not work now, if I understand correctly. This can be _very_ odd for someone who does not know how PyMC3 is evolving. So, I reiterate that it would be nice to mention this issue with sampling in the documentation – and to have an up-to-date working notebook on the different uses of `DensityDist`. Anyway, thank you again for your availability and help.

---

_[View the full topic](https://discourse.pymc.io/t/rewriting-likelihood-with-densitydist-outputs-missinginputerror/7141)._
