22
Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash Prediction models By Srinivas Reddy Geedipally Research Assistant Zachry Department of Civil Engineering Texas A&M University 3136 TAMU College Station, TX 77843-3136 Tel. (979) 862-3446 Fax. (979) 845-6481 Email : [email protected] Dominique Lord 1 Assistant Professor Zachry Department of Civil Engineering Texas A&M University 3136 TAMU College Station, TX 77843-3136 Tel. (979) 458-3949 Fax. (979) 845-6481 Email : [email protected] November 14 th , 2007 4,496 words + 7 figures + 4 tables = 7,246 words 1 Corresponding Author

Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

  • Upload
    others

  • View
    6

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash Prediction models

By

Srinivas Reddy Geedipally

Research Assistant Zachry Department of Civil Engineering

Texas A&M University 3136 TAMU

College Station, TX 77843-3136 Tel. (979) 862-3446 Fax. (979) 845-6481

Email : [email protected]

Dominique Lord1

Assistant Professor Zachry Department of Civil Engineering

Texas A&M University 3136 TAMU

College Station, TX 77843-3136 Tel. (979) 458-3949 Fax. (979) 845-6481

Email : [email protected]

November 14th, 2007

4,496 words + 7 figures + 4 tables = 7,246 words

1 Corresponding Author

Page 2: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

ABSTRACT The most common probabilistic structure of the models used by transportation safety analysts for modeling motor vehicle crashes are the traditional Poisson and Poisson-gamma (or Negative Binomial) distributions. Since crash data have been shown to exhibit over-dispersion, Poisson-gamma models are usually preferred over Poisson regression models. Up until recently, the dispersion parameter of Poisson-gamma models has been assumed to be fixed, but recent research in highway safety has shown that the parameter can potentially be dependent upon the covariates, especially for flow-only models. Given the fact that the dispersion parameter is a key variable for computing confidence intervals, there is a reason to believe that a varying dispersion parameter could affect the computation of confidence intervals. The primary objective of this paper is to evaluate whether the varying dispersion parameter affects the computation of the confidence intervals for the gamma mean ( m ) and predicted response ( y ) on sites that have not been used for estimating the predictive model. To accomplish the objective of the study, predictive models with fixed and varying dispersion parameters were estimated using data collected in California at 537 3-legged rural unsignalized intersections. The study shows that models developed using a varying dispersion parameter usually produce smaller confidence intervals, hence more precise estimates, than models with a fixed dispersion parameter both for the gamma mean and the predicted response. Therefore, it is recommended to develop models with a varying dispersion whenever possible, especially if they are used for screening purposes.

Page 3: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

1

INTRODUCTION

Statistical models have been a very popular method for estimating the safety performance of various transportation elements (1-8). The most common probabilistic structure of the models used by transportation safety analysts for modeling motor vehicle crashes are the traditional Poisson and Poisson-gamma (or Negative Binomial) distributions. Since crash data have been shown to exhibit over-dispersion (see 9), meaning that the variance is greater than the mean, Poisson-gamma models are usually preferred over Poisson regression models. The Poisson-gamma distribution offers a simple way to accommodate the over-dispersion, especially since the final equation has a closed form and the mathematics to manipulate the relationship between the mean and the variance structures is relatively simple (10).

Up until a few years ago, the dispersion parameter of Poisson-gamma models has been assumed to be fixed, but recent research in highway safety has shown that the parameter can potentially be dependent upon the covariates (5, 11-16). This means that each observation has a unique dispersion parameter that varies as function of the covariates, such as traffic flow, segment length or lane width among others. In previous studies, the varying dispersion parameter has been shown to influence empirical Bayes (EB) estimates for disaggregated analyses (5, 14, 16); the dispersion parameter plays an important role in the weight factors assigned to the predicted and observed values of this estimate. Others have reported that the Poisson-gamma models with varying dispersion parameters provide better statistical fit (11, 15, 16). Given the fact that the dispersion parameter is a key variable for computing confidence intervals (17, 18), there is also a reason to believe that a varying dispersion parameter could affect the computation of confidence intervals compared to the fixed dispersion parameter.

