Next Article in Journal
Volatility Modeling and Dependence Structure of ESG and Conventional Investments
Next Article in Special Issue
Special Issue “Risks: Feature Papers 2021”
Previous Article in Journal
Explaining Aggregated Recovery Rates
Previous Article in Special Issue
ESG-Washing in the Mutual Funds Industry? From Information Asymmetry to Regulation
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Interpolation of Quantile Regression to Estimate Driver’s Risk of Traffic Accident Based on Excess Speed

by
Albert Pitarque
and
Montserrat Guillen
*,†,‡
Department Econometrics, Riskcenter-IREA, Universitat de Barcelona, 08034 Barcelona, Spain
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Current address: Avinguda Diagonal, 690, 08034 Barcelona, Spain.
Risks 2022, 10(1), 19; https://doi.org/10.3390/risks10010019
Submission received: 7 December 2021 / Revised: 7 January 2022 / Accepted: 10 January 2022 / Published: 12 January 2022
(This article belongs to the Special Issue Risks: Feature Papers 2021)

Abstract

:
Quantile regression provides a way to estimate a driver’s risk of a traffic accident by means of predicting the percentile of observed distance driven above the legal speed limits over a one year time interval, conditional on some given characteristics such as total distance driven, age, gender, percent of urban zone driving and night time driving. This study proposes an approximation of quantile regression coefficients by interpolating only a few quantile levels, which can be chosen carefully from the unconditional empirical distribution function of the response. Choosing the levels before interpolation improves accuracy. This approximation method is convenient for real-time implementation of risky driving identification and provides a fast approximate calculation of a risk score. We illustrate our results with data on 9614 drivers observed over one year.

1. Introduction

Our motivation for this paper is to adjust the risk level of drivers using car insurance telematics data. We focus on one of the most widely accepted indicators of dangerous driving, which is total yearly distance driven above posted speed limits (Aarts and Van Schagen 2006; Elliott et al. 2003). If all drivers had identical characteristics, direct one-to-one comparisons could be sufficient to identify dangerous individuals, but since drivers are not completely identical and they operate in a variety of circumstances, additional covariate information needs to be considered when assessing their risk. For example, among other things, someone driving 10,000 km per year has a higher risk of exceeding speed limits, and thus of having an accident during one year, than someone driving only occasionally. Our premise is that we should take into consideration explanatory variables when addressing risk scores.
Quantile regression (Koenker and Bassett 1978) is a suitable method for finding conditional risk scores and therefore it is a good instrument for our purposes (Pérez-Marín et al. 2019; Guillen et al. 2020). However, estimating quantile regressions is computationally demanding in large databases when many covariates are considered (Chen and Zhou 2020). A driver’s risk score is defined as the quantile level at which the estimated conditional quantile is equal to the observed response. In order to fit a risk score to each driver, many quantile regressions need to be estimated. In real-time applications with many incoming new data, updating, re-estimation, and performing repetition of quantile regression estimation is way too slow. Some algorithms that suggest to obtain parameter estimates with one-step approximations may not be reliable for extreme quantile levels (Chernozhukov et al. 2020).
Here we develop a simple approximation method based on interpolation that is able to provide a fast approximation to quantile estimation of neighbouring levels and ultimately to furnish a fast estimate of the risk score for each individual in our pool, given their current observed exogenous characteristics. In our case study, this method allows the identification of drivers with a high risk of exceeding speed limits conditional on their covariate information.
This study proposes an approximation of quantile regression coefficients by interpolating only a few quantile levels, which can be chosen carefully from the unconditional empirical distribution function of the response. Choosing the levels before interpolation improves accuracy. This approximation method is convenient for real-time implementation of risky driving identification and provides a fast approximate calculation of a risk score.
Since we know that driving speed is associated with accident risk, our method is a dynamic instrument that is suitable for establishing alerts and warnings to take precautions. It can also be applied to other continuous responses, like average speed or night-time driving, and in other contexts. Risk scores are needed in many fields, ranging from industrial production to household protection, where they play a major role for future innovations; however, the area of traffic accident analysis provides an excellent landscape for our illustration because big databases are widely available.
During the last few decades, telematics data have become increasingly popular because motor insurance companies have been interested in personalizing prices for their customers. Data are collected through on-board devices or via mobile phones. Different methods are used to adjust insurance prices. Pay-as-you-drive (PAYD) is a method that has already been implemented in the market in many countries around the world. PAYD means that insurance cost is based on distance driven. Pay-how-you-drive (PHYD) also considers available information on driving style. In PHYD, the price is based on relevant information about driving patterns and may increase when dangerous indicators arise (Guillen et al. 2021; Sun et al. 2021). Another insurance pricing method that is still under development is known as manage-how-you-drive (MHYD). In this case, there should be some kind of feedback to the customer almost in real time to provide information on driving issues that can be used to improve safety and, ultimately, to reduce the cost of insurance. Insurance companies claim that customers are not yet prepared to accept MHYD systems, but the truth is that implementation of MHYD systems would require fast algorithms that are able to forward knowledge from data in a dynamic way that is valuable both for the customer and for the company.
In our case study, we model the number of kilometres driven above the posted speed limit over one year as a function of driving characteristics and we also include the driver’s personal information, such as gender and age. We consider that our response variable of interest is strongly linked with the risk of having a traffic accident. Using quantile regression, each driver was scored as follows: firstly, for each quantile level (percentile) from 1% to 99%, we compare the fitted conditional quantile with the driver’s observed response value. Then we calculate the driver’s risk score as the percentile level that minimizes the difference between the estimated conditional quantile and observed value. A score close to 100% indicates that that the driver has a high risk. This is so because the number of kilometres driven above the legal speed limit is similar to a high conditional quantile. Therefore, the driver is much more risky than other drivers with similar characteristics. Conversely, a score that is close to 0% indicates that the driver’s observed value corresponds to a low conditional quantile. That means that this driver is safer than other drivers with similar covariate information.
The main computational burden when fitting risk scores arises in the first step, because many quantile regressions need to be fitted. This step is necessary to adjust quantiles at all levels and then to find the level that provides the minimum difference between the estimated conditional quantile and the observed response. If implemented in databases with a large number of cases and to models with a lot of variables, fitting percentiles through quantiles regressions requires computational time. To solve this, we propose fitting only a reduced number of quantile regressions and to approximate all other quantile regression parameter estimates by interpolation. We determine the minimum number of regressions to be fitted in order to obtain accurate predictions of the risk scores by minimizing mean squared error. Obtaining fast approximations is crucial to ensuring the applicability in dynamic schemes, as it will lead to improvements in terms of computational time. In this paper, we study the performance of our approximation depending on the number of adjusted quantile regressions in a real case study. We conclude that for extreme values, the number of adjusted regressions has a high impact on the accuracy of the predictions. In general, as the number of fitted quantile regressions increases, the risk score fit is more accurate, but more time-demanding.
The paper proceeds as follows. First, we present a literature review of papers that study risks of traffic accidents from different points of view. We then present quantile regression and the interpolation method used to estimate quantile parameters at intermediate levels. After the methodology, we present the data used in our case study section and we discuss the results when fitting quantile regression models and determining the minimum number of regressions required to produce risk scores. The last section concludes the paper.

