Importance Sampling + R Demo

Поділитися
Вставка
  • Опубліковано 15 жов 2024

КОМЕНТАРІ • 22

  • @nadiaa0409
    @nadiaa0409 4 роки тому +2

    great video! my confusion with Importance Sampling has vanished after watching this. thank you!

  • @pierre-louistermidor7118
    @pierre-louistermidor7118 2 роки тому +1

    Thank you so much! good video, a rich explanation!

  • @孙铭阳-g4v
    @孙铭阳-g4v 3 роки тому +1

    this is a perfect video! I am troubling this problem in the statistical computing course! thanks!

  • @kunouyang1521
    @kunouyang1521 3 роки тому +1

    Awesome explanation! Thank you so much!

  • @vichop08
    @vichop08 11 місяців тому +1

    Gran explicación!!

  • @fengzhang6376
    @fengzhang6376 4 роки тому +1

    Great demo!! Thank you!

  • @BrothersCoffee
    @BrothersCoffee 11 місяців тому +1

    Nice video, thank you

  • @SouravRoy-bz2mq
    @SouravRoy-bz2mq 3 роки тому +1

    Well explained

  • @antonio-loria-xs-ucr5287
    @antonio-loria-xs-ucr5287 11 місяців тому +1

    Thanks for the video, I want to use one of your examples but giving the credit. Who do I have to cite?

    • @mathetal
      @mathetal  11 місяців тому

      Go for it 👍🏻👍🏻 no need to cite or you can cite the video

  • @henpark
    @henpark 3 роки тому +1

    Hi, I have a quick question about the video.
    1. What does support mean in video's context?
    2. For target and proposal distributions, we assume that we know functional forms of BOTH distributions?
    Can we use importance sampling using proposal distribution of our CHOICE with an abstract target distribution which maybe UNKNOWN?

    • @RaviShankar-de5kb
      @RaviShankar-de5kb 2 роки тому

      I think Support means generally that the proposed distribution is high where the product of h(x) and pi(x) is large. This idea is mentioned in this video at the timestamp: ua-cam.com/video/C3p2wI4RAi8/v-deo.html

    • @RaviShankar-de5kb
      @RaviShankar-de5kb 2 роки тому

      Another meaning of support is an area of a function which is not mapped to 0 (en.wikipedia.org/wiki/Support_(mathematics))

  • @herewego8093
    @herewego8093 2 роки тому

    Very nice video, just one question, let's say we can sample infinite times, then will using importance sampling make any difference, will 3 line be the same (at 7:00)?

  • @maydin34
    @maydin34 3 роки тому

    Well, I am still not quite convinced about the superiority of the imp sampling over the naive MC. Since all the calculations are strickly depends on random sampling, I found some results in naive MC which gave me better approximation comparing to the imp sampling case aftter running the same loop several times.

  • @piedras1066
    @piedras1066 3 роки тому

    Thank you for this video! I was wondering if this (or other technique) could be used to get samples of the target distribution from the proposed distribution where not only the moments are estimated, but the distribution itself... I would like to confront a theoretical distribution with, say, an ECDF of measured samples. But the measured samples are very difficult to obtain. Can I estimate an ECDF of my target distribution, but by sampling another (of course intrinsically related) one?

  • @marcoponts8942
    @marcoponts8942 3 роки тому

    Why is the pink function equal to exp(1)? I don't get it. Exp(1) is just = e = 2.7... and is a constant. What you are plotting is f(x) = exp(x), or am I wrong? Also, I always thought MC methods help you for integration, but you only talk about means and variance, so no integrals can be calculated with this?

    • @EngNourElHoudaQweder86
      @EngNourElHoudaQweder86 3 роки тому +2

      Exp(lambda=1)= lambda * exp (-lambda*x) , according to the pdf of exp(1)

    • @RaviShankar-de5kb
      @RaviShankar-de5kb 2 роки тому

      Good question, Here exp() refers to the exponential distribution (en.wikipedia.org/wiki/Exponential_distribution)
      and not the exponential function.
      Also the mean that is being calculated is the expected value of a function. The expected value of a function is an integral usually, but sometimes the expected value function can be simplified to the average function.
      Here is a mathematical overview including discussion of using IS to evaluate integrals: ua-cam.com/video/C3p2wI4RAi8/v-deo.html

  • @eceserin
    @eceserin 2 роки тому +1

    Thank you

  • @lexparsimoniae2107
    @lexparsimoniae2107 4 роки тому +1

    Brilliant explanation! Thank you!