The primary objective of this paper is to evaluate whether the varying dispersion parameter affects the computation of the confidence intervals for the gamma mean ( m ) and predicted response ( y ) on sites that have not been used for estimating the predictive model. Confidence intervals can be used to examine alternatives where the safety performance is used a screening criterion for selecting highway design alternatives and for identifying hazardous sites. Thus, selecting the appropriate modeling structure of Poisson-gamma models is critical to minimize errors during the selection process. To accomplish the objective of the study, predictive models with fixed and varying dispersion parameters were estimated using data collected in California at 537 3-legged rural unsignalized intersections. Three functional forms describing the variance function were tested (i.e., relationship between the dispersion parameter and the covariates of the model). The study will show that models developed using a varying dispersion parameter greatly influence the confidence intervals of the gamma mean and predicted response. More specifically, models with a varying dispersion parameter usually produce smaller confidence intervals, hence more precise estimates, than with models with a fixed dispersion parameter with an increase the traffic flows for the gamma mean, no matter which functional form is used.

Page 4: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

2

BACKGROUND Poisson-gamma models in highway safety applications have been shown to have the following probabilistic structure: the number of crashes at the i -th entity (highway segment, intersections, etc.) and t -th time period, itY , when conditional on its mean itμ , is assumed to be Poisson distributed and independent over all entities and time periods as:

)(~| ititit PoY μμ i = 1, 2, …, I and t = 1, 2, …, T (1) The mean of the Poisson is structured as:

( ; ) exp( )it itf X eμ β= (2) where,

(.)f is a function of the covariates (X); β is a vector of unknown coefficients; and,

ite is a the model error independent of all the covariates.

It is usually assumed that exp( ite ) is independent and gamma distributed with a mean equal to 1 and a variance 1 / φ for all i and t (with φ > 0). With this characteristic, it can be shown that itY , conditional on (.)f and φ , is distributed as a Poisson-gamma random variable with a mean (.)f and a variance )/(.)1(.)( φff + respectively. (Note: other variance functions exist for Poisson-gamma models, but they are not covered here since they are seldom used in highway safety studies. The reader is referred to Cameron and Trevidi (19) and Maher and Summersgill (20) for a description of alternative variance functions.) The probability density function (PDF) of the Poisson-gamma structure described above is given by the following equation:

( )1

; ,1

ityit it

it itit it

yf y

φφ μφφ μ

φ μ φ μ φ+ − ⎛ ⎞ ⎛ ⎞⎛ ⎞

= ⎜ ⎟ ⎜ ⎟⎜ ⎟− + +⎝ ⎠⎝ ⎠ ⎝ ⎠ (3)

Where, ity = response variable for observation i and time period t ; itμ = mean response for observation i and time period t ; and, φ = inverse dispersion parameter of the Poisson-gamma distribution.

The term φ is usually defined as the "inverse dispersion parameter" of the Poisson-gamma distribution. (Note: in the statistical and econometric literature, 1α φ= is usually defined as the dispersion parameter; in some published documents, the variable α has also been defined as the “over-dispersion parameter.”). This term has traditionally been assumed to be fixed and a unique value applied to the entire dataset in the study. As described above, the inverse dispersion parameter plays an important in safety analyses,

Page 5: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

3

including the computation of the weight factor for the EB method (10, 16) and the estimation of confidence intervals around the gamma mean and the predicted values of models applied to a different dataset than the ones employed in the estimation process (17, 18).

Hauer (11) first raised this issue and reported that the dispersion parameter of Poisson-gamma models should be dependent upon the length of a highway segment. On the other hand, Heydecker and Wu (12) attempted to estimate varying dispersion parameters as a function of sites’ covariates, such as AADT, vertical and horizontal curvatures among others. They asserted that the Poisson-gamma model with a varying dispersion parameter can better represent the nature of the crash dataset than the traditional Poisson-gamma model with a fixed dispersion parameter. The approach proposed by Heydecker and Wu (12) was also used by Lord et al. (13) for modeling the safety performance of freeways as a function of traffic flow characteristics. Miaou and Lord (5) have also noted that the dispersion parameter can be dependent upon the entering flows of crash-flow predictive models, suggesting that the variance function has an unobserved structure. Mitra and Washington (21) confirmed the results of Miaou and Lord (5) and reported that the variance became less structured when the mean function is better specified.

More recently, Miranda-Moreno et al. (14) reported that Poisson-gamma models with a varying dispersion parameter performed better than traditional models for identifying hazardous sites. El-Basyouny and Sayed (15), on the other hand, indicated that this type of model offered better a statistical fit, but did not improve the hazardous site identification process. Lord and Park (16) noted that Poisson-gamma models with a varying dispersion parameter could influence the EB estimates, and the magnitude is dependent upon the functional form. They also reported that the ranking process for identifying hazardous sites can be dependent upon the functional form used for estimating the models.

Poisson-gamma models with a varying dispersion parameter use the same PDF shown in equation (3) and estimate the same number of crashes for each observation, similar to those produced from the traditional Poisson-gamma model. However, instead of estimating a fixed dispersion parameter, these models use a varying dispersion parameter that can be estimated using the following expression (12, 22, 23):

( )titit Z δα ×= exp (4)

where,

itα = dispersion parameter for the site i

itZ = a vector of secondary covariates (are not necessarily the same as the

covariates used in estimating the mean function ˆ itμ ),

tδ = regression coefficients corresponding to covariates itZ .

Page 6: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

4

With equation (4), the model can be used for estimating a different dispersion parameter according to the sites’ attributes (i.e., covariates). If there are no significant secondary covariates for explaining the systematic dispersion structure, the dispersion parameters will only contain a fixed value (i.e., constant term), resulting in a traditional Poisson-gamma regression model.

Confidence intervals are important to assess the uncertainty associated point

estimates of predictive models. Wood (17) proposed a method for estimating the confidence intervals for the mean response ( μ ), for the gamma mean ( m ), and the predicted response ( y ) at a new site having similar characteristics as the sites used in the original dataset from which the model was developed. For Poisson-gamma models, the 95% confidence intervals for m and y are described in Table 1. In this table, η is the logarithm of the estimated mean response µ, while φ is the inverse dispersion parameter of the Poisson-gamma model, as described above. In this paper, the confidence intervals were estimated for the fixed dispersion parameter as well as for the varying dispersion parameter. The method proposed by Wood (17) can be used for a varying dispersion parameter. This has been confirmed by the author via personal communication.

Table 1: 95% Confidence Intervals for μ , m , y . (17) Parameter Intervals

μ ˆ1.96 ( )

ˆ1.96 ( )

ˆ ˆ, VarVar

ee

ηη

μ μ⎡ ⎤⎢ ⎥⎣ ⎦

m 2 22

2 22

ˆˆ ˆvar( )ˆˆ ˆmax 0, 1.96 var( ) ,

ˆˆ ˆvar( )ˆˆ ˆ1.96 var( )

μ η μμ μ ηφ

μ η μμ μ ηφ

⎡ ⎧ ⎫+⎪ ⎪⎢ − +⎨ ⎬⎢ ⎪ ⎪⎩ ⎭⎣

⎤++ + ⎥

⎥⎦

y 2 22 ˆˆ ˆ( )ˆˆ ˆ ˆ0, 19 ( ) VarVar μ η μμ μ η μ

φ

⎡ ⎤⎢ ⎥+⎢ ⎥+ + +⎢ ⎥⎢ ⎥⎢ ⎥⎣ ⎦⎣ ⎦

Note: 1

0 0ˆ( ) ( )Var η −′ ′= x XWX x x⎢ ⎥⎣ ⎦ denotes the largest integer less or equal than x

For computing any other % CI for y , 19 can be substituted with 1.0 α

α−

, where α =

1 – percentile in %; For instance, for estimating the upper boundary 90% CI, the upper

value becomes 1.0 0.1 9 3

0.1−

= = .

Page 7: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

5

METHODOLOGY In this analysis, the statistical models were estimated using the following functional form

1 20 1 2i i iF Fβ βμ β= for the mean function, where µ corresponds to the mean of observation i ;

1iF and 2iF are the entering flows from the major and minor approaches, respectively; and, sβ are the regression coefficients associated with the covariates of the model. Although traffic-flow only models could suffer from omitted variables bias, they are still the most popular type of models developed and used by transportation safety analysts (10, 24). They are often preferred over models that include several covariates because they can be easily re-calibrated when they are developed in one jurisdiction and applied to another (25, 26). In fact, this type of model will be the kind of model used for estimating the safety performance of rural and urban highways as well as for intersections in the forthcoming Highway Safety Manual (HSM) (27).

The functional form described in the previous paragraph is not the most adequate for describing the relationship between crashes and exposure (the mean function). As reported by Miaou and Lord (5), this form does not appropriately fit the data near the boundary conditions. Nonetheless, this form is still relevant for this study, as it is considered an established functional form in the highway safety literature. The most adequate functional form proposed by Miaou and Lord (5), a model with two distinct mean functions, cannot be estimated via a generalized linear modeling (GLM) framework, as it was done in this study.

The modeling procedure was accomplished using the following 4-stage process:

1. In the initial step, the model was estimated using a fixed dispersion parameter in

SAS (28). The negative binomial function in SAS was used in this step. It should be noted that the number of years for each site was used as an offset.

2. The confidence interval for gamma mean ( m ) and the prediction interval ( y ) for

a new observation with the same traffic flow characteristics was then calculated using the values in Table 1 (17). In the equation, η is the logarithm of the estimated mean (μ ) while φ is the inverse dispersion parameter estimated during the fitting process. ( )Var η is calculated using 1X I X−′ where 1I− represents the variance-covariance matrix and X is the matrix containing the observed values. The variance-covariance matrix was provided by SAS (28).

3. In the third step, two models were estimated using the dispersion parameter that

varies from site to site according to the entering flows. As documented in Miaou and Lord (5) and confirmed by Mitra and Washington (21), flow-only models will have a structured variance. Thus, structure of the variance can be captured using the same covariates as the ones used for mean function. Although the mean function remained the same, different functional forms were used to model the dispersion parameter:

Page 8: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

6

Model 1: Fixed dispersion parameter α

Model 2: 543 1 2

1i i i

iF F ββα βφ= =

Model 3: ( ) 4

3 1 21

i i ii

F F βα βφ= = +

The models were estimated using the PROC NLMIXED in SAS (28). As described above, the variance-covariance matrix was used for estimating the confidence intervals.

4. Similar to step 2, the confidence interval for the gamma mean ( m ) and the prediction interval ( y ) were computed for each variance function described in step 3.

DESCRIPTION OF DATA The statistical models were developed using data collected in California at 537 3-legged unsignalized intersections between 1992 and 2001. The data were obtained from the Federal Highway Administration’s (FHWA) Highway Safety Information System (HSIS), maintained by the University of North Carolina. The data included information on crash severity, entering flows as well as other variables not included in the analysis. The descriptive statistics are presented in Table 2. This table shows that entering flows for the major approach varied between 2,430 and 78,300 vehicles per day. For the minor approach, the entering flows varied between 10 and 23,110 vehicles per day.

Table 2. Summary Statistics for Input Data Maximum Minimum Average Standard

deviation Major Flow 78,300 2,430 16,454.12 13,445.57Minor Flow 23,111 10 441.568 1,322.93Crashes/site/year 13.9 0 1.10 1.73

MODELING RESULTS This section describes the modeling results for the three functional forms or models described above. Table 3 shows the output for the four models. As expected, the coefficients show that the mean predicted number of crashes follows a non-linear relationship with the entering traffic flows. This table indicates that the coefficients do not change significantly between Models 2 and 3. However, the differences between the model with a fixed dispersion parameter (Model 1) and the other two models are more noticeable. This disparity can be attributed by the differences in the values observed in the variance-covariance matrix (see Table 4).

Page 9: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

7

Table 3. Estimates of model coefficients (and standard errors) Parameter Estimates

Model 1 Model 2 Model 3 Mean Function

Intercept ( ( )0ln β )

-10.7190 (0.5113)1

-11.0644 (0.5194)

-11.0554 (0.5189)

1β 0.9703 (0.0530)

1.0051 (0.05346)

1.0069 (0.05303)

2β 0.2550 (0.0265)

0.2576 (0.02599)

0.2530 (0.02584)

Variance Function (dispersion parameter)

α 0.7337 (0.0560)

- -

Intercept ( ( )3ln β )

- 3.6122 (1.0067)

3.0948 (1.0384)

4β - -0.3562 (0.1050)

-0.3541 (0.1077)

5β - -0.1013 (0.04527)

-

6β - - - Deviance 602.46 584.92 589.87 AIC 3250.6 3237.4 3242.4 Log-likelihood -1621.3 -1612.7 -1616.2 1 Standard Error

Table 4 below shows the output of the variance-covariance matrix calculated

using a fixed dispersion parameter and the different functional forms describing the varying variance function. This table shows that, similar to the mean function, the values between the fixed and varying dispersion parameters are different.

Table 4. Variance-Covariance Matrix Output Parameters β0 β1 β2

Model 1

0β 0.26147 -0.02609 -0.002141 1β -0.02609 0.002812 -0.000146 2β -0.002141 -0.000146 0.0006999

Model 2

0β 0.2698 -0.02671 -0.00166 1β -0.02671 0.002858 -0.0002 2β -0.00166 -0.0002 0.000676

Model 3

0β 0.2692 -0.02653 -0.00206 1β -0.02653 0.002812 -0.00014 2β -0.00206 -0.00014 0.000668

Page 10: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

8

Figure 1 illustrates the frequency distribution of the varying dispersion parameter for Models 2 and 3. Recall that Model 1 provided a dispersion parameter equal to 0.7337. Figure 1a depicts the frequency of the varying dispersion parameter values for the functional form 54

3 1 2i i iF F ββα β= (each observation has its own dispersion parameter estimate). This figure shows that the highest frequency (i.e., the mode) occurred between the range of 0.50-0.70 and the average dispersion value was found to be 0.83, which is slightly higher than the value found for the fixed dispersion parameter. Figure 1b illustrates the frequency of the varying dispersion parameter values for the functional form ( ) 4

3 1 2i i iF F βα β= + . The highest frequency occurred between 0.70 and 0.90 with an average dispersion value equal to 0.80.

Frequency of dispersion parameter 'α '

020406080

100120140160180

0.3-0.5 0.5-0.7 0.7-0.9 0.9-1.1 1.1-1.3 1.3-1.5 1.5-1.7 1.7-1.9

dispersion parameter

Freq

uenc

y

a) Model 2: α = β3* F1

