-
-
Notifications
You must be signed in to change notification settings - Fork 491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SphericalDistribution() is not random #9770
Comments
comment:1
Attachment: SageDays_random_element_bug.sws.gz The bug is not unique to the spherical distribution; rather, it has to do with whether the distribution is instantiated prior to the use of the random element method. The worksheet above illustrates the same behavior with the Gaussian and uniform distributions. |
comment:2
Oh, wow. This is because of the lines
2 xor 32 is 34.. and the |
fix seed randomization |
Reviewer: Jason Grout |
comment:3
Attachment: trac_9770_fix_distribution_seeds.patch.gz Wow, good catch. Affected file passes tests; code looks good. Can you fill in the author name? |
Author: Douglas McNeil |
Merged: sage-4.8.alpha5 |
Changed merged from sage-4.8.alpha5 to none |
comment:6
On hawk (OpenSolaris 06.2009-32):
|
comment:7
Urf. Probably (?) we can simply replace Emailed a guy who I know has access to a solaris box :-) but haven't heard back. If anyone with an account on hawk could report the results of a cut-and-paste of the following
from within Sage, that would test whether I understand what's going on. |
comment:8
Output of your Sage script on
|
comment:9
*** bump *** |
hopefully maxint-safe version |
comment:10
Attachment: trac_9770_fix_distribution_seeds_v2.patch.gz Version modified to (hopefully) avoid overflow errors without sacrificing entropy. @jdemeyer, you mind trying it on hawk? |
comment:11
Apply trac_9770_fix_distribution_seeds_v2.patch (for the patchbot, which is trying to install both patches at once) |
Dependencies: #9958 |
comment:12
This seems to conflict (in a rather trivial way) with #9958, and hence doesn't apply to the latest Sage beta. |
Work Issues: needs rebase |
Changed reviewer from Jason Grout to Jason Grout, PatchBot |
Attachment: trac_9770_fix_distribution_seeds_v4.patch.gz rebased to 5.0.beta7 |
comment:14
Apply trac_9770_fix_distribution_seeds_v4.patch (for patchbot) |
Changed work issues from needs rebase to none |
Changed reviewer from Jason Grout, PatchBot to Jason Grout |
comment:16
Let's not anthropomorphize the PatchBot :-) |
comment:17
Seems to work as it should... |
Changed reviewer from Jason Grout to Jason Grout, Jeroen Demeyer |
Merged: sage-5.0.beta9 |
In the following list
l
, some elements repeat quite often:The output is not random. For example, the first line is repeated ~30 times in the 1000 lines of output. It works fine if SphericalDistribution is only instantiated once!
Depends on #9958
Component: statistics
Author: Douglas McNeil
Reviewer: Jason Grout, Jeroen Demeyer
Merged: sage-5.0.beta9
Issue created by migration from https://trac.sagemath.org/ticket/9770
The text was updated successfully, but these errors were encountered: