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

Content added Content deleted
No edit summary
Line 43: Line 43:
I'm not very good with stats, but I've seen discussions pop up before about different distributions of points. Is uniform vs normal vs (something?) a significant component of the task? How may it be verified with at most 100 points? --[[User:Short Circuit|Michael Mol]] 12:27, 3 September 2010 (UTC)
I'm not very good with stats, but I've seen discussions pop up before about different distributions of points. Is uniform vs normal vs (something?) a significant component of the task? How may it be verified with at most 100 points? --[[User:Short Circuit|Michael Mol]] 12:27, 3 September 2010 (UTC)


I guess that if you count the number of points that lie on a line that passes through the center, then the count should not depend on the angle of that line. So it would be wrong to simply pick a uniform-random value of x and then a uniform-random of y at that location, because that would tend to lead to a higher density of points on the left and right sides (look at the maximally dense version above: there are 12 possible values of y at x==0; but only one at x == +/- 15). A common mistake when generating a set of linked random variables is that the distribution depends on the order in which they are generated.
I guess that if you count the number of points that lie on a line that passes through the center, then the count should not depend on the angle of that line. So it would be wrong to simply pick a uniform-random value of x and then a uniform-random of y at that location, because that would tend to lead to a higher density of points on the left and right sides (look at the maximally dense version above: there are 12 possible values of y at x==0; but only one at x == +/- 15) -- and thus a greater number of points away from the x-axis. A common mistake when generating a set of linked random variables is that the distribution depends on the order in which they are generated.


So, take this Perl code:
So, take this Perl code:
Line 69: Line 69:




# # ## # #
# #
# ## #

# ### # #### #
# ## ## ## #
# ## # #

# #
# # # # # # #
# # #

# # #
## # #
#

# #
# #
# #

# # # ##
## # #
#

#
# #

# #

# #

# #



# #

# ##

# #

#
#
## # #
# #
## #


#
# #


# # #

# # #
# #
## # # #

#
# # #
# # # ## #

#
# # # ##
# #

# #


## #

## ### # # #

## # # # #

# ## ##

### #

# #
</pre>
</pre>