Bayesian Negative Binomial Regression
Bayesian negative binomial regression for overdispersed counts, with posterior distributions for rate ratios and the dispersion.
베이즈 음이항 회귀 — 과대산포 빈도에 대해 비율비와 산포 모수의 사후분포를 구하는 베이즈 음이항 회귀입니다.
Runs Bayesian Generalized Linear Model with: family set to “negbin”.
기본 방법(Bayesian Generalized Linear Model)에 다음 설정을 고정해 실행합니다: family = negbin.
My counts vary far more than a Poisson model allows; how do I fit a Bayesian count model?
빈도의 변동이 포아송보다 훨씬 큰데, 베이즈 빈도 모형은 어떻게 적합하나요?
The negative binomial likelihood adds a dispersion parameter estimated with the coefficients. It is Bayesian Generalized Linear Model run with family = negbin, so the output carries the same diagnostics and report layout.
When to use Bayesian Negative Binomial Regression
- Counts with variance well above the mean.
- You want posterior intervals and the option of priors.
When to use something else
- Counts have many more zeros than the model predicts; consider a zero-inflated model.
- You need a different value for family; use Bayesian Generalized Linear Model directly.
What you still provide
- Data: a table (CSV or Excel) with an outcome variable and predictor (feature) columns.
Assumptions and requirements
The same as for Bayesian Generalized Linear Model:
- The chosen family and log/logit/identity link describe the outcome.
- Observations are independent given the predictors.
- Predictors enter linearly on the link scale.
- Chains have converged (R-hat < 1.01, no divergences).
What the analysis reports
The output of Bayesian Generalized Linear Model, with the preset shown in the settings:
- Posterior mean, SD and 95% credible interval per coefficient on the original scale
- Posterior probability that each coefficient is positive
- R-hat, effective sample size and divergence count
- Posterior predictive p-values for the mean, SD and share of zeros
- PSIS-LOO expected log predictive density with Pareto k
- Optional comparison of several predictor sets by PSIS-LOO (elpd differences with SE, stacking and pseudo-BMA weights)
- Optional prior sensitivity: change in posterior means when the coefficient priors are power-scaled
- Optional ordinal (cumulative logit, proportional odds) family with posterior cutpoints and cumulative odds ratios
- Optional multinomial (softmax, reference category) and Student-t robust regression families with the same sampler and diagnostics, posterior mode and maximum-likelihood columns
How this is validated
검증 근거
This variant runs the same engine as Bayesian Generalized Linear Model with the settings above fixed, so the evidence is that method’s: compared with independent computations. No separate checks of this preset are claimed. Read the base method’s validation record.
이 설정 묶음은 Bayesian Generalized Linear Model와 같은 엔진으로 돕니다. 검증 근거는 기본 방법의 것이며, 이 설정만 따로 검증했다고 주장하지 않습니다.
Other variants of Bayesian Generalized Linear Model
- Bayesian Ordinal Regression
- Bayesian Poisson Regression
- Bayesian Logistic Regression
- Bayesian Model Comparison by LOO and Stacking
- Bayesian GLM with Prior Sensitivity Check
- Bayesian gamma regression
- Bayesian inverse Gaussian regression
- Bayesian GLM with Jeffreys prior
- Bayesian GLM with flat prior
- Bayesian cloglog regression
- Bayesian beta regression
- Bayesian fractional response regression
Run this variant
- Data you need
- a table (CSV or Excel) with an outcome variable and predictor (feature) columns
- Price
- Same as Bayesian Generalized Linear Model: 600 credits for one analysis up to 10,000 rows (complexity level 4); larger or wider data costs more. Optional methodologist review: 2400 credits.
- Checking
- Compared with independent computations, as recorded for Bayesian Generalized Linear Model (see its checks)
- Before you pay
- A free pre-analysis diagnosis checks your data and gives an exact quote; nothing is deducted until you approve it.