β4 * F2 β5 (Mean value=0.83)

Frequency of dispersion parameter 'α '

020406080

100120140160180

0.3-0.5 0.5-0.7 0.7-0.9 0.9-1.1 1.1-1.3 1.3-1.5 1.5-1.7 1.7-1.9

dispersion parameter

Freq

uenc

y

b) Model 3: α = β3* (F1+ F2)β4(Mean value=0.80)

Figure 1. Frequency distribution of the dispersion parameter

Page 11: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

9

Figure 2 shows the plot of the predicted dispersion parameters between Models 2 and 3. In this figure, the predicted dispersion parameters for each observation are compared with each other. This figure illustrates that Model 3 seems to underestimate the dispersion parameter compared to Model 2 for values above 1.

0

0.4

0.8

1.2

1.6

2

0 0.5 1 1.5 2

Dispersion parameter from Model 2

Dis

pers

ion

para

met

er fr

om M

odel

3

Figure 2. Relationship between Models 2 and 3 as a function

of the dispersion parameter.

Figure 3 below illustrates the relationship between the dispersion parameter and entering flows for Models 2 and 3. This figure shows that low entering flows for both approaches are associated with larger dispersion values compared to that of higher flows for every model. The difference in the predicted dispersion parameters between minor entering flows of F2=100 veh/day and F2=3,000 veh/day is about 30% when the entire range of entering flows for the major approaches for Model 2. On the other hand, for Model 3, the difference in predicted values between the entering flows for the minor approaches is almost zero for major flows above 30,000. Figure 3 also illustrates that the dispersion parameter is much more sensitive for intersections with low entering flows. This has also been reported by Lord and Park (16) using a different dataset.

