Thursday, July 14, 2016

probability - How to determine the probabilities for a cuboid die?


Imagine we take a cuboid with sides a,b and c and throw it like a usual die. Is there a way to determine the probabilities of the different outcomes Pab,Pbc and Pac? With ab, bc, ac I label the three distinct faces of the die (let us not distinguish between the two opposide sides).


sketch of cuboid die


I would guess that the probabilities can not be calculated solely by the weights of the different areas (something like Ptryab=ab/(ab+bc+ac)).


I believe this is a complicated physical problem which can in principle depend on a lot of factors like friction of air and the table, the material of the die, etc. However, I would like to simplify it as much as possible and assume we can calculate the probabilities just by knowing the lengths of the different sides.


sketch of die with two equal sides


For a start, let us assume that two sides b=c are equal (that is, we only have two events ab and bb). Now with dimensional analysis we know that the probabilities Pab and Pbb can only be functions of the ratio ρ=a/b. We also have Pab(ρ)+Pbb(ρ)=1 and we know, for example, that (i) Pab(0)=0, (ii) Pab(1)=2/3 and (iii) Pab(ρ)=1.



My question is: is there a way to determine Pab(ρ)?




Bonus: Since I am too lazy to perform the experiment, would there be a way to run this through some 3D rigid-body physics simulation and determine the probabilities by using a huge number of throws (of course this is doomed to fail for extreme values of ρ)?




Remark: Actually, the function Ptry given above fulfills all three properties (i)-(iii). For b=c we have


Ptryab=2ab2ab+b2=2ρ1+2ρ


(the additional factor of 2 comes from the fact, that we have four sides ab instead of two like in the asymmetric die above)



Answer



I think a reasonable first approximation can be made like this: choose an arbitrary orientation for the die, and figure out, if the die were released in that orientation with its lowermost point resting on a surface, which side would it fall on? That can be easily calculated; you just draw a line going straight down from the center of mass, and whichever face it passes through, that's the one that will land down. We can then assume (this is the unjustified approximation) that the orientation of the die before it begins its final tip is uniformly random, so the problem is reduced to finding the proportion of all possible directions which pass through each face. Hopefully it's clear that that is just the solid angle subtended by the face divided by the total solid angle, 4π.


For a cuboid, we can figure out the solid angle of a face by doing an integral,



Ω=SˆrdAr2


as given on MathWorld. Take the face to lie in the plane z=Z (capital letters will be constants) and to have dimensions 2X×2Y. The integral then becomes


Ω=YYXX(xˆx+yˆy+Zˆz)ˆz(x2+y2+Z2)3/2dxdy=ZYYXX1(x2+y2+Z2)3/2dxdy=4tan1(XYZX2+Y2+Z2)


This gets divided by 4π to produce the probability. Translating into your notation, and multiplying by 2 to take into account the two opposite sides under one probability, this becomes


Pab=2πtan1(abca2+b2+c2)


Pbc and Pca are the same under the appropriate permutation of the labels.


Some sanity checks show that this is at least a reasonable candidate solution:



  • Pab is symmetric in a and b

  • Pab is directly related to a and b and inversely related to c


  • Pab1 as a,b or c0

  • Pab0 as a,b0 or c


  • For three equal sides,


    Paa=2πtan1(a3a2)=2πtan113=13




  • For two equal sides, b=c, as in your simplified example:


    Pab=2πtan1(abba2+2b2)=2πtan1(ρρ2+2)Pbb=2πtan1(b2aa2+2b2)=2πtan1(1ρρ2+2)




    1. Pab(0)=0 as expected

    2. Pab(1)=2πtan113=2ππ6=13 for one particular pair of opposite sides, as expected

    3. Pab()=2πtan10=2ππ2=1, as expected




  • Pab+Pbc+Pca=1 can be shown using the identity


    tan1x+tan1y=tan1x+y1xy


    from which follows


    tan1x+tan1y+tan1z=tan1(x+y)/(1xy)+z1z(x+y)/(1xy)=tan1(x+y+zxyz)/(1xy)(1xyzxzy)/(1xy)=tan1x+y+zxyz1xyzxzy



    The relevant products are


    x+y+z=abca2+b2+c2+bcaa2+b2+c2+caba2+b2+c2=(ab)2+(bc)2+(ca)2abca2+b2+c2xy=abca2+b2+c2bcaa2+b2+c2=b2a2+b2+c2and cyclic permutations, soxy+yz+zx=1xyz=abc(a2+b2+c2)3/2x+y+zxyz=[(ab)2+(bc)2+(ca)2](a2+b2+c2)(abc)2abc(a2+b2+c2)3/20


    so you wind up with tan1x+y+zxyz0=π2, giving P=1.




No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...