Logistic Regression in R, Clearly Explained!!!!

preview_player
Показать описание
This video describes how to do Logistic Regression in R, step-by-step. We start by importing a dataset and cleaning it up, then we perform logistic regression on a very simple model, followed by a fancy model. Lastly we draw a graph of the predicted probabilities that came from the Logistic Regression.

The code that I use in this video can be found on the StatQuest GitHub:

For more details on what's going on, check out the following StatQuests:

For a general overview of Logistic Regression:

The odds and log(odds), clearly explained:

The odds ratio and log(odds ratio), clearly explained:

Logistic Regression, Details Part 1, Coefficients:

Logistic Regression, Details Part 2, Fitting a line with Maximum Likelihood:

Logistic Regression Details Part 3, R-squared and its p-value:

Saturated Models and Deviance Statistics, Clearly Explained:

Deviance Residuals, Clearly Explained:

For a complete index of all the StatQuest videos, check out:

If you'd like to support StatQuest, please consider...

Buying The StatQuest Illustrated Guide to Machine Learning!!!

...or...

...a cool StatQuest t-shirt or sweatshirt:

...buying one or two of my songs (or go large and get a whole album!)

...or just donating to StatQuest!

Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:

0:00 Awesome song and introduction
0:29 Load and format data
3:54 Dealing with missing data
5:03 Verifying that the data is not imbalanced
6:44 Logistic regression with one independent variable
12:48 Logistic regression with many independent variables
15:13 Graphing the predicted probabilities

#statquest #logistic
Рекомендации по теме
Комментарии
Автор

Thank you so much Josh for all these videos! I got Aplus for most of my stat courses quite a few years ago when I was doing my MSc of BIostat, but it took me quite some time to come up with a better understanding of a few concepts. You just summarized and presented these ideas and more in a few minutes! You are a genius and on top of that, you are so Kind to share all these work to everyone for free! With my limited vocabulary, all I can say is THANK YOU! It makes me feel the world is a beautiful place with beautiful mind and soul. I love your song “hello”, it reminds me of the day I met my daughter and brought happy tears to my eyes :)

wei
Автор

Your videos cover everything in my course and I wish I found you sooner! So much detail and clear explaining in such little time

ithelastmoa
Автор

Your videos never disappoint, Sir. I have gone through many of them and think you've earned the right to brand the phrase: "clearly explained" because your explanations are indeed very clear. I am building a better explanation of statistics thanks to you. I appreciate you and hope you continue to pass on the knowledge.

MuctaruKabba
Автор

This 89-year-old guy says BAM!! So clearly explained, indeed. DOUBLE-BAM!!!!

holeman
Автор

Josh, it’s Saturday morning here and I’m enjoying a cup of Bam! learning R from the best teacher on the planet. I’m so grateful and appreciative of your efforts to share your considerable talents with us!

SurrenderPink
Автор

I just wish one day all this information actually stays and sticks to my mind... thank you thought! Your videos are amazing!

chasti
Автор

where have you been my whole thesis! thank you!!

emilyblythe
Автор

What is great with your video is that even if I forgot my headphone I am able to follow the video in the computer room full of other students! Thank you so so so much !!!! From University of Bordeaux

solalstenou
Автор

Nice channel to land on! Happiest discovery of my 2020! Great job!

japhethernandezvaquero
Автор

Your videos are great! It's also so nice of you that you take the time reply to so many of the comments here !

marielledelcarmencaballero
Автор

Thank you so much! I've a stat project to do in R with logistic Regression and this simplified the coding portion so much!

alhaque
Автор

Thank you so much for this video! I've been suffering with the coding for my project but this really helped. You're a star!

yashilagovender
Автор

You are an absolute life saver. My data science paper is due in two days and now I have my pretty log graph and I understand this better. DOUBLE

alexandergeorgiev
Автор

I really enjoyed the clearly way to explain us this topic. So many thanks for the teaching!!!

-FENRIR
Автор

You will surely be in my Thesis acknowledgments. Thank you for making our lives relatively easier but truly more ineligible.

meniz
Автор

I recommend all the videos by stat quest with Josh Starmer. Thank you for your good explanations.

farhadwaseel
Автор

You sir deserve a promotion 👏 thanks for this incredibly helpful video

burrohq
Автор

You are an amazing teacher. God bless you!

chrischukwu
Автор

I was just here for the logistic regression but bam!! I would be watching all of your videos. As a ds learner using r, double bam!!!, your videos will surely help big time! Bambambam! 👌😅
Thank you. 🙂

dodgecarlincila
Автор

"one last shameless self promotion" got me why I love your videos, u make learning stats fun

zahraab
welcome to shbcf.ru