Quantile Regression

Can be used to give Quantile bounds for a Regression task. For example upper and lower bounds for the predicted value.

Uses a different Loss Function:

The parameter ist the Quantile.

You have to train a model for each quantile that you want to obtain values for.

When the predicted values are smaller than the true values, you get a positive loss which is being penalized by the parameter . When the predicted values are bigger than the true values, you get a negative loss which is being penalized by the inverse quantile.

You can use a Custom Loss Function for Linear Regression in Python to implement this in Python.

Example:

Ressources