Box-Muller Transform + R Demo

Поделиться
HTML-код
  • Опубликовано: 9 фев 2022
  • How to perform the Box-Muller transformation to sample from the normal distribution. Explanation plus R code.
    Thanks for watching!! ❤️
    //Box-Muller Transform reference
    keyonvafa.com/box-muller-trans...
    //R code
    rpubs.com/mathetal/boxmuller
    Tip Jar 👉🏻👈🏻
    ☕️ ko-fi.com/mathetal
    ♫ Eric Skiff - Chibi Ninja
    freemusicarchive.org/music/Eri...

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

  • @shankaradevapriya153
    @shankaradevapriya153 Год назад +5

    just what i needed for tomorrow.. thanks and keep it up..

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

    Thank you for your explanation. I was reading in a lot of pages and books but I couldn't understand how to get them, but you explained very well, you save me.

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

    Thank you, Nice explanation ..

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

    Nice, thank you so much.

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

    we need more of this! stats video and probability theory!

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

    As a side, I learned that in early days people average 12 uniform distribution to approximate normal distribution. It clearly based on central limit theorem, but still found it amazing.

  • @nathanroe
    @nathanroe 28 дней назад

    can box-muller be used to sample from normal distributions with different means and standard deviations?

  • @fa-pm5dr
    @fa-pm5dr 2 года назад +1

    i used box muller in a game cause that back, Godot didnt have a normal distribution sampler, only randf

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

    👍

  • @nathanroe
    @nathanroe 28 дней назад

    why does theta equal 2pi U2?

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

    thanl you. But, Box-Muller Transform reference not found

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

      keyonvafa.com/box-muller-transform/

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

    Why don't we just use code "rnorm(1)" to generate a standard normal random variate? Can i assume the result what will i get by using rnorm(1) is the same as Box-Muller transformation. Hope u can solve my doubt, tq very much!

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

      good question! rnorm does return random samples from a normal distribution. So if you think about it, "rnorm" is just a function, and there has to be some underlying algorithm that is called every time someone calls that function. You can check out the "random number generation" page in the R documentation for more information, but actually R has several algorithm options to use for RNG and Box-Muller is one of those algorithms, although it is actually not the default choice for rnorm.