Linear Regression in Python - Full Project for Beginners

แชร์
ฝัง
  • เผยแพร่เมื่อ 21 ก.ค. 2024
  • Welcome to this comprehensive "Linear Regression with Python Tutorial" for beginners! In this video, we will cover the basics of linear regression, a fundamental concept in data science and machine learning. With this tutorial, you will learn how to perform data analysis using linear regression in Python. This tutorial is perfect for anyone who is new to the field of data science and machine learning and wants to get started with a real-world data science project.
    We will start by introducing the concepts of statistical learning and statistics, and then move on to applying these concepts in Python to perform linear regression. You will learn how to use Python libraries such as NumPy and Pandas for data preprocessing, and then use scikit-learn for building and evaluating a linear regression model.
    By the end of this tutorial, you will have a solid understanding of linear regression and how to apply it in Python for your own data science projects. So, if you're ready to dive into the world of data science and machine learning, make sure to watch this tutorial till the end. Don't forget to like and subscribe for more tutorials like this!
    👉 Check out the code: github.com/alejandro-ao/py-ec...
    👉 Dataset: www.kaggle.com/datasets/kolaw...
    Errata
    30:30 Intersection with the Y axis*
    ------------------------------------------------------------------------------------------------------------------------------------------------
    Timestamps:
    00:00 Intro
    02:10 Importing the dataset
    08:14 Exploratory Data Analysis
    11:31 Pairplot of all numerical variables
    14:34 Quick Linear Regression Explanation
    20:10 Split the data using Scikit-Learn
    27:05 Train a model using Scikit-Learn
    29:08 Interpreting the Coefficients
    33:09 Create Predictions
    35:20 Graphical Evaluation of the Predictions
    37:40 Analytical Evaluation of the Errors
    42:19 Residual Analysis
    48:37 Outro

