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.

Filter by
Sorted by
Tagged with
18
votes
3answers
341 views

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)^{...
1
vote
1answer
57 views

Conditional probability of tossing coins with uncertain head probability

Suppose there are two coins A and B. When tossing a coin $i$, "head" happens with probability $p_i$. The problem is that $p_i$ itself is a random variable. Say that the associated probability ...
4
votes
3answers
302 views

Does order of events matter in Bayesian update?

I'm wondering whether the order of events can lead to different Bayesian update. For example, consider a coin-tossing problem with unknown $p$, the probability of Head. Initially, $p$ is known to ...
0
votes
1answer
220 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) ...
27
votes
6answers
24k 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 ...
0
votes
1answer
49 views

Bayesian inference for a conditional probability

I'm simplifying my research question and want to know whether the question can be properly modeled or not. Suppose we have two coins $X_1,X_2$ and assume that the outcomes are possibly correlated. ...
0
votes
1answer
52 views

Calculating the parameters of a Beta-Binomial distribution using the mean and variance

I'm trying to do the same thing that was done in this question: Calculating the parameters of a Beta distribution using the mean and variance for the Beta-Binomial distribution for which the mean is ...
0
votes
1answer
228 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 $...
0
votes
0answers
47 views

Multi-armed bandit where you must pull N pulls in T timesteps

Multi-armed bandit where you must pull N pulls in T timesteps Consider the beta-Bernoulli multi-armed bandit, with the following wrinkle: We have a total of $T$ time steps. We must pull $N$ pulls ...
1
vote
1answer
397 views

Prior distribution to the binomial distribution probability distributions urn model

I have an infinite population with unknown mean of successes and failures. I'm drawing 400 times from the population and get 400 successes. Now I want to generate random estimates for the true mean of ...
0
votes
0answers
15 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
639 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
99 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
95 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
380 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
15 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

Estimate beta binomial distribution

I have a dataset as follows: ...
1
vote
0answers
21 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 ...
434
votes
10answers
167k 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
219 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
27 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
48 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
44 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
151 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
127 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
85 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 <...
4
votes
0answers
71 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
153 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
158 views

Log Beta Distribution Priors [closed]

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
70 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 ...
5
votes
1answer
414 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$$ $$...
2
votes
1answer
150 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
270 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
188 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
606 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
213 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
486 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
558 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
190 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
133 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
80 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
34 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
679 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
761 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
41 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$ ...