Robust regression in

  Рет қаралды 994

John Kitchin

John Kitchin

Күн бұрын

Outliers can have a big influence on regression with least squares minimization. Luckily, you can choose a different minimization method to reduce that influence. In this video we show how to do that easily in scipy.

Пікірлер: 5
@WiredForSound97
@WiredForSound97 Жыл бұрын
Hey! How do i display the equation of the line and the correlation coefficient?
@JohnKitchin
@JohnKitchin Жыл бұрын
you can use something like plt.text to add an annotation to the plot. You have to construct the equation and compute R2 your self though. You can use pycse for that (github.com/jkitchin/pycse/blob/master/pycse/PYCSE.py#L284)
@krux02
@krux02 2 жыл бұрын
The reason why outliers have such a big impact on the outcome in least squared error minimization is, the error is squared. Squared error minimization isn't done because of good results, it is done because of ease of computation. Total non-squared error minimization would just ignore the outlier here, there is just no closed formula to compute it.
@JohnKitchin
@JohnKitchin 2 жыл бұрын
you are describing minimizing the L1 norm (absolute value), it is basically the soft_l1 method, and similar to the huber method. It does not ignore the outlier, it just reduces the impact.
@danv8718
@danv8718 2 жыл бұрын
Great presentation.
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 174 М.
R demo | Robust Regression (don't depend on influential data)
4:40
yuzaR Data Science
Рет қаралды 6 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26
Шок. Никокадо Авокадо похудел на 110 кг
00:44
规则,在门里生存,出来~死亡
00:33
落魄的王子
Рет қаралды 19 МЛН
Curve Fitting in Python (2022)
24:50
Mr. P Solver
Рет қаралды 95 М.
Interactive Python Plots With IPyWidgets
15:59
NeuralNine
Рет қаралды 46 М.
Robust Regression | Modelling with Outliers | Statistical Modelling
18:04
Analytics University
Рет қаралды 22 М.
How to implement Linear Regression from scratch with Python
17:03
Polynomial Regression in Python
20:18
NeuralNine
Рет қаралды 46 М.
Stata 16   regression with robust standard errors
1:40
AcademicEgg
Рет қаралды 9 М.
DOE vs active learning and surrogate models of the SDL-Light
24:44
ROBUST REGRESSION TO MODEL DATA WITH OUTLIERS || MACHINE LEARNING
9:10
Analytics University
Рет қаралды 1,8 М.
Minecraft Creeper Family is back! #minecraft #funny #memes
00:26