feature_engine icon indicating copy to clipboard operation
feature_engine copied to clipboard

Testing Linear Regression Assumptions

Open NicoGalli opened this issue 3 years ago • 4 comments

Checking model assumptions is like commenting code. Everybody should be doing it often, but it sometimes ends up being overlooked in reality. A failure to do either can result in a lot of time being confused, going down rabbit holes, and can have pretty serious consequences from the model not being interpreted correctly.

What about creating the following functions to test linear regression assumptions?

linear_assumption()
normal_errors_assumption()
multicollinearity_assumption()
autocorrelation_assumption()
homoscedasticity_assumption()

Please check this amazing post: https://jeffmacaluso.github.io/post/LinearRegressionAssumptions/

NicoGalli avatar Jan 03 '23 19:01 NicoGalli

Nice idea, @NicoGalli!

Has anyone started this task? If not, I'll take it on.

Morgan-Sell avatar Apr 13 '23 13:04 Morgan-Sell

Hi @Morgan-Sell!

Yes, please. Dont hesitate to assign this task to you and start working on it.

NicoGalli avatar Apr 15 '23 00:04 NicoGalli

Hi @NicoGalli,

I understand the request. However, I'm questioning whether this task should be within the scope of feature-engine. feature-engine focuses on automating feature engineering/selection that is compatible with scikit-learn.

Assessing linear regression assumptions falls under model evaluation, which I believe to beyond the scope of feature-engine.

@solegalli, do you have any thoughts?

Morgan-Sell avatar Apr 18 '23 18:04 Morgan-Sell

Yes, I think that for the time being, this will be out of scope. There are other issues with higher priority.

Maybe in a few years :p

solegalli avatar Apr 20 '23 14:04 solegalli