Skip to content

Commit bf2033f

Browse files
committed
Small fix + mention biais of LAD as a (robust) estimator of the mean
1 parent 7f1c249 commit bf2033f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

examples/ensemble/plot_gradient_boosting_quantile.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def f(x):
2424

2525
# %%
2626
# To make the problem interesting, we generate observations of the target y as
27-
# the sum of deterministic term computed by the function f and a random noise
27+
# the sum of a deterministic term computed by the function f and a random noise
2828
# term that follows a centered `log-normal
2929
# <https://en.wikipedia.org/wiki/Log-normal_distribution>`_. To make this even
3030
# more interesting we consider the case where the amplitude of the noise
@@ -182,8 +182,9 @@ def highlight_min(x):
182182
# squares estimator in terms of MSE on the test set: this can be explained by
183183
# the fact the least squares estimator is very sensitive to large outliers
184184
# which can cause significant overfitting. This can be seen on the right hand
185-
# side of the previous plot. The conditional median estimator is naturally
186-
# robust to outliers and overfits less.
185+
# side of the previous plot. The conditional median estimator is biased
186+
# (underestimation for this asymetric noise) but is also naturally robust to
187+
# outliers and overfits less.
187188
#
188189
# Tuning the hyper-parameters of the quantile regressors
189190
# ------------------------------------------------------

0 commit comments

Comments
 (0)