# First steps with PyMC and BMA

**URL:** <https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244>\
**Category:** General\
**Created:** [November 6, 2023, 8:17am UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244 "2023-11-06T08:17:52Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oussama\_Dhaoui](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Oussama\_Dhaoui](https://discourse.pymc.io/u/Oussama_Dhaoui)\
**Post date:** [November 6, 2023, 8:17am UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244/1 "2023-11-06T08:17:52Z")

</div>

I am on my first steps with PyMC and BMA, I try to reproduce the model proposed in PyMC and I saw that in the three models mu=0, sigma=10 for alpha. For beta, in the first model mu=0 sigma=10, and for the 2nd and the 3rd model mu=0 sigma=1. Why we choose these values? Sorry for my question and I apologize if I bother you.

---

<div class="post-metadata">

**Author:** ![cluhmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cluhmann/32/3083_2.png) [@cluhmann](https://discourse.pymc.io/u/cluhmann)\
**Post date:** [November 6, 2023, 9:05pm UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244/2 "2023-11-06T21:05:11Z")

</div>

Can you provide a link to the notebook you are working with?

---

<div class="post-metadata">

**Author:** ![Oussama\_Dhaoui](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Oussama\_Dhaoui](https://discourse.pymc.io/u/Oussama_Dhaoui)\
**Post date:** [November 6, 2023, 9:24pm UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244/3 "2023-11-06T21:24:17Z")

</div>

[https://www.pymc.io/projects/docs/en/v3.11.4/pymc-examples/examples/diagnostics\_and\_criticism/model\_averaging.html](https://www.pymc.io/projects/docs/en/v3.11.4/pymc-examples/examples/diagnostics_and_criticism/model_averaging.html)

---

<div class="post-metadata">

**Author:** ![cluhmann](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/cluhmann/32/3083_2.png) [@cluhmann](https://discourse.pymc.io/u/cluhmann)\
**Post date:** [November 6, 2023, 9:59pm UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244/4 "2023-11-06T21:59:55Z")

</div>

So first, off, the more recent version of this page is [here](https://www.pymc.io/projects/examples/en/latest/diagnostics_and_criticism/model_averaging.html).

Regarding you original question, it does seem like this was perhaps a mistake. @aloctavodia might weigh in (though he wrote the original notebook a long time ago). Alternatively, you (or someone) could check the McElreath book itself (where this example was taken from) to see whether he changes the priors in this way. If not, we would welcome an update. This is exactly the kind of thing we hope to get done at the upcoming PyMC Docathon (detail [here](https://discourse.pymc.io/t/pymc-docathon-elevate-open-source-documentation/13248)).

---

<div class="post-metadata">

**Author:** ![Oussama\_Dhaoui](https://avatars.discourse-cdn.com/v4/letter/o/d07c76/32.png) [@Oussama\_Dhaoui](https://discourse.pymc.io/u/Oussama_Dhaoui)\
**Post date:** [November 8, 2023, 11:44am UTC](https://discourse.pymc.io/t/first-steps-with-pymc-and-bma/13244/5 "2023-11-08T11:44:10Z")

</div>

Thank you
