Thread: Math Quiz 9
View Single Post
  #15   Spotlight this post!  
Unread 22-07-2016, 11:30
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,028
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Math Quiz 9

Quote:
Originally Posted by z_beeblebrox View Post
2.1e7 iterations yields 0.73511
Close enough

Two billion samples yields a value about 0.003% less than that. Plotting the average vs the number of samples gives a rough view of when you've reached the point of diminishing returns.

Note that this problem can be easily solved using all three methods discussed in this thread:

Monte Carlo simulation

Numerical Integration

Symbolic Integration


Quote:
Originally Posted by z_beeblebrox View Post
standard deviation 0.00095
Standard deviation is not so meaningful when the distribution looks this this.


Attached Thumbnails
Click image for larger version

Name:	Monte Carlo simulation (Delphi).png
Views:	11
Size:	5.2 KB
ID:	20927  Click image for larger version

Name:	numerical integration (Octave).png
Views:	10
Size:	9.8 KB
ID:	20928  Click image for larger version

Name:	symbolic integration (Maxima).png
Views:	13
Size:	22.0 KB
ID:	20929  Click image for larger version

Name:	average vs samples.png
Views:	11
Size:	9.6 KB
ID:	20930  Click image for larger version

Name:	histogram.png
Views:	33
Size:	8.8 KB
ID:	20931  

Reply With Quote