ScratchData LogoScratchData
Back to Schmams's profile

Estimating Pi Using Random Dots

SCSchmams•Created July 10, 2013
Estimating Pi Using Random Dots
32
24
967 views
View on Scratch

Instructions

Run in Turbo Mode for quicker simulation. Hover over "Explanation!" for a, well, you know! How long have you tried to run the simulation, and how close to pi have you gotten?

Description

This uses a monte carlo random method to estimate pi. If the red circle has radius 1, then blue square has side length 2. The red circle's area = pi*r^2 = pi*(1)^2 = pi The blue square's area = s^2 = 2^2 = 4 The proportion of random dots falling inside the area of the circle (red) to dots falling inside area of square (all dots, red and blue) is therefore pi/4. Simply multiply the proportion by 4 and you get an estimate of pi using random numbers!

Project Details

Project ID11338054
CreatedJuly 10, 2013
Last ModifiedMarch 13, 2014
SharedJuly 10, 2013
Visibilityvisible
CommentsAllowed