{{ message }}

Instantly share code, notes, and snippets.

Last active Aug 29, 2015
elongated dice analysis

This gist has some quick analysis related to the outcomes from an elongated dice experiment. analyze_roll_data.py is a script to conduct the analysis. p16_aspect_ratio.agr contains the results of this analysis in an xmgrace file.

We tried a few quick things to work out a theoretical relationship between the aspect ratio and the probability of a 1 or a 6 being rolled, which is contained in theoretical_curve.py.

One idea we had was to assume that, just prior to the elongated die coming to a final resting state, the die would be at a random angle with the surface of the table. The probability of the die landing 1 or a 6 is therefore related to the probability that the center of mass is at an angle greater than the angle with the table. Its possible we didn't do this correctly, but our calculations did not match very well with the data (see theoretical_curve.py if you need convincing), which leads us to believe that the mechanics of how these dice roll actually plays a large part in biasing the angle between the die and the surface of a table just prior to landing.

This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters