Rejection Sampling + R Demo

preview_player
Показать описание
Review of rejection sampling (a.k.a. accept-reject method) plus an example in R.

Thanks for watching!! ❤️

R code for example:

//Chapters
0:00 Rejection sampling explanation
4:14 Example
8:32 R demo

Tip Jar 👉🏻👈🏻

♫ Eric Skiff - Chibi Ninja

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

2 seconds in and already a better experience in terms of delivery and articulation compared to my current lecturer. Please continue to teach the wonders of statistics on youtube for the world's benefit.

richardy
Автор

this is such a succinct video, broke down the method and explained how to apply it in such a helpful manner. Thank you.

nhlanhlamsongelwa
Автор

This video is a masterpiece. Very well articulated.

abhinandanmohanty
Автор

in the R code when you add the value of count by one, if the candidate got accepted you increase the value of count by 1 and then you increase it again! since U add count by 1 outside of the if statement I think u should delete adding 1 to it inside if condition.

homataha
Автор

I am a python user, so not able to code R. However, this video is so very intuitive! Thank you for the nice lecture! Especially examples are so good!

hongkyulee
Автор

This video is an act of kindness to me. Thanks for sharing
: )

sirkelvinmalunga
Автор

I find your video really helpful and easy to understand thank you very much !.

muhammadosama
Автор

So helpful!!! Thank you! You saved my midterm

alexiaberenicetorrescalder
Автор

these videos are gold. thank you so much

err
Автор

Thank you so much for you clear explanations ! Really helpful

rondotmarie
Автор

thanks for describe the theorem in the easiest way to understand. Best of Luck. the boss

khwajashamsuddoha
Автор

Thanks a lot for the video. Very precise and easy to understand. However, for choosing the value of scaling factor, its not always correct to choose the end value of support. I think its better to find out the local maxima. For example, taking the end value of support in a bell-curve would not be correct because we need to scale it to at least above the maxima of target function.

sahilmohammad
Автор

this is such an amazing video, subbing!

salmanfariss
Автор

Thank you so much. Your video is really really helpful.

huilapman
Автор

Thank you for your vid. I think i found a little mistake in your R-Code. Your counter will increased by two if your if-statement is true, which is, as far as i understood the method correctly, not what you wanted to archive.

creepomusik
Автор

Why do we need the second step u~Unif? In the third step, can we set the if condition as 1< Pi(Xi)/Cg(Xi) ?

ZiluZheng
Автор

How does your pdf have values greater than 1?

Cam-lhnr
Автор

thank you, can you please tell me how can we do it in MATLAB

soumialahfair
Автор

How can we calculate the rejection ratio in this example?

vayvon
Автор

you explained the concept behind the algorithm very clearly, it makes me easy to understand the whole thing, support! one thing I want to know is what is the usage in the reality? just curious

fntldks