Statistics & probability

Beta regression calculator for proportions between zero and one

Fit continuous proportions inside the open unit interval using a beta distribution with a logit mean and constant precision.

Your numbers

Rows align with the response; intercept is explicit.

Calculated on your device. Your inputs aren’t sent to us.

Your result

Ready when you are

Enter your inputs and select Calculate.

Report an issue

Behind the numbers

How this calculation works

Fit continuous proportions inside the open unit interval using a beta distribution with a logit mean and constant precision. The model allows fitted means to change with predictors while retaining the natural zero-to-one scale. It reports mean coefficients, a shared precision estimate, query means and local likelihood diagnostics. Exact zeros and ones require a different observation model.

THE FORMULAμ_i=logistic(x_iβ), a_i=μ_iφ, b_i=(1−μ_i)φ; log L=Σ[logΓ(φ)−logΓ(a_i)−logΓ(b_i)+(a_i−1)log(y_i)+(b_i−1)log(1−y_i)]; Var(Y_i|x_i)=μ_i(1−μ_i)/(1+φ).

A worked example

The values .1,.2,.3,.4,.6,.7,.8,.9 occur at each of x=−1,0,1. The symmetry gives fitted mean .5 at every group, intercept and slope zero, and precision about 2.781114. At μ=.5, fitted conditional variance is .25/(1+2.781114), about .066118. Negative log likelihood is about −.794753; continuous densities can exceed one.

Good to know

20–200 continuous responses strictly in (0,1); 1–4 full-rank explicit design columns, ≤3 predictors with an intercept; design values within ±1,000 and ≤50 query rows. Constant precision only. Coefficient bounds ±20, log precision within (−8,12); boundary, nonconvergent or nonpositive-curvature fits rejected. No endpoint adjustment, binomial counts, varying precision, intervals or weights.

Continuous proportions have their own sampling story

A measured fractional coverage, mixture composition or percentage scaled to one can vary continuously between zero and one. A beta response model describes that distribution directly rather than treating every possible fraction as a binomial success rate.

If a value is actually seven successes out of ten trials, its denominator contains information that this beta likelihood does not use. Different denominators can imply different uncertainty even when observed proportions match. Preserve the underlying count information when it is available.

Beta regression calculator for proportions between zero and one worked exampleMean and shared beta precisionProportion (0 to 1)DensityMean 0.25Mean 0.5Mean 0.7501
Scroll across to see the full diagram.
The values .1,.2,.3,.4,.6,.7,.8,.9 occur at each of x=−1,0,1. The symmetry gives fitted mean .5 at every group, intercept and slope zero, and precision about 2.781114. At μ=.5, fitted conditional variance is .25/(1+2.781114), about .066118. Negative log likelihood is about −.794753; continuous densities can exceed one.

Compare this with the Beta distribution cumulative probability calculator. A fixed-shape beta CDF does not fit proportion regression coefficients.

Mean and precision work together

The two beta shapes are μφ and (1−μ)φ. Their sum φ controls concentration while μ sets the conditional mean, so the same precision can produce differently shaped densities at different means.

Conditional variance is μ(1−μ)/(1+φ). Even with constant precision, variance shrinks as the mean approaches an endpoint. The model therefore allows mean-dependent variability without fitting a separate variance parameter for every observation.

Preparing valid observations and predictors

Convert percentages such as 35 percent to .35 before entry. Every response must lie strictly between zero and one, and predictor rows must follow the same ordering. Include a column of ones for an intercept.

Do not replace exact endpoints by arbitrary small values. That transformation changes the data and can strongly affect the likelihood through log y and log(1−y). A process that can truly generate zero or one needs an endpoint-aware model and a clear explanation of those outcomes.

A symmetry check for the supplied fit

Each predictor group contains the same values paired around .5. There is no trend in the conditional mean, and the best mean coefficients are zero under the logit link. Query means therefore stay at .5 across all three groups.

Precision is still estimated rather than fixed by this symmetry. Its fitted value near 2.7811 implies conditional variance near .06612 at the common mean. A zero slope describes the mean pattern; it does not assert that individual observations are close to .5.

Odds of a mean are not binary outcome odds

Exponentiating a slope multiplies μ/(1−μ) for a one-unit predictor increase. This is the odds transform of a continuous response mean, with all other predictors held fixed.

It does not mean that each observation is a binary success event. Compare actual predicted proportions at representative query rows to communicate the effect on the measured quantity; the same coefficient can produce very different changes on the original scale.

Density likelihood and numerical stability

The fit combines log-gamma terms with logarithms of the observations and their complements. These are density contributions, so their values and the resulting likelihood depend on the response scale used.

A negative negative-log-likelihood is possible and is not an arithmetic error. The routine checks multiple finite starts, parameter bounds and local curvature. Extremely concentrated or nearly separated mean patterns can still be unresolved, and the page does not infer coefficient uncertainty from the fit alone.

Checking the constant-precision assumption

Inspect how residual spread varies with the predictors after accounting for the changing mean. A constant φ already implies a particular variance curve, so raw heteroscedasticity is not by itself evidence of failure.

A subgroup with consistently tighter or wider observations than this curve expects may need a varying-precision model. This page deliberately estimates one shared precision; it does not conceal unexplained subgroup differences behind additional automatic parameters.

A few questions, answered

Can I enter 0 or 100 percent?

No. Exact endpoints are outside this beta likelihood; choose a model that explicitly represents them.

Is precision the number of trials?

No. It is a distribution concentration parameter and is estimated from the continuous responses.

Why can NLL be negative?

A continuous density can exceed one, so a sum of log densities can be positive.

Are these ordinary logistic regression coefficients?

They use the same mean link, but the outcome likelihood is beta rather than Bernoulli or binomial.

Find your calculator

Start typing to explore the library.