Dice tracker and roll probability percentage

305 Views Asked by At

I have a dice tracker that graphs the combined roll of 2 fair six sided dice (numbers 2 through 12). I want to display the variance percentage that the current number is over/under as a positive/negative percentage. How would I do something like this?

1

There are 1 best solutions below

1
On

It really depends on what you want to show:

  1. One way to do is to compute what the expected value would be of such a roll and then contrast the current draw with that expected value as a percentage deviation.

  2. Another approach is to compute a rolling average and show how the rolling average approaches the expected value as the throws increase.