Maximum Likelihood, clearly explained!!!
Key Takeaways
Maximum Likelihood estimation is demonstrated using a normal distribution to fit a dataset of mouse weights, showcasing how to find the optimal parameters for the distribution.
Full Transcript
stack Quest check it it's bad to the bone stack quiz check it out it's bad to the bone hello and welcome to stack Quest stack Quest is brought to you by the friendly folks in the genetics department at the University of North Carolina at Chapel Hill today we're going to be talking about maximum likelihood let's say we weighed a bunch of mice the goal of Maximum likelihood is to find the optimal way to fit a distribution to the data there are lots of different types of distributions for different types of data here's a normal distribution here's what an exponential distribution looks like and here's what a gamma distribution looks like and there are many more the reason you want to fit a distribution to your data is it can be easier to work with and it is also more General it applies to every experiment of the same type in this case we think the weights might be normally distributed that means we think it came from this type of distribution normally distributed means a number of things first we expect most of the measurements for for example mouse weights to be close to the mean or average and we see lo and behold in our data set most of the mice weigh close to the average we also expect the measurements to be relatively symmetrical around the mean although the measurements are not perfectly symmetrical around the mean they are not crazy skewed to one side either this is pretty good normal distributions come in all kinds of shapes and sizes they can be skinny medium or large boned once we settle on the shape we have to figure out where to Center the thing is one location better than another before we get too technical let's just pick any old normal distribution and see how well it fits the data this distribution says most of the values you measure should be near my average the distribution average is the black dotted line in this case that's different from the average of the actual measurements unfortunately most of the values we measured are far from the distribution's average according to a normal distribution with a mean value over here the probability or likelihood of observing all these weights is low what if we shifted the normal distribution over so that it mean was the same as the average weight according to a normal distribution with a mean value here the probability or likelihood of observing these weights is relatively high if we kept Shifting the normal distribution over then the probability or likelihood of observing these measurements would go down again we can plot the likelihood of observing the data over over the location of the center of the distribution we start on the left side and we calculate the likelihood of observing the data and then we shift the distribution to the right and recalculate we just do this all the way down the data once we've tried all the possible locations we could center the normal distribution on we want the location that maximizes the likelihood of observing the weights we measured this location for the mean maximizes the likelihood of observing the weights we measured thus it is the maximum likelihood estimate for the mean in this case we're specifically talking about the mean of the distribution not the mean of the data however with the normal distribution those two things are the same great now we have figured out the maximum likelihood estimate for the mean now we have to figure out the max maximum likelihood estimate for the standard deviation again we can plot the likelihood of observing the data over different values for the standard deviation now we found the standard deviation that maximizes the likelihood of observing the weights we measured this is the normal distribution that has been fit to the data by using the maximum likelihood estimations for the mean and the standard deviation now when someone says that they have the maximum likelihood estimates for the mean or the standard deviation or for something else you know that they found the value for the mean or the standard deviation or for whatever that maximizes the likelihood that you observed the things that you observed terminology Alert in everyday conversation probability and likelihood mean the same thing however in stats land likelihood specifically refers to this situation we've covered here where you are trying to find the optimal value for the mean or standard deviation for a distribution given a bunch of observed measurements this is how we fit a distribution to data hooray we've made it to the end of another exciting stack Quest if you like this stack Quest and want to see more like it please subscribe it's super easy easy just click the little button below and if you have any suggestions for other stat quests that I could do put them in the comments all right until next time Quest on
Original Description
If you hang out around statisticians long enough, sooner or later someone is going to mumble "maximum likelihood" and everyone will knowingly nod. After this video, so can you!
Also, some viewers asked for a worked out example that includes the math. Here it is! (you may need to click on the "Show More" button below to see the link) https://youtu.be/p3T-_LMrvBc
For a complete index of all the StatQuest videos, check out:
https://statquest.org/video-index/
If you'd like to support StatQuest, please consider...
Patreon: https://www.patreon.com/statquest
...or...
YouTube Membership: https://www.youtube.com/channel/UCtYLUTtgS3k1Fg4y5tAhLbw/join
...buying one of my books, a study guide, a t-shirt or hoodie, or a song from the StatQuest store...
https://statquest.org/statquest-store/
...or just donating to StatQuest!
https://www.paypal.me/statquest
Lastly, if you want to keep up with me as I research and create new StatQuests, follow me on twitter:
https://twitter.com/joshuastarmer
0:00 Awesome song and introduction
0:34 Motivation for MLE
1:12 Overview of the Normal Distribution
2:06 Thinking about where to center the distribution
3:25 Using MLE to find the optimal location for the center
4:27 Using MLE to find the optimal standard deviation
5:19 Probability vs Likelihood
#statquest #MLE
Watch on YouTube ↗
(saves to browser)
Sign in to unlock AI tutor explanation · ⚡30
Playlist
Uploads from StatQuest with Josh Starmer · StatQuest with Josh Starmer · 54 of 60
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
▶
55
56
57
58
59
60
Cutting Butter
StatQuest with Josh Starmer
onion-dice
StatQuest with Josh Starmer
R-squared, Clearly Explained!!!
StatQuest with Josh Starmer
Wrapping up dumplings for pot stickers.
StatQuest with Josh Starmer
The standard error, Clearly Explained!!!
StatQuest with Josh Starmer
That Dude (in the movies)
StatQuest with Josh Starmer
How to puree garlic
StatQuest with Josh Starmer
Confidence Intervals, Clearly Explained!!!
StatQuest with Josh Starmer
RPKM, FPKM and TPM, Clearly Explained!!!
StatQuest with Josh Starmer
Principal Component Analysis (PCA) clearly explained (2015)
StatQuest with Josh Starmer
StatQuest: RNA-seq - the problem with technical replicates
StatQuest with Josh Starmer
That's Alright
StatQuest with Josh Starmer
Christmas In Rio! (now on iTunes!)
StatQuest with Josh Starmer
Drawing and Interpreting Heatmaps
StatQuest with Josh Starmer
Rachel's Song (the ballad of Hazel Motes)
StatQuest with Josh Starmer
Deal With It
StatQuest with Josh Starmer
Say Your Goodbyes
StatQuest with Josh Starmer
Another Day
StatQuest with Josh Starmer
StatQuest: Linear Discriminant Analysis (LDA) clearly explained.
StatQuest with Josh Starmer
Maybe It'll Go Away
StatQuest with Josh Starmer
Nasty Weather
StatQuest with Josh Starmer
Roses
StatQuest with Josh Starmer
p-hacking and power calculations
StatQuest with Josh Starmer
I Love You
StatQuest with Josh Starmer
The Coldest Day of the Year
StatQuest with Josh Starmer
Psycho Killer
StatQuest with Josh Starmer
False Discovery Rates, FDR, clearly explained
StatQuest with Josh Starmer
A New Song
StatQuest with Josh Starmer
StatQuickie: Thresholds for Significance
StatQuest with Josh Starmer
Logs (logarithms), Clearly Explained!!!
StatQuest with Josh Starmer
Bar Charts Are Better than Pie Charts
StatQuest with Josh Starmer
Mr Hattie
StatQuest with Josh Starmer
StatQuickie: Which t test to use
StatQuest with Josh Starmer
Fisher's Exact Test and the Hypergeometric Distribution
StatQuest with Josh Starmer
Standard Deviation vs Standard Error, Clearly Explained!!!
StatQuest with Josh Starmer
StatQuest: DESeq2, part 1, Library Normalization
StatQuest with Josh Starmer
The Rainbow
StatQuest with Josh Starmer
StatQuest: edgeR, part 1, Library Normalization
StatQuest with Josh Starmer
The Main Ideas behind Probability Distributions
StatQuest with Josh Starmer
StatQuest: One or Two Tailed P-Values
StatQuest with Josh Starmer
Evil Genius
StatQuest with Josh Starmer
Sampling from a Distribution, Clearly Explained!!!
StatQuest with Josh Starmer
StatQuest: edgeR and DESeq2, part 2 - Independent Filtering
StatQuest with Josh Starmer
The Main Ideas of Fitting a Line to Data (The Main Ideas of Least Squares and Linear Regression.)
StatQuest with Josh Starmer
The Sum of Regrets
StatQuest with Josh Starmer
Lowess and Loess, Clearly Explained!!!
StatQuest with Josh Starmer
StatQuest: Hierarchical Clustering
StatQuest with Josh Starmer
StatQuest: K-nearest neighbors, Clearly Explained
StatQuest with Josh Starmer
Your Dark Side
StatQuest with Josh Starmer
Boxplots are Awesome!!!
StatQuest with Josh Starmer
What is a (mathematical) model?
StatQuest with Josh Starmer
Linear Regression, Clearly Explained!!!
StatQuest with Josh Starmer
Linear Regression in R, Step-by-Step
StatQuest with Josh Starmer
Maximum Likelihood, clearly explained!!!
StatQuest with Josh Starmer
Brothers
StatQuest with Josh Starmer
Using Linear Models for t-tests and ANOVA, Clearly Explained!!!
StatQuest with Josh Starmer
StatQuest: How to make a Mean Pizza Crust!!!
StatQuest with Josh Starmer
StatQuest: A gentle introduction to RNA-seq
StatQuest with Josh Starmer
I'm Alive
StatQuest with Josh Starmer
StatQuest: t-SNE, Clearly Explained
StatQuest with Josh Starmer
More on: ML Maths Basics
View skill →Related AI Lessons
Chapters (7)
Awesome song and introduction
0:34
Motivation for MLE
1:12
Overview of the Normal Distribution
2:06
Thinking about where to center the distribution
3:25
Using MLE to find the optimal location for the center
4:27
Using MLE to find the optimal standard deviation
5:19
Probability vs Likelihood
🎓
Tutor Explanation
DeepCamp AI