Page 12: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

10

Varying dispersion parameter

00.20.40.60.8

11.21.4

4000

8600

1320

0

1780

0

2240

0

2700

0

3160

0

3620

0

4080

0

4540

0

5000

0

5460

0

5920

0

6380

0

6840

0

7300

0

7760

0

F1

α

For F2=3000For F2=1000For F2=100

a) Model 2: α = β3* F1

β4 * F2 β5

Varying dispersion parameter

00.20.40.60.8

11.21.4

4000

8600

1320

0

1780

0

2240

0

2700

0

3160

0

3620

0

4080

0

4540

0

5000

0

5460

0

5920

0

6380

0

6840

0

7300

0

7760

0

F1

α

For F2=3000For F2=1000For F2=100

b) Model 3: α = β3* (F1+ F2)β4

Figure 3. Relationship between the dispersion parameter and entering flows F1 and F2

CONFIDENCE INTERVALS This section describes the results of the confidence interval analysis between the model with a fixed dispersion parameter and the models with a varying dispersion parameter. The equations presented in Table 1 were used to find the 95% confidence interval for the gamma mean and predicted response for the Models 2 and 3. For this exercise, three values describing the minor entering flows were used: F2 = 3,000, 1,000, and 100 veh/day.

Figures 4 and 5 show the 95% confidence intervals for the gamma mean and predicted response for Model 2, respectively. Figure 4 illustrates that the difference in the width (i.e., the distance between the mean response and the upper confidence interval boundary) between the models with a fixed and a varying dispersion (w.r.t. fixed) for

