7.5 Negative Binomial Regression | A Guide on Data Analysis
Var ( Y i ) = E ( Y i ) = ฮผ i Var ( ๐ ๐ ) = ๐ธ ( ๐ ๐ ) = ๐ ๐ However, in many real-world datasets, the variance exceeds the meanโa phenomenon known as overdispersion. When overdispersion is present, the Poisson model underestimates the variance, leading to: Inflated test statistics (small p-values). Overconfident predictions. Poor model fit. To address overdispersion, Negative Binomial regression introduces an extra dispersion parameter ฮธ ๐ to allow variance to be greater than the mean: Var ( Y i ) = ฮผ i + ฮธ ฮผ 2 i Var ( ๐ ๐ ) = ๐ ๐ + ๐ ๐ ๐ 2 where: ฮผ i = exp ( x โฒ i ฮธ ) ๐ ๐ = exp โก ( ๐ฅ ๐ โฒ ๐ ) is the expected count. ฮธ ๐ is the dispersion parameter. When ฮธ โ 0 ๐ โ 0 , the NB model reduces to the Poisson model. Thus, Negative Binomial regression is a generalization of Poisson regression that accounts for overdispersion. We apply Negative Binomial regression to the bioChemists dataset to model the number of research articles (Num_Article) as a function of several
Var ( Y i ) = E ( Y i ) = ฮผ i Var ( ๐ ๐ ) = ๐ธ ( ๐ ๐ ) = ๐ ๐ However, in many real-world datasets, the variance exceeds the meanโa phenomenon known as overdispersion. When overdispersion is present, the Poisson model underestimates the variance, leading to: Inflated test statistics (small p-values). Overconfident predictions. Poor model fit. To address overdispersion, Negative Binomial regression introduces an extra dispersion parameter ฮธ ๐ to allow variance to be greater than the mean: Var ( Y i ) = ฮผ i + ฮธ ฮผ 2 i Var ( ๐ ๐ ) = ๐ ๐ + ๐ ๐ ๐ 2 where: ฮผ i = exp ( x โฒ i ฮธ ) ๐ ๐ = e
Explore this link on the map โ