2. Literature Review

Smith (2016) studied the relationship between having an accident and driving patterns. He also considered the risk taken while driving and, in particular, when the driver is fatigued. He conducted a qualitative study in a survey in the UK. A similar study was performed by Singh (2017), who used information about multiple traffic accidents in India to understand which scenarios correlate with a higher risk of having a road accident. He considered the weather and location of the crash and discussed solutions to lower the number of accidents. Guillen et al. (2020) studied the use of reference charts to estimate the percentiles of distance driven at high speed. Reference charts are a standard approach to study the weight and height of children, and the same principles are used in telematics data. The authors fitted quantile regression models at different quantiles using covariates that reflect driving patterns. They found that total distance driven, gender and percent of urban driving are important factors explaining distance driven above speed limits. They also found that the relationship between total distance driven and total distance driven above the legal speed limit is relevant to produce a reference chart and a better fit of the percentiles. Sun et al. (2020, 2021) adjusted ordinary least squares and binary logistic regressions to calculate a driving risk score for different drivers using internet of vehicles (IoV) data. Usage-based insurance is a new methodology based on IoV that is being used to customize insurance prices. However, their method requires a good identification of risky drivers. They found that revolutions per minute, average speed, braking events and accelerations are important variables for identifying risky drivers, while other GPS related variables do not provide a lot of information. Pérez-Marín et al. (2019) also studied the risk of speedy driving adjusting quantile regressions at different quantile levels. They used information related to driving patterns as in (Guillen et al. 2020), but they focused on the differences in the effects of explanatory variables at different quantile levels. They concluded that total distance driven, night driving, urban driving, gender and age are important factors in the risk of speedy driving and proposed quantile regression as a methodology to be considered when calculating motor insurance rates. Guillen et al. (2019) studied a sample in which there was a high number of drivers with zero accident claims, so they needed to adjust a zero-inflated Poisson model when modelling the number of accidents. They proposed a methodology to improve the design of insurance. They analysed all reported claims and only those where the driver was at fault. When all claims were analysed, gender, driving experience, vehicle age, power of the vehicle, distance driven at high speed and urban driving significantly affected the risk of accident. But when only accidents at fault were analysed, neither gender nor engine power had a significant effect. The authors highlighted the importance of total distance driven over one year when analyzing the risk of accidents and discussed the role of distance in PAYD insurance schemes.
Many recent contributions advocate using techniques from machine learning, deep learning and pattern recognition to the analysis of telematics data (Weidner et al. 2016; Gao and Wüthrich 2018, 2019; Gao et al. 2018). These papers aim at classifying drivers by means of raw telematics information. Boucher and Turcotte (2020) study the relationship between claim frequency and distance driven through different models by observing smooth functions. They show that distance driven and expected claim frequency seem to be approximately linearly related and argue that this is the basis to construct pay-as-you-drive (PAYD) insurance schemes. More recently, Henckaerts (2021) emphasizes the interest of dynamic pricing with telematics collected driving behavior data.
A relatively high number of papers relate traffic accident risk not to driving patterns but to the driver’s specific health conditions, which may influence driving style and driving issues. Gohardehi et al. (2018) reviewed papers that studied toxoplasmosis as a potential influence on the risk of having a traffic accident. In a meta-analysis, they use conclusions from studies carried out in different countries to evaluate whether this disease could be a significant risk factor. Huppert et al. (2019) studied the risk of road accident in drivers that had been diagnosed in the previous five years with a disease that can cause vertigo. Drivers were not diagnosed when they took out insurance. Matsuoka et al. (2019) studied whether there is a positive correlation between the number of traffic accidents and the number of epileptic drivers that have sleep-related problems. They considered driver characteristics and the type of epilepsy from which the drivers suffered.
Closer to the aim of this paper, other studies have examined which factors affect the risk of crash by adjusting mathematical models. Mao et al. (2019) used a multinomial logistic regression to identify which factors affect the risk of having a traffic accident in China. They considered four different types of crash depending on the collision characteristics and separated the studied factors into six categories. Rovšek et al. (2017) identified accident risk factors via a Classification and Regression Tree (CART) using data collected from Slovenia that provided information on the conditions at the time the accident happened. Lu et al. (2016) studied agents that affect the severity of traffic accidents with an ordered logit model. Their data contained information about different traffic accidents that occurred in different Shanghai tunnels and included characteristics of the driver, time, weather conditions and site features, but again data were about information on the circumstances of the accident, not driving habits. Eling and Kraft (2020) summarize 52 contributions covering a variety of telematics empirical analyses. The choice of variables seems to be centered on two sources: telematics driving behavior data and policy information including insured characteristics and claiming history. Models usually rely on variables related to vehicle use like distance driven and covariates such as age, gender, driving zone and policy information. A more recent example of a similar choice of variables is (Henckaerts et al. 2021).
With the exception of (Guillen et al. 2020) none of the previous authors used a quantile regression approach to score the driver’s accident risk. As such, the papers included in this review did not focus on the problems posed by iterated, intensive data analysis, like the one we address here.

