Regression Mathematics

แชร์
ฝัง
  • เผยแพร่เมื่อ 6 ก.ย. 2024
  • Everyone needs to understand regression! Its a useful data science technique that allows us to understand the relationship between different variables. In this video, we'll play the role of a newly hired data analyst at a genetics company trying to find the relationship between advertising mediums (TV, newspaper, radio) and ticket sales to our newly opened theme park. Along the way, we'll learn about 5 types of regression models (linear, non-linear, multiple, lasso, and ridge). Expect math, code, and layers of explanation. Enjoy!
    Code for this video:
    github.com/llS...
    Please Subscribe! And Like. And comment. Thats what keeps me going.
    Want more education? Connect with me here:
    Twitter: / sirajraval
    instagram: / sirajraval
    Facebook: / sirajology
    More learning resources:
    • How to Do Linear Regre...
    www.analyticsv...
    statisticsbyjim...
    hbr.org/2015/1...
    blog.minitab.co...
    Join us at the School of AI:
    theschool.ai/
    Join us in the Wizards Slack channel:
    wizards.herokua...
    Please support me on Patreon:
    www.patreon.co...
    Signup for my newsletter for exciting updates in the field of AI:
    goo.gl/FZzJ5w
    Hit the Join button above to sign up to become a member of my channel for access to exclusive content! Join my AI community: chatgptschool.io/ Sign up for my AI Sports betting Bot, WagerGPT! (500 spots available):
    www.wagergpt.co

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

  • @ajwadjaved9909
    @ajwadjaved9909 5 ปีที่แล้ว +33

    "Microsoft run by TH-cam sensation Bill Gates" lmfao dead

  • @ShaGha
    @ShaGha 5 ปีที่แล้ว +9

    7:50 How exactly is the graph in the middle an example of a linear regression model when the actual graph is not a linear function? curvature as mentioned later is the exact opposite of something that has a linear progression. ..or am I missing something important here?

  • @himanshuagarwal3451
    @himanshuagarwal3451 5 ปีที่แล้ว +24

    Regression is a powerful tool for forecasting. Economists using it successfully predicted ten out of the last two recessions ...

    • @catalepsy8916
      @catalepsy8916 5 ปีที่แล้ว

      Does that mean they are not factoring in all the variables (of which there might be trillions as anything can affect the economy worldwide)?

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

      @@catalepsy8916 The number of variables that are needed to be processed for a perfect prediction are beyond our computation power as of now ..

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

      Indeed

    • @marekklucka4407
      @marekklucka4407 5 ปีที่แล้ว

      @@lugrisa R, STATA, MATLAB, GRETL, eViews, there are a lot of software solutions for econometrics nowadays, that it's actually hard to choose "correct one". IMHO Learning Python seems most reasonable for me nowadays, thanks to sheer amount of libraries

  • @zenoboi6162
    @zenoboi6162 5 ปีที่แล้ว +18

    Notification : Hey, Siraj just uploa....
    Me: Say no more...

  • @ze-speeches
    @ze-speeches 5 ปีที่แล้ว

    Love the interpretation of the regularization term as introducing bias to reduce variance! All the other people so far explained it as a penalty for having high weights, which is intuitive and nice to understand but do not include this second aspect of a bias term. Thank you for this insight, Siraj!

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

    This is my entire base for starting Data Science :D

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

    At 3:14 you say that the dependent variable can also be called the predictor variable. I believe it's called the response variable instead. Predictor/explanatory/independent variables are the same.

    • @golamashraf1464
      @golamashraf1464 5 ปีที่แล้ว

      great intro Siraj! Agree with Bookerer... predictors are the independent variables X

    • @praveenchandkakarla406
      @praveenchandkakarla406 5 ปีที่แล้ว

      Yes, Predictors are independent variables(x1,x2,....xn). But, dependent variable is Predicted (Y)

    • @RavanaMad
      @RavanaMad 5 ปีที่แล้ว

      I've seen some machine learning courses that used the term "predictor" for the dependent variable.

  • @mahendravala-your-it-partner
    @mahendravala-your-it-partner 5 ปีที่แล้ว

    I prefer to use Random Forest, Support Vector Regression and Decision Tree Regression to solving my regression problem sometimes Polynomial Regression is also giving a good prediction on a test set.

  • @jeswinaugustine5384
    @jeswinaugustine5384 5 ปีที่แล้ว

    In EDA, if we find the collinearity between two features, whether dropping one of those features or combing them to a single feature and using normal regression techniques helps? Or, is it necessary that we should go for LASSO or RIDGE regression?

  • @rjumat547
    @rjumat547 5 ปีที่แล้ว

    Much respect to Siraj. Always well knowledge and versed on the subject matter

  • @TheRaju991
    @TheRaju991 5 ปีที่แล้ว

    Best video on regression!

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

    Just explained how to do my senior assignment better than my teacher.

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

    Random Forrest is it powerful model to regression problem? @Siraj_Rawal

  • @bkramkoirala
    @bkramkoirala 5 ปีที่แล้ว

    Is there a closed form solution of ridge regression with the non-negativity constraint of output variable?

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

    Siraj hits gym I guess so🤓🤓

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

    I need to know to predict dataset like csv to make machine learning.... With sklearn I didn't succeed to make It when I import and load my dataset with dataframe like df=pd.read_csv("")..
    I need little help... thank you so much for your request..
    I need to use sklearn to make machine learning.

  • @TheLestou
    @TheLestou 4 ปีที่แล้ว

    Why lasso penalise the high coefficient to zero while ridge only makes it a reduced value?

  • @empiricistsacademy7181
    @empiricistsacademy7181 5 ปีที่แล้ว

    For anyone interested, I wrote a few of detailed python notebooks on linear regression and also ridge + lasso a while ago:
    Linear Regression Notebook + PDF note (applied to Fifa 2018 data):
    github.com/hammadshaikhha/Math-of-Machine-Learning-Course-by-Siraj/tree/master/Linear%20Regression
    Ridge Regression (applied to IMDB data):
    github.com/hammadshaikhha/Math-of-Machine-Learning-Course-by-Siraj/blob/master/Regularization%20in%20Linear%20Regression/Regularization%20in%20Linear%20Regression.ipynb
    Lasso and Ridge Regression for model selection (applied to NY school data):
    github.com/hammadshaikhha/Math-of-Machine-Learning-Course-by-Siraj/blob/master/Linear%20Model%20Selection/Linear%20Model%20Selection.ipynb

  • @carlojacobs7722
    @carlojacobs7722 5 ปีที่แล้ว

    I don’t know if you saw my other comment, but you are talking much slower now and your videos are way better!

  • @arunsharma1619
    @arunsharma1619 5 ปีที่แล้ว

    Hey siraj, Can you create a video which tells how to actually create a dataset from received signals? There is not much documentation given for dataset using signal processing. Thanks.

  • @AryanKhandal7399
    @AryanKhandal7399 5 ปีที่แล้ว +6

    You are great sir, inspiring and improving skillset the fun way.

  • @mlpprakash9762
    @mlpprakash9762 5 ปีที่แล้ว

    Hi siraj, thanks for uploading this video, I have a question, in the end of the video, you said, if the y has high collinearity with independent, its better to use lasso or ridge regression, but how can I ensure I have high collinearity? Should I ensure hight collinearity through r2 ( r square) please advise me

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

    Hey man, just wanted to let you know that I really appreciate your videos.

  • @indianboy-dc9bh
    @indianboy-dc9bh 5 ปีที่แล้ว

    Nice explain

  • @vaagme
    @vaagme 4 ปีที่แล้ว

    Can i Know Math behind the linear regression

  • @Simba-qm5qs
    @Simba-qm5qs 5 ปีที่แล้ว

    At 3:11 he means Y_i = \beta_0 + \beta_1 X_i instead of Y_i = \beta_0 + \beta_1 X_1 , where i index your couple (X,Y) of your dataset.

  • @NivedhithaEzhilarasan
    @NivedhithaEzhilarasan 5 ปีที่แล้ว

    I'm working on a dataset for a predictive analytics project around 5 GB. Preprocessing them takes up all the time. Is there a way to parallelise and speed up the process?

  • @mager8460
    @mager8460 5 ปีที่แล้ว

    How can we work if we have to apply a linear regression in a complex-valued dataset?

  • @optionstrader4624
    @optionstrader4624 5 ปีที่แล้ว

    Do you have a vid buidling on one of your two regression vids for multi-variable regression?

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

    I love this guy

  • @bloodaid
    @bloodaid 5 ปีที่แล้ว +16

    Who wants to be a MLionaire

    • @VahidSaffarian
      @VahidSaffarian 5 ปีที่แล้ว

      seasoned redditer spotted

    • @bloodaid
      @bloodaid 5 ปีที่แล้ว

      @@VahidSaffarian what does that even mean? 🤔

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

    The regression line at 5:24 does not follow the data at all! Although they would be so nice and linear...

  • @arunantony3207
    @arunantony3207 5 ปีที่แล้ว

    Great video, Siraj. Would you be sometime doing a video tutorial on Plotly?

  • @meetshah7989
    @meetshah7989 5 ปีที่แล้ว

    Always eager to see your videos 💖💖

  • @MikelRobinson
    @MikelRobinson 5 ปีที่แล้ว

    Thanks Siraj!

  • @adityapaithon6499
    @adityapaithon6499 5 ปีที่แล้ว +32

    When's your Meme Review with Elon?

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

      Haha, ask him on Twitter! I’d love to this week

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

    BST 210 squad up!!!

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

    I wonder, how can people even give dislike on this video! Dumb people :/ They don't know how to appreciate good work.

  • @saitaro
    @saitaro 5 ปีที่แล้ว

    I just made my expression of understanding

  • @ps8883
    @ps8883 5 ปีที่แล้ว

    Simple Explanation to Regression
    'Siraj's Quality Content'
    --- Linear Regression

  • @azeemushan8694
    @azeemushan8694 5 ปีที่แล้ว

    regression my fav

  • @hariharans.j5246
    @hariharans.j5246 5 ปีที่แล้ว +3

    GJ man! Can I get a heat?

  • @sephypantsu
    @sephypantsu 5 ปีที่แล้ว

    I love how we are relearning high school math :)

  • @lorforlinux
    @lorforlinux 5 ปีที่แล้ว

    Fantastico

  • @harshjha1744
    @harshjha1744 5 ปีที่แล้ว

    The question is did you use regression on pop culture references to write the script ?

  • @1996Pinocchio
    @1996Pinocchio 5 ปีที่แล้ว

    Great Intro :D

  • @sapansoni5496
    @sapansoni5496 5 ปีที่แล้ว

    How lasso make irrelevant features to zero? I mean what is the mathematics behind it?

  • @epberdugoc
    @epberdugoc 5 ปีที่แล้ว

    There are another types of regression model that you didn't consider inside your list, for example: non linear, semi parametric, generalized linear models, additives models an so on

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

    Hey Siraj! First to comment!

  • @chrisj21b
    @chrisj21b 5 ปีที่แล้ว

    Great video, please update the school of AI link!

  • @HariKrishnan-zm3nt
    @HariKrishnan-zm3nt 5 ปีที่แล้ว

    1st comment and 1st like

  • @BiancaAguglia
    @BiancaAguglia 5 ปีที่แล้ว

    7:00 "Does this equation explain the meaning of life?" 😁 Another great video. It's good to have these high level overviews of a topic (eg. linear regression) because they give a good framework to build on once you start studying them in depth.

  • @hitesh3373
    @hitesh3373 5 ปีที่แล้ว

    I was first to view the video :)

  • @hemphillmc
    @hemphillmc 5 ปีที่แล้ว

    Is Siraj's voice unusually deep here?

    • @DeependraTube
      @DeependraTube 5 ปีที่แล้ว

      May be it is AI powered voice ..😀😁

  • @oliverli9630
    @oliverli9630 5 ปีที่แล้ว

    the best weapon in financial trading to destroy the market makers ;)

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

    When a tokai learns to print hello world!!

  • @Imdeepmind
    @Imdeepmind 5 ปีที่แล้ว

    1st like

  • @AshishTyagi2911
    @AshishTyagi2911 5 ปีที่แล้ว

    Hi Siraj,
    Thank you for this video.
    i want your reply on this. I am studying ML for a long time but unable to crack the interview. i try to follow your 3 months ML curriculum. but unable to understand what to do, where to work. where to do practices i dont know.
    please help me on this. Thanks!

    • @DeependraTube
      @DeependraTube 5 ปีที่แล้ว

      when u r studying for long time, then why r you so confused.
      Make 1-2 portfolio projects.... like for self-driving car, swarm intelligence etc.

    • @AshishTyagi2911
      @AshishTyagi2911 5 ปีที่แล้ว

      @@DeependraTube I dont know how to start, plz share some reference links.

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

      @@AshishTyagi2911 Do u know Coding already ?
      If so , you can go to fast.ai and search youtube for Andrew Ng course , and also Coursera have good courses.

  • @abhirishi6200
    @abhirishi6200 5 ปีที่แล้ว

    Yo

  • @tunestar
    @tunestar 5 ปีที่แล้ว

    Any video with Math on it's title gets auto-downvoted instantly by a script I'm running on background. Crap!

  • @brianfisher1305
    @brianfisher1305 5 ปีที่แล้ว

    It’s funny how the video is entirely about linear regression and I didn’t hear the word “correlation coefficient” one time.

  • @dystopianNinja1289
    @dystopianNinja1289 5 ปีที่แล้ว

    First

  • @CharmingThePrince1
    @CharmingThePrince1 4 ปีที่แล้ว

    those hands 😂

  • @NoOffenseAnimation
    @NoOffenseAnimation 5 ปีที่แล้ว

    Early

  • @Anonymous-hp1tg
    @Anonymous-hp1tg 5 ปีที่แล้ว

    Second

  • @BigAsciiHappyStar
    @BigAsciiHappyStar 5 ปีที่แล้ว

    404 ERROR: RAP SONG NOT FOUND

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

    Really... Fortnite..

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

    waste of time

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

    I was there for your session in Mumbai. You were so amazing