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, OSR, & D&D Variants
*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, OSR, & D&D Variants
*TTRPGs General
*Pathfinder & Starfinder
EN Publishing
*Geek Talk & Media
Search forums
Chat/Discord
Menu
Log in
Register
Install the app
Install
Upgrade your account to a Community Supporter account and remove most of the site ads.
Community
General Tabletop Discussion
*TTRPGs General
So, about this math problem...
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="Olgar Shiverstone" data-source="post: 1207462" data-attributes="member: 5868"><p>How many rooms do you actually need a solution for?</p><p></p><p>This is a fairly simple Markov chain problem; for a simple combination, there are formulas that allow you to derive the steady-state probabilities directly.</p><p></p><p>For a 100-room problem, you need some computing power (we're not talking paper & pencil here, since you've got a 100 x 100 matrix). Luckily, most of the entries in the matrix are zero since from a given room you can't get to many other rooms -- a little playing around with the system of equations and you should be able to get a computer solution for the steady-state probabilities.</p><p></p><p>It's probably still more work than you want to go through, though -- what exactly are you traying to achieve (maybe there's another way to approach the problem)?</p><p></p><p>EDIT:</p><p></p><p>For your six-room example, given above, the Markov chain matrix is given by (forgive formatting):</p><p></p><p>--1---2---3---4---5---6</p><p>1-0---1---0---0---0---0</p><p>2-.33-----.33-.33--0---0</p><p>3-.5--0---0---0---.5---0</p><p>4-0--.5---0---0---.5---0</p><p>5-0---0--.33-.33---0--.33</p><p>6-0---0---0---0---1---0</p><p></p><p>Given the matrix above P, the probability of the dragon being in a given room after the nth move is P^n (martix multiplication -- in the resulting matrix, cross reference the starting room with the target room to get the probability of being in the target room after n steps.). With n high enough, you start to approach steady-state probabilities</p><p></p><p>There aren't any absorbing states (which would make direct calculation easier), but by solving a system of six equations for the six unknown steady state probabilities p(i) you can calculate the steady state probability of being in a room.</p><p></p><p>the system is given by:</p><p></p><p>P(i) = Sum (p(i) * P),</p><p></p><p>so </p><p>P(1) = .33 P(2) + .5 P(3)</p><p>P(2) = P(1) + .5 P(4)</p><p>P(3) = .33 P(2) + .33 P(5)</p><p>P(4) = .33P(2)+ .33 P(5)</p><p>P(5) = .5P(3)+.5P(4)+P(6)</p><p>P(6) = .33P(5)</p><p></p><p>Solve the above, and you get the steady-state chance of being in a given room a time approaches infinity (though the chances of being in a given room at the nth step depend on where you started and n -- see my note on P^n above).</p><p></p><p>If you've followed that (I'm compressing a lot of Markov theory) you can extend it to any number of rooms, though the computing power required increases quite a bit.</p><p></p><p></p><p>EDIT 2: And I see this has already essentially been posted ... apologies for redundancy.</p></blockquote><p></p>
[QUOTE="Olgar Shiverstone, post: 1207462, member: 5868"] How many rooms do you actually need a solution for? This is a fairly simple Markov chain problem; for a simple combination, there are formulas that allow you to derive the steady-state probabilities directly. For a 100-room problem, you need some computing power (we're not talking paper & pencil here, since you've got a 100 x 100 matrix). Luckily, most of the entries in the matrix are zero since from a given room you can't get to many other rooms -- a little playing around with the system of equations and you should be able to get a computer solution for the steady-state probabilities. It's probably still more work than you want to go through, though -- what exactly are you traying to achieve (maybe there's another way to approach the problem)? EDIT: For your six-room example, given above, the Markov chain matrix is given by (forgive formatting): --1---2---3---4---5---6 1-0---1---0---0---0---0 2-.33-----.33-.33--0---0 3-.5--0---0---0---.5---0 4-0--.5---0---0---.5---0 5-0---0--.33-.33---0--.33 6-0---0---0---0---1---0 Given the matrix above P, the probability of the dragon being in a given room after the nth move is P^n (martix multiplication -- in the resulting matrix, cross reference the starting room with the target room to get the probability of being in the target room after n steps.). With n high enough, you start to approach steady-state probabilities There aren't any absorbing states (which would make direct calculation easier), but by solving a system of six equations for the six unknown steady state probabilities p(i) you can calculate the steady state probability of being in a room. the system is given by: P(i) = Sum (p(i) * P), so P(1) = .33 P(2) + .5 P(3) P(2) = P(1) + .5 P(4) P(3) = .33 P(2) + .33 P(5) P(4) = .33P(2)+ .33 P(5) P(5) = .5P(3)+.5P(4)+P(6) P(6) = .33P(5) Solve the above, and you get the steady-state chance of being in a given room a time approaches infinity (though the chances of being in a given room at the nth step depend on where you started and n -- see my note on P^n above). If you've followed that (I'm compressing a lot of Markov theory) you can extend it to any number of rooms, though the computing power required increases quite a bit. EDIT 2: And I see this has already essentially been posted ... apologies for redundancy. [/QUOTE]
Insert quotes…
Verification
Post reply
Community
General Tabletop Discussion
*TTRPGs General
So, about this math problem...
Top