3. Proposed Methodology

For a continuous random variable Y, quantile τ ( τ ( 0 , 1 ) ) is defined as:
Q τ ( Y ) = i n f { y R + : F Y ( y ) > τ } ,
where F Y ( y ) corresponds to the cumulative distribution function of Y and τ is known as the quantile level. In other words, quantile τ is the value that is only exceeded by ( 1 τ ) proportion of observations of Y.
Koenker and Bassett (1978) proposed an extension of linear regression called quantile regression. Quantile regression adjusts the effects of explanatory variables for the τ -th quantile of a response variable. Consider a data set with n observations, where Y i represents the response variable for the i-th individual observation ( i = 1 , , n ) and X j i represents the value of explanatory variable j ( k = 1 k ) for the i-th individual. A quantile regression model at level τ is specified as follows:
Y i = β 0 τ + β 1 τ X 1 i + β 2 τ X 2 i + + β k τ X k i + ϵ i τ ,
where Q τ ( ϵ i τ ) = 0 and β τ is the vector of unknown parameters, and β 0 τ + β 1 τ X 1 i + β 2 τ X 2 i + + β k τ X k i is the linear predictor, which is denoted by X i β τ .
Quantile regression models are particularly useful when the response variable is not symmetrical. For example, at τ = 0.5 the median of the response, which is robust to outliers, is modelled. This is different to modelling the mean, which is the traditional approach in classical linear regression. Quantile regression can also be specified as the conditional τ -th quantile of Y i equal to the linear combination of the covariates with the equation:
Q τ ( Y i | X i β τ ) = β 0 τ + β 1 τ X 1 i + β 2 τ X 2 i + + β k τ X k i .
Koenker and Bassett (1982) and Koenker and Machado (1999) presented the optimization problem to fit a quantile regression model:
β τ ^ = arg min β τ i = 1 n ρ q τ ( Y i X i β τ ) ,
where ρ q τ represents a score function of the quantile that equals τ ( Y i X i β τ ) when ( Y i X i β τ ) 0 and ( τ 1 ) ( Y i X i β τ ) , otherwise.

3.1. Interpolating the Parameter Estimates

