Re: distribution of n point on the unit circle



Ralf Goertz wrote:

Hi,

I've been working on this problem for quite a while now and although it
didn't seem to be too difficult, I got stuck.

Consider n points distributed uniformly and independently on the unit
circle. What is the probability density function or the distribution
function for the smallest angle alpha such that all points are on a
sector of the unit circle with that opening angle.

For n=2 this is easy. alpha cannot be bigger than pi. Therefore
p.d.f.(alpha)=1/pi and d.f.(alpha)=alpha/pi.

In general, alpha must be smaller than or equal to 2pi*(n-1)/n. Using
Monte Carlo simulations I found out that for n=3 the p.d.f. is piecewise
linear with

3x/(2pi^2) for 0<=x<=pi
-9x/(2pi^2)+6/pi for pi<x<=4*pi/3

but I have no clue how to derive this analytically let alone how to
extend it to arbitrary n. Does anyone have an idea?


The exact general case looks messy, though quite possibly there will be
a nice smooth analytic approximation for larger n. To derive the n = 3
result that you found experimentally, you can proceed like this. Please
excuse my cavalier manipulation of the quantity d_alpha!

Consider a configuration where the smallest covering angle is alpha. We
immediately know that 0 <= alpha <= 4*pi/3. The largest gap is beta =
2*pi - alpha. Label the points 1, 2, 3 anticlockwise, where the largest
gap is between points 3 and 1. What is the probability of this
configuration? Imagine placing the points one by one.

Point 1 can lie anywhere, and the probability of this is 1.

If alpha <= beta (that is, alpha <= pi), then point 2 can lie anywhere
between point 1 and point 3 (anticlockwise from point 1 and clockwise
from point 3, that is). The probability of this is alpha/(2*pi).
However, if alpha > beta (i.e. alpha > pi) then the anticlockwise angle
of point 2 from point 1 must lie between alpha - beta and beta
(otherwise there would be an angle greater than beta in there). The
probability of this is (beta - (alpha - beta))/(2*pi) = (4*pi -
3*alpha)/(2*pi).

Point 3 has to be at anticlockwise angle alpha from point 1, so we'll
say the probability of it being there is d_alpha/(2*pi), where d_alpha
is conceptually an infinitesimal variation in angle.

We get the total probability by multiplying the probabilities of the
individual points being where they need to be. However, the points
could be placed in any order. There are 3! = 6 possible orders, so we
need to finally multiply the result by 6. This gives:

0 <= alpha <= pi
Probability = 1 * alpha/(2*pi) * d_alpha/(2*pi) * 6

pi < alpha <= 4*pi/3
Probability = 1 * (4*pi - 3*alpha)/(2*pi) * d_alpha/(2*pi) * 6

For the probability density function, which I'll denote P(alpha) we
conceptually need to, erm, divide the actual probability by d_alpha.
Doing this and simplifying gives

0 <= alpha <= pi
P(alpha) = 3*alpha/(2*pi^2)

pi < alpha <= 4*pi/3
P(alpha) = (12*pi - 9*alpha)/(2*pi^2)

which is what you had.

In theory you could extend this method to any n. However, the number of
cases you need to keep track of (depending on whether certain
quantities are greater or smaller than others) looks to explode, so it
all becomes nasty. There may be some recursive way (or totally
different approach) to make the calculation easier... not sure.

.



Relevant Pages

  • Re: how to find the inverse mapping matrix?
    ... makes an angle p with respect to the x-axis. ... p = t + beta; ... q = t - alpha; ... The formulas for alpha and beta, using s, are from standard formulas ...
    (comp.soft-sys.matlab)
  • 2d Affine Inverse Transform
    ... parallelogram and determine the angle of rotation about it's center and ... alpha, beta skewing angles in x and y direction in degrees. ... beta is measured clockwise from the positive y axis. ... Given the following points that bound the parallelogram: ...
    (comp.graphics.algorithms)
  • Re: What does the p-value mean
    ... The probability of incorrectly rejecting is a long-run probability, over many repetitions of the test procedure on different data. ... "Given a fixed significance level alpha, chosen in advance, you can define a test procedure which has a probability of incorrectly rejecting a true null hypothesis only alpha%, by simply computing the p-value and rejecting the null if p<alpha. ... We then say that the result is statistically significant, because you have some strong evidence against the null. ...
    (comp.soft-sys.matlab)
  • =?UTF-8?Q?Re:_Bob_Ling=C2=B4s_ignorance_is_clear?=
    ... We evaluate the probability of all pairs x, y obeying to H0 or 1-ALPHA. ... The Exact method is characterized in that ALPHA is directly obtained, being the respective CRITICAL VALUE unknown. ... IT MUST BE SUBSTITUTED UNMISTABLY by the exact method which, based on the FIRST PRINCIPLES, could not provide wrong results. ... REM current method ...
    (sci.stat.math)
  • Re: find angle
    ... i have an object travelling from point A to B and ... I would like to determine the angle, alpha, between ABC ... I also would like it to be positive if clockwise, ...
    (comp.soft-sys.matlab)