Skip to main content

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.

Filter by
Sorted by
Tagged with
1 vote
0 answers
23 views

Optimization fails to converge on known parameters for zero-inflated beta binomial distribution [closed]

I am trying to fit to simulated zero-inflated beta binomial data using the distributions provided by VGAM in R. When using optim on a likelihood function I wrote, ...
birdnerd's user avatar
0 votes
0 answers
41 views

Beta-binomial relationship between dispersion and correlation parameters

Context: I have created a beta-binomial model using glmmTMB() from the glmmTMB package and I am now trying to simulate a beta-...
Reid's user avatar
  • 13
1 vote
0 answers
68 views

What are the assumptions of beta-binomial models, and how do I test for them in r?

I want to model the effects of dispersal distance (disp) and reproductive rate (rep) on colonization rate, quantified as the ...
JessKL's user avatar
  • 11
0 votes
0 answers
31 views

Inference for Binomial proportion with estimated p but unknown N

Let's say I own a bakery that, among other desserts, sells one really tasty chocolate cake. It's so good that I've estimated that I've estimated 80% of my daily customers will buy a piece of cake, ...
stharms's user avatar
1 vote
0 answers
53 views

Distributional choices for sparse 0,1 data

I am using GAMs to model the relationship between a binary response variable (0 or 1) and several continuous fixed and random explanatory variables. It seems that a binomial distribution is the ...
Andrew 's user avatar
0 votes
0 answers
34 views

Estimating variance of Poisson Binomial random variable

Let's say I have a weighted coin, with probability $p_i$ of being heads. I flip $N_i$ times, and estimate $P_i$ and the variance on $p_i$ using the relevant formulas for a Binomial distribution. Call ...
KHAAAAAAAAN's user avatar
0 votes
0 answers
9 views

Overdispersion Mixed generalized linear model

I am running a mixed generalized linear model to analyze insect capture in a baited trap. The experiment consisted of 3 separate cages, in each one one treatment (C+, C- or T) and 10 insects were ...
Andrea88's user avatar
3 votes
1 answer
77 views

What is the correct implementation of MCMC

I am learning Markov Chain Monte Carlo (MCMC) simulation as of the moment. My background is civil engineering and please excuse my ignorance if some of the questions are quite obvious. I want to learn ...
ian's user avatar
  • 41
2 votes
2 answers
98 views

prior and posterior predictive distributions, Bayes Theory

