Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [beta-binomial]

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.

0
votes
0answers
14 views

Bayesian estimation of weighted proportion

Having bayesian estimates of a proportion is relatively easy. You model that proportion as a binomial variable, you choose a beta-binomial prior and by using the likelihood you obtain a beta-binomial ...
9
votes
1answer
590 views

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 ...
2
votes
2answers
64 views

How do I carry out a significance test with Tarone's Z-statistic?

Context In this blog the author suggests using Tarone's Z-statistic to test for overdispersion in a binomial model to determine whether or not it is necessary to use a beta-binomial model instead. In ...
0
votes
2answers
76 views

How to convert the parameters in a binomial distribution to those in a beta distribution?

I know that the beta distribution is the generalized continuous case of the discrete binomial distribution. Let's say I have a binomial distribution, $B(N,p)$. I would like to know the corresponding $\...
2
votes
2answers
365 views

Computational shortcuts/approximations for beta-binomial and beta-negative binomial CDFs

There are several simplifications that can be done so that computing cumulative distribution functions of beta-binomial and beta-negative binomial distributions, but still computing CDF as $F(x) = \...
1
vote
0answers
10 views

Can (log-)likelihood be used to compare a binomial model to its beta-binomial equivalent?

In this article the author talks about fitting beta-binomial models to data when the there data is over-dispersed relative to the assumptions of a model with binomial errors. Near the end they present ...
0
votes
1answer
2k views
1
vote
0answers
20 views

How to fit a Beta-Binomial Distribution to a dataset [duplicate]

I have a data set which is defined over positive integers and I have reasons to believe it follows a beta-binomial distribution. I am aware there is the ...
0
votes
1answer
197 views

Number of parameters mixture model

In order to do a LRT between two mixture models with different numbers of components, I need to know the number of parameters. I would like to know the answer both for: a) Gaussian mixture model b) ...
0
votes
1answer
205 views

Beta Binomial Inverse CDF

There are p groups of size $n_1, n_2, ... , n_p$ each with number of successes $x_1, x_2, ... x_p$ and number of failures $n_1 - x_1, n_2 - x_2, ... , n_p - x_p$. $X_i$ ~ $Binom( n_i, p_i)$, where $...
420
votes
10answers
161k views

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 ...
2
votes
1answer
205 views

How do you compute the beta-binomial probability of “at least one”?

When working with the binomial distribution, it's sometimes useful to compute the probability of "at least one", which is 1 - P(none) or, after setting x to 0 in the formula for the PDF of the ...
0
votes
1answer
26 views

Binomial distribution for randomly drawn probabilities

Setting Probability theory can be a weird place sometimes. Here I was, confident in my insane math skills, trying to solve the following problem: Let $N, \alpha$ and $\beta$ be given. ...
0
votes
1answer
40 views

Beta-binomial Model with missing values

I have read http://www.sumsar.net/blog/2018/12/visualizing-the-beta-binomial/ this simple explanation of how the posterior is changing while more data are added: in this visualization there are six ...
4
votes
0answers
38 views

Beta-binomial distribution for scaled and translated Beta

Recall, that a binomial distribution in which the probability of success at each trial is randomly drawn from a beta distribution results in the so called beta-binomial distribution. One can calculate ...
0
votes
1answer
107 views

Poisson-binomial vs. Beta-binomial

I have N distinct bernoulli trials with a distinct probability for each trial given by, P=(p1, p2, ..., pN). I want to know the distribution of the number of successes. Given that I know P, I can ...
2
votes
1answer
103 views

Correct usage/understanding of Bayes Factor when comparing two proportions

I'm just starting to learn R and explore Bayesian statistics, but I keep getting tripped on using Bayes Factor and (honestly), I'd love a little confirmation if my process is correct in interpreting ...
0
votes
0answers
13 views

Bayesian hypothesis testing with multiple beta-binomials

I want to test questions relating to whether individual ants of a certain species have personal food preferences, using a Bayesian model built up of multiple beta-binomial distributions. My problems ...
1
vote
0answers
69 views

Hypothesis testing with beta binomial. Dealing with overdispersion

To make the question more understandable I will use a reproducible example. I have count data, how many connections different groups share with a unique group. In my case I have an upper bound of <...
24
votes
4answers
23k views

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 ...
4
votes
0answers
70 views

How to infer a prior belief after observing a behavior

My participant goes through a maze made of 32 T intersections. At each intersection he must choose whether to go either to the left or to the right: one option will lead to another T intersection, ...
1
vote
0answers
18 views

Sample from multiple urns - when to stop?

I have a problem that hasn't yet been addressed, although follows similar lines of reasoning here and here. My problem is as follows: I have $N$ urns, each with a different number of black and white ...
1
vote
2answers
96 views

Given an observed sample from a binomial distribution and a known prior, how can I update the probability distribution of possible 'p' values?

Let's say that I have an 'unfair' coin, for which I'm interested in estimating the 'heads' likelihood or 'p' value. I've been told that the 'heads' likelihood for my 'unfair' coin is normally ...
3
votes
0answers
151 views

Log Beta Distribution Priors

