Skip to content

Commit

Permalink
Rename <>_posterior_predictive to <>_predictive (#95)
Browse files Browse the repository at this point in the history
* migrate from posterior_predictive to predictive

* deprecate the previous function names

* add missing comments section

* test for the deprecation
  • Loading branch information
wd60622 committed Sep 18, 2024
1 parent 685e1a6 commit 68d739a
Show file tree
Hide file tree
Showing 9 changed files with 177 additions and 114 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,18 @@ Many likelihoods are supported including

```python
from conjugate.distributions import Beta, BetaBinomial
from conjugate.models import binomial_beta, binomial_beta_posterior_predictive
from conjugate.models import binomial_beta, binomial_beta_predictive

# Observed Data
X = 4
N = 10

# Analytics
prior = Beta(1, 1)
prior_predictive: BetaBinomial = binomial_beta_posterior_predictive(n=N, beta=prior)
prior_predictive: BetaBinomial = binomial_beta_predictive(n=N, beta=prior)

posterior: Beta = binomial_beta(n=N, x=X, beta_prior=prior)
posterior_predictive: BetaBinomial = binomial_beta_posterior_predictive(n=N, beta=posterior)
posterior_predictive: BetaBinomial = binomial_beta_predictive(n=N, beta=posterior)
```

From here, do any analysis you'd like!
Expand Down
Loading

0 comments on commit 68d739a

Please sign in to comment.