Linear Regression Analysis | Linear Regression in Python | Machine Learning Algorithms | Simplilearn

  Рет қаралды 480,608

Simplilearn

Simplilearn

6 жыл бұрын

🔥Post Graduate Program In Data Analytics: www.simplilearn.com/pgp-data-...
🔥IIT Kanpur Professional Certificate Course In Data Analytics (India Only): www.simplilearn.com/iitk-prof...
🔥Caltech Data Analytics Bootcamp(US Only): www.simplilearn.com/data-anal...
🔥Data Analyst Masters Program (Discount Code - YTBE15): www.simplilearn.com/data-anal...
This Linear Regression Analysis video will help you understand the basics of linear regression algorithm. You will learn how Simple Linear Regression works with solved examples, look at the applications of Linear Regression and Multiple Linear Regression model. In the end, we will implement a use case on profit estimation of companies using Linear Regression in Python.
Dataset Link - drive.google.com/drive/folder...
Below topics are covered in this Linear Regression Analysis Tutorial:
1. Introduction to Machine Learning
2. Machine Learning Algorithms
3. Applications of Linear Regression
4. Understanding Linear Regression
5. Multiple Linear Regression
6. Usecase - Profit estimation of companies
What is Linear Regression Analysis?
Machine Learning is an application of Artificial Intelligence (AI) that provides systems with the ability to automatically learn and improve from experience without being explicitly programmed. Linear regression is a statistical model used to predict the relationship between independent and dependent variables by examining two factors:
Which variables, in particular, are significant predictors of the outcome variable?
How significant is the regression line in terms of making predictions with the highest possible accuracy?
Subscribe to our channel for more Machine Learning Tutorials: kzbin.info...
Machine Learning Articles: www.simplilearn.com/what-is-a...
To gain in-depth knowledge of Machine Learning, check our Machine Learning certification training course: www.simplilearn.com/big-data-...
#LinearRegressionAnalysis #LinearRegressionUsingPython #MachineLearningAlgorithms #Datasciencecourse #DataScience #SimplilearnMachineLearning #MachineLearningCourse #LinearRegressionSimplilearn #simplilearn
➡️ About Caltech Post Graduate Program In Data Science
This Post Graduation in Data Science leverages the superiority of Caltech's academic eminence. The Data Science program covers critical Data Science topics like Python programming, R programming, Machine Learning, Deep Learning, and Data Visualization tools through an interactive learning model with live sessions by global practitioners and practical labs.
✅ Key Features
- Simplilearn's JobAssist helps you get noticed by top hiring companies
- Caltech PG program in Data Science completion certificate
- Earn up to 14 CEUs from Caltech CTME
- Masterclasses delivered by distinguished Caltech faculty and IBM experts
- Caltech CTME Circle membership
- Online convocation by Caltech CTME Program Director
- IBM certificates for IBM courses
- Access to hackathons and Ask Me Anything sessions from IBM
- 25+ hands-on projects from the likes of Amazon, Walmart, Uber, and many more
- Seamless access to integrated labs
- Capstone projects in 3 domains
- Simplilearn’s Career Assistance to help you get noticed by top hiring companies
- 8X higher interaction in live online classes by industry experts
✅ Skills Covered
- Exploratory Data Analysis
- Descriptive Statistics
- Inferential Statistics
- Model Building and Fine Tuning
- Supervised and Unsupervised Learning
- Ensemble Learning
- Deep Learning
- Data Visualization
🔥 Advanced Certificate Program In Data Science: www.simplilearn.com/pgp-data-...
For a more detailed understanding of Linear Regression Analysis, do visit: bit.ly/2OsDxeA
Learn More at: www.simplilearn.com/pgp-data-...
🔥🔥 Interested in Attending Live Classes? Call Us: IN - 18002127688 / US - +18445327688

