-
-
Notifications
You must be signed in to change notification settings - Fork 132
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added more questions nin FAQ #881
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,7 +14,17 @@ inference. | |
* PyMC is a library for Bayesian modelling, and is the backend used by Bambi. | ||
It is a very powerful library, but can be challenging to use for beginners. | ||
Bambi provides a simple interface for specifying models, and allows for easy inference via | ||
MCMC or variational inference using PyMC. | ||
|
||
### Why have a Bayesian regression library? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure about including this section in the FAQ. Yes, it is related to Bambi, but it is more asking a question of what the right level of abstraction is. |
||
|
||
Bayesian modelling allows flexible (read 'bespoke') model specification and also provides an | ||
estimation of uncertainty in the model parameters. Both of these are wildly useful in | ||
practice, in particular in a business context where the model is used to make decisions, | ||
and where a complex model may be needed to capture the underlying relationships. Further, | ||
Bayesian modelling allows graceful handling of small sample sizes by judicious use of | ||
prior distributions. | ||
|
||
### | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you plan on adding another section here? |
||
|
||
## Inference Questions | ||
|
||
|
@@ -33,6 +43,18 @@ Yes, Bambi supports inference on GPUs and TPUs using the numpyro and blackjax ba | |
See the API for "fit" method for more details | ||
[here](https://bambinos.github.io/bambi/api/Model.html#bambi.Model.fit). | ||
|
||
### My sampler through errors/indicating divergences, what should I do? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure this deserves an FAQ. This is a more general question regarding sampling. Not necessarily specific to Bambi. |
||
|
||
* Divergences are a common issue in Bayesian modelling, and are usually not a problem as long as | ||
they are not prevalent. However, if you are seeing a lot of divergences, you may want | ||
to try 1) respecifying your model, 2) a different sampler. | ||
* If the sampler fails, this is likely an issue with model specification. Make sure you are using | ||
the correct priors for your model, and that you are not specifying a prior that is too | ||
strong (e.g. a prior that is too narrow), or one that does not match the data (e.g. a | ||
prior that doesn't cover the domain of the data such as using a HalfNormal prior for a | ||
parameter that can be negative). | ||
|
||
|
||
## Model Specification Questions | ||
|
||
### My data has a non-normal distributions, can I still use Bambi? | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you plan on answering this question? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Which one? |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this should be added in the README as there is already a minimal example there. I would make another PR specifically demonstrating how to use Bambi for piecewise regression in a Jupyter notebook.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok;)
Should I close this PR then?