GLM Intro - 1 - Linear Models vs. Generalized Linear Models

  Рет қаралды 147,171

Meerkat Statistics

Meerkat Statistics

Күн бұрын

What are Generalized Linear Models, and what do they generalize?
Become a member and get full access to this online course:
meerkatstatistics.com/courses...
** 🎉 Special KZbin 60% Discount on Yearly Plan - valid for the 1st 100 subscribers; Voucher code: First100 🎉 **
“GLM in R” Course Outline:
Administration
* Administration
Up to Scratch
* Notebook - Introduction
* Notebook - Linear Models
* Notebook - Intro to R
Intro to GLM’s
* Linear Models vs. Generalized Linear Models
* Least Squares vs. Maximum Likelihood
* Saturated vs. Constrained Model
* Link Functions
Exponential Family
* Definition and Examples
* More Examples
* Notebook - Exponential Family
* Mean and Variance
* Notebook - Mean-Variance Relationship
Deviance
* Deviance
* Notebook - Deviance
Likelihood Analysis
* Likelihood Analysis
* Numerical Solution
* Notebook - GLM’s in R
* Notebook - Fitting the GLM
* Inference
Code Examples:
* Notebook - Binary/Binomial Regression
* Notebook - Poisson & Negative Binomial Regression
* Notebook - Gamma & Inverse Gaussian Regression
Advanced Topics:
* Quasi-Likelihood
* Generalized Estimating Equations (GEE)
* Mixed Models (GLMM)
Why become a member?
* All video content
* Extra material (notebooks)
* Access to code and notes
* Community Discussion
* No Ads
* Support the Creator ❤️
GLM (restricted) playlist: bit.ly/2ZMSv4U
If you’re looking for statistical consultation, someone to work on interesting projects, or training workshops, visit my website meerkatstatistics.com/ or contact me directly at david@meerkatstatistics.com
~~~~~ SUPPORT ~~~~~
Paypal me: paypal.me/MeerkatStatistics
~~~~~~~~~~~~~~~~~

