1. Simple Linear Regression Tutorial With Python Pandas, Sklearn, Seaborn, Matplolib


This Tutorial 1 on Simple Linear regression and some practical in Python(step by step) using Jupyter notebook.

Link to data: http://www-bcf.usc.edu/~gareth/ISL/Advertising.csv
Find me on my website: www.kindsonthegenius.com
More Lessons on http://kindsonthegenius.blogspot.com

Linear Models for Regression: http://kindsonthegenius.blogspot.com/2018/01/linear-models-for-regressionlinear.html
Coefficient of Determination in Linear Regression: http://kindsonthegenius.blogspot.com/2018/06/what-is-coefficient-of-determination-in.html
Join my research group(International Computer Programmer) – https://www.facebook.com/groups/1447709731988533/
These are the Steps
1. Import the pandas library
2. Import your dataset
3. View your dataset
4. Import libraries for plotting(seaborn, matplotlib
5. Do a pairplot of the data
6. Extract the Features into X
7. Examine X
8. Extract the output variable into y
9. Examine y
10. Import library for spliting
11. Split data into training and test dataset
12. Perform Linear Regression
13. View the Regression Coefficients



Comment List

  • Kindson The Genius
    November 27, 2020

    @Kindson the genius:
    This was the best notebook of all time.i loved it all the way.(Except that the dataset is 'hidden')
    Please do one using the basic Linear regression equation, error equations and partial derivatives(Using gradient descent that is) from here

  • Kindson The Genius
    November 27, 2020

    Thanks a lot for your kindness to prepare this lesion free for us.
    Please I am not able to download the csv file used here. would you please share with me the dataset.
    seems the file does not exist any longer on Garet James's website.

  • Kindson The Genius
    November 27, 2020

    Mr Kindsom , i don't understand how to plot the finally y in function of TV ,newspaper and radio , y= a*x1+b*X2+c*X3+intercept

  • Kindson The Genius
    November 27, 2020

    Hello Mr,
    What do you mean by aspect=0.7 and king='reg

Write a comment