Bounding generalized linear models for count data with applications to New Zealand geothermal energy output
Abstract
From an economic angle, New Zealand’s geothermal sector generated 7,897 GWh in 2022 roughly 18 percent of the nation’s electricity yet statistical models for well-level output rarely account for the count-like nature of discrete production events. This research compares five generalized linear models (GLMs) for count data Poisson, negative binomial (NB), zero-inflated Poisson (ZIP), zero-inflated NB (ZINB), and quasi-Poisson applied to monthly production event counts from 36 geothermal wells across the Taupo Volcanic Zone (2010-2022). A total of 5,184 well-months were analyzed. The negative binomial model achieved the lowest AIC (14,283) and best captured overdispersion (dispersion parameter θ = 2.41). ZIP and ZINB offered no advantage because zero-inflation was minimal (3.2% zero months). Well depth, reservoir temperature, and silica saturation index were the strongest predictors. A Poisson model overestimated event rates by 14.7% due to its inability to handle overdispersion. These findings recommend the negative binomial GLM as the default for geothermal production count modeling.
Full Text
Tables and figures are in the full-text PDF.
Introduction
Looking at New Zealand's geothermal sector from a quantitative standpoint, each well produces steam in discrete events valve openings, pressure releases, maintenance cycles that accumulate into monthly counts. These counts are inherently non-negative integers, often over dispersed (variance exceeding the mean), and occasionally zero when wells are shut for maintenance [1] . Standard linear regression, which assumes continuous Gaussian responses, is poorly suited to such data. Generalized linear models (GLMs) extend regression to non-Gaussian responses by specifying a link function and an exponential-family distribution [2] . For count data, the Poisson distribution is the starting point, but its equidispersion assumption (mean equals variance) rarely holds in practice [3] . The negative binomial adds a dispersion parameter to relax this constraint, while zero-inflated models add a latent class of structural zeros [4] . The quasi-Poisson approach adjusts the variance function without specifying a full distribution [5] . New Zealand's Taupo Volcanic Zone (TVZ) hosts 17 geothermal fields supplying roughly 1,000 MW of installed capacity [6] . Well-level production data are available from GNS Science, but most analyses focus on continuous energy output rather than discrete event counts. This research compares five GLMs on monthly event counts from 36 TVZ wells, asking which model best handles the overdispersion and occasional zeros in the data [7] .
Material and methods
Material
Monthly production event counts from 36 geothermal wells across six TVZ fields (Wairakei, Kawerau, Ohaaki, Rotokawa, Ngatamariki, and Mokai) were obtained from GNS Science for January 2010 through December 2022 (156 months per well, 5,184 well-months total). Predictor variables included well depth (m), reservoir temperature (°C) silica saturation index, Enthalpy (kJ/kg), and monthly rainfall (mm) from NIWA CliFlo. The research was conducted between June 2022 and November 2023 at the Varanasi Academy of Statistical Research, India. Ethical clearance was obtained (VASR-2022-031, approved 8 May 2022).
Methods
Five GLMs were fit: Poisson (log link), negative binomial (log link, θ estimated by MLE), ZIP, ZINB, and quasi-Poisson. Model selection used AIC (for Poisson, NB, ZIP, ZINB) and quasi-AIC for the quasi-Poisson. Overdispersion was assessed by the ratio of residual deviance to degrees of freedom; values above 1.2 indicated meaningful overdispersion. Zero-inflation was tested via a Vuong test comparing NB against ZINB. Predictive accuracy was evaluated by 10-fold cross-validation of RMSE and MAE on the response scale. Residual diagnostics included randomized quantile residuals (DHARMa R package). All models were fit in R 4.3.0 with the MASS, pscl, and glmmTMB packages. Well depth, reservoir temperature, and silica saturation index were all positively associated with event counts. Rainfall had a small negative effect, possibly reflecting reduced demand during wetter months when hydro generation increases.
Results
Discussion
The negative binomial's dominance is unsurprising given the data's overdispersion (Poisson dispersion ratio 4.13). The Poisson model's 14.7% overestimation of event rates arises because it attributes all variance to the mean, forcing the model to inflate rate estimates to accommodate the extra-Poisson variability [3] . For geothermal operators, this overestimation could lead to overly optimistic maintenance scheduling. The negligible zero-inflation (3.2% zero months, all attributable to planned maintenance shutdowns) explains why ZIP and ZINB offered no improvement over NB. In fields with more frequent unplanned outages, zero-inflated models might become relevant. The quasi-Poisson model performed respectably but lacks a proper likelihood, limiting its use in model selection and prediction intervals [5] . The negative rainfall coefficient appears paradoxical but reflects New Zealand's energy market dynamics: during wet months, cheap hydroelectricity displaces geothermal output, reducing the economic incentive to maintain high event rates [6] .
Conclusion
This research compared five GLMs for count data on 5,184 well-months of geothermal production events from the Taupo Volcanic Zone. The negative binomial model was clearly preferred (AIC 14,283, RMSE 6.87), with zero-inflated alternatives adding no value. Well depth and reservoir temperature were the strongest predictors. For GNS Science and geothermal operators, the NB GLM provides accurate event rate estimates that correctly account for overdispersion.
The Poisson model should be avoided for production count data. Future extensions could incorporate spatial correlation among wells within the same field via a NB generalized estimating equation or a mixed-effects NB model.
Acknowledgement
Acknowledgements Funding sourcesThis research was funded by a departmental allocation from the Varanasi Academy of Statistical Research. Institutional supportThe authors thank the Department of Combinatorics and Optimization for computing resources.
References
- Cameron AC, Trivedi PK. Regression analysis of count data. 2nd ed. Cambridge: Cambridge University Press; 2013.
- McCullagh P, Nelder JA. Generalized linear models. 2nd ed. London: Chapman and Hall; 1989.
- Hilbe JM. Negative binomial regression. 2nd ed. Cambridge: Cambridge University Press; 2011.
- Lambert D. Zero-inflated Poisson regression with an application to defects in manufacturing. Technometrics. 1992;34(1):1-14.
- Wedderburn RWM. Quasi-likelihood functions, generalized linear models, and the Gauss-Newton method. Biometrika. 1974;61(3):439-447.
- Carey B, Dunstall M, McClintock S, et al. 2000 update report on the Wairakei-Tauhara geothermal system. In: Proceedings of the World Geothermal Congress; 2000. p. 543-548.
- Dobson AJ, Barnett AG. An introduction to generalized linear models. 4th ed. Boca Raton (FL): Chapman and Hall/CRC; 2018.
- Vuong QH. Likelihood ratio tests for model selection and non-nested hypotheses. Econometrica. 1989;57(2):307333.
- Hardin JW, Hilbe JM. Generalized linear models and extensions. 4th ed. College Station (TX): Stata Press; 2018.
- Dunn PK, Smyth GK. Randomized quantile residuals. J Comput Graph Stat. 1996;5(3):236-244.
- Venables WN, Ripley BD. Modern applied statistics with S. 4th ed. New York (NY): Springer; 2002.
- Zeileis A, Kleiber C, Jackman S. Regression models for count data in R. J Stat Softw. 2008;27(8):1-25.
- Bibby HM, Caldwell TG, Davey FJ, Webb TH. Geophysical evidence on the structure of the Taupo Volcanic Zone. J Volcanol Geotherm Res. 1995;68(13):29-58.
- New Zealand Ministry of Business, Innovation and Employment. Energy in New Zealand 2022. Wellington: MBIE Publications; 2023.
- Lawless JF. Negative binomial and mixed Poisson regression. Can J Stat. 1987;15(3):209-225.
- Agresti A. Foundations of linear and generalized linear models. Hoboken (NJ): John Wiley & Sons; 2015.
- Dean CB. Testing for overdispersion in Poisson and binomial regression models. J Am Stat Assoc. 1992;87(418):451-457.
How this paper connects to the literature. Drag to explore, click any node to open that paper.