Suppose that after fitting quantile regressions (3) for levels τ = 0.01 , , 0.99 , we want to identify each observation i with the corresponding τ level that provides an estimated quantile close to the observed response value. To adjust the quantile value we will solve the following optimization problem:
τ ^ i = arg min τ ( Y i X i β τ ) 2 ,
where β τ will be replaced by their corresponding parameter estimates β τ ^ . The objective function represents the difference between the observed value of the response variable and the fitted τ -quantile value of the response given characteristics of individual i. The ideal scenario to solve this problem is to have a large set of adjusted quantile regressions, ideally as many τ as possible, in order to find the optimal τ . Note that the optimization problem may turn into numerical instabilities because for any τ a < τ b it is not necessarily true that X i β τ a ^ < X i β τ b ^ , so there may be local minima. In that case we would choose the smallest τ ^ i providing the minimum loss.
Having a large number of β τ ^ is non-viable when databases have a massive number of observations and when we are trying to fit a quantile regression model with a large number of variables. In this paper we want to show that only a few quantile regressions are required to obtain an accurate estimation of τ ^ i , i = 1 , , n without modelling for hundreds of quantile levels, and thus saving computing time.
We first fit 99 regressions, one for each τ corresponding to percentiles 1 to 99, and then we select m < 99 regressions that have equidistant τ levels. When approximating β ^ τ 0 + c , we select two consecutive values of β τ ^ considering τ 0 which represents the lower selected quantile level, τ 1 which represents the upper selected quantile level and c ( 0 , ( τ 1 τ 0 ) ) . For example, for m = 6 , τ { 0.01 , 0.2 , 0.4 , 0.6 , 0.8 , 0.99 } . To interpolate the values of β τ ^ for τ { 0.01 , 0.2 , 0.4 , 0.6 , 0.8 , 0.99 } , we use the formula:
β ^ τ 0 + c = β τ 0 + c ( β τ 1 β τ 0 ) τ 1 τ 0 .
To compare the performance of the approximating method, we calculate the Mean Square Error (MSE) as follows:
M S E = i = 1 n ( τ ^ i 99 τ ^ i m ) 2 n ,
where n is the number of observations in the data set, τ ^ i 99 is the fitted score for the i-th observation when adjusting 99 quantile regressions and τ ^ i m represents the adjusted τ for the i-th observation adjusting only m regressions and interpolating the coefficients for the other percentiles.

3.2. Adapted Choice of Quantile Levels before the Approximation

Using the methodology proposed to interpolate quantile regression coefficients for those levels that were not estimated, in the previous subsection we propose choosing m regressions with τ values that are equidistant, allowing us to fit the same number of regressions in those parts of the distribution of the response variable that are flatter than others. This can be visualized in an example quantile function provided in Figure 1. Figure 1 shows that for the lower quantile levels the response (here presented in logarithm) rises rapidly, then the increase is constant and then for higher quantile levels the increase is once again rapid.
Considering that when we work with quantile regression we establish a linear relationship between the quantiles and the effects of covariates, it turns out that determining which zones of the quantile function require more attention is crucial to improve on the accuracy of the approximation. Figure 1 shows that we should adjust more quantile regressions for lower levels where the distribution changes more rapidly than in the middle levels. Therefore, fewer fits are needed for the central part of the distribution because the increase is linear in that part of the domain. Increasing the number of regressions adjusted at some part of the distribution, which is equivalent to deciding adequate τ levels or changing the distance between the concrete τ values, may considerably improve the accuracy of the results.

4. Data and Results