ความคิดเห็น • 44

  • @applepeel1662
    @applepeel1662 ปีที่แล้ว +1

    Amazing! Please keep doing these beginner friendly projects, theyre incredibly useful

  • @sasuke95014
    @sasuke95014 11 หลายเดือนก่อน +1

    It is very helpful. Keep up with the great work!

  • @techsnail8581
    @techsnail8581 8 หลายเดือนก่อน

    Great video! Here's a quick tip: consider using distplot to display Yhat and Y_test in the same axis to evaluate your model's performance.

  • @AmitKumar-ou3cg
    @AmitKumar-ou3cg 13 วันที่ผ่านมา +1

    This is really awesome, it helped me to understand linear regression concept , love the way you teach through projects.

  • @David-cx3fc
    @David-cx3fc 11 หลายเดือนก่อน +1

    I have watched endless Regression videos. I graduated with a math degree a couple years ago, and my programming skills are beginner level. I've done Datacamp stuff, youtube guided projects, you name it. This is by far the most concise, easy to follow, welcoming, calming video I have ever watched explaining how to do a regression project. I appreciate the quick definitions along the way, that help the audience including myself, not feel stupid lol. And explaining every small step really helps. Also the big picture explanation of how leverage this code and automate it, was helpful. Very few if any, ever talks about that step. I'm trying to get crack into the tech world and land a data job. Just this one video has truly given me the confidence, to not feel overwhelmed and that its obtainable. Sorry for the lengthy response haha Please keep making videos man, you rock!!

    • @vishalvarakhedkar8816
      @vishalvarakhedkar8816 3 หลายเดือนก่อน

      So wholesome! Thanks for helping me find the best video.

  • @muhdariz9264
    @muhdariz9264 ปีที่แล้ว +1

    You're really underrated dude, this video was very well made especially for beginners interested in the field. Thank you so much!

  • @PietroCalafiore
    @PietroCalafiore 7 หลายเดือนก่อน

    Thank you for this lesson, Alejandro: it helped me tremendously. Have a nice day and great holidays.

    • @alejandro_ao
      @alejandro_ao  6 หลายเดือนก่อน +1

      thank you! i'm glad to hear it helped. i hope you had great holidays :)

  • @ThomasRoshan-nl2py
    @ThomasRoshan-nl2py 3 หลายเดือนก่อน

    Dude your explanation is far more better than anyone else and simple to understand i do not comment actually but i can say that u explain really good.

    • @alejandro_ao
      @alejandro_ao  3 หลายเดือนก่อน

      i really appreciate it! glad it was helpful :)

  • @shakilahammed1887
    @shakilahammed1887 15 วันที่ผ่านมา

    You are great brother.

  • @salwamh2942
    @salwamh2942 4 หลายเดือนก่อน

    this is such a good beginner-friendly tutorial! thank u sm

    • @alejandro_ao
      @alejandro_ao  4 หลายเดือนก่อน

      hey there! it makes me very happy to hear that! keep it up ;)

  • @shaneshshukla
    @shaneshshukla 7 วันที่ผ่านมา +1

    the video I wanted to find..amazing content..keep working great things will happen.

    • @alejandro_ao
      @alejandro_ao  4 วันที่ผ่านมา

      i appreciate it!

  • @nonnisite1954
    @nonnisite1954 21 วันที่ผ่านมา

    I'm a math major with a minor in CS. I'm looking to break into data science. Your video was very informative and easy to follow. Thank you!

    • @alejandro_ao
      @alejandro_ao  20 วันที่ผ่านมา

      you are literally in the best position to start off in the world of AI. enjoy the ride!

  • @celsogonzalezlopez6488
    @celsogonzalezlopez6488 13 วันที่ผ่านมา

    very helpful, thank you

  • @user-jp8hs7lj6q
    @user-jp8hs7lj6q หลายเดือนก่อน

    looking forward to another END TO END video but for more intermediate level!

  • @smartearcleaner
    @smartearcleaner ปีที่แล้ว

    Amazing video ! for me as a beginner, that was very helpfull, thank you

    • @alejandro_ao
      @alejandro_ao  ปีที่แล้ว

      Great to hear! Keep it up :)

  • @khimyang1831
    @khimyang1831 4 หลายเดือนก่อน +3

    Wonderful video! I was able to follow along happily until the scatterplot command, for which I got the error, "TypeError: scatterplot() takes from 0 to 1 positional arguments but 2 were given". Had to change the command to sns.scatterplot(x=predictions, y=y_test). Everything else was perfect, and I learned a lot - THANK YOU!!!

    • @meggy5
      @meggy5 2 หลายเดือนก่อน +1

      i got at that point too, thanks for the fix :))

  • @yanis4135
    @yanis4135 หลายเดือนก่อน

    Amazing video i learned a lot from you thank you for the job

    • @alejandro_ao
      @alejandro_ao  หลายเดือนก่อน

      Glad to hear it!

  • @AnesuGandiwa
    @AnesuGandiwa หลายเดือนก่อน

    It is very helpful brother, Keep up good work!

    • @alejandro_ao
      @alejandro_ao  หลายเดือนก่อน

      Thank you, I will!

  • @user-jp8hs7lj6q
    @user-jp8hs7lj6q หลายเดือนก่อน

    big thanks for this video -- i learned a lot!!

  • @davidcardenas9751
    @davidcardenas9751 14 วันที่ผ่านมา

    After watching a lot of videos for Linear Regression your video is by far THE BEST!!! thanks. Just one thing couldn't use scatterplot got a 'scatterplot() takes from 0 to 1 positional arguments but 2 were given' error.

    • @sakshamsharma708
      @sakshamsharma708 11 วันที่ผ่านมา

      yeah, I suggest you use the following instead :
      plt.scatter(predictions, y_test, alpha=0.5)
      it does the same thing, hope it helps

    • @abdulmughees9318
      @abdulmughees9318 7 วันที่ผ่านมา

      Put x= and y=. and it works

  • @krystian_n6270
    @krystian_n6270 6 หลายเดือนก่อน

    Great work ! Im waiting for others ML algorithms.

    • @alejandro_ao
      @alejandro_ao  6 หลายเดือนก่อน

      thanks!! i’ll try to make more of this 💪

  • @IkerSanchez-kn5kf
    @IkerSanchez-kn5kf หลายเดือนก่อน

    Hey. Nice video. There's just a thing I'm not sure about. Shouldn't normality, homoscedasticity and tests regarding residuals be done over y_train - predict, where predict is based on the training set? You verified the normality assumption on residuals of y_test - "predict_test". Which one is it?

  • @pubgclutch7719
    @pubgclutch7719 4 หลายเดือนก่อน

    please make video on lasso,ridge,svm,knn,gradient boost etc..

  • @rawanrezk7862
    @rawanrezk7862 4 หลายเดือนก่อน

    Really thanks it is very helpful

    • @alejandro_ao
      @alejandro_ao  4 หลายเดือนก่อน

      hey there, i'm glad it was helpful! keep it up :)

  • @lauriepoorie
    @lauriepoorie 2 หลายเดือนก่อน

    The coefficient does not determine the most important. The magnitude of each variable varies in the formula. A small coefficient applied to a variable with more magnitude can be the most variance on the model

  • @everythingispossible6310
    @everythingispossible6310 2 หลายเดือนก่อน

    Can you tell me from where I can get this csv file ?

  • @AmineKhaled-eo4cx
    @AmineKhaled-eo4cx 3 หลายเดือนก่อน

    u are the best