Page 13: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

11

gamma mean ‘m’ varied between (i.e., the value between the fixed dispersion parameter less the value produced from the varying dispersion parameter):

• -4% and 32% for F2=3000 • -10% and 28% for F2=1000 • -23% and 20% for F2=100

Figure 5 shows that the difference in the width between the models with a fixed and

varying dispersion (w.r.t. fixed) for predicted response ‘y’ varied between:

• -0.6% and 28% for F2=3000 • -0.6% and 25% for F2=1000 • -40% and 16% for F2=100

Both these figures show that models with a varying dispersion parameter produce smaller confidence intervals for both the gamma mean and the predicted response. The upper boundary for the fixed dispersion parameter is almost always above the one estimated using the varying dispersion parameter model.

Page 14: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

12

Confidence interval for 'm', F2=3000

0

5

10

15

20

25

30

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

m

varying dispersionfixed dispersion

Confidence interval for 'm', F2=1000

0

5

10

15

20

25

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0F1 (Major AADT)

m

varying dispersionfixed dispersion

Confidence interval for 'm', F2=100

0

2

4

6

8

10

12

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

m

varying dispersionfixed dispersion

Figure 4. 95% Confidence Intervals for the Gamma Mean ( m ) (Model 2) [Note: The dotted lines represent the upper and lower confidence limits while the continuous lines show the mean values.]

