Want to get involved? We're always looking for ideas and content for Weekly Challenges.
SUBMIT YOUR IDEA
Hi Community Members,
A solution to last week’s challenge can be found here.
This challenge was submitted by Ashley Talai (@aatalai). Thank you, Ashley, for this week’s challenge, as we celebrate Pi Day!
Every year in the United States, March 14, or 3/14, is Pi (π) Day! Pi is a mathematical constant represented by the Greek letter pi (π) that is the ratio of a circle’s circumference to its diameter, approximately equal to 3.14159.
Among many methods available to estimate pi, one is called the Monte Carlo simulation. This method helps solve problems by simulating randomness. The Monte Carlo simulation for pi is a probabilistic method used to estimate its value using random sampling. The technique leverages the relationship between a square and an inscribed quarter circle, calculating pi based on the proportion of randomly generated points that fall inside a circle.
The datasets for this challenge contain randomly generated coordinates for X and Y within a square. The scope is limited to 100 rows for each dataset. X and Y are uniformly distributed between 0 and 1.
Your task for this challenge is to estimate pi and the percentage of variance from actual pi. To do so, you need to:
HINT: If you find yourself stuck, check out our hints in the workflow file as to how to estimate pi.
If you would like more information regarding the Monte Carlo simulation, check out this article: Estimating Pi with Monte Carlo in Excel.
Need a refresher? Review the following lessons in Academy to gear up:
Good luck!
The Academy Team
Source:
Calling all community members! Submit your idea for weekly challenges and participate for a chance to win prizes! Read the blog to learn more:
My solution.
That was an interesting one! I love me a bit of Pi 😂. I needed to read the article to help out with calculating the pi estimate. Very interesting. I also ran a larger experiment. Check my solution out if you're curious.
c467
Fun puzzle! I would NEVER have solved it without the Estimating Pi with Monte Carlo in Excel | by Andrew Couch | The Startup | Medium.
I had no idea about estimation pi methods and Monte Carlo, although the name seems appropriate since it is "often used for gambling to estimate probabilities".
I'm guessing the times 4 is due to the 4 distinct areas of the square that fall outside the circle.
(Spooky action at a distance again! I have been thinking of circle related puzzle the past few days and out of the blue this puzzle comes up!)
In hindsight I perhaps should have used the spatial tools which I have been learning. There were are couple of lines where the circle equalled 1.00, so we could debate all day whether the answer should be different - they will be debating Pi calculations for hundreds of years🙄