Linear Regression in Python - Full Project for Beginners

  Рет қаралды 11,844

Alejandro AO - Software & Ai

Alejandro AO - Software & Ai

Күн бұрын

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

Пікірлер: 41
@applepeel1662
@applepeel1662 Жыл бұрын
Amazing! Please keep doing these beginner friendly projects, theyre incredibly useful
@AmitKumar-ou3cg
@AmitKumar-ou3cg 3 күн бұрын
This is really awesome, it helped me to understand linear regression concept , love the way you teach through projects.
@techsnail8581
@techsnail8581 7 ай бұрын
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.
@sasuke95014
@sasuke95014 11 ай бұрын
It is very helpful. Keep up with the great work!
@muhdariz9264
@muhdariz9264 Жыл бұрын
You're really underrated dude, this video was very well made especially for beginners interested in the field. Thank you so much!
@alejandro_ao
@alejandro_ao Жыл бұрын
thank you!!
@David-cx3fc
@David-cx3fc 10 ай бұрын
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.
@PietroCalafiore
@PietroCalafiore 6 ай бұрын
Thank you for this lesson, Alejandro: it helped me tremendously. Have a nice day and great holidays.
@alejandro_ao
@alejandro_ao 5 ай бұрын
thank you! i'm glad to hear it helped. i hope you had great holidays :)
@nonnisite1954
@nonnisite1954 10 күн бұрын
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 10 күн бұрын
you are literally in the best position to start off in the world of AI. enjoy the ride!
@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 ;)
@khimyang1831
@khimyang1831 4 ай бұрын
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 ай бұрын
i got at that point too, thanks for the fix :))
@ThomasRoshan-nl2py
@ThomasRoshan-nl2py 2 ай бұрын
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 2 ай бұрын
i really appreciate it! glad it was helpful :)
@shakilahammed1887
@shakilahammed1887 5 күн бұрын
You are great brother.
@davidcardenas9751
@davidcardenas9751 3 күн бұрын
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 22 сағат бұрын
yeah, I suggest you use the following instead : plt.scatter(predictions, y_test, alpha=0.5) it does the same thing, hope it helps
@celsogonzalezlopez6488
@celsogonzalezlopez6488 2 күн бұрын
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 11 ай бұрын
Great to hear! Keep it up :)
@user-jp8hs7lj6q
@user-jp8hs7lj6q Ай бұрын
big thanks for this video -- i learned a lot!!
@alejandro_ao
@alejandro_ao Ай бұрын
Very welcome!
@AnesuGandiwa
@AnesuGandiwa Ай бұрын
It is very helpful brother, Keep up good work!
@alejandro_ao
@alejandro_ao Ай бұрын
Thank you, I will!
@yanis4135
@yanis4135 25 күн бұрын
Amazing video i learned a lot from you thank you for the job
@alejandro_ao
@alejandro_ao 24 күн бұрын
Glad to hear it!
@krystian_n6270
@krystian_n6270 5 ай бұрын
Great work ! Im waiting for others ML algorithms.
@alejandro_ao
@alejandro_ao 5 ай бұрын
thanks!! i’ll try to make more of this 💪
@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 :)
@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 3 ай бұрын
please make video on lasso,ridge,svm,knn,gradient boost etc..
@AmineKhaled-eo4cx
@AmineKhaled-eo4cx 3 ай бұрын
u are the best
@alejandro_ao
@alejandro_ao 3 ай бұрын
you are
@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 ?
Logistic Regression Project: Cancer Prediction with Python
44:21
Alejandro AO - Software & Ai
Рет қаралды 5 М.
Самое Романтичное Видео ❤️
00:16
Глеб Рандалайнен
Рет қаралды 5 МЛН
Incredible magic 🤯✨
00:53
America's Got Talent
Рет қаралды 61 МЛН
Happy 4th of July 😂
00:12
Pink Shirt Girl
Рет қаралды 54 МЛН
Streamlit Python Course: Build a Machine Learning App to Predict Cancer
2:02:40
Alejandro AO - Software & Ai
Рет қаралды 29 М.
Regression Trees, Clearly Explained!!!
22:33
StatQuest with Josh Starmer
Рет қаралды 618 М.
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 159 М.
Самое Романтичное Видео ❤️
00:16
Глеб Рандалайнен
Рет қаралды 5 МЛН