Talk:Constrained random points on a circle: Difference between revisions

→‎Uniform distribution: some math to demonstrate the bias
(→‎Uniform distribution: some math to demonstrate the bias)
Line 103:
</pre>
 
Here you can see that the number of points near top/bottom is greater than that for left/right sides of the plot. For this particular case, the simplest way to check for the bias is to count the number of points where abs(y) > abs(x) (this effectively partitions the plot using 45 degree lines) -- for my "bad" code I see a ratio (over multiple runs) of 55:45 in favor of the top/bottom quadrants over left/right.
Here you can see that the number of points that lie on the X axis (y==0) is much smaller than the number that lie on the Y axis (x==0).
Anonymous user