Simple Linear Regression | Mathematical Formulation | Coding from Scratch

  Рет қаралды 88,920

CampusX

CampusX

Күн бұрын

In this video, we break down the formula and guide you through coding from scratch in Python. Watch, learn, and build a solid understanding of this foundational regression technique.
Code used: github.com/campusx-official/1...
============================
Do you want to learn from me?
Check my affordable mentorship program at : learnwith.campusx.in/s/store
============================
📱 Grow with us:
CampusX' LinkedIn: / campusx-official
CampusX on Instagram for daily tips: / campusx.official
My LinkedIn: / nitish-singh-03412789
Discord: / discord
E-mail us at support@campusx.in
⌚Time Stamps⌚
00:00 - Intro
01:15 - Revision / How to Find 'm' and 'b'
40:06 - Coding from Scratch
53:10 - Outro

Пікірлер: 158
@yusufkhanvlogs9581
@yusufkhanvlogs9581 3 жыл бұрын
You deserve more respect bro....really i admire you...No one give interpretation and inferences like u. And please make a videos on Neural Network and NLP.
@akash.deblanq
@akash.deblanq 3 жыл бұрын
Finally in model. Your explanation is clearer for me compared to even Andrew Ng. I am not kidding. Thank you Nitish. :)
@tusharsub1000
@tusharsub1000 2 жыл бұрын
Yes, I too feel the same...
@iamsomeone54
@iamsomeone54 11 ай бұрын
real
@arghadeepmisra7865
@arghadeepmisra7865 10 ай бұрын
@@iamsomeone54 I came here just because I was not feeling comfortable with andrew ng
@SumanSadhukhan-md4dq
@SumanSadhukhan-md4dq 2 ай бұрын
Can anyone differentiate loss and coss function?
@JyotirmoyGupta-x5r
@JyotirmoyGupta-x5r Ай бұрын
@@SumanSadhukhan-md4dq Loss function is the error expression when considered for a single data point. When we sum up all the errors over all the data points, we get the cost function. So, basically, cost function is when we sum up the loss functions of all the data points. Hope this makes sense to you.
@boringclasses8765
@boringclasses8765 3 жыл бұрын
u r best mentor/teacher i ever came across for data science....
@jonmasson3311
@jonmasson3311 Жыл бұрын
It takes patience, endurance and talent to be a teacher, but you make it look so easy day after day. I hope you know just how much we all appreciate you.
@ritwikgupta7540
@ritwikgupta7540 Жыл бұрын
Still halfway trough the video, but I feel necessary to comment here. This is by far the best explanation of Loss function and the intuition leading up to it. I have enrolled in paid courses to learn this, and let me tell you the quality of explanation in this 53 min video is better than any other resources out there. Kudos to you...keep shining Nitish!!
@HealthyEveryday-to5dt
@HealthyEveryday-to5dt 8 ай бұрын
I have never seen a teacher who teach math's soo easily. I mean hats off to you sir. Every student deserves teaching like you give
@tusharsub1000
@tusharsub1000 2 жыл бұрын
Awesome man.. India is moving towards AI/ML and in the journey you are a blessing.. Anybody can learn AI/ML from your videos...
@campusx-official
@campusx-official 2 жыл бұрын
Glad you liked them
@Salman_Shaikh43622
@Salman_Shaikh43622 4 ай бұрын
Dear Nitish, You are best DS mentor. Thanks for creating the channel for those who seeks the job in DS.
@sarajaved5552
@sarajaved5552 2 ай бұрын
Hats off to you sir. Apart from immense knowledge, your patience and ability to simplify abstract topics is outstanding. You are a gifted teacher. Thank you is not enough.
@anonymousxyz3856
@anonymousxyz3856 Жыл бұрын
You are amazing!! Just the way we want the lectures to be!! When you take care of uppercase and lowercase chars while writing terms like X_train, y_train, it reflects your in depth understanding of the subject and the notations one should follow. You will reach great heights.
@paruchuriradhakrishna7759
@paruchuriradhakrishna7759 3 жыл бұрын
Awesome vedio I couldn't this much detailed explanation even from great KZbin data science teachers
@preetiughrejiya3045
@preetiughrejiya3045 Жыл бұрын
I think the way you have cleared my concepts has given me more confidence to talk on ML models and their fine tuning. Really very intuitive understanding.
@ramanmaini1931
@ramanmaini1931 Жыл бұрын
Really great service to the society. God bless you. You get everything in life
@saptarshisanyal6738
@saptarshisanyal6738 2 жыл бұрын
You are a boon for us. As a gratitude, I dont skip the ads in your video.
@user-is2qg6yh2b
@user-is2qg6yh2b 4 ай бұрын
You explained every concept articulately. Thank you
@techtonic3652
@techtonic3652 2 ай бұрын
You are awesome in explanation I have never learn anything as simple as you explained. you made the complex things for me very simple. You are awesome.
@sumitwarkari4455
@sumitwarkari4455 4 ай бұрын
Very good explanation for the linear regression algorithm. You covered the math behind it. I never thought that i could learn how algorithm works in the backend. Thanks for the explanation.
@manandesai6404
@manandesai6404 4 күн бұрын
I took one course which has over 1M students still I find the course rubbish, like they did not go any deep. And here is this guy with just 220k subscribers(while commenting) and have god level teaching skills and going very deep in what and how. You deserve more than what you are getting. Hopefully people will find this channel and you get more for what you are doing. You are a just amazing 🔥
@numanakhtersiddiqui6573
@numanakhtersiddiqui6573 5 ай бұрын
best tutor for ML on youtube. know one teaches with this much depth
@saptarshisanyal6738
@saptarshisanyal6738 2 жыл бұрын
As of today this video has 8k views. But i am sure in the next 1 year it will cross 1 Lac view. This is the best explanation of cost function derivation.
@srikrithibhat1999
@srikrithibhat1999 Ай бұрын
15:54 Actually it should be yi^, Because that line has been drawn by the model, so it will be a predicted value right? And the above point should be yi. I think you have said it ulta. Could you please reply to this? And all your sessions are awesome. Thank you so much for such a great explanation.
@kalyanikadu8996
@kalyanikadu8996 Жыл бұрын
Such an Amazing teacher with such an incredible content and explanation. Very grateful to you Nitish! A very biggg Thank you too you.
@SimranCE-
@SimranCE- 2 жыл бұрын
Finally I found the best teacher which will help me in ml journey
@user-yd7kc8tm7x
@user-yd7kc8tm7x 5 ай бұрын
machine learning is fun right now but time consuming too. All thanks to you sir.
@VarunMalik-mo6mr
@VarunMalik-mo6mr 6 ай бұрын
You’re helping so many lives god bless you!!
@priyanujmisra4245
@priyanujmisra4245 Жыл бұрын
You deserve a lot of respect. Thank you for the effort!!!!!!
@smiteshtamboli1051
@smiteshtamboli1051 2 жыл бұрын
Awesome videos, You are the best teacher for data science
@Aquib_Aftab_7903
@Aquib_Aftab_7903 Ай бұрын
Loved ur explaination sir, Really got a taste of calculus after so long.
@rish725
@rish725 2 жыл бұрын
That was exceptionally good... Thank you for this amazing explainer
@bakkaabhilash5393
@bakkaabhilash5393 10 ай бұрын
Woww..... ! Satisfied with full clarity. Thank you sir.
@rajasekharreddy3629
@rajasekharreddy3629 2 жыл бұрын
No words to say after watching your videos just love you brother...
@muhammadmustafa3158
@muhammadmustafa3158 3 жыл бұрын
Amazing Sir !!!! Love your videos
@arjunsingh-dn2fo
@arjunsingh-dn2fo 2 ай бұрын
Sir, You are such a Genius, I never ever seen like you...🙇
@SumanSadhukhan-md4dq
@SumanSadhukhan-md4dq 2 ай бұрын
Wow... I got full clarity now😊
@sameerpandey5561
@sameerpandey5561 2 жыл бұрын
Clean and crisp Explanation
@namansethi1767
@namansethi1767 2 жыл бұрын
Thanks sir for this explanation on linear regression
@rajaneeshray7502
@rajaneeshray7502 Жыл бұрын
bhai kya teaching style superb.
@sayanNITdgp2025
@sayanNITdgp2025 2 жыл бұрын
you have created a gold mine...
@pankajitm
@pankajitm 2 жыл бұрын
Brother you nailed it in explanation, best tutorial
@narendraparmar1631
@narendraparmar1631 7 ай бұрын
One of the best explanation i saw Thanks a lot sir😀
@RahulKumar-ko8pu
@RahulKumar-ko8pu 2 жыл бұрын
the way you teach is awesome
@abhishekganapure6456
@abhishekganapure6456 5 ай бұрын
I rarely subscribe any channel in here, so, I subscribed yours. keep up the good work till advance level and beyond
@harishvishwakarma9072
@harishvishwakarma9072 5 ай бұрын
bahut hi pyara video tha sir thankyou
@JitendraVyas-pt3ct
@JitendraVyas-pt3ct 2 ай бұрын
What a great explanation 👏🔥 Hats off 🫡🙇‍♂️
@coding_world_live9
@coding_world_live9 2 жыл бұрын
Man dil jeet liyaa❣️🔥
@jaikumarpritmani6596
@jaikumarpritmani6596 Жыл бұрын
thankyou so much sir for adding so much value...
@sober_22
@sober_22 Жыл бұрын
The best Explanation ever!
@descendantsoftheheroes_660
@descendantsoftheheroes_660 2 жыл бұрын
Thanks sir God bless you ..Keep continue
@chiragjain5630
@chiragjain5630 2 ай бұрын
thank you sir for all such beautiful content. there is a small mistake at 16:00. predicted and actual values are named incorrectly
@chitrakshi2587
@chitrakshi2587 19 күн бұрын
Next Level Explanation.......thanks for sharing🫡🙂‍↕️
@sahaji-bi7qi
@sahaji-bi7qi Ай бұрын
great learning bro, maja a gaya , love you bhai.
@JACKSPARROW-ch7jl
@JACKSPARROW-ch7jl Жыл бұрын
you are best ever nitishbhaoi hats off to you
@BhanupratapApat
@BhanupratapApat 4 ай бұрын
The most underrated data science channel on KZbin
@milindtakate5987
@milindtakate5987 3 жыл бұрын
Clear and concise explanation!! Will it be possible to create one lecture series on in-depth Python? I have checked the one uploaded by you. But it has some missing lectures. Also, in some lectures the board is not visible. Thanks in advance!
@dilipgyawali1776
@dilipgyawali1776 2 жыл бұрын
U are the best.........really amazing
@balrajprajesh6473
@balrajprajesh6473 2 жыл бұрын
Best Teacher Ever!
@samuelnikhade5612
@samuelnikhade5612 Жыл бұрын
Awesome Sirji, tuse great ho
@AyushPatel
@AyushPatel 3 жыл бұрын
Thanks sir for the video🔥🔥🔥🔥🔥🔥🔥🔥🔥 Hats off to you
@arvindsinghrawat538
@arvindsinghrawat538 Жыл бұрын
Sir Ji Tussi Great Ho !! :)
@warrior3357
@warrior3357 4 ай бұрын
Sir u are really .......Superrr Respect ++ from NIT Raipur
@MrGaurav331
@MrGaurav331 3 жыл бұрын
Sir Your videos are amazing
@gamingmonster8148
@gamingmonster8148 Жыл бұрын
you are the great bro what a way of teaching, incredible .....no doubt knowledge has no boundary alots of love from pakistan❣
@cs_soldier5292
@cs_soldier5292 10 ай бұрын
No one can explain more simpler than this
@1981Praveer
@1981Praveer Жыл бұрын
Great Video. clear explanation
@FindMultiBagger
@FindMultiBagger Жыл бұрын
where is your Patreon , you deserved lots of love and respect, Thank you for everything :) GBU
@bajisk6769
@bajisk6769 Жыл бұрын
You course is really great,can you cover time series as well
@pawanmishra6571
@pawanmishra6571 Жыл бұрын
All doubts cleared thanks bro
@ParthivShah
@ParthivShah 4 ай бұрын
Thank You Sir.
@tanmayshinde7853
@tanmayshinde7853 2 жыл бұрын
Hidden Gem On KZbin
@aakiffpanjwani1089
@aakiffpanjwani1089 5 ай бұрын
sir, you are a legend
@mr.deep.
@mr.deep. 2 жыл бұрын
best video for LR maths
@pkdudejunction2542
@pkdudejunction2542 Жыл бұрын
Watching like movie.... thank you sir... 🙏🏻
@balrajprajesh6473
@balrajprajesh6473 Жыл бұрын
Wish I could like the video twice!
@parthraghuwanshi2929
@parthraghuwanshi2929 Жыл бұрын
selfless service once I would get placement I would surely do something to grow this channel
@zerotohero1002
@zerotohero1002 Жыл бұрын
You deserve million views
@jaidippatra6440
@jaidippatra6440 Жыл бұрын
Just Mind blowing
@ganeshreddykomitireddy5128
@ganeshreddykomitireddy5128 Жыл бұрын
Simply super sir
@Hariom-bg6jv
@Hariom-bg6jv 2 жыл бұрын
Great thank you
@AbdulAhadShan
@AbdulAhadShan Ай бұрын
luv you ho gya ustad gee
@divynashupathak9008
@divynashupathak9008 8 ай бұрын
sir, hats off to you
@ritujawale10
@ritujawale10 2 жыл бұрын
Thank you sir 👍
@0Fallen0
@0Fallen0 Жыл бұрын
Hey can you make a video on Custom Estimators that are compatible with Scikit-Learn? defining our class like SimpleReg(BaseEstimator, RegressorMixin): so we can "technically" use it in pipelines? I tried but it isn't passing the check_estimator test by Scikit-Learn.
@nishagera6051
@nishagera6051 Жыл бұрын
Extremely good✌✌
@harshitasingh4752
@harshitasingh4752 6 ай бұрын
If you were our maths teacher, then maths would never have been a darawana subject as it is considered to be now😂
@sandipansarkar9211
@sandipansarkar9211 2 жыл бұрын
finished watching
@deeprajmazumder6261
@deeprajmazumder6261 Жыл бұрын
Hi sir, You said that in OLS we don't use approximation process like differentiation etc, but while explaining for OLS, you went to explain gradient descent and then proved the formula for OLS. I have a doubt in that sir.
@maths_impact
@maths_impact Жыл бұрын
Wonderful sir
@shanrock1021
@shanrock1021 9 ай бұрын
excellent !
@sudipgautam7471
@sudipgautam7471 2 ай бұрын
@ 16:00 there is small mistake If predicted is represented by hat symbol and actual by not hat Then y hat must be below and y must be above in y-axis line
@zerotohero1002
@zerotohero1002 Жыл бұрын
Your the best
@arshad1781
@arshad1781 3 жыл бұрын
Thanks
@meethirpara4707
@meethirpara4707 Жыл бұрын
Your explanation is mind-blowing but my question is when we square all the data point then line will be form according to the squared data but our actual data is non square how it will adjust according to our real data
@infinity2creation551
@infinity2creation551 Жыл бұрын
Sir apney (y hat) ko ulta likh diya (y hat) toh actual value hai and (yi) jo model predict kiya ..but ap bol sahi rahe ho likh ulta rahe ho syd...(yi) upr hoga and (y^) niche hoga q ki nichey wla model predicte kr rha is liya niche wla hoga.. Or di =(yi-y^) hoga or yi upr hoga and y^ niche hoga.. 15:30 Plz reply
@niketasengar9191
@niketasengar9191 3 ай бұрын
thank god someone noticed, i was sooooooo confused T_T
@infinity2creation551
@infinity2creation551 3 ай бұрын
@@niketasengar9191 yaah so mujhe abi tak solution ni mila..! Apko mila?
@ameerrace2284
@ameerrace2284 3 жыл бұрын
Will you b working on sgd regressor in upcoming videos?
@akshaykanavaje474
@akshaykanavaje474 3 жыл бұрын
that's what we called learning algorithms from scratch. sir, can u tell us which book you preferred to learn this from? just love your content.
@campusx-official
@campusx-official 3 жыл бұрын
Will soon be uploading a video on this topic.
@HimanshuSharma-we5li
@HimanshuSharma-we5li 2 жыл бұрын
Best sir 👌👌
@infinity2creation551
@infinity2creation551 Жыл бұрын
I hope ki ap hamesha premium content free mai ❤️☺️☺️☺️❤️......❤️
@shivoham5939
@shivoham5939 Жыл бұрын
sir i have one doubt sir if we equate the slope of the func to zero or derivative to zero this means that it can be either maxima or minima . please explain this sir
@sachin2725
@sachin2725 Жыл бұрын
Hello Sir, XGBoost is not included in playlist, could you please make a video on XGBoost ?
@Kishore6413
@Kishore6413 Жыл бұрын
In the error function, along with m and b, y also depends on x, right?
Multiple Linear Regression | Geometric Intuition & Code
20:57
Опасность фирменной зарядки Apple
00:57
SuperCrastan
Рет қаралды 11 МЛН
A little girl was shy at her first ballet lesson #shorts
00:35
Fabiosa Animated
Рет қаралды 15 МЛН
БИМ БАМ БУМ💥
00:14
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 3,8 МЛН
K-Means Clustering From Scratch in Python (Mathematical)
33:10
NeuralNine
Рет қаралды 30 М.
Learn Statistical Regression in 40 mins! My best video ever. Legit.
40:25
Water powered timers hidden in public restrooms
13:12
Steve Mould
Рет қаралды 461 М.
Linear Regression From Scratch in Python (Mathematical)
24:38
NeuralNine
Рет қаралды 163 М.
Linear Regression, Clearly Explained!!!
27:27
StatQuest with Josh Starmer
Рет қаралды 1,3 МЛН
Gradient Descent From Scratch in Python - Visual Explanation
28:44