All about flooble | fun stuff | Get a free chatterbox | Free JavaScript | Avatars    
perplexus dot info

Home > Probability
Ducks in a pond (Posted on 2023-01-24) Difficulty: 3 of 5
3 ducks have landed in a circular pond. What is the probability there is a diameter such that the semicircle on one side contains all of them?

Repeat for 4 ducks.

Note: consider the ducks to be randomly chosen points in a circle.

No Solution Yet Submitted by Jer    
Rating: 5.0000 (2 votes)

Comments: ( Back to comment list | You must be logged in to post comments.)
re: Randomize by XY coordinates instead of polar | Comment 14 of 17 |
(In reply to Randomize by XY coordinates instead of polar by Larry)

There is a method of picking points inside a circle that is more efficient than the "dartboard" approach of picking a point in a square and seeing if it hits the circle.  Over at Mathworld they have a short article on Disk Point Picking, which is exactly what we are doing to choose a random spot for a duck.


From the article:
Let R1 be a random number uniformly picked on the interval [0,1) and R2 be a random number uniformly picked on the interval [0,2*pi)
The Cartesian coordinate (x.y) for a random point inside a circle of unit radius can be given as x=sqrt(R1)*cos(R2) and y=sqrt(R1)*sin(R2).

From this parameterization for Cartesian points (x,y), it is pretty easy to find the polar coordinate version for (rad,theta) is rad=sqrt(R1) and theta=R2.  In this form it becomes much more apparent that all we need is the random values for theta, which equivalently represent random points on the circumference.

If you really wanted to you could play with "bad" randomly generated radii, like the rookie mistake of using rad=R1 as mentioned in the article.  Or get really creative.  Any function which passes through (0,0) and (1,1) and is increasing between those two points is a contender.  Weird radii distributions could be had from rad=2^x-1, or rad=sin(pi*x/2).  So long as the values for theta are uniformly distributed we expect the same results for whatever radii are generated.

  Posted by Brian Smith on 2023-01-25 17:33:18
Please log in:
Login:
Password:
Remember me:
Sign up! | Forgot password


Search:
Search body:
Forums (0)
Newest Problems
Random Problem
FAQ | About This Site
Site Statistics
New Comments (5)
Unsolved Problems
Top Rated Problems
This month's top
Most Commented On

Chatterbox:
Copyright © 2002 - 2024 by Animus Pactum Consulting. All rights reserved. Privacy Information