reading-notes2

https://m7madmomani2.github.io/reading-notes2

View the Project on GitHub M7madMomani2/reading-notes2

About Linear Regression

image

Scikit-learn

Important functions while fitting a linear regression model are:

1) lm.fit() -> fits a linear model

2) lm.predict() -> Predict Y using the linear model with estimated coefficients

3) lm.score() -> Returns the coefficient of determination (R^2). A measure of how well observed outcomes are replicated by the model, as the proportion of total variation of outcomes explained by the model.

Residual Plots

image

More about Linear Regression type

Simple linear regression 1 dependent variable (interval or ratio), 1 independent variable (interval or ratio or dichotomous)