Telematics data have become increasingly relevant in recent years. In the field of motor insurance, they are used to provide personalized prices to customers depending on their driving patterns. In this paper we use a database containing information about 9614 drivers aged between 18 and 35 years. The information on each driver includes total distance driven, time of the day, type of road and distance driven above the legal speed limit over one year. It also contains information about the driver’s personal characteristics such as age and gender. All information contained in the database was collected during 2010. The variables in the dataset are defined in Table 1.
In Table 2 we present a descriptive statistical analysis. The sample contains 4873 males and 4741 females. As usual in this context, we consider total distance driven on a logarithmic scale. Our response variable is the number of kilometres driven above the speed limit. This variable is positively correlated with accident risk and it is quite asymmetrical. This is the reason why quantile regression is particularly suited to our analysis.
Other studies have used this database. Ayuso et al. (2016) compared driving patterns between males and females and Guillen et al. (2019) proposed a new methodology to determine the insurance price. Boucher et al. (2017) analysed the effects of distance driven and the exposure time on the risk of having a traffic accident using generalized additive models (GAM). Pitarque et al. (2019) used quantile regression to analyse the risk of traffic accident and Pérez-Marín et al. (2019) analysed speedy driving.
Our first objective is to produce quantile regression models for the total number of kilometres driven above the speed limit at percentile levels 1 to 99. This is the first step towards fitting conditional percentiles and identifying which observations correspond to risky drivers given their driving patterns. We work with the logarithm of the response variable following the work of previous authors.
Figure 2 presents each driver in the data set by representing drivers’ risk score ( τ ^ i 99 ) obtained with 99 regressions versus their fitted score τ ^ i m , where scores were calculated with the interpolation method (6) with an increasing number (m) of initially adjusted quantile models with equidistant τ levels.
In Figure 2, the horizontal axis represents the value of τ risk scores obtained by adjusting m regressions and the vertical axis represents the fitted values obtained by adjusting 99 regressions. We can observe that when adjusting only six quantile regression models (left panel) before the linear interpolation of coefficients, we encounter a significant problem when fitting lower percentile values. In those cases, the approximated value is larger than it should be. There are also some differences in the estimation of the larger quantiles but at a lower magnitude. Adjusting 11 quantile regressions (middle panel), fitted values for τ ( 0.4 , 0.85 ) are more accurate than before and the problem of fitting extreme values of τ decreases especially for large values. When adjusting 21 quantile regressions (right panel), we observe that in general all adjusted values are more accurate than the previous two panels, but we still have some discrepancies for lower quantiles. To determine how many regressions are necessary to obtain a good fit we present Figure 3, which shows the behaviour of the M S E defined in (7) as a function of the initial number of fitted quantile regression before the approximation (see also Table 3). Table 3 shows that mean squared error can be used as a criterion to optimize the choice of quantiles levels. Table 3 also displays root mean square error ( R o o t . M S E ) and mean absolute error ( M A E ).
In Table 3, M S E values decrease when the number of initially adjusted regressions increases and then they stabilize around m = 9 . For m = 11 there are still some problems for lower risk scores and in general there are no major improvements in the results for m > 11 .
Depending on which m quantile levels were selected for modelling, increases or decreases in M S E are produced. To study the possible causes of fitting problems in low percentiles, in Figure 4 we present the evolution of β τ parameters and the extrapolation adjusting m = 13 regressions; this number had the lowest M S E value for m < 15 .
In Figure 4, we can observe that in general for all covariates, extrapolations do not fit well the parameter estimates for lower quantiles. In all cases except total distance driven, the interpolated value is lower than the estimated coefficient for m = 99 . Since the interpolated value is lower than it should be, a larger value of τ is required to obtain the minimum value for Y i X i β τ and this leads to an overestimation of the risk scores. For upper quantiles, the only covariate that has fitting issues is the percentage of night driving.
Regarding computational time, when adjusting m = 13 regressions and approximating the rest, it takes 13 s to obtain all fitted values. Adjusting m = 99 quantile regressions requires 120 s. Thus, we conclude that time-reduction is around order 10 1 , which is a major improvement in terms of computational time.
In order to reduce M S E , we fitted m = 13 regressions but selected the quantile levels carefully. We fitted five quantile regressions for τ [ 0.01 , 0.20 ) , four quantile regressions for τ [ 0.20 , 0.80 ) and four regressions for τ [ 0.80 , 0.99 ) . In this case, unbalancing the distance between τ levels leads to increasingly accurate extrapolations for β τ parameters for the extreme values of τ . Figure 5 presents the new comparison between β τ estimations and interpolations; we can see that we solved some problems for the estimation of lower quantile coefficients that appeared in Figure 1 and that we have a nice fit for the rest of the quantile coefficients.
M S E is also affected by the choice of τ levels. When we approximate β τ with our methodology and choose levels carefully as mentioned above, M S E equals 10.057 , which is lower than 11.116 (see Table 3, for m = 13 and equally spaced τ levels). A lower M S E indicates an improvement in the accuracy of our adjusted scores with the approximation method.

5. Discussion

In insurance, it is important to detect which drivers have a major risk of having a traffic accident or bad driving patterns. Adjusting a quantile regression for each quantile level to find which quantile level provides a conditional percentile that equals the observed response has a high computational cost in terms of time. This cost is accentuated when the adjusted model has lots of variables or in databases having a large number of observations. We found that for 9614 observations the computational time was drastically reduced by almost 90% when implementing the approximation algorithm for m = 13 (from 2 min for 99 regressions to 13 s for 13 regressions and the interpolation, as implemented in R on a standard personal laptop).
We show that our approximation based on fitting only a few quantile regressions instead of all levels provides good results when approximating the regression parameters. Increasing the number of fitted quantile regressions would provide few benefits. Nevertheless, the evolution of β τ parameters should be studied in each case to select an appropriate number of initial levels at which the quantile regressions should be estimated. The empirical quantile function of the response variable can also be useful to identify the nature of the unconditional response variable distribution.
We observed that as the number of fitted quantile regressions increased in the first step, β τ extrapolated parameters were closer to the true parameters but for lower quantiles there was always a small error that provoked some deviation in our estimated risk score values. Applying the methodology proposed in this paper, we saw that if we select τ values carefully and interpolate, we can obtain better approximations than with equally spaced quantile levels. Although in this study the improvement was huge in terms of time, we recommend accommodating the algorithm to the selection of optimal τ values and deciding how many levels are necessary to reflect the shape of the conditional distribution.
The interest of what we propose here is computer time reductions. Even if the results are illustrated with yearly data, the analysis could be implemented on a much more frequent basis. Instant risk scoring is something that occurs in the minds of many insurers, who could perform routine risk evaluation every minute. The resulting risk score could be displayed to the drivers on built-in scoreboards specially created by car manufacturers. This is the reason why we do not limit ourselves to a standard actuarial analysis with yearly data.
Regarding variable selection and a reduction of input variables, although the number of input variables is not too high in our application, it is always interesting to test their statistical significance as a check in some strategic quantiles, e.g., 25, 50 and 75.

6. Conclusions

