随机参数广义线性模型的样本外预测与解释

Out-of-sample prediction and interpretation for random parameter generalized linear models

Accident Analysis & Prevention · 2025
被引 0
ABS 3

中文导读

提出一种基于统计理论的精确方法,用于随机参数广义线性模型的样本外预测,能直接计算预测方差和弹性,比模拟方法更准确且计算简单,适用于负二项等模型。

Abstract

Incorporating random parameters (RPs) into generalized linearized models (GLMs) - such as the negative binomial (NB) regression model used to predict crash frequencies - has been shown to improve model fit and better address issues such as unobserved heterogeneity. However, applying models with RPs to make predictions for observations outside the sample used to estimate the model is not straightforward. Recent studies have proposed various methods to incorporate RPs in out-of-sample predictions, but these tend to provide biased estimates or are computationally intensive to apply. This paper applies fundamental statistical theory to leverage properties of the underlying RP distributions incorporated into GLMs to provide more direct and accurate predictions, as well as directly estimate prediction variance for out-of-sample observations. Methods are provided for several common RP distributions - including the normal/Gaussian, lognormal, triangular, uniform, and gamma distributions - combined within log-link GLM framework. Additionally, closed-form equations for elasticities and marginal effects for the random parameters are provided. The proposed methods are tested using crash frequency prediction models developed using data from the Highway Safety Information System (HSIS). The results suggest that the proposed exact method provides more accurate predictions than the computational-intensive simulation-based approximation approaches while also being simple to apply. The method is suitable for the widespread use of RPs in research and in practical applications of GLMs.

计量经济学统计学交通工程计数数据建模