Page 15: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

13

Confidence interval for 'y', F2=3000

0

10

20

30

40

50

60

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

y

varying dispersionfixed dispersion

Confidence interval for 'y', F2=1000

0

510

15

20

2530

35

40

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0F1 (Major AADT)

y

varying dispersionfixed dispersion

Confidence interval for 'y', F2=100

0

5

10

15

20

25

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

y

varying dispersionfixed dispersion

Figure 5. 95% Confidence Intervals for the Predicted Values ( y ) (Model 2)

Page 16: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

14

The 95% confidence intervals for the gamma mean and predicted response for Model 3 are illustrated in Figures 6 and 7, respectively. Figure 6 shows that the difference in the width between the models with a fixed and a varying dispersion (w.r.t fixed) for gamma mean ‘m’ varied between:

• -9% and 21% for F2=3000 • -16% and 21% for F2=1000 • -21% and 20% for F2=100

Figure 7 shows that the difference in the width between the models with a fixed and

varying dispersion (w.r.t fixed) for predicted response ‘y’ varied between:

• -21% and 20% for F2=3000 • -30% and 19% for F2=1000 • -40% and 17% for F2=100

Similar to the previous results, Figures 6 and 7 illustrates that models following the functional form for Model 3 with a fixed dispersion parameter produces larger confidence intervals than models with a varying dispersion parameter.

Page 17: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

15

Confidence interval for 'm', F2=3000

0

5

10

15

20

25

30

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

m

varying dispersionfixed dispersion

Confidence interval for 'm', F2=1000

0

5

10

15

20

25

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

m

varying dispersionfixed dispersion

Confidence interval for 'm', F2=100

0

2

4

6

8

10

12

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

m

varying dispersionfixed dispersion

Figure 6. 95% Confidence Intervals for the Gamma Mean ( m ) (Model 3)

Page 18: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

16

Confidence interval for 'y', F2=3000

0

10

20

30

40

50

60

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

y

varying dispersionfixed dispersion

Confidence interval for 'y', F2=1000

05

10

15202530

3540

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0F1 (Major AADT)

y

varying dispersionfixed dispersion

Confidence interval for 'y', F2=100

0

5

10

15

20

25

4000

1000

0

1600

0

2200

0

2800

0

3400

0

4000

0

4600

0

5200

0

5800

0

6400

0

7000

0

7600

0

F1 (Major AADT)

y

varying dispersionfixed dispersion

Figure 7. 95% Confidence Intervals for the Predicted Values ( y ) (Model 3)

Page 19: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

17