In this paper we propose a methodology to extrapolate β τ parameters of quantile regression. This is useful to increase the speed when calculating risk scores based on quantile regression, because all quantile levels τ should be considered. Although the approximation carries some imprecision, the reduction in computational time is substantial. The same approach could be implemented for joint quantile models, as in (Guillen et al. 2021).
This paper opens new areas of research. In our case we established a linear relation between different β τ . Finding new approximation methods would allow correction of the prediction errors for extreme quantiles, which are likely to be badly approximated with algorithms based on one-step approximations of the quantile estimation process. Furthermore, how any extrapolation method would improve computational time while preserving some precision in data that contains more variables and more observations is a matter for future research.
The applicability of the methods presented here exceeds the specific case study that we have presented here. Note that quantile regression is being used for intensive data-analysis in other contexts such as environmental science, where large meteorological data sets are commonplace (Davino et al. 2013), or in traffic incident management, where duration of incidents is skewed and data inflows are huge (Khattak et al. 2016).

Author Contributions

Conceptualization, A.P. and M.G.; methodology, A.P. and M.G.; software, A.P.; validation, M.G.; formal analysis, A.P. and M.G.; investigation, A.P. and M.G.; resources, M.G.; data curation, M.G.; writing—original draft preparation, A.P.; writing—review and editing, M.G.; visualization, A.P.; supervision, M.G.; project administration, M.G.; funding acquisition, M.G. All authors have read and agreed to the published version of the manuscript.

Funding

This research was funded by the Spanish Ministry of Science and Innovation grant PID2019–105986GB-C21, Fundación BBVA Research on Big Data and ICREA Academia.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Data are anonymous and they do not contain sensible personal data that could lead to the identification of subjects. Under the Spanish legislation, by signing the insurance contract drivers allow insurers and their partners analyzing anonymous driving data for routine operations of pricing insurance and for actuarial purposes. Researchers had no access to personal identifiers.

Data Availability Statement

Data are subject to proprietary rules by MAPFRE and they cannot be shared. Implementation and R codes are available from the authors and an illustration with a public data base is accessible at http://www.ub.edu/rfa/R/QRinterpolation (accessed on 9 January 2022).

Acknowledgments

The authors would like to thank participants, members of the Riskcenter, Universitat de Barcelona, and the anonymous reviewers.

Conflicts of Interest

The authors declare no conflict of interest.

