Related Experiment Video
Updated: Jun 27, 2025

An R-Based Landscape Validation of a Competing Risk Model
Published on: September 16, 2022
A comparative analysis of risk factors in taxi-related crashes using XGBoost and SHAP
Zhipeng Peng1, Jingping Zuo1, Hao Ji1
1School of Economics and Management, Xi'an Technological University, Xi'an, China.
Abstract:
Taxis play a crucial role in urban public transportation, but the traffic safety situation of taxi drivers is far from optimistic, especially considering the introduction of ride-hailing services into the taxi industry. This study conducted a comparative analysis of risk factors in crashes between traditional taxi drivers and ride-hailing taxi drivers in China, including their demographic characteristics, working conditions, and risky driving behaviors. The data was collected from 2,039 traditional taxi drivers and 2,182 ride-hailing taxi drivers via self-reported questionnaires. Four XGBoost models were established, taking into account different types of taxi drivers and crash types. All models showed acceptable performance, and SHAP explainer was used to analyze the model results. The results showed that for both taxi drivers, risk factors related to risky driving behaviors are more important in predicting property damage (PD) crashes, while risk factors related to working conditions are more important in predicting person injury (PI) crashes. However, the relative importance of each risk factor varied depending on the type of crashes and the type of taxi drivers involved. Furthermore, the results also validated certain interactions among the risk factors, indicating that the combination of certain factors generated a greater impact on crashes compared to individual factors alone. These findings can provide valuable insights for formulating appropriate measures to enhance road safety for taxi driver.
Related Concept Videos
Hypothesis Test for Test of Independence
H0: The two variables (factors)...
Comparing the Survival Analysis of Two or More Groups
Relative Risk
Introduction to Test of Independence
The test statistic for a test of independence is similar to that of a goodness-of-fit test:
Regression Analysis
In regression analysis, a regression equation is determined based on the line of best fit– a line that best fits the data points plotted in a graph. This line is also called the regression line. The algebraic equation for the regression line is called the regression equation. It is represented as:
Quantifying and Rejecting Outliers: The Grubbs Test

