The negative binomial multiple changepoint algorithm for count data with allowance for over-dispersion

Authors

  • Shalyne Nyambura School of Mathematics & Physical Sciences (Department of Statistics & Actuarial Sciences), Jomo Kenyatta University of Agriculture & Technology, Nairobi, Kenya
  • Anthony Waititu School of Mathematics & Physical Sciences (Department of Statistics & Actuarial Sciences), Jomo Kenyatta University of Agriculture & Technology, Nairobi, Kenya
  • Antony Wanjoya School of Mathematics & Physical Sciences (Department of Statistics & Actuarial Sciences), Jomo Kenyatta University of Agriculture & Technology, Nairobi, Kenya
  • Herbert Imboga School of Mathematics & Physical Sciences (Department of Statistics & Actuarial Sciences), Jomo Kenyatta University of Agriculture & Technology, Nairobi, Kenya

DOI:

https://doi.org/10.4314/jagst.v25i4.14

Keywords:

Over-dispersion, Negative Binomial, Multiple changepoint, Binary Segmentation, Likelihood Ratio Test

Abstract

Over-dispersion is common in discrete data arising from random count processes. Several count data models have been discussed in available literature, but modeling overdispersed data is still problematic in changepoint analysis. This study presents a hybrid likelihood-based algorithm that detects and produces reliable estimates of multiple change points for equally dispersed and over-dispersed data series; hence its advantage over other discrete changepoint techniques. The Negative Binomial Multiple Change Point algorithm is tested using synthetic data from the negative binomial distribution. Changes in the underlying data distribution are detected by conducting a likelihood ratio test on several partitions of data obtained through stepwise recursive binary segmentation, and maximum likelihood estimates of changepoints obtained. Critical values of the likelihood ratio test are developed and used to check for statistical significance of estimated change points. The simulation study further assesses the performance of the NBMCPA under varying sample sizes and locations of true changepoints. Various performance metrics are used to assess how well the model correctly identifies change points. Estimation errors are obtained as absolute deviations of known change points from the change points estimated under the algorithm. Algorithm robustness is evaluated through error analysis and visualization techniques including kernel density estimation and computation of metrics such as change point location accuracy, precision, sensitivity and false positive rate. The results indicate that the hybrid algorithm consistently detects change points that are present and does not erroneously detect changes when there are none. Changepoint location accuracy and precision of the algorithm increase with sample size, with best results for medium and large samples. Further model accuracy and precision are highest for changes located in the middle of the dataset compared to changes located in the periphery. The algorithm is found to work well for samples sizes with a threshold of 500, and where there are no temporal dependencies in the data. However, researchers who wish to model larger datasets are encouraged to develop critical values for the likelihood ratio test that would accommodate sample sizes larger than n=500. The algorithm is applicable to several real-word scenarios and is recommended for modeling data arising from count processes, provided that the data assumptions on dispersion and temporal dependence are upheld.

Downloads

Published

14-07-2026

Issue

Section

19th JKUAT Scientific, Technological and Industrialization Conference

How to Cite

Shalyne Nyambura, Anthony Waititu, Antony Wanjoya, & Herbert Imboga. (2026). The negative binomial multiple changepoint algorithm for count data with allowance for over-dispersion. JOURNAL OF AGRICULTURE, SCIENCE AND TECHNOLOGY, 25(4), 228-271. https://doi.org/10.4314/jagst.v25i4.14

Similar Articles

1-10 of 153

You may also start an advanced similarity search for this article.