Logistic regression : the basics - simply explained

Поделиться
HTML-код
  • Опубликовано: 15 июл 2024
  • See all my videos at www.tilestats.com/
    In this first video about logistic regression, we will cover its basics by:
    1. Compare it to linear regression
    2. Show how the probabilities are calculated (05:00)
    3. Show how the odds and logged odds are calculated (09:47)
    4. Discuss how to interpret the coefficients (15:15)

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

  • @cartoon.cartoon6757
    @cartoon.cartoon6757 3 месяца назад +1

    The best explanation ever encountered.

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

    Dear Editor of the TileStats series, sincere thanks for this video! I have read and heard many different explanations of the logistic regression model, but never really understood the intuition behind it. This is greatly done, I finally understood the sense of the model. I look forward to see other videos of yours.

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

    Your illustration is easy to understand and also cover all the important point! And the subtitle is extremely helpful for a non native English speakers like myself.

  • @nikeforo2612
    @nikeforo2612 2 года назад +6

    OMG you made it so enjoyable and easy to follow. I re-learned in few minutes what it took me hours over hours to understand reading relevant literature. Thanks a lot

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

    This channel is pure gold. Very clear explanation, thank you.

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

    Thank for the amazing video!!

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

    Many many thanks for this wonderful video with clear explanation!

  • @izb1275
    @izb1275 3 месяца назад +1

    Amazing video and explanation

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

    You did a great job with your explanation. Thanks a lot.

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

    You are brilliant.

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

    Great job and really awesome videos.
    We owe you and god bless to u and ur's family.

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

    Amazing and very simple to understand, thanks for this great video :)

  • @SalemAdel-lf3le
    @SalemAdel-lf3le Год назад +1

    thank you so much

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

    Very clearly explained... Thank you 🥰

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

    super fucking clear explanation, I am so glad i learned knowledge from you sir, thank you

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

    Great videos can I have the slides to refer with the transcript

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

      I'm planning to put the lectures as pdfs on my homepage after the summer.

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

    Thanks a lot for this great video!
    I understand how we get from probability to odds to log-odds. However, I don't understand what the purpose of this is. In maximum likelihood estimation, we adapt b1 so that the log-likelihood is maximized. But this process does not seem to depend on log-odds, right? Is log-odds only necessary for better intepretation of b0 and b1?

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

      You actually fit a linear model to the data, which explains why the response variable must be expressed as logged odds. See for example this page:
      arunaddagatla.medium.com/maximum-likelihood-estimation-in-logistic-regression-f86ff1627b67

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

      @@tilestats Thanks a lot, I really appreciate your response! I have read the article and other articles from the author. However, I don't understand why it is necessary to fit a linear model to the data?

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

      You can fit a nonlinear model to the data, the sigmoid function in this case, but then you have to use nonlinear regression which is not that easy to work with. It is, for example, hard to find the global minimum of the error function for large nonlinear models. I'm actually working on a video about nonlinear regression.

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

      @@tilestats Thank you, looking forward!

  • @user-yp1rg2jr5z
    @user-yp1rg2jr5z 26 дней назад

    How can we estimate the parameters of this model?
    Can we just use ols method by using the linear model (b+b1.x)? Which is used as power of "e" here?

    • @tilestats
      @tilestats  26 дней назад

      No, have a look at this video:
      ruclips.net/video/J0yuLu3oLuU/видео.html

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

    Thanks a lot for the videos ... very helpful. Wondering if the data used in this video is available to download to replicate the analysis being done? Thanks

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

      The data is the one you see in the video.

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

      Thanks, I guess I can use the data presented in the tables (middle of the video)@@tilestats

  • @pablop.7635
    @pablop.7635 2 года назад

    How can this apply to qualitative variables. For instance Im reading an article on how social determinants can affect the probability of an adolescent girl being pregnant, but I don't really get how this can be interpreted. There is for example a determinant called "Age of onset of sexual relations" and there is an "estimate value" that is negative 0. And other values are positive and so on. I don't get it. Help

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

      Let's say that we have a variable gender (men and women). If women are set as baseline (coded as zero), men are coded as one, then the estimated parameter say how much larger, or less, the value of the parameter is for the men compared to the women. If that value is positive, the OR is greater than one. If that value is negative, the OR is less than one (see 18:18 for how to calculate and interpret the OR).

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

    How do you determine the quality of the fitted curve ?

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

      Not sure what you mean with quality but maybe this video might help
      ruclips.net/video/J0yuLu3oLuU/видео.html

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

    What statistical software ate u referring to?

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

      I use R and SPSS, but other tools also work fine.

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

      Can u give the exact formula for ur coefficients (b0 and b1) because we badly need it for a manual computation 😭

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

      ruclips.net/video/J0yuLu3oLuU/видео.html

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

      You estimate based on maximizing the likelihood. There is no simple formula to estimate the parameters like in linear regression.

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

    How did you get -5.75 and 2.75 ?
    I used the least square formula and I got -0.34 and 0.39 !

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

      You should use the maximum likelihood method.
      ruclips.net/video/J0yuLu3oLuU/видео.html

  • @md.musfiqueanwar226
    @md.musfiqueanwar226 2 года назад

    Do you have the slides?

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

      If you go to my home page www.tilestats.com, you can buy some of the vidoes as PDFs

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

    How to calculate b1 and b 0

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

      By the maximum likelihood method:
      ruclips.net/video/J0yuLu3oLuU/видео.html

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

    Please check the voice of your video before uploading the video. Please increase it if it is too low.