# Setting parameters for a Gamma Prior

**URL:** <https://discourse.pymc.io/t/setting-parameters-for-a-gamma-prior/9574>\
**Category:** General\
**Created:** [June 6, 2022, 1:04pm UTC](https://discourse.pymc.io/t/setting-parameters-for-a-gamma-prior/9574 "2022-06-06T13:04:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jules](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@jules](https://discourse.pymc.io/u/jules)\
**Post date:** [June 6, 2022, 1:04pm UTC](https://discourse.pymc.io/t/setting-parameters-for-a-gamma-prior/9574/1 "2022-06-06T13:04:14Z")

</div>

Hi there,

I’m doing Bayesian A/B Testing using Pymc3. My dependent variable is exponentially distributed and I’m using the Gamma distribution as it’s prior.

I want to make the Gamma uninformative - what alpha/beta parameter settings would I choose to make this the case?

---

<div class="post-metadata">

**Author:** ![jessegrabowski](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.pymc.io/jessegrabowski/32/5010_2.png) [@jessegrabowski](https://discourse.pymc.io/u/jessegrabowski)\
**Post date:** [June 6, 2022, 4:48pm UTC](https://discourse.pymc.io/t/setting-parameters-for-a-gamma-prior/9574/2 "2022-06-06T16:48:20Z")

</div>

[Ben Lambert’s distribution zoo](https://ben18785.shinyapps.io/distribution-zoo/) is a nice tool for figuring out what parameters make sense for different distributions.

Unlike something like beta or normal, the gamma doesn’t have a natural uninformative parameter setting (I guess you know that, that’s why you’re here). So you’re going to have to rely a bit more on domain knowledge to figure out what “uninformative” means in your context – how much mass should be near 0, what should 95% of the CDF be less than, how much tail, etc. What values are impossibly large, things like this.

One thing I like about the gamma is that when beta is 1, the mean and variance are both alpha. That helps me to reason about the distribution a bit.

---

<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:** [June 6, 2022, 4:52pm UTC](https://discourse.pymc.io/t/setting-parameters-for-a-gamma-prior/9574/3 "2022-06-06T16:52:03Z")

</div>

A complementary strategy is to use [prior predictive checks](https://www.pymc.io/projects/docs/en/latest/learn/core_notebooks/posterior_predictive.html) to make the consequences of your prior concrete. If you don’t like what your model thinks is plausible before updating (i.e., conditional on your priors), then your model isn’t reflecting your priors.
