# Questions tagged [negative-binomial-distribution]

A discrete, univariate distribution modelling the number of ${\rm Bernoulli}(p)$ trial successes until a specified number of failures occur.

882 questions
Filter by
Sorted by
Tagged with
1 vote
33 views

1 vote
37 views

### Correct variable/data use for day of week predictors [duplicate]

Currently trying to model count data using ticket counts for each day of week as the dependent variable (y) and the corresponding day of the week integrated using OHE for 78 days. Assuming Poisson ...
• 31
1 vote
34 views

### Steps for improving NegBinom regression model

I am currently working with pandas and scikit-learn for Poisson Regression (now turned negbinom to address Overdispersion) to model count data of y (ticket count) with each day of the week serving as ...
• 31
111 views

### Dispersion parameter in negative binomial

I simulate data from a Gamma-Poisson model in R as follows. The mean and variance of the negative binomial distributed counts are $a b=10$ and $a b (1+b)=60$. ...
• 2,245
14 views

### Seasonal variation and long-term trend in Zero-Inflated Poisson / Negative Binomial (ZIP / ZINB)

I am new to time series analysis and I have read a few papers on zero-inflated poisson/negative binomial (ZIP/ZINB) model. I encountered these phrases: "control seasonal variation and long-term ...
• 11
1 vote
100 views

### Zero-truncated negative binomial model in glmmTMB predictions

I have a dataset of counts of a vocalisation per hour. I am interested in fitting a model to see if the count of the vocalisations of a given category per hour is effected by noise. My response ...
• 11
97 views

### choice between zero inflated poisson and zero inflated negative binomial

For count data with excessive number of zeros, there are two choices of models, zero inflated poisson and zero inflated negative binomial. Q1: How does one make appropriate choice between the two from ...
• 1,179
26 views

### Zero Inflated Negative Binomial: model equation and GLM equation

I've fitted a Zero-inflated negative Binomial (with an offset) to a count variable where there is overdispersion and a large frequency of 0's. I've done this with the ...
18 views

### Why does the negative binomial produce multiple threshold parameters in Stata but not in lme4?

Stata produces estimates for the thresholds of a negative binomial regression, as demonstrated here. However, the same does not happen with lme4 in ...
61 views

### Expected value and model expression for Zero Inflated Negative Binomial

I've been working around Zero Inflated models. The data that I have, however, shows overdispersion so I am using a Zero Infalted Negative Binomial to model counts considering exposure. The end goal ...
33 views

### Negative binomial fixed-effect

I have a dataset of tweets, and I want to find the relation between the tweet features (like the number of stop-words, numbers of a specific word appearing in a tweet) and the number of likes. To this ...
1 vote
27 views

### Negative Binomial Coefficient Interpretation?

I've fitted a negative binomial model with language (Tamil and French) as the IV and number of prolongations (count) as DV and number of words in each language as an offset (random effect). The ...
178 views

### Na/Nan/Inf Error in R While Running a Negative Binomial Model

After running this negative binomial model: ...
101 views

### Negative Binomial Regression Not Running in R [closed]

I’m having some issues with event count analysis in R, and I welcome any help I can get. I’ll walk through my issue as (to me) it seems rather bizarre. It starts off when I try to run a negative ...
17 views

### How to do generalized estimating equations with zero inflated poisson regression in R?

I did not find a package to do zero inflated Poisson/negative binomial regression with generalized estimating equations. Is there such a package available? How to do generalized estimating equations ...
• 1,179
32 views

### Calculating a non-contractual CLV with dataset aggregated on yearly basis in R

I am looking for a way to predict the individual customer lifetime value (CLV) in a dataset that contains data over three years, aggregated on a yearly basis. I have the number of purchases and the ...
• 21
44 views

### negative binomial glm: issues with model diagnostics when using offset term

I'm trying to model count data using a negative binomial glm with an offset in R and am having some issues with getting the model to fit properly when I use an offset term. Here is a reproducible ...
1 vote
116 views

### Very different results between R and SAS for negative binomial model

I am getting very different results for a negative binomial model between R and SAS. Can you please suggest as to why is this happening? I am not able to add a csv file used as the data. R script: <...
• 33
21 views

### Regression with a Count DV and Repeated Measures

I am investigating whether the likelihood of a Twitter account posting spam ("spam") is related to the age group of the user operating the account ("age_group": 1 to 4) and the ...
1 vote
14 views

### Substraction of predicted values: taking in to account prediction intervals

I'm trying to make a prediction of the number of annual flu hospitalizations. In order to do so I'm trying to subtract the predicted number of hospitalizations when there is no flu from the predicted ...
77 views

### How to derive the determinant of the variance of a negative multinomial distribution?

The probability mass function of the negative multinomial distribution is: \begin{align*} \mathbb{P}(\boldsymbol{\rm{X}}=\boldsymbol{\rm{x}}|\mathbf{p})=\frac{\Gamma\left(x_0+\sum_{i=1}^{m}x_{i}\right)...
• 31
1 vote
116 views

### Why marginal effect and average marginal effects are the same for NB regression?

Using the margins() function from the margins R package, I fitted a negative binomial model (...
• 207
1 vote
64 views

### Time series analysis with non-stationary count data (Poisson/Negative binomial models)

I am trying to model the relationship between real-world events and specific features present in tweets related to these events. Whereas my dependent variable (events) is a count variable and its time ...
• 21