SUMMARY AND CONCLUSIONS The main objective of this study was to examine the effects of varying dispersion on the width of confidence intervals for the gamma mean of Poisson-gamma models and the predicted response. To accomplish the objective of this study, several flow-only predictive models were developed using 357 3-legged rural unsignalized intersections located in California. Three functional forms or model types were used to describe the relationship between the dispersion parameter and the covariates of the model. For this study, the following results were obtained from the analysis:

1. The dispersion parameter varies from one site to another and depends on the flows entering the intersection. The same conclusion was observed for the two models with a varying dispersion parameter. This support the findings documented in previous studies (5, 21).

2. Since the variance-covariance matrix depends on the dispersion parameter, var(η) is also dependent on the dispersion parameter. Thus, the mean accident rate calculated with the fixed dispersion and varying dispersion parameter yielded different results. The models with a varying dispersion parameter provided better statistical fit.

3. The confidence intervals for both the gamma mean and predicted response had larger values with the fixed dispersion than with the varying dispersion; in extreme cases, the difference could be as large as 40%.

4. Therefore, it is recommended to develop and use models with a varying dispersion (particularly for flow-only models), since they usually provide better statistical fit and more precise values. This is important if they are used for screening different highway design alternatives based on safety (e.g., 29) or identifying hazardous sites (14).

Some recommendations for further work on this topic are as follows:

1. This study was carried out using 3-legged unsignalized intersections. It is suggested to conduct further studies for other types of at-grade intersections and highway segments and compare the results with this study.

2. The independent variables considered only included entering flows at major and minor approaches of intersections. The authors recommend that further research considers other explanatory variables. As reported by Mitra and Washington (21), the varying dispersion parameter may not be needed when the functional form describing the mean function contains several covariates.

3. Although the functional form used in this study is the most commonly used for intersection models, further research should be conducted to examine the effects of a varying dispersion parameter using different functional forms, as suggested by Miaou and Lord (5) and Lord and Park (16).

Page 20: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

18

ACKNOWLEDGEMENTS The authors would like to thank Dr. Peter Y. Park from iTRANS Consulting Inc. for providing useful suggestions to improve this manuscript. REFERENCES 1. Abbess, C., D. Jarett, and C.C. Wright (1981) Accidents at Blackspots: estimating the

Effectiveness of Remedial Treatment, With Special Reference to the "Regression-to-Mean" Effect. Traffic Engineering and Control, Vol. 22, No. 10, pp. 535-542.

2. Kulmala, R. (1995) Safety at Rural Three- and Four-Arm Junctions: Development and Applications of Accident Prediction Models. VTT Publications 233, Technical Research Centre of Finland, Espoo.

3. Poch, M., and F.L. Mannering (1996) Negative Binomial Analysis of Intersection- Accident Frequency. Journal of Transportation Engineering, Vol. 122, No. 2, pp. 105-113.

4. Lord, D. (2000) The Prediction of Accidents on Digital Networks: Characteristics and Issues Related to the Application of Accident Prediction Models. Ph.D. Dissertation. Department of Civil Engineering, University of Toronto, Toronto, Ontario.

5. Miaou, S.-P., and D. Lord (2003) Modeling Traffic Crash-Flow Relationships for Intersections: Dispersion Parameter, Functional Form, and Bayes versus Empirical Bayes. Transportation Research Record 1840, pp. 31-40.

6. Oh, J., C. Lyon, S.P. Washington, B.N. Persaud, and J. Bared (2003) Validation of the FHWA Crash Models for Rural Intersections: Lessons Learned. Transportation Research Record 1840, pp. 41-49.

7. Miaou, S.-P., and J.J. Song (2005) Bayesian ranking of sites for engineering safety

improvements: Decision parameter, treatability concept, statistical criterion and spatial dependence. Accident Analysis & Prevention, Vol. 37, No. 4, pp. 699-720.

8. Caliendo, C., M. Guida, and A. Parisi (2007) A crash-prediction models for multilane

roads. Accident Analysis & Prevention, Vol. 39, No. 4, pp. 657-670. 9. Lord, D., S.P. Washington, and J.N. Ivan (2005) Poisson, Poisson-Gamma and Zero

Inflated Regression Models of Motor Vehicle Crashes: Balancing Statistical Fit and Theory. Accident Analysis & Prevention, Vol. 37, No. 1, pp. 35-46.

10. Hauer, E. (1997) Observational Before-After Studies in Road Safety: Estimating the