References

  1. Aarts, Letty, and Ingrid Van Schagen. 2006. Driving speed and the risk of road crashes: A review. Accident Analysis & Prevention 38: 215–24. [Google Scholar]
  2. Ayuso, Mercedes, Montserrat Guillen, and Ana M. Pérez-Marín. 2016. Telematics and gender discrimination: Some usage-based evidence on whether men’s risk of accidents differs from women’s. Risks 4: 10. [Google Scholar] [CrossRef] [Green Version]
  3. Boucher, Jean-Philippe, and Roxane Turcotte. 2020. A longitudinal analysis of the impact of distance driven on the probability of car accidents. Risks 8: 91. [Google Scholar] [CrossRef]
  4. Boucher, Jean-Philippe, Steven Côté, and Montserrat Guillen. 2017. Exposure as duration and distance in telematics motor insurance using generalized additive models. Risks 5: 54. [Google Scholar] [CrossRef] [Green Version]
  5. Chen, Lanjue, and Yong Zhou. 2020. Quantile regression in big data: A divide and conquer based strategy. Computational Statistics & Data Analysis 144: 106892. [Google Scholar]
  6. Chernozhukov, Victor, Iván Fernández-Val, and Blaise Melly. 2020. Fast algorithms for the quantile regression process. Empirical Economics 2020: 1–27. [Google Scholar] [CrossRef]
  7. Davino, Cristina, Marilena Furno, and Domenico Vistocco. 2013. Quantile Regression: Theory and Applications. New York: John Wiley & Sons, vol. 988. [Google Scholar]
  8. Eling, Martin, and Mirko Kraft. 2020. The impact of telematics on the insurability of risks. The Journal of Risk Finance 21: 77–109. [Google Scholar] [CrossRef]
  9. Elliott, Mark A., Christopher J. Armitage, and Christopher J. Baughan. 2003. Drivers’ compliance with speed limits: An application of the theory of planned behavior. Journal of Applied Psychology 88: 964. [Google Scholar] [CrossRef] [Green Version]
  10. Gao, Guangyuan, and Mario V. Wüthrich. 2018. Feature extraction from telematics car driving heatmaps. European Actuarial Journal 8: 383–406. [Google Scholar] [CrossRef]
  11. Gao, Guangyuan, and Mario V. Wüthrich. 2019. Convolutional neural network classification of telematics car driving data. Risks 7: 6. [Google Scholar] [CrossRef] [Green Version]
  12. Gao, Guangyuan, Mario V. Wüthrich, and Hanfang Yang. 2018. Driving risk evaluation based on telematics data. SSRN Electronic Journal. [Google Scholar] [CrossRef]
  13. Gohardehi, Shaban, Mehdi Sharif, Shahabeddin Sarvi, Mahmood Moosazadeh, Reza Alizadeh-Navaei, Seyed Abdollah Hosseini, Afsaneh Amouei, Abdolsattar Pagheh, Mitra Sadeghi, and Ahmad Daryani. 2018. The potential risk of toxoplasmosis for traffic accidents: A systematic review and meta-analysis. Experimental Parasitology 191: 19–24. [Google Scholar] [CrossRef] [PubMed]
  14. Guillen, Montserrat, Ana M. Pérez-Marín, and Manuela Alcañiz. 2020. Percentile charts for speeding based on telematics information. Accident Analysis & Prevention 150: 105865. [Google Scholar]
  15. Guillen, Montserrat, Jens Perch Nielsen, and Ana M. Pérez-Marín. 2021. Near-miss telematics in motor insurance. Journal of Risk and Insurance 88: 569–89. [Google Scholar] [CrossRef]
  16. Guillen, Montserrat, Jens Perch Nielsen, Mercedes Ayuso, and Ana M. Pérez-Marín. 2019. The use of telematics devices to improve automobile insurance rates. Risk Analysis 39: 662–72. [Google Scholar] [CrossRef]
  17. Guillen, Montserrat, Lluís Bermúdez, and Albert Pitarque. 2021. Joint generalized quantile and conditional tail expectation regression for insurance risk analysis. Insurance: Mathematics and Economics 99: 1–8. [Google Scholar] [CrossRef]
  18. Henckaerts, Roel, Marie-Pier Côté, Katrien Antonio, and Roel Verbelen. 2021. Boosting insights in insurance tariff plans with tree-based machine learning methods. North American Actuarial Journal 25: 255–85. [Google Scholar] [CrossRef]
  19. Henckaerts, Roel. 2021. Insurance Pricing in the Era of Machine Learning and Telematics Technology. Ph.D. dissertation, KU Leuven, Leuven, Belgium. Available online: https://lirias.kuleuven.be/3524118?limo=0 (accessed on 27 December 2021).
  20. Huppert, Doreen, Andreas Straube, Lucia Albers, Rüdiger von Kries, and Viola Obermeier. 2019. Risk of traffic accidents after onset of vestibular disease assessed with a surrogate marker. Journal of Neurology 266: 3–8. [Google Scholar] [CrossRef]
  21. Khattak, Asad J., Jun Liu, Behram Wali, Xiaobing Li, and ManWo Ng. 2016. Modeling traffic incident duration using quantile regression. Transportation Research Record 2554: 139–48. [Google Scholar] [CrossRef]
  22. Koenker, Roger, and Gilbert Bassett Jr. 1978. Regression quantiles. Econometrica: Journal of the Econometric Society 46: 33–50. [Google Scholar] [CrossRef]
  23. Koenker, Roger, and Gilbert Bassett Jr. 1982. Robust tests for heteroscedasticity based on regression quantiles. Econometrica: Journal of the Econometric Society 50: 43–61. [Google Scholar] [CrossRef] [Green Version]
  24. Koenker, Roger, and José A. F. Machado. 1999. Goodness of fit and related inference processes for quantile regression. Journal of the American Statistical Association 94: 1296–310. [Google Scholar] [CrossRef]
  25. Lu, Jian John, Yingying Xing, Chen Wang, and Xiaonan Cai. 2016. Risk factors affecting the severity of traffic accidents at Shanghai river-crossing tunnel. Traffic Injury Prevention 17: 176–80. [Google Scholar] [CrossRef]
  26. Mao, Xinhua, Changwei Yuan, Jiahua Gan, and Shiqing Zhang. 2019. Risk factors affecting traffic accidents at urban weaving sections: Evidence from China. International Journal of Environmental Research and Public Health 16: 1542. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  27. Matsuoka, Emi, Momoe Saji, and Kousuke Kanemoto. 2019. Daytime sleepiness in epilepsy patients with special attention to traffic accidents. Seizure 69: 279–82. [Google Scholar] [CrossRef] [PubMed]
  28. Pérez-Marín, Ana M., Montserrat Guillen, Manuela Alcañiz, and Lluís Bermúdez. 2019. Quantile regression with telematics information to assess the risk of driving above the posted speed limit. Risks 7: 80. [Google Scholar] [CrossRef] [Green Version]
  29. Pitarque, Albert, Ana M. Pérez Marín, and Montserrat Guillen. 2019. Regresión cuantílica como punto de partida en los modelos predictivos para el riesgo. Anales del Instituto de Actuarios Españoles 4: 77–117. [Google Scholar]
  30. Rovšek, Vesna, Milan Batista, and Branco Bogunović. 2017. Identifying the key risk factors of traffic accident injury severity on slovenian roads using a non-parametric classification tree. Transport 32: 272–81. [Google Scholar] [CrossRef] [Green Version]
  31. Singh, Sanjay Kumar. 2017. Road traffic accidents in India: Issues and challenges. Transportation Research Procedia 25: 4708–19. [Google Scholar] [CrossRef]
  32. Smith, Andrew P. 2016. A UK survey of driving behaviour, fatigue, risk taking and road traffic accidents. BMJ Open 6: e011461. [Google Scholar] [CrossRef] [PubMed] [Green Version]
  33. Sun, Shuai, Jun Bi, Montserrat Guillen, and Ana M. Pérez-Marín. 2020. Assessing driving risk using internet of vehicles data: An analysis based on generalized linear models. Sensors 20: 2712. [Google Scholar] [CrossRef] [PubMed]
  34. Sun, Shuai, Jun Bi, Montserrat Guillen, and Ana M. Pérez-Marín. 2021. Driving risk assessment using near-miss events based on panel poisson regression and panel negative binomial regression. Entropy 23: 829. [Google Scholar] [CrossRef] [PubMed]
  35. Weidner, Wiltrud, Fabian W. G. Transchel, and Robert Weidner. 2016. Classification of scale-sensitive telematic observables for riskindividual pricing. European Actuarial Journal 6: 3–24. [Google Scholar] [CrossRef]
