Simple Linear Regression | Mathematical Formulation | Coding from Scratch

แชร์
ฝัง
  • เผยแพร่เมื่อ 24 ม.ค. 2025

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

  • @a1x45h
    @a1x45h 3 ปีที่แล้ว +116

    Finally in model. Your explanation is clearer for me compared to even Andrew Ng. I am not kidding. Thank you Nitish. :)

    • @tusharsub1000
      @tusharsub1000 3 ปีที่แล้ว +7

      Yes, I too feel the same...

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

      real

    • @arghadeepmisra7865
      @arghadeepmisra7865 ปีที่แล้ว +4

      @@iamsomeone54 I came here just because I was not feeling comfortable with andrew ng

    • @SumanSadhukhan-md4dq
      @SumanSadhukhan-md4dq 8 หลายเดือนก่อน

      Can anyone differentiate loss and coss function?

    • @JyotirmoyGupta-x5r
      @JyotirmoyGupta-x5r 6 หลายเดือนก่อน +5

      @@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.

  • @yusufkhanvlogs9581
    @yusufkhanvlogs9581 3 ปีที่แล้ว +92

    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.

  • @boringclasses8765
    @boringclasses8765 3 ปีที่แล้ว +31

    u r best mentor/teacher i ever came across for data science....

  • @jonmasson3311
    @jonmasson3311 2 ปีที่แล้ว +14

    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 ปีที่แล้ว +14

    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!!

  • @tusharsub1000
    @tusharsub1000 3 ปีที่แล้ว +25

    Awesome man.. India is moving towards AI/ML and in the journey you are a blessing.. Anybody can learn AI/ML from your videos...

  • @Salman_Shaikh43622
    @Salman_Shaikh43622 10 หลายเดือนก่อน +3

    Dear Nitish, You are best DS mentor. Thanks for creating the channel for those who seeks the job in DS.

  • @srikrithibhat1999
    @srikrithibhat1999 7 หลายเดือนก่อน +11

    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.

    • @automationwithwasi
      @automationwithwasi 5 หลายเดือนก่อน +2

      Hi,
      I also observed the same thing, was checking for any existing comments and found this.

    • @Akarsh2022
      @Akarsh2022 4 หลายเดือนก่อน +1

      I think he just accidentally marked y as y hat on graph but everything else is correct, because he referred y hat as the one predicted by the model and y as the actual result. So in the formula it makes sense that we're subtracting the predicted value from the actual value.

  • @HealthyEveryday-to5dt
    @HealthyEveryday-to5dt ปีที่แล้ว +1

    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

  • @saptarshisanyal6738
    @saptarshisanyal6738 2 ปีที่แล้ว +5

    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.

  • @anonymousxyz3856
    @anonymousxyz3856 ปีที่แล้ว +3

    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.

  • @chiragjain5630
    @chiragjain5630 8 หลายเดือนก่อน +2

    thank you sir for all such beautiful content. there is a small mistake at 16:00. predicted and actual values are named incorrectly

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

    best tutor for ML on youtube. know one teaches with this much depth

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

    I tried to learn from many places but not able to learn it in a well manner even I try krish naik. I love the way you teach bro its awesome to learn from you

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

    You are a boon for us. As a gratitude, I dont skip the ads in your video.

  • @sarajaved5552
    @sarajaved5552 8 หลายเดือนก่อน +1

    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.

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

    I am from Mathematics & Computer background but first time I loved mathematics so much. The explanation can't be better than this !!

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

    Nitesh Sir is explaining linear regression so brilliantly ! The clarity and depth of his explanation are absolutely top-notch. It's amazing how he makes such a complex topic feel so simple and intuitive. Thank you, Sir, for sharing your knowledge in such an impactful way

  • @SimranCE-
    @SimranCE- 2 ปีที่แล้ว +2

    Finally I found the best teacher which will help me in ml journey

  • @infinity2creation551
    @infinity2creation551 2 ปีที่แล้ว +2

    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 9 หลายเดือนก่อน +1

      thank god someone noticed, i was sooooooo confused T_T

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

      @@niketasengar9191 yaah so mujhe abi tak solution ni mila..! Apko mila?

  • @blackbeard3237
    @blackbeard3237 18 วันที่ผ่านมา

    at 26:48 shouldn't xi be also 0 since m value is 0?

  • @paruchuriradhakrishna7759
    @paruchuriradhakrishna7759 3 ปีที่แล้ว +2

    Awesome vedio I couldn't this much detailed explanation even from great TH-cam data science teachers

  • @Aquib_Aftab_7903
    @Aquib_Aftab_7903 6 หลายเดือนก่อน +2

    Loved ur explaination sir, Really got a taste of calculus after so long.

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

    Best explanation that exists, hands down!

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

    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.

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

    @ 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

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

    The most underrated data science channel on TH-cam

  • @kaushalkishor928
    @kaushalkishor928 13 ชั่วโมงที่ผ่านมา

    I love the way you explain difficult topic like it's not a big deal. Even this much deep explaination we can't get in paid course as well but you give this beautiful content for free.
    i=1
    While i>0:
    print("Thank you very much Nitish Sir!")

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

    I rarely subscribe any channel in here, so, I subscribed yours. keep up the good work till advance level and beyond

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

    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.

  • @shivoham5939
    @shivoham5939 2 ปีที่แล้ว

    31:02 if first derivative is zero it can be either maxima or minima. so if we calculate our equation for this how to confirm is this maxima or minima

  • @SAADKHAN-m5m
    @SAADKHAN-m5m 11 หลายเดือนก่อน

    machine learning is fun right now but time consuming too. All thanks to you sir.

  • @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.

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

    At 16:20 , isn't the yi hat the prediction that lie on the line, not the actual y

    • @akzork
      @akzork 2 ปีที่แล้ว

      true

  • @aayushrimall
    @aayushrimall 4 หลายเดือนก่อน +1

    16:00 I feel like he said opposite. Am I wrong or he got confused?

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

    Really great service to the society. God bless you. You get everything in life

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

    16:00 mere khayal se pridiction value line pr honi chahiye or actual value to hum logo ne plot krai hi hai to jo line pr Dot bnaya hai (x,y) vo H^ hoga or jo actual point hai line wale point ke uper vo Hi hoga kunki vahi to actual data hai or Jo pdidict hua vo line pr hai to us hisab se Hi - H^ (actual value - predicated value) krenge tabhi to equation bnegi. Mere khayal se aapne vo glti se H^ actually point ko likha hai 15:55 pr

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

    Sir u are really .......Superrr
    Respect ++ from NIT Raipur

  • @doctorXZ
    @doctorXZ 26 วันที่ผ่านมา

    update at 16:22 the predicted value and actual value notation of Y should be opposite

    • @RohitkumarDanda
      @RohitkumarDanda 13 วันที่ผ่านมา +1

      since it will be squared up, it wont make any impact i.e (2-5) square = 9 and (5-2) square = 9

  • @pubbrbebegg969
    @pubbrbebegg969 2 ปีที่แล้ว

    @12:35 can anyone explain, what does the penalize means here?

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

    great explanation . concept clear . mathematical intuition was too good .

  • @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.

  • @arjunshankar1673
    @arjunshankar1673 2 ปีที่แล้ว

    after getting the m 's value at 39:27 , i think (xi -xbar) can be cancelled?

  • @arjunsingh-dn2fo
    @arjunsingh-dn2fo 8 หลายเดือนก่อน

    Sir, You are such a Genius, I never ever seen like you...🙇

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

    Woww..... ! Satisfied with full clarity. Thank you sir.

  • @MuhammadShahab-lf6gb
    @MuhammadShahab-lf6gb 19 วันที่ผ่านมา

    i think you deserve at least 50M subscribers!

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

    This playlist is a blessing. Thank you Sir🙏

  • @smiteshtamboli1051
    @smiteshtamboli1051 2 ปีที่แล้ว

    Awesome videos, You are the best teacher for data science

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

    SPEECH-LESS!!!!watching your videos is the best decision i've everrrr madeee.

  • @milindtakate5987
    @milindtakate5987 3 ปีที่แล้ว +5

    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!

  • @VarunMalik-mo6mr
    @VarunMalik-mo6mr ปีที่แล้ว

    You’re helping so many lives god bless you!!

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

    One of the best explanation i saw
    Thanks a lot sir😀

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

    Loved it!!! No one can explain like you sir! ❤❤❤❤

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

    No one can explain more simpler than this

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

    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 🔥

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

    You deserve million views

  • @SumanSadhukhan-md4dq
    @SumanSadhukhan-md4dq 8 หลายเดือนก่อน

    Wow...
    I got full clarity now😊

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

    You deserve a lot of respect. Thank you for the effort!!!!!!

  • @sumeersaifi6354
    @sumeersaifi6354 3 ปีที่แล้ว

    on (19:11 min) you have taken y-y^ and y^ is mx+b then why you have taken (y - mx-b) why there is minus sign between mx and b

    • @anshulsharma7080
      @anshulsharma7080 2 ปีที่แล้ว

      - sign when multiplied to
      (mx +b) will change it to
      (mx-b)

  • @rajasekharreddy3629
    @rajasekharreddy3629 2 ปีที่แล้ว

    No words to say after watching your videos just love you brother...

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

    bhai kya teaching style superb.

  • @tanmayshinde7853
    @tanmayshinde7853 3 ปีที่แล้ว +2

    Hidden Gem On TH-cam

  • @JACKSPARROW-ch7jl
    @JACKSPARROW-ch7jl ปีที่แล้ว

    you are best ever nitishbhaoi hats off to you

  • @JitendraVyas-pt3ct
    @JitendraVyas-pt3ct 8 หลายเดือนก่อน

    What a great explanation 👏🔥
    Hats off 🫡🙇‍♂️

  • @AyushPatel
    @AyushPatel 3 ปีที่แล้ว +3

    Thanks sir for the video🔥🔥🔥🔥🔥🔥🔥🔥🔥 Hats off to you

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

    You course is really great,can you cover time series as well

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

    That was exceptionally good... Thank you for this amazing explainer

  • @sahaji-bi7qi
    @sahaji-bi7qi 7 หลายเดือนก่อน

    great learning bro,
    maja a gaya ,
    love you bhai.

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

    Its year 2025 Jan and your playlist is still a blessing for many of us. Thanks Sir🙇

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

    Amazing Sir !!!!
    Love your videos

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

    bahut hi pyara video tha sir thankyou

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

    you are the great bro what a way of teaching, incredible
    .....no doubt knowledge has no boundary alots of love from pakistan❣

  • @pankajitm
    @pankajitm 2 ปีที่แล้ว

    Brother you nailed it in explanation, best tutorial

  • @FindMultiBagger
    @FindMultiBagger 2 ปีที่แล้ว

    where is your Patreon , you deserved lots of love and respect, Thank you for everything :) GBU

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

    selfless service once I would get placement I would surely do something to grow this channel

  • @sameerpandey5561
    @sameerpandey5561 3 ปีที่แล้ว

    Clean and crisp Explanation

  • @sayanNITdgp2025
    @sayanNITdgp2025 2 ปีที่แล้ว

    you have created a gold mine...

  • @shanmukhan-by2ld
    @shanmukhan-by2ld หลายเดือนก่อน

    Best content in ML space

  • @balrajprajesh6473
    @balrajprajesh6473 2 ปีที่แล้ว

    Best Teacher Ever!

  • @ParthivShah
    @ParthivShah 10 หลายเดือนก่อน +1

    Thank You Sir.

  • @RahulKumar-ko8pu
    @RahulKumar-ko8pu 3 ปีที่แล้ว

    the way you teach is awesome

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

    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 ปีที่แล้ว +2

      Will soon be uploading a video on this topic.

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

    lovely explanation

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

    The best Explanation ever!

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

    Sir Your videos are amazing

  • @dilipgyawali1776
    @dilipgyawali1776 2 ปีที่แล้ว

    U are the best.........really amazing

  • @arvindsinghrawat538
    @arvindsinghrawat538 2 ปีที่แล้ว

    Sir Ji Tussi Great Ho !! :)

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

    Will you b working on sgd regressor in upcoming videos?

  • @1981Praveer
    @1981Praveer 2 ปีที่แล้ว

    Great Video. clear explanation

  • @samuelnikhade5612
    @samuelnikhade5612 2 ปีที่แล้ว

    Awesome Sirji, tuse great ho

  • @coding_world_live9
    @coding_world_live9 2 ปีที่แล้ว

    Man dil jeet liyaa❣️🔥

  • @namansethi1767
    @namansethi1767 3 ปีที่แล้ว

    Thanks sir for this explanation on linear regression

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

    15:50 to 16:00...is it correct?

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

      actualy y pred and yi is interchanged on y axis lane,

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

    Next Level Explanation.......thanks for sharing🫡🙂‍↕️

  • @DevrajSingh-mt3ww
    @DevrajSingh-mt3ww ชั่วโมงที่ผ่านมา

    Nice session

  • @balrajprajesh6473
    @balrajprajesh6473 2 ปีที่แล้ว

    Wish I could like the video twice!

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

    Thank you so much sir 🙏🙏🙏

  • @nishagera6051
    @nishagera6051 2 ปีที่แล้ว

    Extremely good✌✌

  • @prisha4713
    @prisha4713 18 วันที่ผ่านมา

    SUCH A GOOD VIDEO

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

    All doubts cleared thanks bro