Effect of Highway and Traffic Engineering Measures on Road Safety. Elsevier Science Ltd, Oxford.

Page 21: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

19

11. Hauer, E (2001) Overdispersion in modelling accidents on road sections and in

Empirical Bayes estimation. Accident Analysis & Prevention, Vol. 33, No. 6, pp. 799-808.

12. Heydecker, B.G., J. Wu (2001) Identification of Sites for Road Accident Remedial

Work by Bayesien Statistical Methods: An Example of Uncertain Inference. Advances in Engineering Software, Vol. 32, pp. 859-869.

13. Lord, D., A. Manar, and A. Vizioli (2005) Modeling Crash-Flow-Density and Crash-

Flow-V/C Ratio for Rural and Urban Freeway Segments. Accident Analysis & Prevention. Vol. 37, No. 1, pp. 185-199.

14. Miranda-Moreno, L.F., Fu, L., Saccomanno, F.F., and Labbe, A (2005) Alternative

risk models for ranking locations for safety improvement. Transportation Research Record 1908, pp. 1-8.

15. El-Basyouny, K., and Sayed, T (2006) Comparison of Two Negative Binomial

Regression Techniques in Developing Accident Prediction Models, Presented at Transportation Research Board 85th Annual Meeting, Washington, D.C.

16. Lord, D., and P.Y-J. Park (2007) Investigating the effects of the fixed and varying

dispersion parameters of Poisson-gamma models on empirical Bayes estimates. Research Paper, Zachry Department of Civil Engineering, Texas A&M University, College Station, TX

17. Wood, G.R. (2005) Confidence and Prediction Intervals for Generalized Linear

Accident Models. Accident Analysis & Prevention, Vol. 37, No. 2, pp. 267-273. 18. Agrawal, R., and D. Lord (2006) Effects of Sample Size on the Goodness-of-fit

Statistic and Confidence Intervals of Crash Prediction Models Subjected to low Sample Mean Values. Transportation Research Record 1950, pp. 35-43.

19. Cameron, A.C., and P.K. Trivedi (1998) Regression Analysis of Count Data.

Cambridge University Press, Cambridge, U.K. 20. Maher M.J., and I. Summersgill (1996) A Comprehensive Methodology for the

Fitting Predictive Accident Models. Accident Analysis & Prevention, Vol. 28, No. 3, pp.281-296.

21. Mitra, S., and Washington, S. (2007) On the nature of over-dispersion in motor

vehicle crash prediction models. Accident Analysis & Prevention, Vol. 39, No. 3, pp. 459-468.

22. Smyth, G. K. (1989) Generalized linear models with varying dispersion. J.R. Statist.

Soc.B, 51, pp. 47-60.

Page 22: Effects of the Varying Dispersion Parameter of Poisson ......Effects of the Varying Dispersion Parameter of Poisson-gamma models on the estimation of Confidence Intervals of Crash

20

23. Hardin, J.J and Hilbe, J.M. (2001) Generalized Linear Models and Extensions. Stata

Press, College Station, Texas. 24. Persaud (2001) Persaud B.N., R. Retting, P.Garder and D. Lord (2001) Observational

before-after study of U.S. roundabout conversions using the empirical Bayes method. Transportation Research Record 1751, pp. 1-8.

25. Persaud, B.N., D. Lord, and J. Palminaso (2002) Issues of Calibration and

Transferability in Developing Accident Prediction Models for Urban Intersections. Transportation Research Record 1784, pp. 57-64.

26. Lord and Bonneson (2005) Lord, D., and J.A. Bonneson (2005) Calibration of

Predictive Models for Estimating the Safety of Ramp Design Configurations. Transportation Research Record 1908, pp. 88-95.

27. Hughes, W., K. Eccles, D. Harwood, I. Potts, and E. Hauer (2005) Development of a

Highway Safety Manual. Appendix C: Highway Safety Manual Prototype Chapter: Two-Lane Highways. NCHRP Web Document 62 (Project 17-18(4)). Washington, D.C. (http://onlinepubs.trb.org/onlinepubs/nchrp/nchrp_w62.pdf accessed October 2007)

28. SAS Institute Inc. (2002) Version 9 of the SAS System for Windows. Cary, NC. 29. Kononov, J., and B.K. Allery (2004) Explicit Consideration of Safety in

Transportation Planning and Project Scoping. Transportation Research Record 1897, pp. 116-125.