Rejection Sampling + R Demo

Поделиться
HTML-код
  • Опубликовано: 24 янв 2025

Комментарии • 39

  • @richardy7888
    @richardy7888 3 года назад +14

    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.

  • @nhlanhlamsongelwa4364
    @nhlanhlamsongelwa4364 4 года назад +5

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

  • @Healthandwealthchats
    @Healthandwealthchats Год назад +2

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

  • @abhinandanmohanty3833
    @abhinandanmohanty3833 Год назад +2

    This video is a masterpiece. Very well articulated.

  • @homataha5626
    @homataha5626 3 года назад +5

    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.

  • @hongkyulee9724
    @hongkyulee9724 2 года назад +4

    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!

  • @muhammadosama8308
    @muhammadosama8308 4 года назад +7

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

  • @alexiaberenicetorrescalder5742
    @alexiaberenicetorrescalder5742 4 года назад +3

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

  • @err3088
    @err3088 2 года назад +1

    these videos are gold. thank you so much

  • @khwajashamsuddoha2055
    @khwajashamsuddoha2055 3 года назад +1

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

  • @rondotmarie4353
    @rondotmarie4353 2 года назад +1

    Thank you so much for you clear explanations ! Really helpful

  • @salmanfariss
    @salmanfariss 3 года назад +1

    this is such an amazing video, subbing!

  • @hongquanli1754
    @hongquanli1754 3 года назад +2

    Wonderful video and well explained!

  • @huilapman
    @huilapman 3 года назад +2

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

  • @sahilmohammad4336
    @sahilmohammad4336 2 года назад +1

    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.

  • @creepomusik2883
    @creepomusik2883 3 года назад +4

    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.

  • @bayubetaB
    @bayubetaB 4 года назад +2

    This is really helpful, thank you!

  • @fntldks
    @fntldks 4 года назад +2

    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

    • @jpfarina
      @jpfarina Год назад

      Simulating distributions. It's commonly used in software that models business processes. Not modeling them like Visio, though. Modeling them like, "how long does the average customer wait in line?" and, "what would happen if we added an additional cashier?".

  • @ZiluZheng
    @ZiluZheng 3 года назад +1

    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) ?

    • @mathetal
      @mathetal  3 года назад

      Xi comes from a distribution that is hard to sample directly, which means that Monte Carlo methods can be used to approximate it

  • @soumialahfair3171
    @soumialahfair3171 2 года назад

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

  • @charanshah3787
    @charanshah3787 2 года назад

    Very helpful vedios, but can you help me how to draw using this method from normal, exponential or any proposed distribution

  • @vayvon21
    @vayvon21 Год назад

    How can we calculate the rejection ratio in this example?

  • @PandemicGameplay
    @PandemicGameplay 3 года назад +1

    This was an extremely good video

  • @투스쿠스꺄륵
    @투스쿠스꺄륵 3 года назад +1

    와씨 감사합니다 ㅠㅠ

  • @jetlime08
    @jetlime08 3 года назад +1

    Many thanks !!!:)

  • @paullouw6080
    @paullouw6080 4 года назад +1

    Thank you thank you thank you!

  • @Cam-lh7nr
    @Cam-lh7nr 9 месяцев назад

    How does your pdf have values greater than 1?

  • @patriciakou2171
    @patriciakou2171 2 года назад

    where does numbers from count

  • @ibahimabdullahi3613
    @ibahimabdullahi3613 3 года назад

    am working on generated distribution, i want to simulate my true parameter using MLE pls help

  • @321MrMateus
    @321MrMateus 4 года назад +1

    Just one doubt. Generally we do not have the p.d.f, we just have some proportional density function. Therefore we just define a the eveloping cg(x) to be higher enough?

    • @mathetal
      @mathetal  4 года назад +1

      Yes, you can replace the target distribution pi(x) with a proportional distribution l(x) and the rest of the algorithm is the same

  • @Opkopen
    @Opkopen Год назад +1

    Great

  • @jimmyodiazportillo6978
    @jimmyodiazportillo6978 2 года назад

    Pero lo que estás almacenando son las X, no los valores de pi(X) con ese algoritmo. Y las X son uniformes, no realizaciones de la función pi. Corrijanme si me equivoco.

  • @ccuuttww
    @ccuuttww 2 года назад +1

    THX

  • @maximegrossman2146
    @maximegrossman2146 4 года назад +3

    amazing, but the R code is a little hard to read as it's a bit blurry. nevertheless, thanks so much

  • @jorge_pb8482
    @jorge_pb8482 3 года назад +1

    te amoooo :), pero creo q te falta un else