The invention discloses a
spare part demand prediction method based on a
ridge regression
improved algorithm, and relates to the technical field of
spare part demand prediction, and the method comprises the following steps: 1, data collection and preprocessing; 2, performing
feature extraction on the
time series data; step 3, constructing an improved
ridge regression
algorithm: combining Huber loss and a kernel function; 4, dividing a
training set and a
test set according to a
time sequence, selecting an optimal parameter by adopting a K-fold
cross validation method, performing robust kernel
ridge regression model training on the
training set, predicting a model generated by training on the
test set, comparing with a true value of the
training set, and calculating MAE, MSE and a value; and step 5, comparing with a traditional ridge regression prediction result. According to the method, the model
overfitting problem caused by multiple collinearity among influence factors in
spare part demand prediction can be solved, compared with traditional ridge regression, the nonlinear relation among variables can be captured, robustness is higher, and therefore the spare part demand quantity can be predicted more accurately.