Пікірлер: 1 600
@SimplilearnOfficial
@SimplilearnOfficial Жыл бұрын
🔥Post Graduate Program In Data Analytics: www.simplilearn.com/pgp-data-analytics-certification-training-course?MachineLearning-NUXdtN1W1FE&Comments& 🔥IIT Kanpur Professional Certificate Course In Data Analytics (India Only): www.simplilearn.com/iitk-professional-certificate-course-data-analytics?MachineLearning-NUXdtN1W1FE&Comments& 🔥Caltech Data Analytics Bootcamp(US Only): www.simplilearn.com/data-analytics-bootcamp?MachineLearning-NUXdtN1W1FE&Comments& 🔥Data Analyst Masters Program (Discount Code - YTBE15): www.simplilearn.com/data-analyst-masters-certification-training-course?MachineLearning-NUXdtN1W1FE&Comments&
@go1chase1the1sun1set
@go1chase1the1sun1set 4 жыл бұрын
When your uni teacher says to google things to answer your questions instead of teaching you but this video has my back haha thankyou!
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Happy to help!
@maitreyverma2996
@maitreyverma2996 4 жыл бұрын
Use "annot" = True parameter in the sns.heatmap() to show the numerical values as well. Makes it much comprehensible.
@alonhoresh520
@alonhoresh520 6 жыл бұрын
Great video BUT do mind the mistakes: % is percent (not ampersand) and panda.dataframe.corr() is for correlation, not coordinates, In the multiple regression slides, you show ONE variable 'c' and you call it coefficient but sklearn coef. are the slopes, you demonstrate it when you print regressor.coef_ (call 'c' in the slides constant and not coefficient). you do such a good job explaining,these little things ruin some of the fun.
@SimplilearnOfficial
@SimplilearnOfficial 6 жыл бұрын
Noted! We will be careful in our upcoming video tutorials.
@rucker69
@rucker69 5 жыл бұрын
Take your upvote. Surprised they didn't add these corrections to the description.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
We are sorry for the inconvenience! We will definitely raise this issue to the tech team. Thanks.
@robertsharp5422
@robertsharp5422 4 жыл бұрын
@@SimplilearnOfficial 'c' in the slides should be called the offset or intercept.
@maxmacken8859
@maxmacken8859 2 жыл бұрын
@@rucker69 don't be so rude. they are providing free education. Were you not thought any manners?
@AryaInk
@AryaInk 5 жыл бұрын
How can I like this more then once ? The easiest explanation without wasting any time.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Prashant, we are so happy you love our videos. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@sherenemukherjee7976
@sherenemukherjee7976 2 жыл бұрын
Best explanation for regression so far! Most training videos only focus on the code part, which leaves people thinking about the mathematical deductions behind regression. But this covered it all.
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
WooHoo! We are so happy you love our video. Please do keep checking back in. We put up new videos every week on all your favorite topics. Whenever you have the time, you must also check out our blog page @simplilearn.com and tell us what you think. Have a good day!
@mattpurcell2462
@mattpurcell2462 4 жыл бұрын
Great video, but when I replicate this for a class it is using an older version of sklearn and says categorical_features has been deprecated. I'm attempting to use ColumnTransformer with mixed results with the provided data. Can you point me in the right direction?
@user-iu1jl9ib2m
@user-iu1jl9ib2m Жыл бұрын
No way to express my gratitude. Amazing explanation with code. I don't how I missed this video for long time
@bellissimo2930
@bellissimo2930 4 жыл бұрын
Wonderful detail oriented video . I have one doubt regarding prediction of the profit(new y) for an amount of R&D spend(which will be your new X) which is not present in your current data set. Once you have trained your model with existing data set how will you use it to predict the value of new dependent variable? can you please share the code for that?
@johnanih56
@johnanih56 3 жыл бұрын
I wish I could like this more than once. The best so far! Excellent job!
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Wow, thanks! Do show your support by subscribing to our channel. Cheers!
@asimuddin9873
@asimuddin9873 Жыл бұрын
Hello! This video is very helpful to understand the basics of Linear Regression but can you update the code where you import sklearn.preprocessing to transform the State column? Since the latest sklearn library removed categorical_features and hence we are getting errors as "TypeError: __init__() got an unexpected keyword argument 'categorical_features", Thank you!
@SimplilearnOfficial
@SimplilearnOfficial Жыл бұрын
Hi sorry we can't update the code in this video, but we make sure we will be using the updated library for categorical features in upcoming tutorials. Thank You
@andersonrojas8950
@andersonrojas8950 4 жыл бұрын
the complexity of the subject matter becomes easy and simple to learn! thank you very much
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
We are glad you found our video helpful, Anderson. Like and share our video with your peers and also do not forget to subscribe to our channel for not missing video updates. We will be coming up with more such videos. Cheers!
@ariannarisya
@ariannarisya 5 ай бұрын
Hello. When I did sns.heatmap(companies.corr()), I have error: ValueError: could not convert string to float: 'New York'. I followed all the steps. Thanks
@urbantech28
@urbantech28 4 жыл бұрын
19:23 I think that's column not row..!
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Good eye! Our mistake :
@SimplilearnOfficial
@SimplilearnOfficial 6 жыл бұрын
Machine Learning is the Future and yours can begin today. Comment below with your email to get our latest Machine Learning Career Guide. Let your journey begin. Do you have any questions on this topic? Please share your feedback in the comment section below and we'll have our experts answer it for you. Also, if you would like to have the dataset for implementing Linear Regression in Python, please comment below and we will get back to you. Thanks for watching the video. Cheers!
@joshuabarnes1031
@joshuabarnes1031 6 жыл бұрын
I would like to have access to the data set! It would be awesome if it were pubically available on Github or something like that. Awesome video!
@KukaKaz
@KukaKaz 4 жыл бұрын
could you please send the dataset to tolekbaeva@bk.ru. Id really appreciate it!!
@parisingh3860
@parisingh3860 3 жыл бұрын
Could you please send the dataset to parisingh541@gmail.com
@sharadmathur5665
@sharadmathur5665 3 жыл бұрын
Very informative tutorial ! Please send me the dataset csv file on id sharad.mathur2@gmail.com for hands-on. it would be quite helpful
@sameerkumar-ei6kf
@sameerkumar-ei6kf 3 жыл бұрын
Could you send at sameerkumar21635@gmail.com
@gouri9969
@gouri9969 4 жыл бұрын
Hi, for avoiding dummy variables, how did you decide to skip the 0th or the first column and take the rest of the columns? And in the video, did you say encoder created two instead of one columns ?
@user-im5nx9oi2v
@user-im5nx9oi2v 3 жыл бұрын
Very helpful video.!!! Why we do not drop the column state? Why we use it to predict the profits? Thank you!
@danieldesantiago9902
@danieldesantiago9902 4 жыл бұрын
I don't understand why you did not just put the dataset in the description box.
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Thanks for your kind comment. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@kassywhite9006
@kassywhite9006 4 жыл бұрын
Please send it to. Olamidebolarinwa450@gmail.com
@mousumibiswas5791
@mousumibiswas5791 4 жыл бұрын
@@SimplilearnOfficial My email id is mousumi.cse05@gmail.com..please,could you send me this dataset?
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hi, thanks for watching our video. We have sent the requested dataset to your mail ID. Do show your love by subscribing to our channel using this link: kzbin.info and don't forget to hit the like button as well. Cheers!
@nuel99fc11
@nuel99fc11 4 жыл бұрын
@@SimplilearnOfficial mine is nuel.emeruwa@gmail.com
@AbhishekJana11001
@AbhishekJana11001 4 жыл бұрын
That's what I needed. Thank you so much for the explanation.
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
"Hey Mark, we're glad you enjoyed this video! If you want to learn more, you can check out this playlist: kzbin.info/www/bejne/q5zdd3xvp8yqnLc. And don't forget to like, share and subscribe to our channel! :)"
@zusman88
@zusman88 4 жыл бұрын
27:03 What if you have more than 1 feature you are doing hot coding for? (ohe=OneHotEncoder(categorical_features=[0,1,2,3]) How many "dummy" variables would I need to delete then?
@nineteen5899
@nineteen5899 3 жыл бұрын
Great video , wish I could meet the teacher and say thank you in person... Truly-knowledge is free if you wanna simply learn....
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
WooHoo! We are so happy you love our videos. Please do keep checking back in. We put up new videos every week on all your favorite topics. Whenever you have the time, you must also check out our blog page @simplilearn.com and tell us what you think. Have a good day!
@Anwin555
@Anwin555 3 жыл бұрын
Great video! 🤗 I'm super glad that anyone who wishes to learn whatever tech or skill, they've the opportunity to learn from this amazing community! Many Thanks, #Simplilearn!❤
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Hi, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@mhmonis
@mhmonis 5 жыл бұрын
Simply brilliant !!! Best explanation. Well done.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hey Mohamed, we're glad you enjoyed the video! If you want to learn more, you can check this playlist out: kzbin.info/aero/PLEiEAq2VkUULYYgj13YHUWmRePqiu8Ddy Also, don't forget to like, share and subscribe! :)
@geethachikkanna8537
@geethachikkanna8537 3 жыл бұрын
This was really helpful and informative. Explained with simple examples
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad it was helpful!
@olawaleonafeso1597
@olawaleonafeso1597 Жыл бұрын
Loved this so much. Understood the contents perfectly. Thank you
@SimplilearnOfficial
@SimplilearnOfficial Жыл бұрын
Glad it was helpful!
@beyyyyyyyyyy0880
@beyyyyyyyyyy0880 4 жыл бұрын
May I ask a question? How to implementation variable x on python if its continuous number, data sample same as like on minutes 09:00. Thanks before, your answer would be help me so much:)
@justelmij2987
@justelmij2987 3 жыл бұрын
that was the best explanation I had so far to understand Linear regression, thank you sir.
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad it helped! Thanks for watching!
@felipejimenezortega7171
@felipejimenezortega7171 4 жыл бұрын
Thanks for doing it for free, I hope I can use it in my practice work
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hey Felipe, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)
@jaiprakash210
@jaiprakash210 3 жыл бұрын
Excellent!!! The Explanation was crystal clear and easy to understand:)
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad it was helpful!
@rockfighter9974
@rockfighter9974 Жыл бұрын
Hi Sir /Ma'am, Why avoided R&D Spend column from model. I think this is the indipendent variable so why not considering in model. Please explain
@jaimeandresgarcia7518
@jaimeandresgarcia7518 6 ай бұрын
Crystal clear. Thanks.
@bharathbhimshetty8926
@bharathbhimshetty8926 5 жыл бұрын
You are amazing... thank you for showing us LR in python sklearn...
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Greetings! Thank you for your kind words. Spread the word by liking, sharing and subscribing to our channel! Cheers :)
@francomagalong4860
@francomagalong4860 Жыл бұрын
Hi! May I know how you got 3 in the equation Y=m*X+c; Y=0.6*3+2.2? Thanks.
@DidaKusAlex
@DidaKusAlex 2 жыл бұрын
Hi, i have to say Amazing video, I had seen a lot of videos looking for a easy way to learn, but this video is the best, I can get it! I think you should update the code because the part "categorical_features" doesn't work. thanks for shared this information and learn us about ML.
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
You're very welcome!
@fernandonajera8291
@fernandonajera8291 3 жыл бұрын
Quick question, RD spend and Marketing spend showed some high correlation, wouldnt you have to drop one of those variables to avoid multicollinearity issues, as in, only look at INDEPENDENT variables? Or does the code take care of that when fitting the data? Thanks for the clarification!
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
"Hi Fernando, It is not recommended to use those independent variables that have high correlation with the variables. This might lead to high variance and bias. The code does take care of multicollinearity when fitting the data."
@ekumamichael3451
@ekumamichael3451 4 жыл бұрын
please i have issue running the sklearn but i experiences IndexError: too many indices for array
@nikhilkartha6157
@nikhilkartha6157 5 жыл бұрын
That best fit line animation from 13:44 to 14:41 is quite an intereseting thing to try and code.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Nikhil, we appreciate the kind comment. Do support us by joining our community by clicking this link: kzbin.info. Have a good day!
@imtiazahmad7826
@imtiazahmad7826 5 жыл бұрын
fantastic explanation just focused on maths ,i already know the programming part
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Glad you enjoyed our video! We have a ton more videos like this on kzbin.info/www/bejne/q5zdd3xvp8yqnLc. We hope you will join our community!
@sayankaennakham9811
@sayankaennakham9811 5 жыл бұрын
This is fantastic and thank you so much. Is it possible to get the dataset file so I can practice more please ? Thanks again for another wonderful clip. Regards, Sayan
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hello Sayan, thanks for the kind comment. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that also. Hope that helps.
@byronexaporriton318
@byronexaporriton318 2 жыл бұрын
How could I convert more than one categorical variable to numerical? Thanks!!
@mootasr
@mootasr 4 жыл бұрын
Wonderful video, very informational. Thank you for sharing! Kindly provide me with the dataset
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hi, please provide your email id here. We will send you the datasets to your email promptly. Thanks!
@ashish8849
@ashish8849 2 жыл бұрын
what is the range of r2 score (that is acceptable) to consider our model is best.
@vaishalibisht518
@vaishalibisht518 5 жыл бұрын
Hey Simplilearn thanks again for this wonderful video. I have seen may 5-6 videos of yours without getting bored. They are very easy to understand and follow. Really appreciate your help. I was planning to do higher studies in Data science but I guess it is not required now :) Can you please share the data set with us. It will be very helpful if its link can be shared in the description box.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hello Vaishali, we are glad that you found our video helpful. We also appreciate the kind comment. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that also. Hope that helps.
@vaishalibisht518
@vaishalibisht518 5 жыл бұрын
It will be very helpful if you can share your email id.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Sure. We are sharing the mail ID of our employee. Check this: kennet.rajan@simplilearn.net
@lenindesabi5122
@lenindesabi5122 4 жыл бұрын
we want use one hot encoder we can fit the model without it?
@maYYidtS
@maYYidtS 5 жыл бұрын
well explanation.... you take linear regression(sk learn librery) right it is for simple or multiple regression..! becuse we applaying more than one independent variables.
@maYYidtS
@maYYidtS 5 жыл бұрын
plz share the dataset to mayyi2609@gmail.com
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Mahesh, thanks for watching our video. We have sent the requested dataset to your mail ID. Coming to your query, it is a multiple linear regression because we are dealing with has more than 1 independent variable. Hope that helps!
@vinayreddyvarikuti
@vinayreddyvarikuti 5 жыл бұрын
Simplilearn Hi could you please share the Dataset to varikutivinay@gmail.com
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Vinay, thanks for watching our tutorial. We have shared the dataset to your mail ID. Do subscribe, like and share to stay connected with us. Cheers :)
@generalideamedia1283
@generalideamedia1283 Жыл бұрын
So my question is when doing predictions, are always given a guide (My lecturer calls it a lab) to follow or we have to come with the formats ourselves. Because I believe different predictions come with different times depending on the CSV contents.
@generalideamedia1283
@generalideamedia1283 Жыл бұрын
I meant "..comes with different format*"
@VarunKumar-fr6ix
@VarunKumar-fr6ix 5 жыл бұрын
Great video thank you
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hey Varun, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@winneronuba8173
@winneronuba8173 2 жыл бұрын
I just got to know of simplilearn and good to know it's worth sharing The detailed explanation is spot on Can I have the dataset used please?
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
Hello, thanks for viewing our tutorial. You can find your requested dataset in the video description. Hope that helps.
@natashasamuel9346
@natashasamuel9346 2 жыл бұрын
Great class. Keep up the good work. Thank You, Natasha Samuel
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
Keep learning with us .Stay connected with our channel and team :) . Do subscribe the channel for more updates : )
@serranneru8855
@serranneru8855 5 жыл бұрын
Very good structure of explaining it.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hey Serran, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@jenypowell6174
@jenypowell6174 3 жыл бұрын
I have tried updating the code from OneHotEncoder to Column_Transformer and I'm having touble getting it to work... ct = ColumnTransformer([("State", OneHotEncoder(), [3],)], remainder = "passthrough") ct.fit_transform(X) returns an error "Expected 2D array, got scalar array instead" What is the correct way to write this code now that OneHotEncoder is deprecated? Thanks for any input!
@Rkcuddles
@Rkcuddles 3 жыл бұрын
I love the simply learn content. Wish you would use public data sets so I don’t have to ask for every single file. The delay represents a barrier to me actually trying to code along :(
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
@sebastianfarias5670
@sebastianfarias5670 2 жыл бұрын
Thank you soooo much for such an amazing video on linear regression, +1 sub !!!!!
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
Thanks for the sub!
@christopheboven6589
@christopheboven6589 3 жыл бұрын
Great video, but in newer versions of sklearn the OneHotEncoder categorical_features is deprecated. How would i go about that in the newer version? Thanks.
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
"Hi Christophe, Please use ColumnTransformer instead. Here is an example: from sklearn.compose import ColumnTransformer ct = ColumnTransformer([(""Name_Of_Your_Step"", OneHotEncoder(),[0])], remainder=""passthrough"")) ct.fit_transform(X) "
@christopheboven6589
@christopheboven6589 3 жыл бұрын
@@SimplilearnOfficial Ok thanks, figured it out.
@gajananphutane1876
@gajananphutane1876 3 жыл бұрын
Nicely explained. Thank you.
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad it was helpful!
@anaswahid8520
@anaswahid8520 5 жыл бұрын
In this video residual analysis of simple and multiple regression are not discussed. Please upload the video on residual analysis.
@akshaymestry7339
@akshaymestry7339 4 жыл бұрын
thank you for explaining.whats the next step after running the entire code, how to use it to get the result?
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
The code for this demo has all that you need to build a linear regression model, predict the values, and measure the accuracy of the model.
@tllittle
@tllittle Жыл бұрын
Superb, thanks
@SimplilearnOfficial
@SimplilearnOfficial Жыл бұрын
Most welcome 😊
@alpha001ful
@alpha001ful 5 жыл бұрын
I saw a strong correlation between R&D Spend and Marketing Spend. Don't you think it will cause multi-collinearity ? So we need to eliminate one of the independent variables, either of them. Is there a tutorial how to eliminate or play with independent variables ?
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Sumit, thanks for checking out our tutorial. The data used in this video was generated randomly and not taken from an external source. Yes, there might be a problem of multicollinearity - a scenario where two or more variables are highly correlated and you can predict one variable out of another. To make sure this doesn't lead to wrong results, we have used X=X[:, 1:] for avoiding the dummy variable trap.
@ahmadzaimhilmi
@ahmadzaimhilmi 5 жыл бұрын
Try pandas.getdummies()
@rayrivera1830
@rayrivera1830 4 жыл бұрын
best video on ML. great stuff.
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Glad you enjoyed our video! We have a ton more videos like this on our channel. We hope you will join our community!
@RealtorMasood
@RealtorMasood 5 жыл бұрын
Great Video Thanks for sharing. I have tried it and getting error, NameError: name 'X' is not defined at # Encoding categorical data
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Masood, thanks for watching our video. Please make sure you have used "X" to store the independent variables and imported LabelEncoder and OneHotEncoder from sklearn.prepocessing properly. Do follow the lines of code as shown in the video.
@rankzkate
@rankzkate 3 жыл бұрын
Amazing video.Thank you
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Thank you too!
@deepikasingh2084
@deepikasingh2084 4 жыл бұрын
Hey simplilearn!! Thankyou very much for such an informative and helpful ML series. Learning a lot from you guys..for further learning, please provide me your data set files .. thank-you
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hello Deepika, thanks for viewing our tutorial and we hope it is helpful. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@deepikasingh2084
@deepikasingh2084 4 жыл бұрын
@@SimplilearnOfficial mail-id is deepikasingh153.ns@gmail.com Thankyou
@strugglingprogrammer1487
@strugglingprogrammer1487 4 жыл бұрын
please share data set with me on mail id aksahuboss@gmail.com
@anoushkapalvia7233
@anoushkapalvia7233 8 ай бұрын
Thank you so much for this video and I would like to get the python code used in this tutorial.
@frankesogwa1402
@frankesogwa1402 4 жыл бұрын
The tutorial was insightful. Please, I'll like to have the datasets for the tutorial. Thank you.
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hello Frank, thanks for viewing our tutorial and we hope it is helpful. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@TheAbid1992
@TheAbid1992 3 жыл бұрын
@@SimplilearnOfficial can you share the dataset. Here is my mail address: green.abid@gmail.com
@fanBladeOne
@fanBladeOne 4 жыл бұрын
"Holy Shit". This was literally what I said when it did in fact seem a custom dataframe's all that's necessary for an accurate correlation chart. I still cannot believe it was this easy. Thanks a lot for showing us all!
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hello, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)
@udhayakumarsathiyanarayana5312
@udhayakumarsathiyanarayana5312 6 жыл бұрын
Hi.. Great video of linear regression with proper example. Please can you share dataset..??
@udhayakumarsathiyanarayana5312
@udhayakumarsathiyanarayana5312 6 жыл бұрын
My mail ID: uk2804@gmail.com
@SimplilearnOfficial
@SimplilearnOfficial 6 жыл бұрын
Hi Udhay, we are glad that you liked our video. We have sent the requested dataset to your mail ID. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@asheeshyadav5519
@asheeshyadav5519 4 жыл бұрын
When I calculate r2_score then it shows R^2 score is not well-defined with less than two samples
@aakashsharma817
@aakashsharma817 4 жыл бұрын
hi sir when we are using OneHotEncoder it will not working because categorical_features attribute in OneHotEncoder is not available anymore, then Sir please help how can we select column on which we want to apply OneHotEncoder waiting for your reply ???
@cheerucheeru4574
@cheerucheeru4574 5 жыл бұрын
Really liked the presentation of the video. Great. How can i get access to the dataset in the video to work. Could you please let me know. Thanks.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi, thanks for watching our video and appreciating our work. It would be great if you could share your email ID so that we can send the dataset immediately If you want your email ID to be kept hidden, we can do that as well. Thanks.
@cheerucheeru4574
@cheerucheeru4574 5 жыл бұрын
Simplilearn hi my id is cheerusai@gmail.com. .thanks for your follow up. .
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Cheeru, thanks for checking out our tutorial. We have sent the requested dataset to your mail ID. Also, Subscribe to our channel by clicking on the bell icon for never missing another update. Cheers!
@Rob-jg6vi
@Rob-jg6vi 5 жыл бұрын
If we had all 50 states that we wanted to use for creating regression, would one hot encoding still be practical? What methods should we use when have over 100 categories with a big data set?
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Even if there are 50 states, one hot encoding will still be handy to convert categorical variables into a form that could be provided to machine learning algorithms to do a better job in prediction.
@sushilsawant8356
@sushilsawant8356 5 жыл бұрын
Hi Sir, can you show the visualization on the prediction output
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Please refer to this seaborn library article to visualize any linear regression using Python: seaborn.pydata.org/tutorial/regression.html Here is another prediction example to analyze your dataset: towardsdatascience.com/linear-regression-using-python-ce21aa90ade6
@subhakantasahoo2795
@subhakantasahoo2795 5 жыл бұрын
Nice video. Very well explained. Can I have the dataset used?
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hello Subhakanta, thanks for appreciating our work. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that also. Hope that helps.
@bhavishyagrover2420
@bhavishyagrover2420 5 жыл бұрын
Hi , Can u please share the data set to understand it better.. and the explanation was good
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hello Ranvi, thanks for viewing our tutorial and we hope it is helpful. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@darshanD_o7
@darshanD_o7 5 жыл бұрын
Awesome!!!
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Darshan, we appreciate the kind comment! enjoy!
@kevintrang3836
@kevintrang3836 3 жыл бұрын
When i run the r2 score code it runs, however I dont get an output?
@pphot1
@pphot1 5 жыл бұрын
Thank you for the very good explanation. Request you to please share the dataset to self try the explained code.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Prabir, thanks for checking out our tutorial. It would be great if you could provide your email Id so that we can send the dataset to your mail ID. Hope that helps!
@pphot1
@pphot1 5 жыл бұрын
prabir.pandas@gmail.com
@xmohd2011
@xmohd2011 5 жыл бұрын
​@@pphot1 Can i get the dataset as well from you
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hello Mohammed, thanks for viewing our tutorial and we hope it is helpful. It would be helpful if you will provide your email ID to us so that we could send the requested dataset promptly.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Prabir, thanks for sharing your email ID. We have sent the requested dataset to your mail ID. Do subscribe to our channel and stay tuned.
@anniebora4841
@anniebora4841 4 жыл бұрын
what if the r square is not close to 1 and the value slides away to faraway from 1 how can we go for calculation of r square to close to 1.
@husnulaman9197
@husnulaman9197 4 жыл бұрын
Hi there, great tutorial. But I've watched many tutorial on linear regression, one thing I don't understand is those 200 predictions; are they future data? I mean if I do it for Time vs Temperature; does that 20% means temperature for next 20 years? Or is there a way I can predict the temperature for next 20 years using coeff value. Please help 😭
@kabrantie
@kabrantie 4 жыл бұрын
20% is not future data, it's real data in the past, You use that to test the effectiveness of the model.
@ritacmilani
@ritacmilani 4 жыл бұрын
How can I perform a heteroscedasticity test to check the variance of the variables? This is one of the first things to check before running a regression, otherwise all the results will be biased.
@aterribleyoutuber9039
@aterribleyoutuber9039 2 жыл бұрын
Thank you very much!!!!!
@SimplilearnOfficial
@SimplilearnOfficial 2 жыл бұрын
You're welcome!
@rukesh07
@rukesh07 4 жыл бұрын
Excellent explanation
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Thanks for the kind comment! Do show your love by subscribing to our channel using this link: kzbin.info and don't forget to hit the like button as well. Cheers!
@AmonMRBAZONGO
@AmonMRBAZONGO 6 жыл бұрын
Hi ... great resource. Is it possible to have the dataset ? thanks and keep it up
@SimplilearnOfficial
@SimplilearnOfficial 6 жыл бұрын
Sure Amon, could you share your email id with us? We can email you the dataset used in this video.
@SimplilearnOfficial
@SimplilearnOfficial 6 жыл бұрын
Amon, you can share your email and we would not make your comment public if in case that is a concern. The email would be used only for sharing the dataset you asked for. Cheers!
@antonioprado9
@antonioprado9 5 жыл бұрын
can you please tell me what you call the model? is the model the equation you derived at the end? the entire set of data+tools+final result? or something else? thank you ./a/.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
The model is a linear regression model where we are predicting the profit based on various expenditures. After training the model, we are calculating the accuracy of the model.
@MS-qn9oo
@MS-qn9oo 5 жыл бұрын
It would be great if you would have interpreted the results of the Linear Regression test.. I don't understand what it mean the result of prediction ? what and how it will be going to benefit to take the decision
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
The result of the model is to predict the profit based on the expenditure the company makes. The test set contains 200 rows of data for which we are calculating the profit (y_pred), based on the model we trained using the training data of 800 rows (X_train).
@aimharahap9744
@aimharahap9744 5 жыл бұрын
very nice explanation. could you please share the dataset in this video pls. thanks
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hey Harahap, thank you for appreciating our work. We are glad to have helped. Do check out our other tutorial videos and subscribe to us to stay connected. Cheers :)
@merhaiakshay9625
@merhaiakshay9625 2 жыл бұрын
is it possible to get the powerpoint presentation? please
@bharathjc4700
@bharathjc4700 5 жыл бұрын
great video pls share the notebook and dataset
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Bharath, we have shared the requested dataset and code source as well. Spread the word by liking, sharing and subscribing to our channel! Cheers :)
@vigilhammer
@vigilhammer 5 жыл бұрын
Beautiful and awesome
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hey, thank you for watching our video. We are glad that you liked our video. Do subscribe and stay connected with us. Cheers :)
@karthikeyanmani5144
@karthikeyanmani5144 5 жыл бұрын
Using formula we are getting m slope and c intercept ,which is the best fit line ,then why we need to rotate the line in data point to get the best fit line ?
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
It's a general idea in Linear Regression that we keep shifting the regression line to make sure the sum of squared distance is least from all the data points to the line. Hope that helps!
@aarishmahmood8865
@aarishmahmood8865 5 жыл бұрын
Simplilearn Won't shifting the regression line changes the intercept?
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Shifting the regression line will certainly change the slope and the intercept of the line. In Linear Regression, we always consider the slope and intercept of the best fit line whose sum of squared distance is least from all the data points. Hope that helps!
@jongcheulkim7284
@jongcheulkim7284 3 жыл бұрын
Thank you for the lecture. It was very helpful. May I get a copy of the CVS file? Thank you.
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Hello, thanks for viewing our tutorial. It would be helpful if you will provide your email ID to us so that we can send the requested dataset promptly. On the off chance that you need your email ID to be kept hidden from others, we can do that too. Hope that helps.
@gustavoandres8093
@gustavoandres8093 5 жыл бұрын
hi, can you explain me how "AVOIDING DUMMY VARIABLE TRAP, X=X[:,1:]" works ? i think onehotencoded works like pivot, so its create a column for every diferent value. numpy array dont create a name for every column as pandas do, so i think when you delete the first column you actualy delete data.
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Dummy variable takes discrete values such as 1 or 0 to mark the presence and absence of a particular category. This scenario arises when two or more variables are highly correlated. You need to avoid such variables as it would divert the output results. To learn more on this please refer to analyticstraining.com/understanding-dummy-variable-traps-regression/
@imaadullahafridi1928
@imaadullahafridi1928 4 жыл бұрын
Thank you very much for such a simple explanation, got a lot to learn, Can I please get the data and the code please Thanks Imaad Ullah
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Hi Imaad, thanks for watching our video and appreciating our work. We have sent the requested dataset to your mail ID. Do show your love by subscribing our channel using this link: kzbin.info and don't forget to hit the like button as well. Cheers!
@raffaeltwinyoshua899
@raffaeltwinyoshua899 5 жыл бұрын
Do you have the tutorial for Deep Learning (ANN,CNN, RNN, LSTM )? thanksss
@SimplilearnOfficial
@SimplilearnOfficial 5 жыл бұрын
Hi Raffael, we have a couple of videos which cover the topics which you have mentioned. Check these videos out: 1. kzbin.info/www/bejne/oojOd5uMpp5gpMU 2. kzbin.info/www/bejne/gKqcXpR9gqeSiqc Do subscribe, like and share to stay connected with us. Cheers :)
@raufodilov2203
@raufodilov2203 3 жыл бұрын
very helpful video thank you
@SimplilearnOfficial
@SimplilearnOfficial 3 жыл бұрын
Glad it was helpful!
@ashutoshse1
@ashutoshse1 4 жыл бұрын
Hey your onehotencoder does not work, how can i use it for categorical data?
@NR-xt8mq
@NR-xt8mq 3 жыл бұрын
Hi! Thank you so much for the explanation. It's very helpful for me to learn. Anyway, can you please be kind and send me the csv file you used? And once again.. Thank you
@ekumamichael3451
@ekumamichael3451 4 жыл бұрын
thanks for the dataset
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
You are welcome! Do subscribe to our channel for more interesting videos.
@omarismail4734
@omarismail4734 4 жыл бұрын
Hi! Thank you very much for this baby-step explanation! At 24:10 I received TypeError: __init__() got an unexpected keyword argument 'categorical_features' I found out that the 'categorical_features' keyword was deprecated in version 0.20 and has been removed in 0.22 Any replacement command code based on your lines and get the same results? Thanks XOXO
@liboshen4045
@liboshen4045 4 жыл бұрын
use ColumnTransformer instead, bro
@daraputharakeswarareddy4347
@daraputharakeswarareddy4347 3 жыл бұрын
@@liboshen4045 column transformer is not working bro. from sklearn.preprocessing import LabelEncoder,OneHotEncoder from sklearn.compose import ColumnTransformer labelencoder=LabelEncoder() X[:,3]=labelencoder.fit_transform(X[:,3]) #onehotencoder= OneHotEncoder() columnTransformer = ColumnTransformer([( OneHotEncoder(), [3])], remainder = 'passthrough') X = np.array(columnTransformer.fit_transform(X).toarray(), dtype = np.float64) X = X[:, 1:]
@edmundchan8923
@edmundchan8923 4 жыл бұрын
Could you also show how to plot the residual?
@SimplilearnOfficial
@SimplilearnOfficial 4 жыл бұрын
Please find the following links to plot the residuals in any regression model: www.scikit-yb.org/en/latest/api/regressor/residuals.html docs.statwing.com/interpreting-residual-plots-to-improve-your-regression.
Learn Statistical Regression in 40 mins! My best video ever. Legit.
40:25
Glow Stick Secret 😱 #shorts
00:37
Mr DegrEE
Рет қаралды 147 МЛН
Would you like a delicious big mooncake? #shorts#Mooncake #China #Chinesefood
00:30
狼来了的故事你们听过吗?#天使 #小丑 #超人不会飞
00:42
超人不会飞
Рет қаралды 56 МЛН
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 150 М.
Python Machine Learning Tutorial (Data Science)
49:43
Programming with Mosh
Рет қаралды 2,7 МЛН
Simple Linear Regression in Python - sklearn
12:48
RegenerativeToday
Рет қаралды 58 М.
Starting a Career in Data Science (10 Thing I Wish I Knew…)
10:42
Sundas Khalid
Рет қаралды 92 М.
Regression Analysis | Full Course
45:17
DATAtab
Рет қаралды 764 М.