Тёмный

Understanding Metropolis-Hastings algorithm 

Machine Learning TV
Подписаться 37 тыс.
Просмотров 70 тыс.
50% 1

Course link: www.coursera.o...
Metropolis-Hastings is an algorithm that allows us to sample from a generic probability distribution, which we'll call our target distribution, even if we don't know the normalizing constant. To do this, we construct and sample from a Markov chain whose stationary distribution is the target distribution that we're looking for. It consists of picking an arbitrary starting value and then iteratively accepting or rejecting candidate samples drawn from another distribution, one that is easy to sample. Let's say we want to produce samples from a target distribution. We're going to call it p of theta. But we only know it up to a normalizing constant or up to proportionality. What we have is g of theta. So we don't know the normalizing constant because perhaps this is difficult to integrate. So we only have g of theta to work with. The Metropolis Hastings Algorithm will proceed as follows. The first step is to select an initial value for theta. We're going to call it theta-naught. The next step is for a large number of iterations, so for i from 1 up to some large number m, we're going to repeat the following. The first thing we're going to do is draw a candidate. We'll call that theta-star as our candidate. And we're going to draw this from a proposal distribution. We're going to call the proposal distribution q of theta-star, given the previous iteration's value of theta. We'll take more about this q distribution soon. The next step is to compute the following ratio. We're going to call this alpha. It is this g function evaluated at the candidate divided by the distribution, or the density here of q, evaluated at the candidate given the previous iteration. And all of this will be divided by g evaluated at the old iteration. That divided by q, evaluated at the old iteration. Given the candidate value. If we rearrange this, it'll be g of the candidate times q of the previous value given the candidate divided by g at the previous value. And q evaluated at the candidate, given the previous value.....

Наука

Опубликовано:

 

21 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 33   
@sethjchandler
@sethjchandler 2 года назад
Can't believe how good your backwards handwriting is ;)
@justinxia9293
@justinxia9293 4 года назад
This is a pretty nice video thank you so much!!! I feel like I understood a lot of things much better after listening to the video. But there's also homework to prepare for if one wants to fully appreciate the content in the video. One should understand mostly about Bayesian statistics, and terms like normalizing factors. If not, checking around Wikipedia might be a good option.
@ecapanema
@ecapanema 3 года назад
Thank you. Great set you got there for presenting it, almost convinced me you're actually left-handed lololol
@nleontis
@nleontis 4 года назад
How does this guy write backwards?
@lucas29476
@lucas29476 3 года назад
same question. I looked it up and apparently it involves writing on glass in front of camera + flipping the video horizontally.
@khldh
@khldh 4 года назад
but how did you write in reverse?
@frozenburrito9313
@frozenburrito9313 4 года назад
he didn't, they just reverse the video afterward
@purelogic4533
@purelogic4533 4 года назад
@@frozenburrito9313 that cant be right. What is filmed is a mirror reflection.
@frozenburrito9313
@frozenburrito9313 4 года назад
PureLogic right, that's the correct word
@ssvl2204
@ssvl2204 Год назад
Very nice and conscise presentation, thanks!
@thefarrellgroup3633
@thefarrellgroup3633 Год назад
are you writing backwards?! very nice video, thank you for sharing.
@cindyxu1100
@cindyxu1100 3 года назад
explained everything super clear, thank you
@gihanna
@gihanna 2 года назад
Brilliant explanation!!! this is the best one
@freezeandfry
@freezeandfry 4 года назад
Great video! Still wondering, can you perhaps further explain why the terms that cancel are equal for a normal distribution at 7:21? Can't wait for the next video coming out!
@TimBate
@TimBate 2 года назад
A normal distribution is symmetric about the mean. So, to put some numbers on it, let's say that the proposed theta (theta_star) was one sigma to the right of theta_(i-1). This of course means that theta_(i-1) is one sigma to the left of theta_star. So q(theta_star | theta_(i-1)) is equal to the normal distribution density at +1 sigma. In the divisor, you have q(theta_(i-1) | theta_star) which is equal to the normal distribution density at -1 sigma. But the normal distribution is symmetric about 0, so those values are equal and cancel each other out.
@smartmarc333
@smartmarc333 2 года назад
Just a very good video!
@fdsfkdj
@fdsfkdj 3 года назад
you got me at the first sentence
@jacobmoore8734
@jacobmoore8734 4 года назад
Could you explain the intuitions behind the formula for alpha?
@johannesluttmer1285
@johannesluttmer1285 3 года назад
How about totalitair communism? ? Plain in side. .right in front of your 👀
@dominicj7977
@dominicj7977 3 года назад
Posterior probability of new theta / Posterior probability of old theta. You need to understand bayesian statistics for continuous distributions for this.
@user-je4xw6tx3k
@user-je4xw6tx3k 3 года назад
Where is the next vedio?
@JohnSmith-lf5xm
@JohnSmith-lf5xm 4 года назад
I still did not understand. I will wait for the next video. Thank you anyway !
@MachineLearningTV
@MachineLearningTV 4 года назад
Soon we will upload the next video
@maximmarchal9991
@maximmarchal9991 3 года назад
@@MachineLearningTV But when?! Great video by the way.
@johannesluttmer1285
@johannesluttmer1285 3 года назад
@@maximmarchal9991 just look at the movie Metropolis from 1927 or listen to welcome to the machine from pink Floyd and know what's going on. ..this are the bad guys. That's all
@ipuhbamrash6708
@ipuhbamrash6708 4 года назад
Do you have more video of the tutor??
@mohammadghani1379
@mohammadghani1379 Год назад
Dear Professor, what is "q" here?
@abdelkarimaths
@abdelkarimaths 4 года назад
can we have an example of programming this example on Matlab.
@calc_5830
@calc_5830 2 года назад
where is the next?
@donpkchannel7203
@donpkchannel7203 2 года назад
You miss an example. Without example this looks like science fiction
@CW-pe1ci
@CW-pe1ci 3 года назад
Nothing more than repeated the Wiki, you didn't specify what's theta_0, how the "draw" candidate, not even one example.
@zahrajalilpour9964
@zahrajalilpour9964 3 года назад
١
Далее
Kalman Filter - Part 1
8:35
Просмотров 101 тыс.
Metropolis - Hastings : Data Science Concepts
18:15
Просмотров 99 тыс.
Construction site video BEST.99
01:00
Просмотров 304 тыс.
Metropolis-Hastings - VISUALLY EXPLAINED!
24:45
Просмотров 32 тыс.
Bayes theorem, the geometry of changing beliefs
15:11
Markov Chain Monte Carlo and the Metropolis Alogorithm
35:35
Monte Carlo Simulation
10:06
Просмотров 1,4 млн
Как настроить камеру хоп-ап
1:00
Это Google Pixel 9 и это стиль!
0:47
Просмотров 318 тыс.
MSI GAMING BLACK SCREEN / STUCK ON BOOT LED
1:00
Просмотров 4,3 млн
Слетела прошивка на LiXiang L7
1:01