News for hackers. Stuff that matters.
Re:Show HN: Pi Approximation using Monte Carlo by afafsd on Sunday August 10, 2014 @04:33AM (#8159211)
You're right, as a method for computing pi it's silly and inefficient.

As a way of demonstrating the utility of Monte Carlo algorithms in general, though, it's a neat and easily visualisable example, which is why it's used so often in elementary introductions of the concept.

Actual examples of how Monte Carlo algorithms can be useful involve the sampling of many-dimensional spaces via algorithms which sample points you're interested in more often than points you're not interested in -- check out the Metropolis-Hastings algorithm for an example of useful Monte Carlo in action.

Re:Show HN: Pi Approximation using Monte Carlo by wfunction on Sunday August 10, 2014 @05:09AM (#8159274)