Figure 1. Example distribution of log(Y) depending of quantile τ .
Figure 1. Example distribution of log(Y) depending of quantile τ .
Risks 10 00019 g001
Figure 2. Risk scores when 99 quantile regressions are used in the first step are compared to risk scores when quantile approximations are used in the first step with m = six initial regressions (left), m = 11 (center) and m = 21 (right).
Figure 2. Risk scores when 99 quantile regressions are used in the first step are compared to risk scores when quantile approximations are used in the first step with m = six initial regressions (left), m = 11 (center) and m = 21 (right).
Risks 10 00019 g002
Figure 3. Mean square error for risk score fitted values when adjusting m regressions.
Figure 3. Mean square error for risk score fitted values when adjusting m regressions.
Risks 10 00019 g003
Figure 4. Estimates of β τ for different quantile levels. Dots indicate the parameter estimates when adjusting 99 quantile regressions, lines denote the approximations obtained for m = 13 initial quantile regressions with equally spaced τ levels.
Figure 4. Estimates of β τ for different quantile levels. Dots indicate the parameter estimates when adjusting 99 quantile regressions, lines denote the approximations obtained for m = 13 initial quantile regressions with equally spaced τ levels.
Risks 10 00019 g004
Figure 5. Estimates of β τ for different quantile levels. Dots indicate the parameter estimates when adjusting 99 quantile regressions, lines denote the approximations obtained for m = 13 initial quantile regressions with a suitable choice of τ levels.
Figure 5. Estimates of β τ for different quantile levels. Dots indicate the parameter estimates when adjusting 99 quantile regressions, lines denote the approximations obtained for m = 13 initial quantile regressions with a suitable choice of τ levels.
Risks 10 00019 g005
Table 1. Definition of variables in the telematics data set for 2010.
Table 1. Definition of variables in the telematics data set for 2010.
VariableDescription
Speed_km *Total number of kilometres driven above the legal speed limit
lnKmLogarithm of the total number of kilometres driven
P_urbanPercentage of kilometres driven in urban areas
P_nightPercentage of kilometres driven at night
AgeAge of the driver
MaleGender of the driver (1 = male, 0 = female)
* P_speed is the proportion (percentage) of total kilometres driven above the speed limit. P_speed = 100 × Speed_km /exp(lnKm).
Table 2. Descriptive analysis of the continuous variables in the telematics data set for 2010 ( n = 9618 ).
Table 2. Descriptive analysis of the continuous variables in the telematics data set for 2010 ( n = 9618 ).
MeanMedianMin.Max.Std. Dev.
Speed_km1398.21689.230.0023,500.191995.37
lnKm9.279.37−0.3710.960.75
P_urban26.2923.390.00100.0014.18
P_night7.025.310.0078.566.13
Age24.7824.6318.1135.002.82
Table 3. Mean square error ( M S E ), root mean square error ( R o o t . M S E ) and mean absolute error ( M A E ) for risk score estimates when adjusting m regressions.
Table 3. Mean square error ( M S E ), root mean square error ( R o o t . M S E ) and mean absolute error ( M A E ) for risk score estimates when adjusting m regressions.
m26911
M S E 170.89014.71312.60911.545
R o o t . M S E 13.0723.8363.5513.398
M A E 10.3622.9492.9302.821
m13151821
M S E 11.11611.57311.26410.836
R o o t . M S E 3.3343.4023.3563.292
M A E 2.7712.8272.7862.735
Publisher’s Note: MDPI stays neutral with regard to jurisdictional claims in published maps and institutional affiliations.

Share and Cite

MDPI and ACS Style

Pitarque, A.; Guillen, M. Interpolation of Quantile Regression to Estimate Driver’s Risk of Traffic Accident Based on Excess Speed. Risks 2022, 10, 19. https://doi.org/10.3390/risks10010019

AMA Style

Pitarque A, Guillen M. Interpolation of Quantile Regression to Estimate Driver’s Risk of Traffic Accident Based on Excess Speed. Risks. 2022; 10(1):19. https://doi.org/10.3390/risks10010019

Chicago/Turabian Style

Pitarque, Albert, and Montserrat Guillen. 2022. "Interpolation of Quantile Regression to Estimate Driver’s Risk of Traffic Accident Based on Excess Speed" Risks 10, no. 1: 19. https://doi.org/10.3390/risks10010019

APA Style

Pitarque, A., & Guillen, M. (2022). Interpolation of Quantile Regression to Estimate Driver’s Risk of Traffic Accident Based on Excess Speed. Risks, 10(1), 19. https://doi.org/10.3390/risks10010019

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop