No video

Statistics 101: Logistic Regression, Logit and Regression Equation

  Рет қаралды 335,443

Brandon Foltz

Brandon Foltz

Күн бұрын

Пікірлер: 132
@Kaysar777
@Kaysar777 7 жыл бұрын
In case somebody's wondering, inverse of logit is found the following way: 1. logit => ln(p/(1-p)) = y 2. inverse => e^y = p/(1-p) 3. p/(1-p) = e^y 4. p = e^y(1-p) 5. p = e^y - e^y(p) 6. p + e^y(p) = e^y 7. p(1+e^y) = e^y 8. p = e^y/(1+e^y)
@bill5367
@bill5367 6 жыл бұрын
Hi Kaysar777. You did not find the inverse as far as I can tell. What you did was raise both sides with e. That is a legitimate algebraic operation and does not give an inverse. For example, if y= x , then sqrt(y) = sqrt(x) -taking the square root of both sides is a legitimate algebraic operation. But doing that does not give the inverse. Legitimate algebraic operations DON'T change the function (the solution set is the same). However, obtaining an inverse gives an entirely new function (completely different set of solutions). Obtaining the inverse can be found by switching x and y. That is not what you did, is it?
@pragun1993
@pragun1993 5 жыл бұрын
Just to add how logit inverse can be derived. It is the swapping of graph between x and y. You have to isolate the x(p in this case) and express x in terms of y. So, if logit is y and y = ln(p/1-p), e^y = p/1-p e^y-e^y(p) = p re arranging the terms, it comes out p = e^y/1+e^y, So, now your p (or x) has taken the role of y, and y has taken the role of x and you can swap variables y = e^x/1+e^x
@renemartinez3014
@renemartinez3014 2 жыл бұрын
What a nice contribution. Thank you.
@sebastienban6074
@sebastienban6074 2 жыл бұрын
what a legend
@Rachel-tu8pq
@Rachel-tu8pq 2 жыл бұрын
can anyone add exactly why we take the inverse?
@haifasaud1001
@haifasaud1001 Жыл бұрын
You are my hero
@charleneshaulis6737
@charleneshaulis6737 2 жыл бұрын
I really appreciate that at some point you started including the play list and video # directly at the beginning of the video.
@ahmedabdelfattah443
@ahmedabdelfattah443 8 жыл бұрын
This is amazing . So in other words , logistic regression is just another curve fitting but the curve is sigmoid-like .
@sureshm430
@sureshm430 2 жыл бұрын
THANKS is not enough.. i should say more than that, I started my day with logistic regression, planned to complete in 2 to 3 hours.. i had gone through lot of stuff which lead to confusion between logit and sigmoid function..... felt bad and sad, that i couldn't make it, then your stuff came, it is SAVIOUR.. You explained very clearly, detailed every thing in simpler manner. I ended my day with SMILE with your stuff.. APPRECIATE.. APPRECIATE.. APPRECIATE... Expecting stuff on Machine Learning Algorithms too.
@reza9177
@reza9177 4 жыл бұрын
I do truly appreciate all your amazing tutorials... I can not be more grateful.
@sasakevin3263
@sasakevin3263 2 жыл бұрын
Thank you Brandon, no matter advanced statistic or machine learning, when I having some trouble, i can always get perfect explanation from your lecture!
@skaai
@skaai 8 жыл бұрын
I wish i could keep clicking the thumbs up a thousand times. your explanation of the logit function and WHY it's used in logistic regression makes it so simple an 8th grader could do it!
@cfotieno5492
@cfotieno5492 7 жыл бұрын
Very helpful presentation, especially when publishing papers, allowing one to interrogate the statistician from a platform of knowledge.
@jimturner4937
@jimturner4937 4 жыл бұрын
Well. Maybe this is premature, but I have to say this video is very well done and clear. Believe me, most are not. Even finding an explanation for logistic regression via google does not produce good results. My only negative here is that the video refers to "Video 4", but the video titles do not seem to contain any "numbers" other than "101".
@AkbarinSeoul
@AkbarinSeoul Жыл бұрын
Cool explanation! It is really helpful!
@donnysoh5610
@donnysoh5610 5 жыл бұрын
For my fellow friends wondering why the logit function can be linked to a linear combination of independent variables, this link gives a relative good short explanation: Why is the logistic classification model specified in this manner? Why is the logistic function used to transform the linear combination of inputs x? The simple answer is that we would like to do something similar to what we do in a linear regression model: use a linear combination of the inputs as our prediction of the output. However, our prediction needs to be a probability and there is no guarantee that the linear combination x is between 0 and 1. Thus, we use the logistic function because it provides a convenient way of transforming x and forcing it to lie in the interval between 0 and 1. We could have used other functions that enjoy properties similar to the logistic function. As a matter of fact, other popular classification models can be obtained by simply substituting the logistic function with another function and leaving everything else in the model unchanged. For example, by substituting the logit function with the cumulative distribution function of a standard normal distribution, we obtain the so-called probit model. www.statlect.com/fundamentals-of-statistics/logistic-classification-model
@julianatorressanchez5250
@julianatorressanchez5250 8 жыл бұрын
Maravilloso, ojala mis profesores enseñaran así, seria tan sencillo :) A really good professor.
@onkarpandhare
@onkarpandhare 2 жыл бұрын
the way u explain is amazing! i urge u to pls write a book... it will b a blessing for those who find these things ingraspable in college/trainings! pls pls! more power to u Sir!👍👍
@skywalker2735
@skywalker2735 9 жыл бұрын
Logit is the natural log of the odds, not of the odds ratio
@BrandonFoltz
@BrandonFoltz 9 жыл бұрын
Phillip Healy Hello! Thanks for pointing that out. Yes I am sure I slipped and added "ratio" since the odds is itself a ratio. I've read textbooks that do the same thing unfortunately. But yes I will try to avoid doing that and hopefully your comment cleared up any confusion for other viewers.
@AzzamAlotaibi
@AzzamAlotaibi 9 жыл бұрын
***** Thank You Very much Brandon. I Think You have a unique talent teaching these materials. I would suggest that you try to find a way to upload these materials on a popular education platforms, like Khan academy or Udacity or any others! I have watched many lectures given by highly decorated academics and I can tell you that they were no where near your style. Basically, your methods and lectures are undoubtedly qualified to earn a place in the best education platforms. I Hope I see you succeed even more!
@ikari4366
@ikari4366 9 жыл бұрын
Phillip Healy +Brandon Foltz Thanks for pointing that out!
@sureshm430
@sureshm430 2 жыл бұрын
Philip Healy, In which slide you are talking about.
@davidobrien7862
@davidobrien7862 6 жыл бұрын
I've been meaning to comment on your videos for a while. They are exceptionally well done! You (IMO) have such a knack for explaining what I had previously considered to be difficult concepts. Thank you!
@stevey5012
@stevey5012 4 жыл бұрын
The explanation of logit is very clear!
@babyimHOME
@babyimHOME 6 жыл бұрын
Hey thank you so much for making these, they really, really helped me clarify my class.
@karannchew2534
@karannchew2534 3 жыл бұрын
In case anyone, like me, is confused with the part on 9:20, you might want to skip it look at 13:45 instead, which is the same thing but clearer (for me at least).
@zoopdiwop
@zoopdiwop 6 жыл бұрын
Hi Brandon, first of all a huge thank you for making this great video series on logistic regression. These videos are very well made and also really great from a didactic standpoint. I felt like I could feel the synapses forming while watching these videos :). (subscribed)
@irockrock44
@irockrock44 8 жыл бұрын
this is awesome! very intuitive flow to explain equation. I can understand without needing to know much algebra and stats for now.
@nickyhickman5766
@nickyhickman5766 8 жыл бұрын
This is a great video - really explains the concepts in simple, easy to understand terms. Thanks Brandon!
@FIFAChampion2010
@FIFAChampion2010 6 жыл бұрын
Thank you very much! I showed this video to my Professor. He loved it ;)
@Bulgogi_Haxen
@Bulgogi_Haxen Жыл бұрын
Perfect video to link bernoulli distribution of Y, its estimate mean \hat{p_i} = E(Y_i) and the linear combination of betas. I have been wondering how the link function came out in terms of GLM. But thanks to this video, I understood that logistic regression is nothing but to model \hat{p_i} as a logistic function and logit is used to link this probability model to a linear combination! Thank you very much! But it would also have been amazing if you could add something about MLE in the vidoe, not in detail, but how the assumption that Y follows Bernoulli distribution is linked with MLE to estiamte the coefficients in another video.
@alfijialfiji2965
@alfijialfiji2965 Жыл бұрын
excellent explanation, thank very much. Many books omit this relation.......
@indrajeetv8878
@indrajeetv8878 6 жыл бұрын
King of statistics....
@kayn1760
@kayn1760 3 жыл бұрын
Thank you so much for this video. Really aided to my understanding.
@ChinmayTerse
@ChinmayTerse 7 жыл бұрын
This is a very good video and I really like your style of teaching. I have doubt as to why or how did we equate the logit of p with the linear combination of the independent variables?
@KirillBezzubkine
@KirillBezzubkine 4 жыл бұрын
U r the only n first person who i subscribed to and also turned on notifications.
@srinivaskanchanavally2019
@srinivaskanchanavally2019 6 жыл бұрын
Excellent explanation Brandon. Thank you for your time in presenting this.
@ssj4vrn
@ssj4vrn 7 жыл бұрын
Very clear explainations. I have a few suggestions to make though: - Sometimes while explaining some examples or points verbally which are a bit abstract like probability plot like in the previous logistic regression video, a simultanous visualization could help make it much clearer and easier for audience to visualize such points and effortless to follow you. - Would be great if your videos were complemented with implementations in R.(a bit biased suggestion since i am learning to implement these machine learning algorithms in R haha). But i believe you could explain things really well so a complementary video/series of videos or video embedded in same video would benefit us all.
@tatianagladkikh3096
@tatianagladkikh3096 4 жыл бұрын
Great explanations!
@chyldstudios
@chyldstudios 6 жыл бұрын
One of the best explanations of Logit!!!
@waldencorbett5558
@waldencorbett5558 9 жыл бұрын
Excellent video on logistic regression. Thanks heaps.
@aprillim4172
@aprillim4172 7 жыл бұрын
Hi Brandon, thank you for the fantastic videos on Logistic Regression. Best explanation ive come across.
@ragsanoor
@ragsanoor 9 жыл бұрын
Awesome videos...! this time on logistic regression.... so lucidly explained... THANK YOU VERY MUCH ..Sir...
@Superfast_express
@Superfast_express 6 жыл бұрын
Thank you so much Brandon, these videos are amazing.
@vegetablebake
@vegetablebake 2 жыл бұрын
Brilliant and easy to understand 🙂
@iamdhruvcool
@iamdhruvcool 6 жыл бұрын
made the concept crystal clear ... Thanks
@aishiaratrika
@aishiaratrika 4 жыл бұрын
This was really insightful. Thansk!
@ntandodlamini3159
@ntandodlamini3159 4 жыл бұрын
Everything I needed. Thanks.
@yibeyibe389
@yibeyibe389 2 жыл бұрын
great mind what an explanatio!!
@oanaandreea7525
@oanaandreea7525 5 жыл бұрын
Thank you, you are amazing! I cannot thank you enough!
@livingwithlinlin3122
@livingwithlinlin3122 4 жыл бұрын
I am glad to find your channel, Brandon. I watched all videos in this series. I have one question. When doing the modeling, are we using the logit function or the logit inverse function. My understanding is that we are using the logit inverse function since the y axis represents the 0-1 range. But from later videos when we put the coefficients into the function, we are using logit function. So, I am confused. Thanks!
@alexandercrump2298
@alexandercrump2298 7 жыл бұрын
Congrats and thanks for making these videos! SO informative
@lengooi6125
@lengooi6125 6 жыл бұрын
Exposition in the lecture is crystal clear!.Well done, very well done
@chetanmootien6024
@chetanmootien6024 8 жыл бұрын
could you plz make a video about maximum likehood of logit models ......???/
@elyesgabsi1998
@elyesgabsi1998 4 жыл бұрын
have you found it out ?
@ankitgandhi256
@ankitgandhi256 7 жыл бұрын
Hi Brandon, thanks for all your videos great help. Can you please add videos on decision trees and random forests as well.
@zainabalmukhtar4276
@zainabalmukhtar4276 5 жыл бұрын
You made the mathy part less messy..thanks
@texaspolygraph
@texaspolygraph 7 жыл бұрын
Once again, agreat presentation.
@ryandruckman999
@ryandruckman999 5 жыл бұрын
i feel like the other two were well paced, but I got a bit lost here. Maybe just me.
@clairenollett7364
@clairenollett7364 3 жыл бұрын
Agree, a big jump for me!
@radsimu
@radsimu 6 жыл бұрын
I didn't understand how the origins of the sigmoid function link with the nature of the problem. I did understand that for logistic regression we want a parametized S shaped function and we want to find its parameters that minimize the sse against the datapoints. Sigmoid is one such function, but there are others as well
@pampamy
@pampamy 9 жыл бұрын
Love it!! thank you so much, you saved my day again!
@shashidharpai8298
@shashidharpai8298 4 жыл бұрын
Appreciate the content, thank you!
@savageryYT
@savageryYT 8 жыл бұрын
How do you derive the inverse logit function?
@likeming2529
@likeming2529 6 жыл бұрын
Awesome! It is very clear!
@Mokk4mann
@Mokk4mann 8 жыл бұрын
very nice video, good work!
@manujkumarjoshi9342
@manujkumarjoshi9342 3 жыл бұрын
Please cover MLE in your future videos.
@nani5987
@nani5987 2 жыл бұрын
you are just awesome....
@mohammedait-oufkir4782
@mohammedait-oufkir4782 6 жыл бұрын
Thank you for the video, still not get clearly what drives the assumption that the logit is represented as a linear equation. this is for me the core of logistic regression but in all readings we assume this relation without giving any motivation behind.
@danielbadinski471
@danielbadinski471 5 жыл бұрын
I was completely ok through video one and 2 and then this third video got me :( Have no idea of whats happening after 3:30 which really sucks. When you put up the big graph, you didn't explain what was happening at like 5:30 onwards I literally had no idea of what I was looking at on this graph and it has sadly all gone down hill from here. Would love a clearer simpler version of the stuff about logit onwards... so lost.
@DEVASIF31
@DEVASIF31 9 жыл бұрын
+Brandon Foltz Nice explanation Brandon. One question (pardon my ignorance), what is the intuition behind taking the natural log of the odds as for the logit instead of using the odds itself for the logit?
@biochemputer
@biochemputer 2 жыл бұрын
A quick question, why logit function choose 1/(1+e^-x) instead of some other similar curve like -cotangent?
@sanchitgoyal6720
@sanchitgoyal6720 4 жыл бұрын
How or why do we think of estimating the probability using the linear regression of the independent variables. Also, how can we be sure that this method will work of trying to predict probability using regression of the variables ?
@MrRajeshvaddi
@MrRajeshvaddi 9 жыл бұрын
Amazing Video Thanks you somuch
@tarshasleak
@tarshasleak 8 жыл бұрын
do something on multiple logistic regression especially with age classes
@anupamadeo2455
@anupamadeo2455 2 жыл бұрын
Just a quick question. I am confused. at 14.44 it is mentioned that logit(p) = ln(p/(1-p)) as log of odds ratio and not log of odds. but ln(p/(1-p)) is log of odds and not log of odds ratio.
@hahablahblaah
@hahablahblaah 9 жыл бұрын
Subscribed. Keep up the good work! :)
@ehtesham8446
@ehtesham8446 7 жыл бұрын
you are simply awesome
@technojunkie213
@technojunkie213 6 жыл бұрын
Wow, love your videos. Subscribed.
@jurijnervi8172
@jurijnervi8172 3 жыл бұрын
Hi! Excellent video. Quick question: Does all this hold true for a binary independent variable as well? For example, "x" would be "received coupon" and "y" would be "converted online". Thank you so much
@robinkohrs8097
@robinkohrs8097 4 жыл бұрын
Thank you so so much!! I only do have one question: What is the link between the inverse of the log(odds) and the antilog?
@rl95719
@rl95719 6 жыл бұрын
Excellent video amigo
@BrandonFoltz
@BrandonFoltz 6 жыл бұрын
Gracias!
@ziggyai
@ziggyai 4 жыл бұрын
Why do you sometimes use odds and odds ratio interchangeably
@leenaa.elshiekh6391
@leenaa.elshiekh6391 4 жыл бұрын
God bless you
@vhuang100
@vhuang100 8 жыл бұрын
great help thanks!
@renemartinez3014
@renemartinez3014 2 жыл бұрын
Quick question Is the antilog the dames and inv(log) inverse of the log?
@JoshFlorii
@JoshFlorii 6 жыл бұрын
another amazing video
@nikeforo2612
@nikeforo2612 9 жыл бұрын
Hello, thank you for the nice explanations of Logistic Regression. Very useful and easy to follow. Just one question: after having fitted a Logistic Regression model (say, binary), if one wishes to calculate the probability for the positive outcome on the basis of the LR results, one has to fed into the LR equation just the predictors that turned out to be significant or all the original predictors even tough they proved not significant? I ask you because, while I would lean toward the first solution, I see that in software like XLSTAT the returned logistic regression equation also comprises the not significant predictors. I am rather confused on that.
@hemanthboyapati3372
@hemanthboyapati3372 3 жыл бұрын
It is the natural logarithm of odds and not the odds ratio as we are taking p/1-p. Am I correct ?
@S7ENLI
@S7ENLI 7 жыл бұрын
I can't figure out why the logit is equal to the linear combination of the independent variables. Can you explain that to me?
@ChinmayTerse
@ChinmayTerse 7 жыл бұрын
Стилиян Валериев same here. What's the reason behind equating the two?
@HissashiRocha
@HissashiRocha 6 жыл бұрын
Стилиян Валериев did you figure it out? I have the same doubt.
@vatsaakhil
@vatsaakhil 6 жыл бұрын
We are trying to get an equation with similar range on both sides, both the logit func and independent vars have infinite range
@priyankjain9970
@priyankjain9970 6 жыл бұрын
Hey Akhil, thanks for reply but still i didn't get why logit is equal to the linear combination of the independent variables?
@Galahad5923
@Galahad5923 6 жыл бұрын
Can you please make a video of Ada boost, random forest and SVM regression?
@rakesho6975
@rakesho6975 6 жыл бұрын
Great videos sir. Just one doubt what if we have more than 2 dependent variables. In that case barnaouli distribution will not be applicable. Right? If yes, then what is the way out.
@shamilsons
@shamilsons 8 жыл бұрын
Hi Brandon, thank you for nice tutorials. Which tool do you use to plot the odds ratios ?
@ylazerson
@ylazerson 6 жыл бұрын
Awesome - thanks!
@eduugr
@eduugr 7 жыл бұрын
Thank you !
@threemarmots
@threemarmots 9 жыл бұрын
the equation displayed at14:32 is not entirely clear to me: why can we write logit(p) as a linear combination of the independent var? I do not see it as a straightforward equation. I mean, I am used to seeing the Utility as b0+b1X, but why the logit(p)? Is that a definition? Thanks
@marloon5
@marloon5 9 жыл бұрын
very soothing voice... thank you so much... although I was annoyed at the credit score example, I don't understand anything related to banks, but it's aite I looked it up and understood.
@harrissteveharris
@harrissteveharris 5 жыл бұрын
wonderful!
@alvinlepik5265
@alvinlepik5265 6 жыл бұрын
The "antilog" is also called the function e^x :D
@RO-gf7je
@RO-gf7je 3 жыл бұрын
Let us all unite unanimously and send a formal request to the Vatican, so this guy can be canonized in the future. His deeds have saved innumerable individuals from the unforgiving claws of despair
@KirillBezzubkine
@KirillBezzubkine 4 жыл бұрын
I will send a few bucks for ur awesome vids. Wish i could have sent more
@harishpl02
@harishpl02 7 жыл бұрын
Thanks a lot
@beback_
@beback_ 9 жыл бұрын
Where can we learn more about the MLE method used here?
@miyazak1
@miyazak1 6 жыл бұрын
Anyone could explain why logit(p) can be expressed as the linear combination of independent variables?
@iapomanjoi
@iapomanjoi 7 жыл бұрын
hi, i wanna ask you, i used linear regression model then tested in ROC - better predictability, but when i used logit function, ROC no better, why?
@pranshul67
@pranshul67 8 жыл бұрын
thank you
@zainabalmukhtar4276
@zainabalmukhtar4276 5 жыл бұрын
independent variables could be binary or continuous right?
@RichaChauhandreams
@RichaChauhandreams 9 жыл бұрын
p/(1-p) is defined as the odds then why are you defining logit as log of odds ratio ... shouldn't it be log (odds) only and not the ratio ? can you please clarify ?
@RichaChauhandreams
@RichaChauhandreams 9 жыл бұрын
I got my answer in the comments below .. thank you :)
@JeeVangPhD
@JeeVangPhD 8 жыл бұрын
wow! thanks
Statistics 101: Logistic Regression, Estimating the Probability
11:22
Brandon Foltz
Рет қаралды 219 М.
Statistics 101: Logistic Regression, An Introduction
11:26
Brandon Foltz
Рет қаралды 646 М.
❌Разве такое возможно? #story
01:00
Кэри Найс
Рет қаралды 6 МЛН
白天使选错惹黑天使生气。#天使 #小丑女
00:31
天使夫妇
Рет қаралды 17 МЛН
WHAT ARE LOGIT MODELS?? (Logistic models)
18:25
zedstatistics
Рет қаралды 113 М.
Maximum Likelihood Estimation ... MADE EASY!!!
9:12
Learn Statistics with Brian
Рет қаралды 13 М.
Statistics 101: Logistic Regression, Odds Ratio for Any Interval
24:47
Logistic Regression in R, Clearly Explained!!!!
17:15
StatQuest with Josh Starmer
Рет қаралды 515 М.
Correlation and Regression Analysis: Learn Everything With Examples
9:50
LEARN & APPLY : Lean and Six Sigma
Рет қаралды 1,5 МЛН
Statistics 101: Understanding Correlation
27:05
Brandon Foltz
Рет қаралды 718 М.
Logistic Regression with Maximum Likelihood
15:51
Endless Engineering
Рет қаралды 33 М.
LOGISTIC REGRESSION TUTORIAL
17:04
Art of Visualization
Рет қаралды 99 М.
Learn Statistical Regression in 40 mins! My best video ever. Legit.
40:25