Menu
News
All News
Dungeons & Dragons
Level Up: Advanced 5th Edition
Pathfinder
Starfinder
Warhammer
2d20 System
Year Zero Engine
Industry News
Reviews
Dragon Reflections
White Dwarf Reflections
Columns
Weekly Digests
Weekly News Digest
Freebies, Sales & Bundles
RPG Print News
RPG Crowdfunding News
Game Content
ENterplanetary DimENsions
Mythological Figures
Opinion
Worlds of Design
Peregrine's Nest
RPG Evolution
Other Columns
From the Freelancing Frontline
Monster ENcyclopedia
WotC/TSR Alumni Look Back
4 Hours w/RSD (Ryan Dancey)
The Road to 3E (Jonathan Tweet)
Greenwood's Realms (Ed Greenwood)
Drawmij's TSR (Jim Ward)
Community
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Resources
Wiki
Pages
Latest activity
Media
New media
New comments
Search media
Downloads
Latest reviews
Search resources
EN Publishing
Store
EN5ider
Adventures in ZEITGEIST
Awfully Cheerful Engine
What's OLD is NEW
Judge Dredd & The Worlds Of 2000AD
War of the Burning Sky
Level Up: Advanced 5E
Events & Releases
Upcoming Events
Private Events
Featured Events
Socials!
EN Publishing
Twitter
BlueSky
Facebook
Instagram
EN World
BlueSky
YouTube
Facebook
Twitter
Twitch
Podcast
Features
Top 5 RPGs Compiled Charts 2004-Present
Adventure Game Industry Market Research Summary (RPGs) V1.0
Ryan Dancey: Acquiring TSR
Q&A With Gary Gygax
D&D Rules FAQs
TSR, WotC, & Paizo: A Comparative History
D&D Pronunciation Guide
Million Dollar TTRPG Kickstarters
Tabletop RPG Podcast Hall of Fame
Eric Noah's Unofficial D&D 3rd Edition News
D&D in the Mainstream
D&D & RPG History
About Morrus
Log in
Register
What's new
Search
Search
Search titles only
By:
Forums & Topics
Forum List
Latest Posts
Forum list
*Dungeons & Dragons
Level Up: Advanced 5th Edition
D&D Older Editions
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Playtest Report: The 15-30 Minute Adventuring Day! And I liked it!
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Pseudopsyche" data-source="post: 5943148" data-attributes="member: 54600"><p>If n kobolds each have probability p of failing a save, then the number of kobolds who fail the save is drawn from a binomial distribution with parameters n and p. The average value for this random variable is n*p, so yes, if you had to guess how many of 40 kobolds fail if they each need a 14 to save, then 26 failures is generally the best guess.</p><p></p><p>Personally, I wouldn't want to tell the player of the wizard that he or she will always do "average damage" against a large number of enemies. Just for kicks I wrote a quick Perl script that estimates the inverse cumulative distribution function for this distribution (using Monte Carlo sampling), to give you a sense of the variance. You could use the following table to simulate all 40 die rolls using a single d20 roll, assuming that each kobold fails on a 13 or lower. Here, the roll is interpreted as the player's "attack roll", so higher die rolls lead to more kobolds failing their saves.</p><p></p><p>1: 12</p><p>2: 21</p><p>3: 22</p><p>4: 23</p><p>5: 23</p><p>6: 24</p><p>7: 24</p><p>8: 25</p><p>9: 25</p><p>10: 26</p><p>11: 26</p><p>12: 26</p><p>13: 27</p><p>14: 27</p><p>15: 28</p><p>16: 28</p><p>17: 29</p><p>18: 29</p><p>19: 30</p><p>20: 31</p><p></p><p>[sblock][code]#!/usr/bin/perl</p><p></p><p>my $n = 40; # Number of saving throws</p><p>my $p = 13/20; # Probability of FAILING the save</p><p></p><p>my $k = 100000; # Number of simulations of $n rolls each</p><p></p><p>sub simulate {</p><p> my $num_saves_failed = 0;</p><p> for (1..$n) {</p><p> ++$num_saves_failed if $p > rand;</p><p> }</p><p> return $num_saves_failed;</p><p>}</p><p></p><p>my [MENTION=6904]res[/MENTION]ults = sort {$a <=> $b} map simulate(), 1..$k;</p><p></p><p>print "$_: $results[($_ - 1) * $k / 20]\n" for 1..20;[/code][/sblock]</p></blockquote><p></p>
[QUOTE="Pseudopsyche, post: 5943148, member: 54600"] If n kobolds each have probability p of failing a save, then the number of kobolds who fail the save is drawn from a binomial distribution with parameters n and p. The average value for this random variable is n*p, so yes, if you had to guess how many of 40 kobolds fail if they each need a 14 to save, then 26 failures is generally the best guess. Personally, I wouldn't want to tell the player of the wizard that he or she will always do "average damage" against a large number of enemies. Just for kicks I wrote a quick Perl script that estimates the inverse cumulative distribution function for this distribution (using Monte Carlo sampling), to give you a sense of the variance. You could use the following table to simulate all 40 die rolls using a single d20 roll, assuming that each kobold fails on a 13 or lower. Here, the roll is interpreted as the player's "attack roll", so higher die rolls lead to more kobolds failing their saves. 1: 12 2: 21 3: 22 4: 23 5: 23 6: 24 7: 24 8: 25 9: 25 10: 26 11: 26 12: 26 13: 27 14: 27 15: 28 16: 28 17: 29 18: 29 19: 30 20: 31 [sblock][code]#!/usr/bin/perl my $n = 40; # Number of saving throws my $p = 13/20; # Probability of FAILING the save my $k = 100000; # Number of simulations of $n rolls each sub simulate { my $num_saves_failed = 0; for (1..$n) { ++$num_saves_failed if $p > rand; } return $num_saves_failed; } my [MENTION=6904]res[/MENTION]ults = sort {$a <=> $b} map simulate(), 1..$k; print "$_: $results[($_ - 1) * $k / 20]\n" for 1..20;[/code][/sblock] [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*Pathfinder & Starfinder
Playtest Report: The 15-30 Minute Adventuring Day! And I liked it!
Top