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...
just what i needed for tomorrow.. thanks and keep it up..
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.
Thank you, Nice explanation ..
Nice, thank you so much.
we need more of this! stats video and probability theory!
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.
can box-muller be used to sample from normal distributions with different means and standard deviations?
i used box muller in a game cause that back, Godot didnt have a normal distribution sampler, only randf
👍
why does theta equal 2pi U2?
thanl you. But, Box-Muller Transform reference not found
keyonvafa.com/box-muller-transform/
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!
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.