Questions tagged [beta-distribution]

A two-parameter family of univariate distributions defined on the interval $[0,1]$.

The "Beta distribution" is a two-parameter family of continuous univariate distributions defined on the interval $[0,1]$. The probability density function of the distribution is

$$f_X(x;\alpha,\beta) = \frac{\Gamma(\alpha + \beta) }{\Gamma(\alpha) \Gamma(\beta) } x^{\alpha -1}(1-x)^{\beta-1}$$

with positive parameters $\alpha$ and $\beta$.

A common use of the distribution is in Bayesian statistics as a prior for the Binomial distribution. The Beta distribution is also used in beta regression, which can be useful when the dependent variable has a floor or ceiling effect or is bounded.

The distribution can be extended to represent random variables with support other than $[0,1]$, by using its four-parameter variant, that has the density function ($m$ = lower bound, $M$ = upper bound of the support)

$$f_X(x; \alpha, \beta, m, M) =\frac{\Gamma(\alpha + \beta) }{\Gamma(\alpha) \Gamma(\beta) } \frac{ (x-m)^{\alpha-1} (M-x)^{\beta-1} }{(M-m)^{\alpha+\beta-1}}\;$$

713 questions
580
votes
16 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…
110
votes
7 answers

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

How can I calculate the $\alpha$ and $\beta$ parameters for a Beta distribution if I know the mean and variance that I want the distribution to have? Examples of an R command to do this would be most helpful.
Dave Kincaid
  • 1,768
71
votes
4 answers

Regression for an outcome (ratio or fraction) between 0 and 1

I am thinking of building a model predicting a ratio $a/b$, where $a \le b$ and $a > 0$ and $b > 0$. So, the ratio would be between $0$ and $1$. I could use linear regression, although it doesn't naturally limit to 0..1. I have no reason to believe…
47
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,…
46
votes
5 answers

Does the beta distribution have a conjugate prior?

I know that the beta distribution is conjugate to the binomial. But what is the conjugate prior of the beta? Thank you.
Brash Equilibrium
  • 4,005
  • 1
  • 31
  • 53
44
votes
3 answers

Distribution of scalar products of two random unit vectors in $D$ dimensions

If $\mathbf{x}$ and $\mathbf{y}$ are two independent random unit vectors in $\mathbb{R}^D$ (uniformly distributed on a unit sphere), what is the distribution of their scalar product (dot product) $\mathbf x \cdot \mathbf y$ ? I guess as $D$ grows…
34
votes
4 answers

How to construct a multivariate Beta distribution?

What is a multidimensional generalization of the Beta distribution, in compliance with the following specification? I am not looking for the Dirichlet distribution. I am looking for a generalization where the distribution is defined on the hypercube…
34
votes
7 answers

Real-life examples of common distributions

I am a grad student developing an interest for statistics. I like the material over-all, but I sometimes have a hard time thinking about applications to real life. Specifically, my question is about commonly used statistical distributions (normal -…
31
votes
5 answers

Dealing with 0,1 values in a beta regression

I have some data in [0,1] which I would like to analyze with a beta regression. Of course something needs to be done to accommodate the 0,1 values. I dislike modifying data to fit a model. also I don't believe that zero and 1 inflation is a good…
30
votes
6 answers

Beta regression of proportion data including 1 and 0

I am trying to produce a model for which I have a response variable which is a proportion between 0 and 1, this includes quite a few 0s and 1s but also many values in between. I am thinking about attempting a beta regression. The package I have…
29
votes
1 answer

Jaynes' $A_p$ distribution

In Jaynes' book "Probability Theory: The Logic of Science" , Jaynes has a chapter (Ch 18) entitled "The $A_p$ distribution and rule of succession" in which he introduces the idea of $A_p$ distributions, which this passage helps illustrate: [...] To…
sheppa28
  • 1,738
24
votes
2 answers

Why exactly can't beta regression deal with 0s and 1s in the response variable?

Beta regression (i.e. GLM with beta distribution and usually the logit link function) is often recommended to deal with response aka dependent variable taking values between 0 and 1, such as fractions, ratios, or probabilities: Regression for an…
24
votes
3 answers

What is the relationship between the Beta distribution and the logistic regression model?

My question is: What is the mathematical relationship between the Beta distribution and the coefficients of the logistic regression model ? To illustrate: the logistic (sigmoid) function is given by $$f(x) = \frac{1}{1+\exp(-x)}$$ and it is used to…
tomka
  • 7,014
  • 8
  • 43
  • 91
23
votes
1 answer

Beta distribution fitting in Scipy

According to Wikipedia the beta probability distribution has two shape parameters: $\alpha$ and $\beta$. When I call scipy.stats.beta.fit(x) in Python, where x is a bunch of numbers in the range $[0,1]$, 4 values are returned. This strikes me as…
23
votes
1 answer

How to interpret the coefficients from a beta regression?

I have some data that is bounded between 0 and 1. I have used the betareg package in R to fit a regression model with the bounded data as the dependent variable. My question is: how do I interpret the coefficients from the regression?
1
2 3
…
47 48