Consider the binomial sampling model with a Beta prior on $\theta$ and the prior predictive distribution. Let $n$ be the binomial sample size. \begin{align} p(y^{new}) &= \int_{\theta}f(y^{new}|\...
Curtis00168's user avatar
1 vote
2 answers
88 views

Posterior of binomial and mixed prior

I'm currently studying posterior distribution with likelihood $y|\theta \sim B(n,\theta)$ and mixture of prior distribution $\theta \sim \pi Beta(\alpha_1, \beta_1) + (1-\pi)Beta(\alpha_2, \beta_2)$. ...
jason 1's user avatar
  • 311
0 votes
0 answers
40 views

Inference of Beta-Bernoulli Distribution

Assume $x_1, x_2, \cdots, x_n$ follows a $Bern(\pi_0)$, Let $y_{ik}$ follows $Beta(\alpha,\beta)$, $i\in \{1,\cdots, n\}$, and $k\in \{1,\cdots, K\}$. Let $z_k$ follows a Bernoulli Distribution with a ...
LAM_MN's user avatar
  • 1
3 votes
1 answer
128 views

Interpreting predict() with gamlss() and beta-binomial family=BB

Note after answer is posted: The issue here was actually about formatting the data of the dependent variables in the formula when using (beta-)binomial families. Not about ...
John K. Kruschke's user avatar
3 votes
0 answers
33 views

Laplace's law of succession for ordinal variables

this is just a little curiosity of mine, but has anyone heard of some simple model like Laplace's law of succession, however for ordinal RVs instead of a binomial? Specifically, I'm thinking about ...
Adam B.'s user avatar
  • 659
0 votes
1 answer
40 views

Significance of outliers with multiple weighted coins

tl;dr: I have N weighted coins, each of which has been flipped some number of times (n_i), and for which I've measured the ...
terracubist's user avatar
0 votes
0 answers
74 views

Express infinite serie in terms of a shape parameters of beta distribution

Player A and B participate in a match where the probability that A will win each point is $p$, for B its $1-p$ and a player wins when he reach $11$ points by a margin of $\ge2$ The outcome of the ...
HJA24's user avatar
  • 23
1 vote
1 answer
526 views

For a binary outcome, is the distribution necessarily Bernoulli? Could, for instance, "beta-Bernoulli be in play?

When a variable is binary, it sure seems like its distribution is totally characterized by the probability of being in one group: the variable takes one value with probability $p$ and the other value ...
Dave's user avatar
  • 65k
0 votes
0 answers
307 views

Parameterization of the beta-binomial family Glmmtmb

I have trouble understanding the documentation for the glmmtmb package (https://cran.r-project.org/web/packages/glmmTMB/glmmTMB.pdf) On page 26, in the details on the beta-binomial distribution, it ...
dedeAl's user avatar
  • 1
0 votes
1 answer
82 views

How to get posterior number of trials using Beta-Binomial model?

Let's say $y$ is known, is there any way to compute the number of trials N such that $P(\theta_N<\theta_0|y)=0.95$ ? For the sake of the example, let's say #successes $y=0$ and prior probability $\...
Algorithman's user avatar
1 vote
0 answers
41 views

Beta Binomial Distirbution - Updating beta with 0 occurence [closed]

I am dealing with different problem where a count data has to be modelled either with binomial distribution or hypergeometric. I have done a extensive literature read and it seems that occurence equal ...
juands's user avatar
  • 11
2 votes
0 answers
292 views

Posterior predictive distribution for Bernoulli (and categorical)

I'm trying to confirm something I've tried to figure out about the posterior predictive distribution for Bernoulli vs. Binomial (and categorical vs. multinomial) random variables after a Bayesian ...
Björn's user avatar
  • 33.5k
0 votes
0 answers
51 views

Use of the Beta-Binomial Distribution in Capture-Recapture Sampling

During capture-recapture sampling, we aim to estimate a population size (e.g. of organisms) by capturing a sample of size $ n_1 $, marking them, releasing them, then re-sampling (assuming they have ...
Nick_2440's user avatar
  • 103
1 vote
0 answers
176 views

Can you create Kalman filter (or a recurssive state estimator) with Beta and Binomial distributions?

I have to infer the probability of a system failing from observations. Since probabilities are bounded between 0 and 1, they are sometimes modeled using Beta distribution. While the traditional Kalman ...
PPR's user avatar
  • 101
3 votes
1 answer
213 views

Multiple testing adjustments for Bayes Factors

I manage an platform that has succesfully gotten a Bayesian approach to experimentation in production. One new feature we want to implement is to do inference for multiple metrics (e.g. conversion ...
Tom Kealy's user avatar
  • 149
7 votes
1 answer
207 views

Property of two independent Beta distribution

I have been working with beta-bernoulli posteriors recently. Is it true that if $X,Y$ are independent rvs with $X \sim Beta(a_1+1,b_1+1)$ and $Y \sim Beta(a_2+1,b_2+1)$ then $\mathbb{P}(X>Y)>0.5$...
Sushant Vijayan's user avatar
3 votes
0 answers
128 views

Overdispersion in logistic regression --- Use beta-binomial?

I have some cell counts obtained via flow cytometry - simply put, I have the amount of positive cells (Successes) from the overall number of cells (Successes + Failures). Based on the data structure, ...
André Barros's user avatar
2 votes
1 answer
465 views

How do I understand the intuition behind percentile point function?

I'm really trying very hard to understand the intuition behind percentile point function. From wikipedia, It is the inverse of cdf. From the CDF, a point on its curve indicates the percentage of ...
akashdubey's user avatar
1 vote
1 answer
109 views

Estimating variance of success probability in Poisson-binomial distribution

I am looking at a very large yet finite sequence of Bernoulli trials, each with its own probability. From the physical nature of the process, I know that the probabilities $p_i$ of each trial should ...
driyg's user avatar
  • 11
0 votes
0 answers
55 views

Reasonable to incorporate sample size into beta-binomial?

Setup: The relationship between the beta and binomial distributions is well known. $$\frac{\pi^{\alpha - 1} (1 - \pi)^{\beta - 1}}{B(\alpha, \beta)} \leftrightarrow {{n}\choose{x}}\pi^{x} (1 - \pi)^{n-...
Lewkrr's user avatar
  • 530
0 votes
0 answers
81 views

Can I use a Prior with Simulated data?

I have a prior about some proportion that follows a Beta distribution. Unfortunately, I do not have (yet) observed data but I was offered a thousand simulated datasets. Each dataset comes from ...
Disou's user avatar
  • 91
0 votes
1 answer
700 views

Beta-Binomial Gibbs Sampler

I am self-studying Bayesian statistics from the book Computational Bayesian Statistics by Turkman et al, but I am stuck on Problem 6.3 from the book: Suppose we want to consider a Binomial (unknown $\...
user avatar
1 vote
1 answer
71 views

Am I wanting to perform a random walk?

I am trying to determine the best method to obtain a probability distribution that describes the likelihood of flipping only heads for a number of successive coin tosses with a coin that has an ...
noideaboutlogs's user avatar
0 votes
2 answers
342 views

Histogram of the MLE of the probability in binomial distribution and the plot of beta distributions

I have data with columns "y" and "n", which for this example can be "y" count of heads out of "n" coin flips. There are "i" rows ie "i" ...
spacexyz's user avatar
2 votes
1 answer
106 views

help computing the beta likelihood when we only observe the number of successes and failures (not the latent probability of success)

Imagine we have a biased coin that generates heads with unknown probability $\theta$ where $\theta$ is drawn from a beta distribution with known parameters $(\alpha, \beta)$. Next imagine that we flip ...
ted's user avatar
  • 741
0 votes
4 answers
857 views

Betabinomial (BB) regression in the gamlss package (R)

I'd be grateful for any help with beta-binomial (BB) regression in the gamlss package: predictions from the fitted model of "mu" values for each observation in my data seem reasonable. But ...
Fraser's user avatar
  • 1
1 vote
1 answer
191 views

Change shape parameters in a beta distribution based in each datapoint [closed]

I am new to Bayesian statistics and I have been trying to implement a Beta Binomial model from a PhD thesis in rjags. The thesis describes prior distribution for the variables but I am stuck in how to ...
Pedro Cruz's user avatar
2 votes
0 answers
512 views

Comparing performance of Quasi-binomial model and Beta-binomial model

I read some books in biostatistics about fitting binary date with Beta-Binomial regression model and Quasi-Binomial regression model. It proposes a setting: Setting: Assuming we have a sequence of ...
KPMGGMC's user avatar
  • 31
0 votes
1 answer
413 views

Marginal Distribution in Beta-Binomial Model with Overdispersion Parameters

Problem Setting: We assume there is a sequence of binomial trials of size $N_i$, $Y_i$ is the number of events of interest, $x_i$ is the predictor associated with trial $i$, and $\pi_i$ is the ...
StatsLearner's user avatar
2 votes
1 answer
183 views

Inconsistent posterior estimates in Beta-Binomial likelihood vs Binomial in Bayesian, multilevel models?

In this Google Colab, I've simulated Binomial count data and compared the performance of Binomial-likelihood and Beta-Binomial-likelihood models. Both models have the same Beta prior on theta, the ...
jbuddy_13's user avatar
  • 3,382
1 vote
1 answer
506 views

Beta-Binomial mixture vs Beta-Binomial multilevel model?

I first read about the Beta PDF in the context that it was conjugate to the Binomial distribution; a Beta prior with a Binomial likelihood returns a Beta posterior. So this sounds to me like a ...
jbuddy_13's user avatar
  • 3,382
1 vote
1 answer
214 views

Conditional beta posterior for uniform priors

I have three different random variables $\theta_1, \theta_2, \theta_3$ . These random variables are actually parameters of binomial likelihood Assume that I have prior distribution of $\theta_2 \sim ...
Dominic Joseph's user avatar
2 votes
1 answer
875 views

Calculate the posterior probability in two groups, Pr(p1>p2 | Data)?

Assume the prior distribution of p1 and p2: p1~beta(1,1) p2~beta(2,3) Assume the data in group1 and group2 follows bernouli distribution: y1~Binom(10,0.3) y2~Binom(10,0.6) How can I calculate the ...
kulala's user avatar
  • 21
5 votes
0 answers
236 views

Calculating ICC for a beta-binomial GLMM

I understand that ICC in binomial GLMMs with a logit link can be calculated via R, where the residual deviance is (pi ^ 2) / 3. However, this is assuming that the ...
cirxi's user avatar
  • 51
3 votes
2 answers
209 views

Beta distribution for uncertain binary trials

I have a larger problem but have presented what I believe is a minimal example. Imagine that you are trying to determine the true probability of a potentially-biased coin landing on heads, and want to ...
Jabba's user avatar
  • 41
1 vote
0 answers
25 views

Can I use posterior beta parameters from a previous experiment to use as priors for my current experiment?

I am doing a Bayesian comparison between two proportions, H0 being Proportion(Protein)> Proportion(Mixed). Here the Proportion is of no. of times a free-ranging dog(s) ate from a box(Protein, Mixed)...
Rohan Sarkar's user avatar
4 votes
0 answers
168 views

How does Pfizer justify it's Beta-Binomial model? [closed]

This is a bit of a hodge podge of different clinical trial related questions, but starting with some basics. It seems like they're defining vaccine efficacy differently depending on where you look. At ...
jntrcs's user avatar
  • 271
2 votes
1 answer
1k views

Beta-binomial vs updating a prior beta distribution

Bear with me, as I've just recently been learning about conjugate priors, prior and posterior distributions, and such material. My understanding of the beta-binomial distribution is that it basically ...
flbzer's user avatar
  • 325
2 votes
1 answer
86 views

How to estimate the effects of vaccines with Beta- Bernoulli inference

The original Tutorial comes from toward data science Given the following description: "Moderna: The vaccine is being tested in 30,000 people. Half received two doses of the vaccine, and half ...
Linear Algebra fans's user avatar
1 vote
1 answer
1k views

Beta-Binomial parameter estimation

The MLE or method of moments estimation of parameters of a beta-binomial distribution makes use of (c, y) -- total number and positive counts. However, if we only have one such pair, then $\frac{\...
Vihari Piratla's user avatar
0 votes
0 answers
940 views

How to estimate beta distribution parameters using a beta binomial with empirical bayes

I would like to estimate parameters for a beta distribution using a maximum likelihood approach in python (as mentioned here). I can do this for a beta: ...
Jonathan F's user avatar
0 votes
1 answer
369 views

Discrete Probability Density that is Monotonically Decreasing as K Increases and is 0 at K=N+1

My knowledge of distributions is limited, so I apologize beforehand for what may be a silly question. I am looking for a discrete probability distribution with domain $\{1,2,...,N\}$ that satisfies ...
phluffhead's user avatar