Linear Regression in 2 minutes

Поделиться
HTML-код
  • Опубликовано: 5 фев 2025
  • Linear Regression in 2 minutes.
    ---------------
    Credit:
    🐍 Manim and Python : github.com/3b1...
    🐵 Blender3D: www.blender.org/
    🗒️ Emacs: www.gnu.org/so...
    Music/Sound: www.bensound.com
    This video would not have been possible without the help of Gökçe Dayanıklı.

Комментарии • 85

  • @ionut.666
    @ionut.666 3 года назад +188

    This is a very good exercise for people who already know the topic, but want to learn new ways of explaining it to others in a very short time.

  • @nancylopez5476
    @nancylopez5476 2 года назад +26

    Wow, you saved my life ! This is the most clear explanation about this topic. Loved it ! Love you !

  • @TheKrasTel
    @TheKrasTel 3 года назад +16

    Your videos are absolutely stunning, only matter of time when the serious views will come in. Please keep doing these! :)

    • @VisuallyExplained
      @VisuallyExplained  3 года назад +1

      Thanks for the great feedback. stay tuned for more!

  • @mamidalamani9636
    @mamidalamani9636 6 месяцев назад +12

    00:01 Linear regression predicts the value of a dependent variable based on an independent variable.
    00:20 Linear regression helps predict new values based on existing data
    00:38 Linear regression is useful for prediction problems.
    00:55 Quantifying the fit of a line to data points
    01:10 Solving a prediction machine learning problem using linear regression from scratch.
    01:29 Linear regression is simple and extensible
    01:49 Linear regression allows interpretation of coefficients
    02:08 Linear regression involves finding the relationship between two variables.

  • @IncredibleSkillz-df4xk
    @IncredibleSkillz-df4xk Год назад +9

    Thank you SOOO much for this video.. My intergated 1 teacher was absent today and I didn't understand the topic. I then stumbled upon this video and it helped alot. THANKS!

  • @RohitKumar-dg2qt
    @RohitKumar-dg2qt 2 года назад +9

    Most awesome videos that explains things how they are suppose to be. Love it

  • @chahinezmazouzi2526
    @chahinezmazouzi2526 3 года назад +10

    Great content! it's so helpful to see mathematical concept visually explained! Thank you for making it so easy and available.

  • @bheemeshd3101
    @bheemeshd3101 2 года назад

    this is masterpiece of information you deserve more views

  • @tanishqawasthi5664
    @tanishqawasthi5664 3 года назад +3

    This Channel is Really Creating some masterpieces in Visually Explaining Some Really deep Concepts in Optimization, A.I & Machine Learning....The Art with which you Visually Explain Things is Truly Phenomenal,
    I've Been a Huge Fan of this Channel since DAY 1 ,Please Never Stop Creating this type of content ….. !!!
    As an Optimization Student ,Is There Any Way I can connect with you and help this channel create more good Content..??

    • @VisuallyExplained
      @VisuallyExplained  3 года назад +2

      Hey there, thanks a lot for watching! I am glad you enjoyed my channel. Feel free to DM me on twitter.

  • @santhoshvavilala5397
    @santhoshvavilala5397 9 месяцев назад

    Very well explained.. it helps to understand how the function does the job.. ignore negative comments..😅

  • @Ken08Odida
    @Ken08Odida 7 месяцев назад

    Thank you. Perfectly simplified in 2 minutes. Now I can build on this basic understanding

  • @vinayakmarv6873
    @vinayakmarv6873 3 года назад

    This is the best way for video lectures

  • @BhagyashriDhage
    @BhagyashriDhage 20 дней назад

    Excellent video👍

  • @stefanrusu9895
    @stefanrusu9895 2 года назад +7

    Awesome video! I love how you explain every concept visually and easy to understand. Any chance on making a video on logistic regression as well?

  • @PritishMishra
    @PritishMishra 3 года назад +2

    Amazing explanation and animations!

  • @sophiafunworldatthepark6740
    @sophiafunworldatthepark6740 Год назад +1

    simple and easy to understand.

  • @duaaali3790
    @duaaali3790 5 месяцев назад

    Thank you so much for this amazing effort

  • @amirabenkaidali2941
    @amirabenkaidali2941 Год назад +1

    Thank you sm for this simple explanation it helps a lotttt

  • @huntergarrigus368
    @huntergarrigus368 Год назад +6

    Can someone please explain how the gradient is applied to the summation over the square error term to produce the result shown at the bottom at 1:13

    • @JuncoHat
      @JuncoHat 3 месяца назад +2

      I know this is late, but hopefully helpful to someone. The gradient is the vector whose first element is the partial derivative with respect to alpha and whose second element is the partial derivative with respect to beta.

  • @RadicalRed0
    @RadicalRed0 Год назад +1

    This was very helpful. Thank You

  • @tohigherhighs
    @tohigherhighs 6 месяцев назад

    What an actual boss of a video

  • @ahlamouldkhesal5562
    @ahlamouldkhesal5562 Год назад

    that was life saving TSM!!!

  • @christinakujak5275
    @christinakujak5275 Год назад +1

    Best explanation of linear regression that I've heard.

  • @noname-anonymous-v7c
    @noname-anonymous-v7c Год назад +3

    1:20 the formula for alpha is wrong. dem = sum(x_i^2) - n*sum(x_i)^2, nom = n*sum(x_i * y_i) - sum(x_i)*sum(y_9)

    • @fabianheidmaier3113
      @fabianheidmaier3113 2 месяца назад

      The formula for alpha is indeed wrong. Your formula is almost correct. The correct formula for alpha is in my opinion:
      alpha = (n*sum(x_i*y_i) - sum(x_i)*sum(y_i))/(n*sum(x_i^2) - sum(x_i)^2)

  • @norivall7111
    @norivall7111 Год назад +3

    I think I have a problem with the formula because when i try it to an example, it completely wrong.

  • @samuraipiyush
    @samuraipiyush Год назад +1

    beautiful

  • @yashtibrewal4259
    @yashtibrewal4259 3 года назад +1

    Perfect video, thanks

  • @EmiliaKaida
    @EmiliaKaida 3 года назад +1

    Are you using manim for these presentations or something else ?

    • @VisuallyExplained
      @VisuallyExplained  3 года назад +2

      I am using a combination of manim, blender, and after effects.

    • @EmiliaKaida
      @EmiliaKaida 3 года назад

      @@VisuallyExplained Thanks

  • @ranjanpal7217
    @ranjanpal7217 Год назад +1

    Amazing explnanation

  • @learnwitharbia3477
    @learnwitharbia3477 Год назад +1

    Just Amazing!

  • @eudaimonia2120
    @eudaimonia2120 9 месяцев назад +1

    What happened after 1:10, what was that gradient thing?

  • @Fakipo
    @Fakipo Год назад +1

    How did we get those equations to solve for alpha and beta?

  • @lazarus76
    @lazarus76 3 месяца назад

    I read some book articles about it and didn't get it. this video? instantly everything clicked. :)

  • @ghnnnnn
    @ghnnnnn 3 месяца назад

    Thank you

  • @MaríaFernandaRuiz-m4f
    @MaríaFernandaRuiz-m4f Год назад +1

    Wooow great video!

  • @alimortadahoumani1134
    @alimortadahoumani1134 Год назад

    great video
    only for those who already know it

  • @asir5947
    @asir5947 2 месяца назад

    1:20 i think the equation for alpha is wrong. missing an n coefficient in the top and bottom

  • @sohrabhashed1488
    @sohrabhashed1488 11 месяцев назад

    Simple and nice thanks

  • @fabianheidmaier3113
    @fabianheidmaier3113 2 месяца назад

    1:20 The formula for alpha is wrong. In my opinion the right formula is:
    alpha = (n*sum(x_i*y_i) - sum(x_i)*sum(y_i))/(n*sum(x_i^2) - sum(x_i)^2)

  • @mdbelalhossainsanto6523
    @mdbelalhossainsanto6523 3 месяца назад

    brilliant video.

  • @Diachron
    @Diachron 4 месяца назад

    2 minutes makes for a good reminder if you are already familiar with the topic, but woefully short for a proper introduction.

  • @aerbon
    @aerbon Год назад +2

    What is 'n' in the formula for beta at 1:18?
    I assume it is the number of points but I can't get my code to work so I'd like to be sure.
    Thanks
    Update: after some testing it is clear that the issue is either with the formula for alpha or my implementation of it.
    Everything works when beta is 0, but as i change my sample to have a value of beta further and further from 0 alpha gets offset more and more for some reason.
    i am about to go through my third re-write of the thing and i don't know what to change.
    if anyone wants to try and figure out what is wrong then here's some results:
    Sample: alpha = 0.5, beta = 0 Result: alpha = ~0.5
    Sample: alpha = 0.5, beta = 50 Result: alpha = ~0.25
    Sample: alpha = 0.5, beta = 100 Result: alpha = ~0
    yes the error does grow linearly with beta.
    Update 2: re-wrote it for the third time. still wrong in the exact same way. send help.

    • @noname-anonymous-v7c
      @noname-anonymous-v7c Год назад

      The formula is wrong. the formula for alpha is wrong. dem = sum(x_i^2) - n*sum(x_i)^2, nom = n*sum(x_i * y_i) - sum(x_i)*sum(y_9)

  • @reinhardsilaen9594
    @reinhardsilaen9594 2 года назад +1

    Please do Random Forest Regression and Knn Regression.

  • @augurelite
    @augurelite 2 месяца назад

    Thanks!

  • @kimflowers6049
    @kimflowers6049 2 месяца назад

    Excellent presentation! However, needs an explanation in layperson's terms for someone unfamiliar.

  • @janpoonthong
    @janpoonthong Год назад +1

    Good video

  • @meatyaneurysm3620
    @meatyaneurysm3620 Месяц назад

    Who else has a midterm/ final either today or next few days lol

  • @SaharLive-j9t
    @SaharLive-j9t 11 месяцев назад

    Thank you sir this one saves me

  • @dy5topian
    @dy5topian Год назад

    am i stupid or maybe with the double equations your gave you can't find values of alpha and beta because one equation is just multple of the other

  • @developer_novice4237
    @developer_novice4237 Год назад

    thank you for the python code!

  • @lammaituyen15
    @lammaituyen15 Год назад +1

    Nice ! Amazing enough for a beginner like me!! @@

  • @larissacury7714
    @larissacury7714 8 месяцев назад

    That's great!

  • @Bedivine777angelprayer
    @Bedivine777angelprayer Год назад

    wow very nice can you explain pandas and dataframe with all methods I am Ai student

  • @will201084
    @will201084 Год назад +2

    I went from a 1 minute explanation video to a 2 minute one :/

  • @AuntirRanna
    @AuntirRanna 9 месяцев назад

    loved it

  • @AnotherDustSpec
    @AnotherDustSpec 22 дня назад

    amazing thnks

  • @nextexpertadvisors
    @nextexpertadvisors 5 месяцев назад

    I used linear regression in my forex bot!

  • @kunalsoni7681
    @kunalsoni7681 Год назад

    wow 😊✨

  • @aimiuwugodstand4210
    @aimiuwugodstand4210 Год назад

    Mehn, great content

  • @KyloRen-o5g
    @KyloRen-o5g 7 месяцев назад +1

    The formula is wrong.. he conveniently moved on...Read below many have commented on this....

  • @T44enterprismalFORTE
    @T44enterprismalFORTE 4 месяца назад

    𝕃𝕠𝕤𝕤 𝕠𝕗 𝕒 𝕞𝕒𝕡

  • @shubhampathak991
    @shubhampathak991 10 месяцев назад +1

    please make your speech little slower so you can be heard without giving stress

  • @calculate.
    @calculate. Год назад +1

    It's not lazy it's time wasting, why would anyone waste their time doing something that a program can give answers to we just need to understand it.

  • @madaweehathloul2045
    @madaweehathloul2045 Год назад

    ابوس راسك ياشيخ

  • @omartakruri
    @omartakruri 2 года назад

    HOLY $H!T

  • @idgaf0099
    @idgaf0099 Год назад +93

    This is not a good video who wants to learn all of this stuff from scratch!

    • @ProjectMujaddid
      @ProjectMujaddid Год назад +91

      It's 2 minutes long, I'm sorry but what did you expect?

    • @Justinjaro
      @Justinjaro 11 месяцев назад +33

      I learned what I needed form this. Did you think you're gonna learn everything from scratch from a 2 minute vid?

    • @papang1749
      @papang1749 11 месяцев назад +3

      I do! I needed this video!!!

    • @RandomGameCaps
      @RandomGameCaps 10 месяцев назад +1

      I’d suggest- Statquest Josh Starmer. For anyone zero-hero

    • @idgaf0099
      @idgaf0099 10 месяцев назад

      @@RandomGameCaps I love his ukulele videos, lol

  • @naveedanwer8262
    @naveedanwer8262 8 месяцев назад +2

    Just learn how to speak slwoly and you will have more views

  • @user-jd1cy9gp3q
    @user-jd1cy9gp3q 3 года назад

  • @primate745
    @primate745 9 месяцев назад

    This is very poorly explained.