Let $X_n$ be a binomial distribution with parameter $\theta$. Empirically, after $n$ throws, my estimate is $\hat{\theta}_n=\frac{S_n}{S_n+F_n}$, where $S/F$ are the successes and failures $(F_n:=n-...
0
votes
0answers
65 views

Relation between mean probability and overdispersion

I have proportion data for N observations x P variables. That is to say for each variable, I have proportions that vary between observations. A proportion is the number of successes divided by the ...
4
votes
1answer
321 views

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$$ $$...
0
votes
0answers
144 views

beta binomial hierarchical model with two groups, inference on the group hyperparameters

The problem I want to solve: Lets imagine that I have two factories A and B, where each factory produces coins. What I suspect is that the probability of tails (denoted as $\theta$) varies ...
0
votes
0answers
44 views

Events/Trials Syntax vs. Single-Trial Mixed Model - Beta-Binomial Model

I'm a touch confused about modeling an events/trials outcome when the Bernoulli trials are not independent, such as when a series of Bernoulli trials are observed from the same person. I cannot find a ...
2
votes
1answer
142 views

Entropy of the beta-binomial compound distribution

I have a generative process as follows: $$ x \mid \alpha \sim \textsf{Beta}\left (\alpha,\beta \right) \\ y \mid x \sim \textsf{Bernoulli}(x). $$ How does one go about calculating the Entropy of ...
1
vote
0answers
250 views

Beta binomial GLMM dispersion statistic issue

I am analyzing proportion data with GLMM in which the number of occurrence a behaviour of interest has been displayed and has not been displayed are concatenated and fitted as a single response ...
2
votes
2answers
1k views

How to define prior for beta-binomial A/B test

I would like to run an A/B test using a Bayesian beta-binomial model whereby I would state probabilities such as $P(p_B>p_A)$ in place of using a traditional T-test. I've read that the prior should ...
1
vote
1answer
170 views

how to analyze overdispersed binary data

In my substantive research, I often use dichotomous scoring (1 correct, 0 wrong) for my tests (tests with $15~yes/no$ items). My goal is often to compare the the proportion of correct answers to all ...
1
vote
1answer
583 views

Extending a Hierarchical Beta-Binomial Model to account for higher-level groups

I searched all over but was unable to find an answer to this question. Please forgive me if I missed something obvious. In order to analyze an experiment, I recently implemented a Hierarchical Beta-...
1
vote
1answer
178 views

How can we determine the parameters of a Beta-Binomial Distribution for given mean and variance?

Given a beta-binomial random variate $X$ with $N$ known, how can I choose $\alpha$, $\beta$ such that the distribution's mean matches a chosen quantity $\mu$ and its variance matches a chosen quantity ...
7
votes
1answer
446 views

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/(...
10
votes
3answers
3k views

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 ...
4
votes
1answer
2k views

Types of dispersion parameter for binomial data

For a model with a binomial proportion as response variable, which is fitted with according to a binomial distribution, a dispersion parameter $\phi$ can be calculated, which is equal to the sum of ...
4
votes
1answer
514 views

Hyper-parameter estimation for Beta-Binomial Empirical Bayes

I am reading a paper Illustrating empirical Bayes methods and in the paper the author uses method of moments to derive the value of an estimate. In equation 17 the author gives the following marginal ...
1
vote
1answer
166 views

Beta-Binomial Derivation

I was looking on wikipedia and seemed to be not follow how the beta-binomial is derived. I was hoping I could provide an example I found in a paper and someone could explain the steps. Given the ...
0
votes
1answer
131 views

Bayesian A/B test - using an updated prior based on collected data

I have a question about whether I would be adding bias to an A/B test by updating my prior based on combined A & B data, and then running the A/B test on that prior. My A/B test is click through ...
2
votes
2answers
75 views

Updating posterior distribution in online fashion [duplicate]

First, I am sorry if this is an obvious question, I am starting to study bayesian statistics (mainly for machine learning) and I was seeing the classic coin flip example using a Bernoulli distribution ...
1
vote
1answer
32 views

Probability with Limited Data

I have a theoretical question which has been bugging me, involving prediction based on limited data. Say you go to the horse track and see that horse A has just won its race with horse B. The two ...
2
votes
2answers
648 views

Is the beta-binomial distribution a conjugate prior for some distribution?

The beta distribution is conjugate prior for the binomial distribution. Is the beta-binomial distribution a conjugate prior for some sampling distribution?
5
votes
4answers
749 views

Beta binomial Bayesian updating over many iterations

I'm using a beta binomial updating model for a piece of code that I am writing. The software is real time updating - meaning that data is continually being gathered and after N data points are ...
2
votes
1answer
36 views

Beta Binomial Encryption

For the sake of example, suppose we have a list of advertisements $\{A_i\}_{i=1}^n$, each of which have parameters $I_i$: the number of impressions, and $C_i$ the number of clicks. Then $C_i/I_i$ ...
3
votes
0answers
400 views

Should I use a beta-binomial or binomial glmm?

I have several data sets on wildlife disease incidence. One of the issues with my dependent variable is that it represents only current infection status, therefore 0 (no disease) can represent either ...
0
votes
1answer
205 views

Beta distribution

After studying about the beta distribution I understood that the beta density function is used to find the densities for the probabilities. Densities may range from 0 to inf. That is if the density of ...
2
votes
0answers
232 views

Visually compare binomial and beta-binomial appropriateness in R

I'm trying to choose the best distribution family for generalized linear regression. My outcome is cross-sectional, over-dispersed proportion data (# of behaviors/20-22 possible behaviors). I used the ...
1
vote
0answers
118 views

Intuition of Beta-Binomial Distribution

I am given $$Q \sim\mathrm{Beta} (2,3)$$ $$[X|Q=q]\sim\mathrm{Bin} (3,q)$$ I am asked to find (1) $E[X]$, (2) $\operatorname{Var}[X]$, (3) $E[Q|X]$, (4) $\operatorname{Var}[Q|X]$, (5) $v(q|X=x)$. I ...
3
votes
2answers
1k views

Updating a beta-binomial

Suppose I'm modeling a set of processes using a beta-binomial prior. I can build parameterized beta-binomial models that average over large groups of the processes to give reasonable, although coarse, ...