Hi,
Do you still need help with this question ?
Thanks
Hey there. I've been messing around with some of the statistics involved with dice rolls, particularly in the context of tabletop roleplaying games, but I've come to a snag. Mainly due to my incredibly shaky knowledge of statistics.
An elementary method which players of a game use to 'guess' how many attacks it will take to defeat an enemy is to take the expected value of the dice roll involved with calculating damage and dividing that by the total HP (health/stamina) of the enemy. For example, if the monster has 20 HP and the weapon deals an average of '5' damage (like in the case of 2*4-sided dice), a decent guess for how many attacks it will take to defeat the enemy on average is 20/5 = 4.
But it doesn't work out this way in practice. Because the enemy HP is divided by the random variable (damage), then low values for damage will affect the final result more than high values for damage. The true average number of hits required involves a more sophisticated calculation. One which I can't seem to figure out.
So the question is, if X is a discrete random variable representing the sum of the face values when rolling m number of n-sided dice, then what is the expected value of , where h is any positive integer (the HP of the enemy, in this case), in terms of m, n and h?
(If nessecary, )