tag:blogger.com,1999:blog-36477348593977087892024-03-12T16:31:00.704-07:00rpg mechanicsggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comBlogger33125tag:blogger.com,1999:blog-3647734859397708789.post-54373450780561015312012-02-17T08:55:00.000-08:002012-02-17T08:58:27.128-08:004E DMG2 Skill Challenges.This is an analysis of the 4E DMG2 skill challenges as written.<br /><br />These are the complexity cases listed on page 80.<br /><br />Complexity 1 - 4 successes before 3 failures.<br />Complexity 2 - 6 successes before 3 failures.<br />Complexity 3 - 8 successes before 3 failures.<br />Complexity 4 - 10 successes before 3 failures.<br />Complexity 5 - 12 successes before 3 failures.<br /><br />Basically it is a "three strikes and you're out" system.<br /><br />Without going through the technical details, the probability of passing a skill challenge requiring "n successes before 3 failures" is:<br /><br />{1 + n(1-p) + [(n+1)n/2] (1-p)^2} * p^n<br /><br />where (for simplicity), we assume each individual roll for a skill check has an probability p of success.<br /><br /><br />Let's calculate the cases of a level 1 skill challenge with a "hard" DC of 15 (page 80 of 4E DMG2), where p is 0.75 to 0.85 (ie. each player is using their trained skills with their primary stat, and assisting one another).<br /><br />Complexity 1 - prob of passing skill challenge is 0.83 to 0.95<br />Complexity 2 - prob of passing skill challenge is 0.68 to 0.89<br />Complexity 3 - prob of passing skill challenge is 0.53 to 0.82<br />Complexity 4 - prob of passing skill challenge is 0.39 to 0.74<br /><br /><br /><br />(Exercise for the reader: show that for a skill challenge with "n successes before 4 failures", the probability of passing is<br /><br />{1 + n(1-p) + [(n+1)n/2] (1-p)^2 + [(n+2)(n+1)n/6] (1-p)^3} * p^n<br /><br />where p is defined as before).ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-79531749052719574582012-02-17T08:52:00.000-08:002012-02-17T08:57:14.777-08:004E DMG1 Skill Challenges.Details of probability of a succeeding a skill challenge from page 72 of the 4E DMG1 as written.<br /><br />(For simplicity, assume each individual roll for a skill check, has an probability p of success).<br /><br />- "complexity 1" (4 success before 2 failures)<br /><br />prob of succeeding skill challenge = 5 p^4 - 4 p^5<br /><br />- "complexity 2" (6 success before 3 failures)<br /><br />prob of succeeding skill challenge = 21 p^8 - 48 p^7 + 28 p^6<br /><br /><br />(An exercise for the reader with lots of patience: calculate the higher "complexity" case).<br /><br /><br />Let's look at an example for a level 1 group of players. On page 42 of the 4E DMG1, the DC's for skill check rolls are:<br /><br />10 - easy<br />15 - moderate<br />20 - hard<br /><br />In the case where the players are all using their trained skills (+5 bonus) based on their primary stat (+4 or +5 bonus), with assistance from another player (+2 bonus), the bonus to the d20 skill check roll is already +10 to +12.<br /><br />So easy skill checks (DC 10) are a done deal, while the probability of success for moderate skill checks (DC 15) are p = 0.75 to 0.85<br /><br /><br />For a level 1 "complexity 1" moderate (DC 15) skill challenge, the probability of succeeding the skill challenge is 0.63 to 0.84, where each player is using their trained skills with their primary stat, and assisting one another. (ie. +10 to +12 added to each skill roll).<br /><br />For a level 1 "complexity 2" moderate (DC 15) skill challenge, the probability of succeeding the skill challenge is 0.68 to 0.89, where each player is using their trained skills with their primary stat, and assisting one another. (ie. +10 to +12 added to each skill roll). <br /> <div class="hr" style="width: 100px;"> <br /></div>ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-55389433118199347142012-02-17T08:44:00.000-08:002012-02-17T08:52:04.871-08:004E skill challenges analysis articles.We'll be reposting the series of articles on an analysis of 4E skill challenges, from <a href="http://www.therpgsite.com/showthread.php?t=21952&page=4#39">therpgsite</a>.<url="http: com="" t="21952&page=4#39""></url="http:>ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-35935964960421689312010-09-14T07:39:00.000-07:002010-09-14T07:44:36.211-07:00Scaling of 4E Essentials fighter at-will powers.Let's analyze the scaling behavior of the average number of hits it takes for a 4E Essentials fighter (both knight and slayer) to kill a monster, with some very egregious extrapolations. (We will ignore "Power Strike" in this analysis).<br /><br />Recall that the average number of hits to kill a monster (N) is the ratio:<br /><br />N = (monster hit points)/(average amount of damage per successful attack).<br /><br /><br />The damage done by at-will powers is typically:<br /><br />[W] + stat mod + magic enhancement + misc.<br /><br /><br />Stat increases happen at levels 4 and 8, where +1 is added to two stats of choice. We assume one of the stats goes into the primary stat (STR), and the other goes into the secondary stat (DEX).<br /><br />At the paragon and epic tiers, the stat mod increases happen at levels 11, 14, 18 (paragon) and levels 21, 24, 28 (epic). At levels 14, 18, 24, 28, the stat mod increases are similar to the ones at levels 4 and 8. At levels 11 and 21, the stat mod increases are +1 to every stat.<br /><br />The magic enhancement for different levels assumes the table:<br /><br />1 -5 -> +1<br />6 - 10 -> +2<br />11 - 15 -> +3<br />16 - 20 -> +4<br />21 - 25 -> +5<br />26 - 30 -> +6<br /><br />(ie. Magic enhancement increases by +1 every five levels).<br /><br /><br />To make things simple, we will examine the levels 11-30 of paragon and epic tiers as one entity. Over levels 11-30, the total additional damage contributed by the stat increases and magic enhancement is +7, due to +3 from stat increases and +4 from magic enhancement, by the time one reaches level 30. (Heroic tier by level 10, typically already has a +6 to +8 contributed to the damage, where: +3 to +5 is from the stat mod, +1 from the two stat increases, and +2 from magic enhancement).<br /><br />One egregious assumption we will make, is that this pattern of stat increases and magic enhancement remains the same every 20 levels as one goes to higher levels beyond level 30. For example, stat increases at levels 31, 34, 38, 41, 44, 48, etc ... and magic enhancement increases of +1 every five levels.<br /><br />So above level 10, the increase to damage from stat increases and magic enhancement scales approximately as: 7*(level-10)/20<br /><br /><br />Another egregious assumption we will make, is that the damage of at-will weapon attacks increase as follows.<br /><br /><u>Slayer</u><br /><br />(extrapolating the heroic, paragon, epic "mighty slayer" class ability)<br />level 5 --> 2 + dex mod damage<br />level 15 --> 5 + dex mod damage<br />level 25 --> 8 + dex mod damage<br />level 35 ---> 11 + dex mod damage<br />level 45 ---> 14 + dex mod damage<br />etc ...<br /><br />(extrapolating the "battle wrath" stance)<br />level 1 --> +2 damage<br />level 11 --> +3 damage<br />level 21 --> +4 damage<br />level 31 --> +5 damage<br />level 41 --> +6 damage<br />etc ...<br /><br />So for a Slayer always using the "battle wrath" stance, the average damage scales approximately as (above level 10):<br /><br />avg[W] + level*14/27 + 1 + D + 7*(level-10)/20<br /><br />where D is the dex mod at level 1.<br /><br /><u>Knight</u><br /><br />(extrapolating the heroic, paragon, epic "weapon mastery" class ability)<br />level 5 --> +1 damage<br />level 15 --> +2 damage<br />level 25 --> +3 damage<br />level 35 ---> +4 damage<br />level 45 ---> +5 damage<br />etc ...<br /><br />(extrapolating the "battle wrath" stance)<br />level 1 --> +2 damage<br />level 11 --> +3 damage<br />level 21 --> +4 damage<br />level 31 --> +5 damage<br />level 41 --> +6 damage<br />etc ...<br /><br />So for a Knight always using the "battle wrath" stance, the average damage scales approximately as (above level 10):<br /><br />avg[W] + level*5/24 + 2 + 7*(level-10)/20<br /><br /><br />On the monster side, the hit points of various monsters from page 184 of the 4E DMG1 are (assuming this is the same in the 4E Essentials DM Kit box set):<br /><br />ROLE*(level +1) + CON<br /><br />where ROLE is:<br />Artillery, Lurker --> ROLE = 6<br />Skirmisher, Soldier, Controller --> ROLE = 8<br />Brute --> ROLE = 10<br />(Elites double the hit points, while Solos quadruple the hit points).<br /><br /><br />Now the average number of hits to kill a monster being attacked by a player (of the same level as the monster) is approximately the ratio (for a high level):<br /><br /><u>Slayer</u><br /><br />N = [ROLE*(level+1) + CON]/[avg[W] + level*14/27 + 1 + D + 7*(level-10)/20]<br /><br /><u>Knight</u><br /><br />N = [ROLE*(level+1) + CON]/[avg[W] + level*5/24 + 2 + 7*(level-10)/20]<br /><br /><br />Taking the level to infinity, the ratios approach the limits of:<br /><br /><u>Slayer</u><br /><br />N -> ROLE/[14/27 + 7/20] = 1.15*ROLE<br /><br /><u>Knight</u><br /><br />N -> ROLE/[5/24 + 7/20] = 1.79*ROLE<br /><br /><br />For a skirmisher monster (ROLE=8), on average it will take a Slayer around 9 hits and a Knight around 14 hits (without "power strike") to kill the monster as the level goes to infinity.<br /><br /><br />Let's compare these results to the older <a href="http://rpgmechanics.blogspot.com/2010/08/scaling-of-4e-at-will-powers.html">Heinsoo 4E classes</a>.<br /><br />It turns out the 4E Essentials Slayer using "battle wrath" without using "Power Strike", is approximately equivalent damage-wise to a non-striker Heinsoo 4E class using a weapon with damage dice [W]=d10. The 4E Essentials Knight using "battle wrath" without using "Power Strike", is approximately equivalent damage-wise to a non-striker Heinsoo 4E class using a weapon with damage dice [W]=d4.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-16860188373793386002010-09-14T07:37:00.000-07:002010-09-14T07:39:35.497-07:004E Essentials D&D scaling analysis articles.We'll be reposting the series 4E Essentials D&D scaling analysis articles from <a href="http://www.therpgsite.com/showthread.php?t=18213">therpgsite</a>.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-37672936771516510052010-09-12T06:47:00.000-07:002010-09-12T06:53:19.062-07:00In-game probability in practice - part 5.<div id="post_message_403793" class="vb_postbit">Here are the 95% and 99% confidence intervals for the practical in-game probabilities "Y" after rolling a die n times, with an underlying theoretical probability of 50% (p = 0.5).<br /><br />(They were calculated using a program which implemented the Clopper-Pearson method, when the normal approximation is no longer valid for n < 40).<br /><br /><u>95%</u><br /><br />n = 2 --> (0.0126, 0.9874)<br />n = 4 --> (0.0676, 0.9324)<br />n = 6 --> (0.1181, 0.8819)<br />n = 8 --> (0.1507, 0.8430)<br />n = 10 --> (0.1871, 0.8129)<br />n = 12 --> (0.2109, 0.7891)<br />n = 14 --> (0.2304, 0.7696)<br />n = 16 --> (0.2465, 0.7535)<br />n = 18 --> (0.2602, 0.7381)<br />n = 20 --> (0.2720, 0.7280)<br />n = 22 --> (0.2822, 0.7178)<br />n = 24 --> (0.2912, 0.7088)<br />n = 26 --> (0.2993, 0.7007)<br />n = 28 --> (0.3065, 0.6935)<br />n = 30 --> (0.3130, 0.6870)<br />n = 32 --> (0.3189, 0.6811)<br />n = 34 --> (0.3243, 0.6757)<br />n = 36 --> (0.3292, 0.6708)<br />n = 38 --> (0.3338, 0.6662)<br />n = 40 --> (0.3380, 0.6620)<br /><br /><u>99%</u><br /><br />n = 2 --> (0.0025, 0.9975)<br />n = 4 --> (0.0294, 0.9706)<br />n = 6 --> (0.0663, 0.9337)<br />n = 8 --> (0.0999, 0.9001)<br />n = 10 --> (0.1283, 0.8717)<br />n = 12 --> (0.1522, 0.8478)<br />n = 14 --> (0.1724, 0.8276)<br />n = 16 --> (0.1897, 0.8103)<br />n = 18 --> (0.2047, 0.7953)<br />n = 20 --> (0.2177, 0.7823)<br />n = 22 --> (0.2293, 0.7707)<br />n = 24 --> (0.2396, 0.7604)<br />n = 26 --> (0.2489, 0.7511)<br />n = 28 --> (0.2572, 0.7428)<br />n = 30 --> (0.2649, 0.7351)<br />n = 32 --> (0.2718, 0.7282)<br />n = 34 --> (0.2782, 0.7281)<br />n = 36 --> (0.2841, 0.7152)<br />n = 38 --> (0.2895, 0.7105)<br />n = 40 --> (0.2946, 0.7054)<br /><br /><br />As one can see for less than 4 or 5 rolls of a d20, with a 95% to 99% certainty, the practical in-game probabilities "Y" include the cases of 5% (ie. only hitting on a d20 roll of 20) and 95% (ie. hit on any roll of a d20, except on a 1).<br /><br />Also in a generic DnD combat encounter which lasts 8 rounds or less, with 95% to 99% certainty, it should not be surprising at all to see a player which only hits once on all of their d20 rolls during the encounter (ie. Pinky's cousin), or a player which only misses once on all their d20 rolls during the encounter (ie. hot hand).<br /><br />(Pinky is a "cursed" d20 which never rolls a success).<br /><br /><br /></div> For completion, the number of rounds "n" where it is not surprising to see one with "Pinky's cousin" or a "hot hand", with 95% to 99% certainty.<br /><br /><u>One hit only (or only one miss on a "hot hand")</u><br /><br />95% certainty --> n < 8<br />99% certainty --> n < 9<br /><br /><u>Two hits only (or only two misses on a "hot hand")</u><br /><br />95% certainty --> n < 11<br />99% certainty --> n < 13<br /><br /><u>Three hits only (or only three misses on a "hot hand")</u><br /><br />95% certainty --> n < 14<br />99% certainty --> n < 16<br /><br /><u>Four hits only (or only four misses on a "hot hand")</u><br /><br />95% certainty --> n < 17<br />99% certainty --> n < 19<br /><br /><u>Five hits only (or only five misses on a "hot hand")</u><br /><br />95% certainty --> n < 19<br />99% certainty --> n < 22<br /><br /> <div class="hr" style="width: 100px;"> <hr /> </div>ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-50292405194859585822010-09-05T21:03:00.000-07:002010-09-05T21:04:20.648-07:00In-game probability in practice - part 4.<!-- message --> <div id="post_message_402892" class="vb_postbit">For completion, the remaining |Y-p| cases for determining with 95% certainty that the underlying theoretical probability is not 50% (ie. p != 0.5). This was done by laboriously going through cumulative binomial distribution calculations, where the normal approximation is no longer valid.<br /><br />|Y-p| = 0.20 --> n > 29<br />|Y-p| = 0.25 --> n > 19<br />|Y-p| = 0.30 --> n > 13<br />|Y-p| = 0.35 --> n > 10<br />|Y-p| = 0.40 --> n > 8<br />|Y-p| = 0.45 --> n > 7<br /><br />Within a generic four-five hour DnD game with a few dozen or so d20 rolls made, one would certainly notice a bonus/penalty of 5 or greater to the d20 rolls.</div>ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-85224694240865939172010-09-05T20:59:00.000-07:002010-09-05T21:05:16.977-07:00In-game probability in practice - part 3.Let's examine the scenario where one keeps on getting a practical in-game probability Y (from rolling a d20 die "n" times) which appears to consistently deviate from a presumed theoretical probability "p".<br /><br />We will assume the underlying distribution for rolling a die "n" times is binomial with a theoretical probability p. For n large enough (ie. np(1-p)>10), the normal approximation for the binomial distribution can be used.<br /><br />The test statistic "z" used to test whether the underlying distribution indeed has a theoretical probability of p, will follow a standard normal distribution with:<br /><br />z = (Y-p)/sqrt[p(1-p)/n]<br /><br />For a 95% certainty that the theoretical probability is something other than p, one requires |z| > 1.96 (from a table of areas under the normal distribution). Similarly for a 99% certainty, |z| > 2.575.<br /><br /><br />For some concrete numbers, we'll look at the case where the presumed theoretical probability is 50% (p = 0.5). From this, we can calculate what the minimum number "n" of d20 die rolls it takes to determine with 95% certainty that the underlying theoretical probability is not 50% (p != 0.5).<br /><br />Doing some algebra, we get for "n":<br /><br />n > [1.96/(Y-p)]^2 *[p(1-p)]<br /><br />for 95% certainty that the theoretical probability is not p. (Similarly for the case of 99% certainty that the theoretical probability is not p, we get n > [2.575/(Y-p)]^2 *[p(1-p)] ).<br /><br /><br />For the case where |Y-p| = 0.05 which corresponds to a constant +1 bonus or -1 penalty to a d20 roll, one needs to do n > 384 rolls of a d20 in order to determine with 95% certainty that the underlying theoretical probability is not 50% (ie. p != 0.5).<br /><br />Similarly for different |Y-p| values:<br /><br />|Y-p| = 0.05 --> n > 384<br />|Y-p| = 0.10 --> n > 96<br />|Y-p| = 0.15 --> n > 43<br />(For |Y-p| = 0.20, the normal approximation to binomial is no longer valid).<br /><br /><br />For the case where one wants 99% certainty that the underlying theoretical probability is not 50%, we get for different |Y-p| values:<br /><br />|Y-p| = 0.05 --> n > 663<br />|Y-p| = 0.10 --> n > 166<br />|Y-p| = 0.15 --> n > 74<br />|Y-p| = 0.20 --> n > 41<br />(For |Y-p| = 0.25, the normal approximation to binomial is no longer valid).<br /><br />These results suggest that in a generic four-five hour DnD session, there may not be enough d20 die rolls (of a few dozen) with bonuses/penalties of 1 or 2, to determine whether the underlying theoretical probability "p" is not 50% (p != 0.5) with a 95% (or 99%) certainty. One needs more than a hundred or so d20 die rolls to make this determination.<br /><br />When one is dealing with bonuses/penalties of 4 (or greater), there may be enough d20 die rolls (of a few dozen) in a generic four-five hour DnD game session, such that one can determine with 95% (or 99%) certainty that the underlying theoretical probability "p" is not 50% (p != 0.5).<br /><br />Bonuses/penalties of 3, are the borderline cases where there may be enough d20 die rolls to determine if the underlying theoretical probability "p" is not 50% (p != 0.5) with 95% or 99% certainty. (One requires at least 43 d20 die rolls to determine this with 95% certainty).<br /><br />A +5 or +6 magic weapon being used at heroic tier in 4E DnD, or the players are subjected to an "aura" which causes a -4 or -5 penalty to hit, would be noticeable and conclude with 95% (or better) certainty in a four/five hour DnD session that the underlying theoretical probability "p" is not 50% (p != 0.5).<br /><br /><br />Possibly this explains why so many bonuses/penalties in 4E DnD are +/-1 or +/-2 to the d20 roll, along with all kinds of kludges to prevent the stacking of too many bonuses/penalties on top of one another. Essentially they're attempting to maintain an illusion of "always fighting orcs" with the underlying theoretical probability "p" appearing to be 50% (p=0.5) over a four-five hour DnD game session. (One would need over a hundred or so d20 die rolls with bonuses/penalties of 2, in order to determine with a 95% or better certainty, that the underlying theoretical probability "p" is not 50%).ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-57526905000913037782010-09-05T20:39:00.000-07:002010-09-05T20:58:11.792-07:00In-game probability in practice - part 2.<div id="post_message_402714" class="vb_postbit"> <!-- message --> <div id="post_message_402714" class="vb_postbit">Let's examine the practical in-game probability "Y" in a typical 4-5 hour DnD game. ("Y" is the number of successful die rolls divided by the total number of die rolls including the misses/failures).<br /><br />Recall the 95% confidence interval for the in-game probability "Y" (in the normal approximation to binomial distribution):<br /><br />p - d < Y < p + d<br /><br />where d = 1.96 * sqrt[p(1-p)/n] and p = theoretical probability.<br /><br />(For a 99% confidence interval, d = 2.575 * sqrt[p(1-p)/n]).<br /><br />For this normal approximation to be viable, np(1-p) > 10.<br /><br /><br />In a typical DnD game, the theoretical probability of success "p" for a d20 roll whether for attacks, skill checks, etc ... is around 50%. (For this normal approximation to binomial distribution to be valid, one needs n > 40 for p=0.5).<br /><br />If in a typical DnD game a player is doing several dozen or so d20 rolls in the session, let's look at the deviation "d" when n = 41 (ie. borderline case).<br /><br />So for n = 41 rolls and theoretical probability of success p = 0.5, the deviation "d" of the in-game probability "Y" from "p" for a 95% confidence interval is:<br /><br />d = 1.96* sqrt[p(1-p)/n] = 0.15<br /><br />This means that when one is doing 41 rolls of a d20 through a generic 4-5 hour DnD game session, there is a 95% probability that the practical in-game probability "Y" is within the interval 0.35 < Y < 0.65. So 95% of the time, the in-game probability "Y" sees when one is rolling a d20 41 times in a game, can vary from 35% to 65% for a theoretical probability of p=50% (ie. rolling greater than or equal to an 11 for a success on a d20).<br /><br /><br />If we do this calculation for a 99% confidence interval, the deviation "d" of the in-game probability "Y" from "p" for a 99% confidence interval is:<br /><br />d = 2.575* sqrt[p(1-p)/n] = 0.20<br /><br />This means that when one is doing 41 rolls of a d20 through a generic 4-5 hour DnD game, there is a 99% probability that the practical in-game probability "Y" is within the interval 0.30 < Y < 0.70. So 99% of the time, the in-game probability "Y" sees when one is rolling a d20 41 times in a game, can vary from 30% to 70% for a theoretical probability of p=50% (ie. rolling greater than or equal to an 11 for a success on a d20).</div></div>ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-34574380570643101682010-09-05T20:34:00.000-07:002010-09-05T20:39:52.786-07:00In-game probability in practice - part 1.<div id="post_message_402512" class="vb_postbit">As one may (or may not) have noticed, rolling a die multiple times does not always follow the theoretical probabilities that closely. For example, it's possible to roll a lot of low numbers on a d20 in a streak. It's also possible to roll a lot of high numbers on a d20 in a row (ie. a hot hand).<br /><br />So how does the relative frequency of successful die rolls, relate to the theoretical probability for rolling a success?<br /><br />It turns out, the act of rolling a die multiple times follows a <a href="http://en.wikipedia.org/wiki/Binomial_distribution">binomial distribution</a>.<br /><br /><br />To introduce some nomenclature, let's use:<br /><br />X = number of successes<br />n = number of trials<br />p = theoretical probability of success<br />1-p = theoretical probability of failure<br /><br />In the case of rolling a die "n" number of times, one will have "X" number of success. (For example, rolling a d20).<br /><br />The theoretical probability "p" is what one would expect, from examining the DC's for a success. For example, rolling an 11 or over on a d20 is a 50% theoretical probability.<br /><br />For a binomial distribution, the average value is m = np and the standard deviation is stdev = sqrt[np(1-p)]. For a large enough number of trials "n", one can <a href="http://en.wikipedia.org/wiki/Binomial_distribution#Normal_approximation">approximate the binomial distribution with a normal distribution</a> with average value m = np and standard deviation stdev = sqrt[np(1-p)].<br /><br />(From a probability textbook, such as Sheldon Ross' textbooks on probability, the criteria for the normal approximation being reliable is np(1-p) > 10).<br /><br />So for rolling a die "n" times and getting "X" successes (where "n" is large), it will follow a <a href="http://en.wikipedia.org/wiki/Normal_distribution#Standardizing_normal_random_variables">standard normal distribution</a> (ie. with mean 0 and variance 1), with:<br /><br />Z = (X - np)/sqrt[np(1-p)]<br /><br />Doing some algebra, Z = [(X/n) - p]/sqrt[p(1-p)/n]. In this form, let Y = X/n represents the relative frequency of successes of rolling a die. This would be an estimate "Y" of the theoretical probability "p", from rolling a die "n" times and getting "X" number of successes. We would like to know how "Y" is related to the theoretical "p".<br /><br />Since Z = (Y-p)/sqrt[p(1-p)/n] approximately follows a standard normal distribution, this means the confidence intervals can be determined for a range of Z's.<br /><br />For a 95% confidence interval, Z will fall between -1.96 and 1.96 (from a table of areas of a normal distribution). (For a 99% confidence interval, Z will fall between -2.575 an 2.575).<br /><br />In the case of a 95% confidence interval |Z| < 1.96, this means:<br /><br />Probability ( |Y-p| < 1.96 * sqrt[p(1-p)/n] ) = 0.95<br /><br />(Similarly for a 99% confidence interval, Probability ( |Y-p| < 2.575 * sqrt[p(1-p)/n] ) = 0.99 ).<br /><br />Let the deviation d = 1.96 * sqrt[p(1-p)/n], which represents the deviation of the estimate "Y" from the theoretical probability "p".<br /><br />From this we can determine how many number of trials "n" (ie. rolls of a die) it takes, such that the deviation between the estimate "Y" and theoretical probability "p" will stay within "d" with a 95% probability.<br /><br />Doing some algebra, we get "n" in terms of "d":<br /><br />n = (1.96)^2 * p(1-p)/(d^2)<br /><br />For various theoretical probabilities "p" and deviations "d", we get:<br /><br />(For a d20, a 5% deviation d = 0.05 starts to overlap between different values on the d20. If one wants more precision, one can use a 1% deviation d = 0.01).<br /><br /><u>d = 0.05</u><br />p = 0.50 ---> n = 384<br />p = 0.40 ---> n = 369<br />p = 0.30 ---> n = 323<br />p = 0.20 ---> n = 246<br />p = 0.10 ---> n = 138<br /><br /><u>d = 0.01</u><br />p = 0.50 ---> n = 9604<br />p = 0.40 ---> n = 9220<br />p = 0.30 ---> n = 8067<br />p = 0.20 ---> n = 6147<br />p = 0.10 ---> n = 3457<br /><br />These results mean that for 95% of the time when rolling a die to hit a particular DC, the practical in-game probability (ie. number of successes divided by the total number of die rolls including misses/failures) deviating less than 5% from the "theoretical probability", would require at least a few hundred die rolls. (For a 1% deviation between the practical in-game and theoretical probabilities, it would require several thousand die rolls).<br /><br />Not too surprising that in a generic four-five hour D&D game session where one only does a few dozen or so d20 rolls, the practical in-game probability "Y" does not always converge to the theoretical probability "p". One needs at least several hundred d20 rolls to see this convergence within a 5% tolerance band, 95% of the time.<br /><br />One shouldn't be shocked at seeing somebody with a "hot hand" streak of rolling lots of high numbers on a d20, or somebody else on a losing streak of rolling lots of low numbers on a d20.</div> <!-- / message --> <!-- sig -->ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-76729099399806204342010-09-05T20:30:00.000-07:002010-09-05T20:34:29.174-07:00In-game probability in practice.We'll be reposting the "In-game probability in practice" posts from <a href="http://www.therpgsite.com/showthread.php?t=18139">therpgsite</a>.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-50430590002435057982010-08-25T08:19:00.000-07:002010-08-25T08:20:54.600-07:004E powers with half-damage on miss.Let's examine the case for new encounter powers which produce half-damage on a miss. (These are purportedly being introduced in 4E Essentials). Let's assume the new encounter powers still follow the same damage of the Heinsoo 4E D&D encounter powers, but with the "half-damage on miss" tacked on.<br /><br />For non-striker encounter powers with half-damage on a miss and a probability p of a hitting a monster of the same level, the average damage per round scales approximately as (after level 10):<br /><br />0.5(p+1)*[level*(average[W])/7 + 7*(level-10)/20]<br /><br />So as the level goes to infinity, "R" approaches:<br /><br />R -> 2*ROLE/{(p+1)*[(average[W])/7 + 7/20]}<br /><br /><br />For different [W] weapons attacking a skirmisher monster (ROLE=8) with the player having a p=50% of hitting the monster, we have average number of rounds "R" as the level goes to infinity:<br /><br />average[d12] = 6.5 --> R = 8.34<br />average[d10] = 5.5 --> R = 9.39<br />average[d8] = 4.5 --> R = 10.74<br />average[d6] = 3.5 --> R = 12.55<br />average[d4] = 2.5 --> R = 15.08<br /><br />On average, for a player hypothetically repeatedly spamming a new encounter power (with half-damage on a miss) against a skirmisher monster of the same level, the average number of rounds "R" to kill the monster is approximately shorter by 45% compared to at-will powers, as the level goes to infinity.<br /><br /><br />For completeness, there's at-will powers with half-damage on a miss. (IIRC, there's a few monsters with such an at-will power from the 4E MM2 and/or MM3).<br /><br />With half-damage on a miss, the at-will with half-damage on a miss reduces the number of rounds R to kill a monster by a factor = p/(1+p) in comparison to ordinary at-will powers. (p is the probability of hitting a monster).<br /><br />For different p:<br /><br />p = 100% --> factor = 50%<br />p = 75% --> factor = 42.6%.<br />p = 50% --> factor = 33.3%<br />p = 25% --> factor = 20%<br /><br />So with a probability 50% of hitting a monster, an at-will power with half-damage on a miss will reduce the number of rounds to kill the monster by 33.3%, in comparison to the same at-will power without the half-damage on a miss part.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-14179061584253983092010-08-25T08:16:00.000-07:002010-08-25T08:18:19.004-07:00Scaling of 4E daily powers.Let's do the same for daily powers, where the the daily powers have half-damage on a miss.<br /><br />Recall for half-damage on a miss: R = 2N/(1+p).<br /><br /><br />For a daily power, the average damage per hit scales approximately as (after level 10):<br /><br />level*(average[W])/5 + 7*(level-10)/20.<br /><br /><br />For the easy case where the daily powers of non-strikers always miss, "R" approaches<br /><br />R -> 2*ROLE/{p*[(average[W])/5 + 7/20]} = ROLE/{p*[(average[W])/10 + 7/40]}<br /><br />as the level goes to infinity.<br /><br />Comparing this to the expression "R" for at-wills, it means that daily powers always missing and producing half-damage, is slightly worse than generic daily powers.<br /><br /><br />For non-striker daily powers with half-damage on a miss and a probability p of a hitting a monster of the same level, the average damage per round scales approximately as (after level 10):<br /><br />0.5(p+1)*[level*(average[W])/5 + 7*(level-10)/20]<br /><br />So as the level goes to infinity, "R" approaches:<br /><br />R -> 2*ROLE/{(p+1)*[(average[W])/5 + 7/20]}<br /><br /><br />For different [W] weapons attacking this skirmisher monster (ROLE=8) with the player having a p=50% of hitting the monster, we have average number of rounds "R" as the level goes to infinity:<br /><br />average[d12] = 6.5 --> R = 6.46<br />average[d10] = 5.5 --> R = 7.36<br />average[d8] = 4.5 --> R = 8.53<br />average[d6] = 3.5 --> R = 10.16<br />average[d4] = 2.5 --> R = 12.55<br /><br />On average, for a player hypothetically repeatedly spamming a daily power (with half-damage on a miss) against a skirmisher monster of the same level, the average number of rounds "R" to kill the monster is approximately shorter by a half compared to at-will powers, as the level goes to infinity.<br /><br />This means a repeatedly "spammed" daily power (with half damage on a miss) attacking a skirmisher (of the same level), is on average damage-wise approximately equal to two at-wills in general. If the daily power always misses and always produces half damage, it is damage-wise approximately equal to one at-will power.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-27718879163073116422010-08-25T08:14:00.000-07:002010-08-25T08:16:16.466-07:00Scaling of 4E encounter powers.Let's examine the scaling behavior of the encounter and daily powers, in the unrealistic scenario where they can be repeatedly spammed every round. We will calculate the average number of rounds "R" to kill a monster by a player of the same level.<br /><br />Recall that a non-striker repeatedly using at-will powers against a monster of the same level, "R" approaches the limit<br /><br />R = N/p -> N -> ROLE/{p*[(average[W])/10 + 7/20]}<br /><br />as the level goes to infinity.<br /><br />For different [W] weapons attacking this skirmisher monster (ROLE=8) with the player having a p=50% of hitting the monster, we have average number of rounds "R" as the level goes to infinity:<br /><br />average[d12] = 6.5 --> N = 8, R = 16<br />average[d10] = 5.5 --> N = 8.89, R = 17.78<br />average[d8] = 4.5 --> N = 10, R = 20<br />average[d6] = 3.5 --> N = 11.43, R = 22.86<br />average[d4] = 2.5 --> N = 13.33, R = 26.66<br /><br /><br />For non-striker encounter powers, the average damage per hit scales approximately as (after level 10):<br /><br />level*(average[W])/7 + 7*(level-10)/20.<br /><br />So for non-striker encounter powers, the average damage per round scales approximately as (after level 10):<br /><br />p*[level*(average[W])/7 + 7*(level-10)/20].<br /><br />So as the level goes to infinity, "R" approaches:<br /><br />R -> N/p = ROLE/{p*[(average[W])/7 + 7/20]}<br /><br /><br />For different [W] weapons attacking this skirmisher monster (ROLE=8) with the player having a p=50% of hitting the monster, we have average number of rounds "R" as the level goes to infinity:<br /><br />average[d12] = 6.5 --> R = 12.51<br />average[d10] = 5.5 --> R = 14.01<br />average[d8] = 4.5 --> R = 16.12<br />average[d6] = 3.5 --> R = 18.82<br />average[d4] = 2.5 --> R = 22.63<br /><br />On average, for a player hypothetically repeatedly spamming an encounter power against a skirmisher monster of the same level, the average number of rounds "R" to kill the monster is shorter by approximately 4 rounds (compared to at-will powers) as the level goes to infinity. (For a 50% probability of hitting the monster, this would mean that it takes approximately 2 less hits to kill the skirmisher monster).<br /><br />More generally, a hypothetical spammed encounter power takes approximately 15% to 20% less rounds to kill a monster (of the same level).ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-13533059373651089532010-08-25T07:56:00.001-07:002010-08-25T08:12:54.356-07:00Scaling of standard deviation of N for 4E at-wills.Let's examine how the <a href="http://en.wikipedia.org/wiki/Standard_deviation">standard deviation</a> (stdev) of N changes with level.<br /><br />Recall the average number of hits to kill a monster by a non-striker player character (of the same level) using an at-will power with weapon damage dice [w] = level*[W],<br /><br />N = [ROLE*(level+1) + CON]/[(average[w])/10 + 7*(level-10)/20]<br /><br />where one of the egregious assumption made, was that the damage of at-will powers [W] increases each ten levels after level 10, in the pattern of:<br /><br />level 21-30 --> 2[W]<br />level 31-40 --> 3[W]<br />level 41-50 --> 4[W]<br />level 51-60 --> 5[W]<br />etc ...<br /><br />For weapon damage dice 2[W], it means that the number of weapon dice is doubled. For example if the weapon dice [W] is a d6, then 2[W] means 2d6, 3[W] means 3d6, etc ...<br /><br />The average of damage dice "level*[W]", turns out to be equal to level*average[W].<br /><br />But the standard deviation of damage dice "level*[W]", turns out to be [sqrt(level)]*stdev[W]. ("sqrt" is the square root). This can be found in any college statistics/probability textbook.<br /><br />(For example, (stdev[3d6])^2 = (stdev[d6])^2 + (stdev[d6])^2 + (stdev[d6])^2 which gives stdev[3d6] = sqrt(3) * stdev[d6]).<br /><br /><br />Recall that for individual dice like d4, d6, d8, d10, d12, etc ... the standard deviation is:<br /><br />stdev[dN] = sqrt[(N^2 -1)/12]<br /><br />where sqrt is the square root. (A single die follows a <a href="http://en.wikipedia.org/wiki/Uniform_distribution_%28discrete%29">discrete uniform distribution</a>).<br /><br />For example,<br /><br />stdev[d4] = 1.118<br />stdev[d6] = 1.708<br />stdev[d8] = 2.291<br />stdev[d10] = 2.872<br />stdev[d12] = 3.452<br /><br /><br /><br />To get the standard deviation of N, there's the <a href="http://en.wikipedia.org/wiki/Delta_method">formula</a>:<br /><br />stdev[N] = |dN/dw| * stdev[w]<br /><br />where w = level*[W]. The term in between the | | absolute value brackets is the first derivative of N with respect to [W].<br /><br />Doing the calculation of the standard deviation of N and scaling the level to infinity, we get:<br /><br />stdev[N] = N^2 *(stdev[W])/[ROLE*sqrt(level/10)]<br /><br />when the level becomes larger and larger.<br /><br />Hence the standard deviation of the average number of hits "N" to kill a monster by a player repeatedly using at-will powers against a monster (of equivalent level), scales as:<br /><br />stdev[N] ~ 1/sqrt(level)<br /><br /><br />This means the standard deviation of N moderately gets smaller and smaller as the level gets bigger and bigger. The number of hits to kill a monster (of the same level) deviates less and less from the average, as the level becomes bigger and bigger.<br /><br />Basically while one is "always fighting orcs", the "orcs" are becoming more and more "predictable" as the level gets higher and higher.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-56253699487100190162010-08-25T07:51:00.000-07:002010-08-25T07:54:54.622-07:00Scaling for different levels between player and monster.One can look at the scaling behavior of the average number of hits to kill a monster being attacked by a player, but for slightly different levels for the player character and monster.<br /><br />For the level of the monster and player not being equal, we'll indicate their levels by level_m and level_p respectively. So from a previous <a href="http://rpgmechanics.blogspot.com/2010/08/scaling-of-4e-at-will-powers.html">post</a>, the average number of hits "N" to kill a monster (of level_m) being attacked by a player character (of level_p) is:<br /><br />N = [ROLE*(level_m+1) + CON]/[level_p*(average[W])/10 + 7*(level_p-10)/20]<br /><br />Taking the limit where both level_m and level_p are brought to infinity but keeping the ratio (level_m/level_p) constant, we get:<br /><br />N -> (level_m/level_p) * ROLE/[(average[W])/10 + 7/20].<br /><br /><br />From this result, we can examine what happens to "N" when (level_m/level_p) is changed.<br /><br />The easiest case is when the level of the monsters is double the level of the players. In this case (level_m/level_p) = 2, which implies the average number of hits to kill a monster double in level from the players, will take on average two times as many hits to kill in comparison to a monster of the same level as the players.<br /><br />The second easiest case is when the level of the monster is half of the level of the players. In this case (level_m/level_p) = 0.5, which implies the average number of hits to kill a monster half in level from the players, will take on average half as many hits to kill in comparison to a monster of the same level as the players.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-44233264061244982022010-08-25T07:45:00.000-07:002010-08-25T07:51:26.453-07:00Scaling of 4E monsters fighting against players.Let's look at things from the monster's point of view. We'll calculate the average number of hits "N" to kill a player character (of the same level) and see how it scales when the level goes to infinity.<br /><br />For this analysis, we'll ignore healing surges and stat increases to CON.<br /><br /><br />For the player characters, the hit points H scale approximately as:<br /><br />H = *constant* + CON + CLASS*level<br /><br />where *constant* is a number between 6 to 10 (depending on class) and:<br />CLASS = 4 --> wizard, invoker<br />CLASS = 5 --> cleric, druid, ranger, rogue, bard, sorcerer, warlock, warlord, shaman<br />CLASS = 6 --> fighter, paladin, barbarian, avenger<br />CLASS = 7 --> warden.<br /><br /><br />For the monster damage, the average damage from the "normal damage expression" table on page 185 of the 4E DMG1, follows approximately:<br /><br />low damage: 6 + level*5/12<br />medium damage: 8 + level*7/15<br />high damage: 10 + level*3/5.<br /><br />(These were found by doing a simple linear fit to the average values).<br /><br />Calculating "N" for the monster attacking players and scaling the level to infinity, we get:<br /><br />low damage: N -> 12*CLASS/5 = 2.4*CLASS<br />medium damage: N -> 15*CLASS/7 = 2.14*CLASS<br />high damage: N -> 5*CLASS/3 = 1.67*CLASS<br /><br /><br />For the new monster damage table from the 4E DMG1 errata for page 185, the average damage follow approximately:<br /><br />single target: 8 + level<br />two or more targets: 6 + level*3/4.<br /><br />Calculating "N" for the monster attacking players and scaling the the level to infinity, we get:<br /><br />single target: N -> CLASS<br />two or more targets: N -> 4*CLASS/3 = 1.33*CLASS.<br /><br /><br />Compare the old damage scheme to the errata update one. For the average number of hits "N" of a monster killing a player character, it is suggestive the errata updated monster damage is a lot more formidable.<br /><br />Using the new errata monster damage, for example a monster fighting a typical defender player character, it takes around 6 to 8 hits to kill the defender without any healing surges. Using the old monster damage table from page 185 of the 4E DMG1, it would take the same monster around 12 hits to kill the defender (without any healing surges).<br /><br />In contrast from previous posts which calculated the scaling for <a href="http://rpgmechanics.blogspot.com/2010/08/scaling-of-4e-at-will-powers.html">non-striker</a> and <a href="http://rpgmechanics.blogspot.com/2010/08/scaling-of-4e-at-will-powers-for.html">striker</a> player characters, we calculated that a non-striker player character would take around 8 to 10 hits to kill a skirmisher monster using weapons with damage dice d8, d10 or d12. A striker player character would take around 6 to 8 hits to kill a skirmisher monster using weapons with damage dice d6, d8 or d10.<br /><br /><br />Indeed, the old 4E monsters using the old damage scheme from page 185 of the 4E DMG1, don't appear to be as much of a threat to the players (even without any healing surges). A reverse "always fighting orcs" where the "orcs" are consistently losing to the player characters.<br /><br />In contrast with the new damage scheme from the 4E DMG1 errata, the "orcs" can actually win sometimes against the players.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-22302925057985552892010-08-25T07:36:00.000-07:002010-08-25T07:45:02.468-07:00Scaling of 4E ranger's twin-striker power.This is an analysis of the ranger's "twin strike" power. (We'll ignore the additional complication of hunter's quarry).<br /><br />We will calculate the average number of rounds "R" it takes to kill a monster (of the same level as the ranger) by being repeatedly twin striked.<br /><br />We'll assume twin strike is two attacks in one round, where each attack is separately rolled for attack and damage. To make the problem general, we will use the notation:<br /><br />p1 = to-hit probability of first attack<br />p1 = to-hit probability of second attack<br />d1 = damage of first attack<br />d2 = damage of second attack<br /><br />The expectation value ED of the twin strike damage in one round is:<br /><br />ED = p1 p2 (average[d1] + average[d2]) + p1 (1-p2) average[d1] + (1-p1) p2 average [d2] + (1-p1)(1-p2)*0<br /><br />(EDIT: The first term is when both attacks hit. The second and third terms are when one attack hits and the other misses. The fourth term is when both attacks miss).<br /><br />Doing the algebra, we get:<br /><br />ED = p1 average[d1] + p2 average[d2]<br /><br />(More generally this result can be generalized to any number of attacks. For example, three attacks in one round: ED = p1 average[d1] + p2 average[d2] + p3 average[d3]).<br /><br />If we assume p1 = p2 = p, and d1 = d2 = d, we have ED = 2p*average[d].<br /><br /><br />For twin strike, the damage is d = [W] + magic enhancement for each attack.<br /><br />The magic enhancement scales approximately as level/5, assuming the progression on page 225 of the 4E PHB1.<br /><br />For the sake of argument, we will look at the case where the weapon damage dice per attack remains [W] for all levels to infinity. (ie. Weapon damage does not change to 2[W] per attack at level 21).<br /><br /><br />Hence the damage scales approximately as:<br /><br />average[d] = average[W] + level/5<br /><br />and ED = 2p*(average[W] + level/5)<br /><br /><br />Now the average number of rounds "R" to kill a monster by a player of the same level is:<br /><br />R = [ROLE*(level+1) + CON]/(2p*[average[W]+ level/5])<br /><br />As the level goes to infinity, R approaches<br /><br />R -> 5*ROLE/2p = 2.5*ROLE/p.<br /><br /><br />Recall from the <a href="http://rpgmechanics.blogspot.com/2010/08/scaling-of-4e-at-will-powers.html">previous post</a> that a similar result for generic at-will powers having weapon dice damage [W] for all levels to infinity was:<br /><br />R -> N/p -> 20*ROLE/7p = 2.86*ROLE/p.<br /><br /><br />So even without the stat mod added to the damage to twin strike, the scaling limit for R is slightly better than for generic at-will powers as the level goes to infinity.<br /><br /><br />If the same analysis is done again for twin-strike, but adding in an egregious assumption where the weapon dice damage per attack increases with level in the form:<br /><br />level 21 - 30 --> 2[W] per attack<br />level 31 - 40 --> 3[W] per attack<br />level 41 - 50 --> 4[W] per attack<br />etc ...<br /><br />We will assume the magic enhancement scales approximately as level/5.<br /><br />Hence the damage per attack scales approximately as:<br /><br />average[damage] = (level/10)*average[W] + level/5<br /><br /><br />The expectation value of the damage per round for twin strike with these egregious assumptions is:<br /><br />ED = 2p*[(level/10)*average[W] + level/5]<br /><br /><br />Now the average number of rounds "R" to kill a monster by a player of the same level is:<br /><br />R = [ROLE*(level+1) + CON]/(2p*[(level/10)*(average[W]) + level/5])<br /><br />As the level goes to infinity, R approaches<br /><br />R -> ROLE/[2p*( (average[W])/10 + 1/5)].<br /><br /><br />Plugging in some numbers for a ranger twin striking a skirmisher (ROLE=8), the weapon dice [W] for ranger weapons could be d6, d8 or d10.<br /><br />average[d6] = 3.5 --> N = 7.27<br />average[d8] = 4.5 --> N = 6.15<br />average[d10] = 5.5 --> N = 5.33<br /><br />(We used R = N/p to get N = average number of hits to kill monster).<br /><br /><br />In the end twin-strike is also "always fighting orcs" as the level scales to infinity.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-17895227294654022532010-08-25T07:32:00.001-07:002010-08-25T07:35:28.351-07:00Average number of rounds R vs. average number of hits N.To get the average number of rounds to kill a monster (including the attacks which missed) by a player of the same level as the monster, it turns out it is related to "N". Let's call this average number of rounds to kill a monster, as "R".<br /><br />We won't include stuff like critical hits, attacks with half-damage on a miss, and other stuff which I haven't thought of yet. With that being said, it turns out the average number of rounds "R" to kill a monster for a player with probability p of hitting the monster, is:<br /><br />R = N/p<br /><br />To get this result, this is from the geometric probability distribution. A geometric probability distribution model includes the hits and misses when a player attacks a monster.<br /><br /><br />More generally, "R" is the ratio:<br /><br />(hit points of monster)/(expectation value of damage per round).<br /><br /><br />Let's call<br /><br />H = hit points of monster<br />ED = expected value of damage per round.<br /><br />So R = H/ED.<br /><br /><br />Let's assume a player has a probability p of hitting a monster.<br /><br />For an at-will power with weapon damage dice [W] at lower levels, the expectation value of the damage for one round is:<br /><br />p*average[W + stat mod + magic enhancement] + (1-p)*0<br /><br />which is simply: ED = p*average[W + stat mod + magic enhancement]<br /><br /><br />For a hypothetical at-will which does half damage on a miss, the expectation value of the damage for one round is:<br /><br />p*average[W + stat mod + magic enhancement] + 0.5*(1-p)*average[W + stat mod + magic enhancement]<br /><br />which is simply: ED = 0.5 (1+p)*average[W + stat mod + magic enhancement].<br /><br />If every at-will power had "half damage on a miss", then "R" would be:<br /><br />R = 2N/(1+p)<br /><br /><br />If one includes critical hits to an at-will power with weapon damage dice [W] at lower levels, the expectation value of the damage for one round is:<br /><br />ED = (p-0.05)*average[W + stat mod + magic enhancement] + (0.05)*(maximum[W + stat mod + magic enhancement] + average[criticalextra]).<br /><br />("criticalextra" is the extra damage dice from magic weapons on a critical).<br /><br /><br />As one can see, incorporating "half-damage on a miss" or "critical hits", can make the equations look a lot messier. They don't fit into a nice form like R = N/p.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-51028721788828096252010-08-25T07:29:00.000-07:002010-08-25T07:31:00.401-07:00Scaling of 4E at-will powers for strikers.Let's examine how "N" changes with extra damage from striker classes. (The previous post was for non-strikers).<br /><br />For the ranger's hunter's quarry and warlock's curse, the extra damage is:<br /><br />levels 1-10 --> 1d6<br />levels 11-20 --> 2d6<br />levels 21-30 --> 3d6<br /><br />while for a rogue, the extra damage for sneak attacking is:<br /><br />levels 1-10 --> 2d6<br />levels 11-20 --> 3d6<br />levels 21-30 --> 5d6.<br /><br />(This is not very realistic for a rogue to repeatedly sneak attack a monster every round to infinity levels, but in principle it could be done if the monster is marked and tied up by a defender).<br /><br />Let's make an egregious assumption and extrapolate this extra striker damage as:<br /><br />- ranger or warlock<br />levels 31-40 --> 4d6<br />levels 41-50 --> 5d6<br />levels 51-60 --> 6d6<br />etc ...<br /><br />- rogue<br />levels 31-40 --> 7d6<br />levels 41-50 --> 9d6<br />levels 51-60 --> 11d6<br />etc ...<br /><br />So for the ranger or warlock, the average extra damage approximately scales as:<br /><br />1 + [average(d6)]*level/10<br /><br />while the rogue's average extra damage scales approximately (at high levels) as:<br /><br />1 + [average(d6)]*2*level/10<br /><br /><br />So for the average number of hits to kill a monster (N) by the above striker players of the same level, as the level approaches infinity becomes:<br /><br />- rangers or warlocks<br /><br />N -> ROLE/[(average[W])/10 + (average[d6])/10+ 7/20]<br /><br />- rogues<br /><br />N -> ROLE/[(average[W])/10 + (average[d6])/5 +7/20]<br /><br /><br />To plug in some numbers, a rogue repeatedly sneak attacking a skirmisher (ROLE = 8). The weapons the rogue is proficient in, typically have d4 or d6 [W] damage dice.<br /><br />[W] = d4 --> N = 6.15<br />[W] = d6 --> N = 5.71<br /><br />For ranger or warlock at-will powers (excluding twin strike) repeatedly attacking a skirmisher, the damage dice can be d6, d8, or d10.<br /><br />[W] = d6 --> N = 7.62<br />[W] = d8 --> N = 6.96<br />[W] = d10 --> N = 6.4<br /><br /><br />In contrast, a non-striker attacking a skirmisher with weapons dice [W] of d8, d10, d12:<br /><br />average[d12] = 6.5 --> N = 8<br />average[d10] = 5.5 --> N = 8.89<br />average[d8] = 4.5 --> N = 10<br /><br />On average, the extra striker damage reduces the number of hits to kill a monster by around 1 or 2 hits as the level goes to infinity.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-9329924743116985202010-08-25T07:23:00.000-07:002010-08-25T07:39:57.299-07:00Scaling of 4E at-will powers.Let's analyze the scaling behavior of the average number of hits to kill a monster in 4E D&D itself, with some very egregious extrapolations.<br /><br />Recall that the average number of hits to kill a monster (N) is the ratio:<br /><br />N = (monster hit points)/(average amount of damage per successful attack).<br /><br /><br />From the 4E PHB1, the damage done by at-will powers is typically:<br /><br />[W] + stat mod + magic enhancement.<br /><br /><br />Stat increases happen at levels 4 and 8, where +1 is added to two stats of choice. We assume one of the stats goes into the primary stat.<br /><br />At the paragon and epic tiers, the stat mod increases happen at levels 11, 14, 18 (paragon) and levels 21, 24, 28 (epic). At levels 14, 18, 24, 28, the stat mod increases are similar to the ones at levels 4 and 8. At levels 11 and 21, the stat mod increases are +1 to every stat. (This is on page 29 of the 4E PHB1).<br /><br />The magic enhancement for different levels assumes the table from page 225 of 4E PHB1.<br /><br />1 -5 -> +1<br />6 - 10 -> +2<br />11 - 15 -> +3<br />16 - 20 -> +4<br />21 - 25 -> +5<br />26 - 30 -> +6<br /><br />(ie. Magic enhancement increases by +1 every five levels).<br /><br /><br />To make things simple, we will examine the levels 11-30 of paragon and epic tiers as one entity. Over levels 11-30, the total additional damage contributed by the stat increases and magic enhancement is +7, due to +3 from stat increases and +4 from magic enhancement, by the time one reaches level 30. (Heroic tier by level 10, typically already has a +6 to +8 contributed to the damage, where: +3 to +5 is from the stat mod, +1 from the two stat increases, and +2 from magic enhancement).<br /><br />One egregious assumption we will make, is that this pattern of stat increases and magic enhancement remains the same every 20 levels as one goes to higher levels beyond level 30. For example, stat increases at levels 31, 34, 38, 41, 44, 48, etc ... and magic enhancement increases of +1 every five levels. In effect at level 50, the total additional damage contributed by stat increases and magic enhancement is +7.<br /><br />So above level 10, the increase to damage from stat increases and magic enhancement scales approximately as: 7*(level-10)/20<br /><br /><br />Another egregious assumption we will make, is that the damage of at-will powers [W] increases each ten levels after level 10, in the pattern of:<br /><br />level 21-30 --> 2[W]<br />level 31-40 --> 3[W]<br />level 41-50 --> 4[W]<br />level 51-60 --> 5[W]<br />etc ...<br /><br />So above level 10, the average damage from a successful hit scales approximately as:<br /><br />level*(average[W])/10 + 7*(level-10)/20<br /><br />(We will ignore the heroic tier stuff, since it will just drop out as a constant when things scale with level. But for reference, the heroic tier will contribute a +6 to +8 to the damage by the time one reaches level 10).<br /><br /><br />On the monster side, the hit points of various monsters from page 184 of the 4E DMG1 are:<br /><br />ROLE*(level +1) + CON<br /><br />where ROLE is:<br />Artillery, Lurker --> ROLE = 6<br />Skirmisher, Soldier, Controller --> ROLE = 8<br />Brute --> ROLE = 10<br />(Elites double the hit points, while Solos quadruple the hit points).<br /><br /><br />Now the average number of hits to kill a monster being attacked by a player (of the same level as the monster) is approximately the ratio (for a high level):<br /><br />N = [ROLE*(level+1) + CON]/[level*(average[W])/10 + 7*(level-10)/20]<br /><br /><br />Taking the level to infinity, this ratio approaches the limit of<br /><br />N -> ROLE/[(average[W])/10 + 7/20].<br /><br /><br />(If one actually ignores the egregious assumption of weapon damage [W] increasing every ten levels, then the average number of hits to kill a monster is just:<br /><br />N -> ROLE*20/7<br /><br />as the level increases to infinity. In this scenario, the at-will power [W] remains the same for all levels. At level 21, [W] remains [W] and does not increase to 2[W]).<br /><br /><br />Let's plug in some numbers. For a skirmisher monster, ROLE = 8. For a weapon with d8 damage dice, average[W] = 4.5. For these numbers, the average number of successful hits to kill a skirmisher being attacked by a [W] = d8 weapon is N = 10.<br /><br />For different [W] weapons attacking this skirmisher monster, we have average number of attacks N as the level goes to infinity:<br /><br />average[d12] = 6.5 --> N = 8<br />average[d10] = 5.5 --> N = 8.89<br />average[d8] = 4.5 --> N = 10<br />average[d6] = 3.5 --> N = 11.43<br />average[d4] = 2.5 --> N = 13.33<br /><br /><br />More generally for different monster types with ROLE:<br />Artillery, Lurker --> ROLE = 6<br />Skirmisher, Soldier, Controller --> ROLE = 8<br />Brute --> ROLE = 10<br />(Elites double the hit points, while Solos quadruple the hit points).<br /><br />For various weapons [W] dice, this limit is:<br /><br />average[d12] = 6.5 --> N = ROLE<br />average[d10] = 5.5 --> N = ROLE/0.9 = 1.11*ROLE<br />average[d8] = 4.5 --> N = ROLE/0.8 = 1.25*ROLE<br />average[d6] = 3.5 --> N = ROLE/0.7 = 1.43*ROLE<br />average[d4] = 2.5 --> N = ROLE/0.6 = 1.67*ROLE<br />average[d2] = 1.5 --> N = ROLE/0.5 = 2*ROLE<br /><br />(d2 is flipping a coin, where one side is 2 and the other side is 1).<br /><br /><br />Indeed with these egregious extrapolations, 4E D&D is "always fighting orcs" as the levels go to infinity.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-31525001112673411902010-08-25T07:16:00.000-07:002010-08-25T07:22:59.082-07:004E D&D scaling analysis articles.We'll be reposting the series 4E D&D scaling analysis articles from <a href="http://www.therpgsite.com/showthread.php?t=18036">therpgsite</a>.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-43622426298844425602010-03-03T20:37:00.000-08:002010-03-03T21:28:22.848-08:00How good is the N avg(D) formula for hit points?Recall the monster hit point formul<span style="font-weight: bold;"></span>a <span style="font-weight: bold;">N avg(D)</span>, from a previous <a href="http://rpgmechanics.blogspot.com/2010/02/how-many-hit-points-should-monster-have.html">post</a>. N is the number of hits a monster takes before it dies, and avg(D) is the average amount of damage a player does per hit.<br /><br />One can check how well this formula works with an online <a href="http://catlikecoding.com/anydice">dice calculator</a>.<br /><br />Let's examine a case where a player does D=d8+4, avg(d8+4)=8.5 damage every time a player hits a monster. For a monster lasting N=4 hits until it dies, the monster should have 4(8.5) = 34 hit points.<br /><br />Using the online dice calculator to calculate the total damage after 4 hits, one can see that 34 hit points is at the peak of the <a href="http://catlikecoding.com/anydice/?dice=4d8+%2B+16">distribution for 4d8 + 16</a>, which is distribution of possible total damage from a player doing d8+4 damage per hit for 4 hits. The probability of the total damage being greater than or equal to 34 after 4 hits, is 54.2%.<br /><br />Next one can examine the distribution of possible total damage after 5 hits, which is <a href="http://catlikecoding.com/anydice/?dice=5d8+%2B+20">5d8 + 20</a>. From this, the probability of the total damage being greater than or equal to 34 after 5 hits, is 96.09%.<br /><br />Doing the same calculation for 6 hits, we get:<br /><br />prob(total damage >= 34) = 99.97%<br /><br />In general, one can do enough of these calculations and convince one's self that after N hits of a player doing D damage to a monster having N avg(D) hit points, the distribution of the total damage after N hits will be such that:<br /><br />prob(total damage >= N avg(D)) ~ 50% - 55%<br /><br />After N+1 or N+2 hits, the distribution of the total damage will be such that:<br /><br />prob(total damage >= N avg(D)) ~ 90% - 100%.<br /><br /><br />If one tries hard enough, one can find situations where this doesn't quite hold exactly, such as the case of N=3, D=d4+1, avg(D)=3.5. In this case after 3 hits:<br /><br />prob(total damage >= 10) = 68.75%.<br /><br />After 4 hits, prob(total damage >= 10) = 98.05%.<br /><br />Another extreme case which doesn't quite hold exactly, is the case of N=21, D=d12+7, avg(D)=13.5. In this case after 21 hits:<br /><br />prob(total damage >= 283) = 52.5%.<br /><br />After 22 and 23 hits,<br /><br />22 hits: prob(total damage >= 283) = 81.36%<br />23 hits: prob(total damage >= 283) = 95.46%ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-77051444228620696522010-02-26T21:41:00.000-08:002010-02-26T23:05:06.481-08:00Hit points of 4E monsters (part 2).Let's look at the hit points of low level 4E monsters again.<br /><br />From a previous <a href="http://rpgmechanics.blogspot.com/2010/02/hit-points-of-generic-monsters.html">post</a>, the hit points of some favorite generic low level monsters are:<br /><br />Kobold: 24, 27, 36 (level 1-2)<br />Goblin: 25, 29, 31 (level 1-2)<br /><br />Let's assume a level 1 player with an at-will power using a weapon which does d8 damage, and the player's primary combat stat has a mod of +4. Hence the damage the player does with each hit is d8+4. The minimum damage per hit is 5 and the maximum damage per hit is 12. The low and upper limits for total damage done by more than one hit is:<br /><br />1 hit: 5 -> 12<br />2 hits: 10 -> 24<br />3 hits: 15 -> 36<br />4 hits: 20 -> 48<br />5 hits: 25 -> 60<br />6 hits: 30 -> 72<br /><br />The generic kobold or goblin is dead at minimum after 2 or 3 hits, and definitely dead after more than 5 or 6 hits.<br /><br />To make things more precise, one can examine the probability of the total damage killing a monster after a number of hits. Let's look at the goblin with 29 hit points, using an online <a href="http://catlikecoding.com/anydice/">dice calculator</a>. The results are:<br /><br />3 hits: prob(total damage >= 29) = 23.44%<br />4 hits: prob(total damage >= 29) = 88.01%<br />5 hits: prob(total damage >= 29) = 99.83%<br /><br /><br />At a slightly higher level, the hit points of some generic monsters are:<br /><br />Orc: 46 (level 3)<br />Hobgoblin: 39, 47 (level 3)<br />Skeleton: 45 (level 3)<br />Lycanthrope: 48 (level 3)<br />Doppelganger: 45 (level 3)<br /><br />For our player now at level 3 with the same at-will power with a weapon doing d8 damage, the primary combat stat mod is +4 and maybe the weapon is now magic with a +1 bonus to damage. The damage per hit is d8+5. The lower and upper limits for total damage for more than one hit are:<br /><br />1 hit: 6 -> 13<br />2 hits: 12 -> 26<br />3 hits: 18 -> 39<br />4 hits: 24 -> 52<br />5 hits: 30 -> 65<br />6 hits: 36 -> 78<br />7 hits: 42 -> 91<br />8 hits: 48 -> 104<br /><br />It requires a minimum of 3 or 4 hits to kill a generic level 3 or 4 monster, while they're definitely dead after 8 or more hits.<br /><br />Doing the same exercise using the online dice calculator for a generic orc with 46 hit points, we get:<br /><br />4 hits: prob(total damage >= 46) = 5.13%<br />5 hits: prob(total damage >= 46) = 64.77%<br />6 hits: prob(total damage >= 46) = 98.11%<br /><br /><br />At a slightly more higher level, the hit points of some generic monsters are:<br /><br />Beetle: 88 (level 8)<br />Behemoth: 82 (level 7)<br />Boar: 85 (level 6)<br />Troglodyte: 69, 74, 93 (level 6-8)<br />Zombie: 71, 88 (level 6-8)<br />Spider: 80 (level 7)<br />Shadar-Kai: 77, 86 (level 7-8)<br />Satyr: 80, 86 (level 7-8)<br />Ogre: 91 (level 8)<br />Foulspawn: 86, 87 (level 8)<br />Succubus: 90 (level 9)<br /><br />For our player now at level 8 with the same at-will power with a weapon doing d8 damage, the primary combat stat mod is +5 (+1 from enough stat increases) and maybe the weapon is now magic with a +2 bonus to damage. The damage per hit is d8+7. The lower and upper limits for total damage for each hit are:<br /><br />1 hit: 8 -> 15<br />2 hits: 16 -> 30<br />3 hits: 24 -> 45<br />4 hits: 32 -> 60<br />5 hits: 40 -> 75<br />6 hits: 48 -> 90<br />7 hits: 56 -> 105<br />8 hits: 64 -> 120<br />9 hits: 72 -> 135<br />10 hits: 80 -> 150<br />11 hits: 88 -> 165<br />12 hits: 96 -> 180<br /><br />It requires a minimum of 6 or 7 hits to kill a generic level 7 or 8 monster, while they're definitely dead after 12 or more hits.<br /><br />Doing the same exercise using the online dice calculator for a generic stayr with 80 hit points, we get:<br /><br />7 hits: prob(total damage >= 80) = 56.41%<br />8 hits: prob(total damage >= 80) = 97.38%<br />9 hits: prob(total damage >= 80) = 98.64%<br /><br />As one can see from these calculations, the number of hits using only at-will powers with d8 damage (with assumptions from magic bonuses and stat increases), goes from 5 hits to kill level 1-2 monsters, to 6 hits to kill level 3-4 monsters, to 8 hits to kill level 7-8 monsters. (The number of hits are from the first greater than 95% probability of total damage killing a monster, from the online dice calculator).<br /><br />With the players having more daily powers at higher levels, in principle it should reduce the number of hits it takes to kill such higher level monsters. These calculations will be the subject of a future post.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.comtag:blogger.com,1999:blog-3647734859397708789.post-51553296858802309322010-02-25T18:57:00.001-08:002010-02-25T19:30:59.651-08:00Hit points of monsters in pre-4E editions.In older editions of D&D and AD&D, the monsters' hit points was typically the number of d8's rolled and a constant number added sometimes. (We'll ignore the constant number added for simplicity).<br /><br />For X hit dice, the average number of hit points is:<br /><br />X avg(d8) = 4.5X (*)<br /><br />Recall the monster hit point formula from a previous <a href="http://rpgmechanics.blogspot.com/2010/02/how-many-hit-points-should-monster-have.html">post</a>:<br /><br />N avg(D)<br /><br />where N is the number of hits it takes to kill a monster, and avg(D) is the average amount of damage a player does per attack.<br /><br />In an easy example where a player's weapon does 1d8 damage per attack, the monster hit point formula is:<br /><br />N avg(1d8) = 4.5N (**)<br /><br />Equating the average number of hit points from (*) and (**), we get N = X. This means that without any improvements in weapons, it takes on average X hits to kill a monster with X hit dice.<br /><br />For low level monsters with 1 hit die or less, they basically function like minions which die after one hit. Monsters with 2 hit dice, on average have to be hit twice to kill. (Etc ...)<br /><br />Let's examine how magic bonuses to damage changes things. The formula N for the number of hits to kill a monster, in general is:<br /><br />N = 4.5X/avg(D)<br /><br />For different magic weapon bonuses to damage, for a weapon which normally does d8 damage, we have:<br /><br />D = d8, avg (d8) = 4.5 -> N = X<br />D = d8 + 1, avg (d8+1) = 5.5 -> N= 0.82 X<br />D = d8 + 2, avg (d8+2) = 6.5 -> N= 0.69 X<br />D = d8 + 3, avg (d8+3) = 7.5 -> N= 0.60 X<br />D = d8 + 4, avg (d8+4) = 8.5 -> N = 0.53 X<br />D = d8 + 5, avg (d8+5) = 9.5 -> N = 0.47 X<br /><br />It takes at least around a +4 or +5 magic weapon bonus to damage, to halve the average number of hits to kill a monster.ggroyhttp://www.blogger.com/profile/02644462224589176678noreply@blogger.com