Questions tagged [beta-binomial-distribution]

The beta-binomial is a discrete distribution on 0, 1, ..., *n* where the probability of success in a binomial distribution (*p*) is itself drawn from a beta distribution.

The beta-binomial disribution is a discrete distribution on 0, 1, ..., n.

It arises as a mixture distribution, where the probability of success in a binomial distribution (p) is itself drawn from a beta distribution. Because of this it is sometimes used as a model for heterogeneous mixtures of binomials or more generally for situations where the variance of a discrete distribution on 0, 1, ..., n has a larger variance than the binomial.

It also commonly occurs in Bayesian applications.

Reference: Wikipedia - Beta-binomial distribution

166 questions
527
votes
15 answers

What is the intuition behind beta distribution?

Disclaimer: I'm not a statistician but a software engineer. Most of my knowledge in statistics comes from self-education, thus I still have many gaps in understanding concepts that may seem trivial for other people here. So I would be very thankful…
41
votes
7 answers

Relationship between Binomial and Beta distributions

I'm more of a programmer than a statistician, so I hope this question isn't too naive. It happens in sampling program executions at random times. If I take N=10 random-time samples of the program's state, I could see function Foo being executed on,…
26
votes
4 answers

What is the appropriate model for underdispersed count data?

I am trying to model count data in R that is apparently underdispersed (Dispersion Parameter ~ .40). This is probably why a glm with family = poisson or a negative binomial (glm.nb) model are not significant. When I look at the descriptives of my…
21
votes
3 answers

Why is there -1 in beta distribution density function?

Beta distribution appears under two parametrizations (or here) $$ f(x) \propto x^{\alpha} (1-x)^{\beta} \tag{1} $$ or the one that seems to be used more commonly $$ f(x) \propto x^{\alpha-1} (1-x)^{\beta-1} \tag{2} $$ But why exactly is there "$-1$"…
11
votes
3 answers

When to terminate the Bayesian A/B test?

I'm trying to do A/B testing the Bayesian way, as in Probabilistic Programming for Hackers and Bayesian A/B tests. Both articles assume that the decision maker decides which of the variants is better based solely on the probability of some…
Bogdan Kulynych
  • 163
  • 1
  • 9
11
votes
0 answers

Hyperprior Noninformative Beta Binomial Model

I've been working through Gelman's Bayesian Data Analysis 3 text and have been trying to understand one of the hierarchical models revolving around rat tumors (Chapter 5). He uses a binomial model with p assigned a beta distribution. The Beta…
10
votes
1 answer

Minimizing symmetric mean absolute percentage error (SMAPE)

I am working on a forecasting application in which forecast errors are measured using the symmetric mean absolute percentage error: $$ SMAPE = \frac{1}{n} \sum\limits_{t=1}^n{\frac{|F_t - A_t|}{F_t + A_t}} $$ After creating my ML model and applying…
Rui Gonçalves
  • 261
  • 1
  • 2
  • 9
9
votes
1 answer

Prediction interval for a future proportion of successes under Binomial setting

Suppose I fit a Binomial regression and obtain the point estimates and variance-covariance matrix of the regression coefficients. That will allow me to get a CI for the expected proportion of successes in a future experiment, $p$, but I need a CI…
8
votes
2 answers

How to specify a Bayesian binomial model with shrinkage to the population?

Problem I’m currently working on a problem where I have count data for $n$ items in the following form: Item Count Total -------------------- 1 1 30 2 10 340 3 0 0 4 1 …
8
votes
1 answer

Which distributions on [0,1] other than the beta distribution form nice compounds with the binomial distribution?

For which distributions x, other than beta, is the x-binomial distribution nice? The beta and binomial distributions are famously conjugate but I am curious if other non-conjugate distributions will give comparably simple compound pmfs. By nice I…
gam
  • 260
  • 1
  • 4
8
votes
1 answer

Limit of beta-binomial distribution is binomial

I am trying to understand the relationship between the beta-binomial and the binomial distribution. More specifically, I am trying to show that the limit of the beta-binomial distribution, with $p=a/(a+b)$ is binomial as $a+b$ goes to infinity. I…
8
votes
1 answer

How to implement generalized hypergeometric function to use in beta-binomial cdf, sf, ppf?

I'm writing a subclass of scipy.stats._distn_infrastructure.rv_discrete for the beta binomial distribution whose PMF is $$P(X=k \mid N, \alpha, \beta){N \choose k} \frac{\mathrm{B}(k+\alpha,N-k+\beta)}{\mathrm{B}(\alpha,\beta)},$$ where $\mathrm{B}$…
8
votes
1 answer

Properly interpret the alpha / beta parameters in the Beta Distribution

For quite a while I believed that the proper interpretation of a Beta distribution with $\alpha$ and $\beta$ is: "what is the most likely $P$ given $\alpha -1 $ success (heads), and $\beta -1 $ of failures (tails)", which also made sense when…
7
votes
1 answer

What is the distribution of a sum of identically distributed Bernoulli random varibles if each pair has the same correlation?

What is the distribution of a sum of $n$ Bernoulli random variables, each having success probability $p$, where each pair is correlated with correlation coefficient $\rho$? $$Y = \sum_{i=1}^n X_i$$ $$ X_i \sim…
7
votes
3 answers

Estimating beta-binomial distribution

Suppose that I culture cancer cells in n different dishes g₁, g₂, … , gn and observe the number of cells ni in each dish that look different than normal. The total number of cells in dish gi is ti. There is individual differences between…
Vebjorn Ljosa
  • 523
  • 5
  • 10
1
2 3
11 12