Пікірлер: 57
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
Full course is now available on my private website. Become a member and get full access: meerkatstatistics.com/courses... * 🎉 Special KZbin 60% Discount on Yearly Plan - valid for the 1st 100 subscribers; Voucher code: First100 🎉 * “GLM in R” Course Outline: Administration * Administration Up to Scratch * Notebook - Introduction * Notebook - Linear Models * Notebook - Intro to R Intro to GLM’s * Linear Models vs. Generalized Linear Models * Least Squares vs. Maximum Likelihood * Saturated vs. Constrained Model * Link Functions Exponential Family * Definition and Examples * More Examples * Notebook - Exponential Family * Mean and Variance * Notebook - Mean-Variance Relationship Deviance * Deviance * Notebook - Deviance Likelihood Analysis * Likelihood Analysis * Numerical Solution * Notebook - GLM’s in R * Notebook - Fitting the GLM * Inference Code Examples: * Notebook - Binary/Binomial Regression * Notebook - Poisson & Negative Binomial Regression * Notebook - Gamma & Inverse Gaussian Regression Advanced Topics: * Quasi-Likelihood * Generalized Estimating Equations (GEE) * Mixed Models (GLMM) Why become a member? * All video content * Extra material (notebooks) * Access to code and notes * Community Discussion * No Ads * Support the Creator ❤
@bfod
@bfod Жыл бұрын
I tried to sign up but it wouldn't work
@user-or7ji5hv8y
@user-or7ji5hv8y 2 жыл бұрын
This is the best high level explanation yet to understand the motivation.
@keerthanavivin450
@keerthanavivin450 2 жыл бұрын
Great video. Just the explanation I was looking for!
@gloria9679
@gloria9679 3 жыл бұрын
omg, finally i found short and clear video , thank u !
@mehodaejeon
@mehodaejeon Ай бұрын
It is the best lecture that I have watched on KZbin. Thanks.
@joejitsuway960
@joejitsuway960 3 жыл бұрын
Very Clear. Thank you.
@TiagoPereira-hm1nq
@TiagoPereira-hm1nq 3 жыл бұрын
Fantastic! Bravo!
@factsfigures2740
@factsfigures2740 3 жыл бұрын
very well explained
@Mirabell97
@Mirabell97 3 жыл бұрын
Thanks, that's very helpful :)
@user-ye9yo4jx2q
@user-ye9yo4jx2q Жыл бұрын
Thanks, I love this video so much
@nightmareluffy5716
@nightmareluffy5716 3 жыл бұрын
Thankss a lot...this was very helpful.😀
@suzykhaled3491
@suzykhaled3491 3 жыл бұрын
good explanation, keep on
@petragonzalez7868
@petragonzalez7868 2 жыл бұрын
This was awesome dude! Thanks for that, really!
@MeerkatStatistics
@MeerkatStatistics 2 жыл бұрын
Warms my heart :-)
@theforester_
@theforester_ Жыл бұрын
wow! thanks very much! big shout out from brazil
@rishikeshp7880
@rishikeshp7880 2 жыл бұрын
Hi! Awesome videos dude! I do have a few questions - Are all linear models, gaussian linear models ? The assumption that errors/residuals have to be normally distributed, does it hold true for both regular linear models as well as GLMs ? Why cannot be use LSE for GLMs ?
@marcoantoniorocha9077
@marcoantoniorocha9077 Жыл бұрын
Stupendous!
@sarkersunzidmahmud2875
@sarkersunzidmahmud2875 2 жыл бұрын
thanks a lot for the explanation. But I was thinking that in the linear model, Normally we use Y as the response variable and X as the independent variable, where response Y is dependent on X. That's why I got a little bit confused at first when u are taking Y as the observations.
@MsKakashi2012
@MsKakashi2012 3 жыл бұрын
thank you!
@anthonywashington2885
@anthonywashington2885 11 ай бұрын
YOU ARE AWESOME
@sara-ql1xs
@sara-ql1xs 2 жыл бұрын
excelent, thank you
@vncsna
@vncsna 3 жыл бұрын
Thanks!!
@fangqimaggieguo671
@fangqimaggieguo671 2 жыл бұрын
Thank you
@raltonkistnasamy6599
@raltonkistnasamy6599 Ай бұрын
thanka man
@fade-touched
@fade-touched 3 жыл бұрын
thx!!
@tullee7228
@tullee7228 3 жыл бұрын
Independent variable Y doesn’t need to be Normally distributed, it just need to be a from distribution from Exponential Family. The only assumed Normality is the Residual
@MeerkatStatistics
@MeerkatStatistics 3 жыл бұрын
In linear models, y is normal. In GLM's y can be any exponential family.
@user-lp3qb6uj8v
@user-lp3qb6uj8v 2 жыл бұрын
@@MeerkatStatistics y should be normal given x
@imrul66
@imrul66 3 жыл бұрын
Hi! Thanks for the video. Can you please explain (in comments or in a video) how this relates to GLS?
@MeerkatStatistics
@MeerkatStatistics 3 жыл бұрын
They are two different things. Check here stats.stackexchange.com/a/272562/117705
@prashant0104
@prashant0104 3 жыл бұрын
Thank you so much! I have a question - how is the ‘generalized least squares’ and ‘general linear models’ categorized wrt. to these two, and what are their differences to these respectively?
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
GLS is a different concept - used in linear models (linear regression). It accounts for a residual covariance matrix which is not the identity (i.e., the assumption of homoscedasticity and independence are violated). I might do a video about it in the future.
@romgossel7971
@romgossel7971 2 жыл бұрын
Hi, great video 👍🏻 Just a comment/question. Perhaps am I wrong, but in my understanding, the normality of residuals (or of y's if you prefer) is not formally required for the parameter estimation for the best fit line using the ordinary least square methods (linear model). The Gauss-Markov theorem requires other assumptions about the errors (such as finite variance / homoscedasticity or zero conditional mean...) to ensure that the OLS gives the best linear estimator... but normality itself is mostly important for inference (drawing confidence intervals), not for parameter estimate. In other words, even in violation of normality, we cannot conclude that the OLS would not give the best linear unbiased estimator. As I said, perhaps am I wrong.
@MeerkatStatistics
@MeerkatStatistics 2 жыл бұрын
No, I think you are right. There are some properties that can be achieved by simply demanding homoscedasticity or zero conditional mean. But for more properties you will need also the normal assumption. In Agresti's book (Foundation of Linear and Generalized Linear models) chapter 2 is devoted to Linear models without the assumption of normality, and chapter 3 is devoted to "Normal Linear Models". You should check it out.
@romgossel7971
@romgossel7971 2 жыл бұрын
@@MeerkatStatistics Thanks for the answer and for the tip, I'll have a look indeed :)
@cgdarwin
@cgdarwin 2 жыл бұрын
this was great! what is the app you use for writing? is it a white board?
@MeerkatStatistics
@MeerkatStatistics 2 жыл бұрын
Yes, but I since moved to OneNote
@MisterDives
@MisterDives 3 жыл бұрын
I'm trying to wrap my head around your point about the second assumption here - I thought with regular linear models it was required that the _residuals_ be normally distributed, not the data points themselves, but then is it that the residuals in GLMs can be from non-normal distributions? (as long as they're in the exponential family)
@MeerkatStatistics
@MeerkatStatistics 3 жыл бұрын
y=bx+residual, i.e. a systematic part + a stochastic part. Hence if the residuals are normal, the y's are normal. Or you could say, the y's are normal because the noise is normal.
@tullee7228
@tullee7228 3 жыл бұрын
@@MeerkatStatistics in this case, y can be uniformed and still maintaining Normal residual
@MeerkatStatistics
@MeerkatStatistics 3 жыл бұрын
@@tullee7228 not sure I understand what you mean. Uniform and Normal are two different distribution, and a random variable can't be both.
@arnbrandy
@arnbrandy Жыл бұрын
​@@MeerkatStatistics I think I understand @Tul Lee comment. IIUC it is the same as my doubt here. Let me use a great example I saw somewhere else to clarify this: The house prices in a city are linearly related to its area (in square feet/meters). Now, suppose I observe the prices and areas of some houses, and I noticed that there are more or less the same number of houses (let us say, 50±3) in each decile of the observed prices and observed areas. My price data points are uniformly distributed, yet I still can use linear regression. So, normally distributed prices are not a prerequisite for having a linear model, am I right? What is a prerequisite is that the *residuals* (defined as R = Y-bX) are normally distributed, R ~ N(0, σ²). Did we interpret it wrong?
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
​@@arnbrandy If y is uniform, the residuals are uniform. In this model there is only 1 source of stochasticity which are the residuals. They can be either uniform or normal but not both. So yes, you are wrong. However - there is no real requirement for the distribution to be normal. As mentioned in another comment here, it's actually a subclass of linear models called Normal Linear Models, which make some results (CI for the coefficients, Prediction Intervals, etc.) easier to get (though you can get them using asymptotic theory if n is large enough). The only thing "required" is for the residuals to have 0 mean and constant independent variance (though even non constant and non independent variance can be dealt with using GLS). This is just an introduction to the topic which tries to simplify it in order for most people to grasp it. Like most simplifications, it does not capture the full complexity and subtleties of the topic.
@mdevdatta
@mdevdatta Жыл бұрын
At 2:11 I don't understand what you mean be "the coefficients are made linear". If we have a term like beta_i^2, what prevents us from redefining beta_i^2 -> beta_i? The beta's are all c-numbers, right?
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
Nothing prevents you. But if you have y=beta0+beta1*x1 + x2^beta2, that's a problem. Same if you have y=beta1*x1/(beta0+beta2*x2). The main point is that the function has to be linear w.r.t. to the inputs, but it's ok if the x's are some transformations of themselves (i.e. x^2, log x, exp x, sin x, etc.).
@Hasanahmed2013
@Hasanahmed2013 2 жыл бұрын
Thank you. What's the difference between MLE and Least squares? Sorry for the stupid question.
@MeerkatStatistics
@MeerkatStatistics 2 жыл бұрын
See the next video in the series 🙂
@nkristianschmidt
@nkristianschmidt 11 ай бұрын
y does not need to be normally distributed
@moshitammmabotha8900
@moshitammmabotha8900 Жыл бұрын
Why are the videos hidden? How can i get them??
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
They are now offered for paid members in my website: meerkatstatistics.com/courses/generalized-linear-models-glms/ I made a video explaining how to register kzbin.info/www/bejne/gIaxgGetfruipZI&ab_channel=MeerkatStatistics
@faroukbenmeslem2654
@faroukbenmeslem2654 Жыл бұрын
The Xi are indépendante not yi
@sahil0094
@sahil0094 Жыл бұрын
Linear regression assumptions are wrong. -Every observation doesn’t need to be normal. Residuals need to follow a normal distribution
@MeerkatStatistics
@MeerkatStatistics Жыл бұрын
If the residual (epsilon) is normal, what does it mean about the observation (y)? When y=b*x + epsilon.
@dinomoviesnstuff
@dinomoviesnstuff 4 ай бұрын
Hard to understand.
GLM Intro - 2 - Least Squares vs. Maximum Likelihood
9:02
Meerkat Statistics
Рет қаралды 62 М.
Understanding Generalized Linear Models (Logistic, Poisson, etc.)
20:19
Each found a feeling.#Short #Officer Rabbit #angel
00:17
兔子警官
Рет қаралды 5 МЛН
How to interpret (and assess!) a GLM in R
17:36
Chloe Fouilloux
Рет қаралды 23 М.
GLM vs. GAM - Generalized Additive Models
8:01
Meerkat Statistics
Рет қаралды 230
Using Linear Models for t tests and ANOVA, Clearly Explained!!!
11:38
StatQuest with Josh Starmer
Рет қаралды 48 М.
(Simplified) Linear Mixed Model in R with lme()
26:17
LiquidBrain Bioinformatics
Рет қаралды 62 М.
GLM Intro - 4 - Link Function
8:46
Meerkat Statistics
Рет қаралды 37 М.
CS1 GLM
21:38
Alpha Plus
Рет қаралды 4,7 М.
Linear mixed effects models
18:37
Matthew E. Clapham
Рет қаралды 216 М.
GLM in R
18:17
Kasper Welbers
Рет қаралды 52 М.