NHacker Next
  • new
  • past
  • show
  • ask
  • show
  • jobs
  • submit
▲Monte-Carlo Simulations (eli.thegreenplace.net)
alexpotato 3 minutes ago [-]
> After running 10 million simulated draws, I got an answer of 0.0323, which matches the real answer very closely.

If you enjoyed reading about how you can approximate complex statistical values using basic programming, I highly recommend Jake Vanderplas "Statistics for Hackers" [0][1].

It converts the sometimes hard to grok statistics terms and formulas into some very simple loops and basic operations.

Can't recommend it enough.

0 - https://speakerdeck.com/pycon2016/jake-vanderplas-statistics...

1 - https://www.youtube.com/watch?v=Iq9DzN6mvYA

theOGognf 5 minutes ago [-]
Those interested in this should read about DSMC: https://en.wikipedia.org/wiki/Direct_simulation_Monte_Carlo. It’s the same idea for low density gas interactions without having to actually simulate all the particles involved while still getting accurate results. Cool stuff!
Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact
Rendered at 21:17:44 GMT+0000 (Coordinated Universal Time) with Vercel.