![]() |
Re: Math Quiz 9
Quote:
|
Re: Math Quiz 9
Quote:
Quote:
Quote:
If the working space were a cube, the small end of the distribution would start out with zero slope and a parabolic ramp of 4πr2. It would peak at a somewhat higher length (WAG of 0.6), have a similar change of curvature at length 1, and have an upper bound at √3. Spoiler for Did you notice?:
|
Re: Math Quiz 9
1 Attachment(s)
Quote:
|
Re: Math Quiz 9
Wrapping up some loose ends... Quote:
|
Re: Math Quiz 9
Quote:
The reason I don't think it matters is that let's say you were to take one end point of any line very very very close to the edge. If you keep pushing it infinetly closer, it's essentially on the edge already (limits woo), so it doesn't matter. |
Re: Math Quiz 9
Quote:
Allowing the borders of the square does NOT matter. The likelihood of one of the endpoints falling in any given area within the permissible bounds is proportional to the area. The lines at the edge of the square have length but zero area, so even if they're allowed, the selected point will "never" be on the edge. A bit more formally, the chances of a point on an edge being chosen is infinitesimally small and (excepting something massively discontinuous like a delta function) does not affect the integration over the area. |
Re: Math Quiz 9
Quote:
|
Re: Math Quiz 9
What's the average length of all the line segments whose endpoints both lie on the unit square's perimeter? |
Re: Math Quiz 9
Quote:
Code:
import numpy as np |
Re: Math Quiz 9
Quote:
|
Re: Math Quiz 9
Quote:
|
Re: Math Quiz 9
5 Attachment(s)
Quote:
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:
|
Re: Math Quiz 9
Quote:
Quote:
Edit: By decay, I mean that the population curve is concave up as it approaches zero, not necessarily an exponential decay. |
Re: Math Quiz 9
1 Attachment(s)
5000 samples of sample size 1,000,000. Mean of the sample means = 0.735089 Standard Error of the Mean = 0.000361 |
Re: Math Quiz 9
OK, another follow-on challenge (cleared with Ether):
What is the average length of all the line segments which can be drawn within the unit circle (1 unit in radius, 2 units in diameter)? Reps for both the first numeric (good to 1 part per million) and first closed form solution. Edit: Of course, you must show your work in either case! |
| All times are GMT -5. The time now is 01:03. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi