Rejection Sampling + R Demo

Sdílet
Vložit
  • čas přidán 29. 08. 2024

Komentáře • 39

  • @richardy7888
    @richardy7888 Před 2 lety +12

    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 Před 3 lety +5

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

  • @hongkyulee9724
    @hongkyulee9724 Před 2 lety +2

    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!

  • @homataha5626
    @homataha5626 Před 3 lety +2

    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.

  • @muhammadosama8308
    @muhammadosama8308 Před 4 lety +6

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

  • @abhinandanmohanty3833
    @abhinandanmohanty3833 Před rokem +1

    This video is a masterpiece. Very well articulated.

  • @sahilmohammad4336
    @sahilmohammad4336 Před rokem +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.

  • @sirkelvinmalunga
    @sirkelvinmalunga Před 10 měsíci +1

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

  • @alexiaberenicetorrescalder5742

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

  • @khwajashamsuddoha2055
    @khwajashamsuddoha2055 Před 3 lety +1

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

  • @err3088
    @err3088 Před 2 lety +1

    these videos are gold. thank you so much

  • @rondotmarie4353
    @rondotmarie4353 Před 2 lety +1

    Thank you so much for you clear explanations ! Really helpful

  • @salmanfariss
    @salmanfariss Před 2 lety +1

    this is such an amazing video, subbing!

  • @hongquanli1754
    @hongquanli1754 Před 2 lety +1

    Wonderful video and well explained!

  • @huilapman
    @huilapman Před 3 lety +1

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

  • @bayubetaB
    @bayubetaB Před 4 lety +2

    This is really helpful, thank you!

  • @PandemicGameplay
    @PandemicGameplay Před 3 lety +1

    This was an extremely good video

  • @paullouw6080
    @paullouw6080 Před 4 lety +1

    Thank you thank you thank you!

  • @gsp_ram
    @gsp_ram Před rokem +1

    Great

  • @creepomusik2883
    @creepomusik2883 Před 2 lety +2

    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.

  • @jetlime08
    @jetlime08 Před 3 lety +1

    Many thanks !!!:)

  • @fntldks
    @fntldks Před 3 lety +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 Před 10 měsíci

      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?".

  • @user-qp4ic8pj4x
    @user-qp4ic8pj4x Před 3 lety +1

    와씨 감사합니다 ㅠㅠ

  • @ccuuttww
    @ccuuttww Před rokem +1

    THX

  • @ZiluZheng
    @ZiluZheng Před 2 lety +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  Před 2 lety

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

  • @321MrMateus
    @321MrMateus Před 4 lety +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  Před 4 lety +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

  • @charanshah3787
    @charanshah3787 Před rokem

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

  • @patriciakou2171
    @patriciakou2171 Před 2 lety

    where does numbers from count

  • @soumialahfair3171
    @soumialahfair3171 Před 2 lety

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

  • @vayvon21
    @vayvon21 Před rokem

    How can we calculate the rejection ratio in this example?

  • @Cam-lh7nr
    @Cam-lh7nr Před 4 měsíci

    How does your pdf have values greater than 1?

  • @jimmyodiazportillo6978

    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.

  • @ibahimabdullahi3613
    @ibahimabdullahi3613 Před 3 lety

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

  • @jorge_pb8482
    @jorge_pb8482 Před 3 lety +1

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

  • @maximegrossman2146
    @maximegrossman2146 Před 3 lety +3

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