When the rebels are even with the guards and king, the guards and king have met their win condition of equaling or outnumbering the rebels, and therefore win.Trumpet of Doom wrote:Now that I've got this finished (because I'm playing it), I'll post it here.
Rebels in the Palace (setup described here for those that don't know it)
Rebels win: 66%
Guards+king win: 26%
Happily ever after (i.e. only remaining players are king and one rebel): 9%
Full possibility chart posted here. My calculations assumed that when the rebels were even with the guards and king, they couldn't lynch the king that day, but they could still lynch guards even after they found the king.
[OLD] The Numbers Thread
- Xylthixlm
-
Xylthixlm !xmafia win
- Xylthixlm
- !xmafia win
- !xmafia win
- Posts: 5414
- Joined: July 12, 2006
#mafia@irc.globalgamers.net
"Xyl was completely berserk" -dramonic
"Xyl's ruthless policy lynching won the game." -Vi- Empking
-
Empking Empking's Alt's Alt
- Empking
- Empking's Alt's Alt
- Empking's Alt's Alt
- Posts: 16758
- Joined: May 4, 2008
- Xylthixlm
-
Xylthixlm !xmafia win
- Xylthixlm
- !xmafia win
- !xmafia win
- Posts: 5414
- Joined: July 12, 2006
That role PM is wrong. The original post with the setup specifically says "the king and guards win when theyEmpking wrote:You are the King! To win you must lynch enough rebels that you and your loyal guards outnumber them. You lose if you are lynched.equal or outnumberthe rebels".#mafia@irc.globalgamers.net
"Xyl was completely berserk" -dramonic
"Xyl's ruthless policy lynching won the game." -Vi- Trumpet of Doom
-
Trumpet of Doom Mafia Scum
- Trumpet of Doom
- Mafia Scum
- Mafia Scum
- Posts: 1029
- Joined: December 22, 2008
- Location: Baker! Hell yeah!
- Xylthixlm
-
Xylthixlm !xmafia win
- Xylthixlm
- !xmafia win
- !xmafia win
- Posts: 5414
- Joined: July 12, 2006
You should probably calculate the EVs for the correct setup.Trumpet of Doom wrote:In that case, our mod misread the setup.
Which you are doing the really hard way, BTW.
Hint: There are exactly 1980 different ways to order 8 rebels, 3 guards, and 1 king. Count the number of orderings which lead to the guards & king winning, then divide by 1980.#mafia@irc.globalgamers.net
"Xyl was completely berserk" -dramonic
"Xyl's ruthless policy lynching won the game." -Vi- Trumpet of Doom
-
Trumpet of Doom Mafia Scum
- Trumpet of Doom
- Mafia Scum
- Mafia Scum
- Posts: 1029
- Joined: December 22, 2008
- Location: Baker! Hell yeah!
- Xylthixlm
-
Xylthixlm !xmafia win
- Xylthixlm
- !xmafia win
- !xmafia win
- Posts: 5414
- Joined: July 12, 2006
That's what I got.Trumpet of Doom wrote:Got it.
Rebels win: 60.4%
Guards win: 39.6%
That sound good?
TTTT******** 8!/(4!*3!)=280
(TTTG)TT****** 4*6!/(3!*2!)=240
(TTTG)(TG)TT**** 4*2*4!/2!=96
(TTTG)(TG)(TG)TT** 4*2*2*2=32
(TTTG)GGTTTT** 4*2=8
(TTGG)TTTT**** 6*4!/2!=72
(TTGG)(TTTG)TT** 6*4*2=48
(TGGG)TTTTTT** 4*2=8
12!/(8!*3!)=1980 total possibilities
Total scum win = 784/1980 = 39.6%#mafia@irc.globalgamers.net
"Xyl was completely berserk" -dramonic
"Xyl's ruthless policy lynching won the game." -Vi- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
Ok, my spreadsheet currently has 8 Vanilla variants; but before I put it online, go take The Balance Quiz- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
Ok, haven't gotten around to doing any graphs, but I put the spreadsheet up. Link in the first post.
I'd like to play with California next. I'll probably make some simplifying assumptions to start with (Cop will always claim if first-choice for lynching, Townie claim will always be lynched). With those assumptions, Scum will always claim Cop if first-choice for lynching, and then we need to figure out whether the Cop should counter, whether the Scum should ever counter the Cop, and whether the Town should ever lynch a Cop claim.- GIEFF
-
GIEFF Internet Superstar
- GIEFF
- Internet Superstar
- Internet Superstar
- Posts: 1610
- Joined: October 15, 2008
- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
(There's also the rather interesting problem of what the scum should do if a townie is lynched D1 and they don't hit the Cop N1; it's probably optimal for one of them to claim an investigation, but you've got to deal with the question of which claim you are more likely to believe (first or second), and how often scum should claim to have gotten guilty/innocent.)- GIEFF
-
GIEFF Internet Superstar
- GIEFF
- Internet Superstar
- Internet Superstar
- Posts: 1610
- Joined: October 15, 2008
Simulating something 100,000 times is exact enough for me. Kudos on trying to do it the right way, though. I'll see if I can throw some code together and if it matches what you come up with.
Cop claims if lynch-target: 100%
Town lynches town-claim: 100%
Scum claims cop if lynch-target: 100%
Town lynches un-CC'd cop claim: 0%
Town lynches first of 2 cop claims: A%
Town lynches second of 2 cop claims: B%
Town lynches neither of 2 cop claims: 1 - A% - B%
Cop counters scum-cop-claim: C%
Scum counters cop-claim: D%
So I think it's just 4 variables. Anything I'm missing?- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
Ok, assuming the cop always counters a scum fake claim (pretty sure this is correct play), and assuming the town always lynches a claimed cop if there are two such claims (see below), I get that the scum should *always* counterclaim the cop. Obviously the town should always lynch the first "cop" to claim (since it's twice as likely to be scum first), and so the EV in the 3/7 where we have a cop claim D1 is 19/105. Not very good for the town.
If those numbers are correct, the town's optimal strategy can't be to lynch a cop: they're probability of winning if they lynch one of the other five players is clearly at least 1/5 (if they hit the other scum D1, they have two lynches to find the fake cop). So I'll need to calculate that probability, and then rerun the numbers on scum countering. It's a bit more tricky, because there's the investigations to consider (what the scum claims, as well as what the town can deduce from the two claims; they might be able to eliminate certain pairings or confirm players).- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
- shaft.ed
-
shaft.ed dem.agogue
- shaft.ed
- dem.agogue
- dem.agogue
- Posts: 4998
- Joined: August 15, 2007
- Location: St. Louis
Is this all assuming D1 with no investigations?GIEFF wrote:Simulating something 100,000 times is exact enough for me. Kudos on trying to do it the right way, though. I'll see if I can throw some code together and if it matches what you come up with.
Cop claims if lynch-target: 100%
Town lynches town-claim: 100%
Scum claims cop if lynch-target: 100%
Town lynches un-CC'd cop claim: 0%
Town lynches first of 2 cop claims: A%
Town lynches second of 2 cop claims: B%
Town lynches neither of 2 cop claims: 1 - A% - B%
Cop counters scum-cop-claim: C%
Scum counters cop-claim: D%
So I think it's just 4 variables. Anything I'm missing?- GIEFF
-
GIEFF Internet Superstar
- GIEFF
- Internet Superstar
- Internet Superstar
- Posts: 1610
- Joined: October 15, 2008
But if scum claims cop 100% of the time, then a townie claim is essentially a clear. I don't think there is an exact solution until you come to a decision on the game-theory-optimal percentages for scum claims and counterclaims.
Yes shafted, that's still D1, but I think I should make "town lynches town-claim" a variable rather than just 100%.
It makes superficial sense for the optimal scum-claiming-cop percentage to be equal to the "town lynches townie-claim" percentage, but I'm not sure that's really correct. It is surely optimal at 100% and at 0%, but is it optimal in between?
Update:
Should town ever lynch an un-CC'd cop claim?- Xylthixlm
-
Xylthixlm !xmafia win
- Xylthixlm
- !xmafia win
- !xmafia win
- Posts: 5414
- Joined: July 12, 2006
I'm trying to find a closed-form formula for the town's chances of winning a vanilla game.
Let w(t,p) be the town's chances of winning a vanilla game with t townies in p players, assuming random lynches and no nolynch.
Consider m(j,h) = h * 2^(j + h) * w(j + h, 2 * h)
Then
m(j,h) = h * 2^(j + h) when j = h;
m(j,h) = 0 when j = 0;
m(j,h) = m(j - 1, h) + m(j, h - 1) otherwise.
That's as far as I've gotten right now. It looks like there should be a closed formula for w() based on the recurrence relation of m(), but I'm not sure how to find it.
m(j,0) =? 2^j * j * (j + 1)
m(j,h) =? sum(i = 0 to j, 2^i * i * (i + 1) * (j + h - i)! / [(j - i)! * h!])
(EDIT: Trying to verify my math here.)Last edited by Xylthixlm on Thu Mar 12, 2009 7:02 pm, edited 3 times in total.#mafia@irc.globalgamers.net
"Xyl was completely berserk" -dramonic
"Xyl's ruthless policy lynching won the game." -Vi- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
Eesh, messy. Here's the problem, for those confused by my ramblings:
There are two cop claims D1. The town lynches someone else, who comes up townie. We go to night with 2 claimed cops, 1 other scum, and 3 townies. One option for the scum is to kill the real cop, which reduces the whole thing to a 1:4 vanilla game, basically (town has two chances to hit the other cop, they win 7/15 of these).
The second option is to kill someone else. D2, there are now 56 cases to wade through:
Which cop has to claim his investigation first? (2)
Who did the real cop investigate? (4)
Who did the fake cop claim to investigate, and what did he claim to get? (7 - he'll obviously claim innocent on the dead player if he goes with that claim, but could claim either on anyone else)
If the scum claims first, he has (essentially) five options - rat out buddy, protect buddy, frame townie (2 options for which), buddy up to townie (same), claim dead player. But if the real cop claims first, the scum has either five or seven options... and the probabilities for how he should claim could potentially be different for each different situation he finds himself in.
Then the town has to sort out what they've learned (in some cases, they can reduce it to a 50-50)... and they can still take into account how much more likely it was for the scum to have claimed first D1.
What a mess.- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
We're discussing multi-group vanilla setups in the certification thread, thought I'd move some of that over here.
I think I've shown that at 1-1-2, the town's best play is for one of the townies to offer himself up as a sacrifice. This reduces it to 1-1-1, which has an EV for the town of either 1/3 or 1/4, depending on how draws are counted.
Now the question is: What is the best play in 1-1-3?
The sacrifice plan now puts us in 1-1-2 the next night, giving us 7/27 (assuming my interpretation of the draw rules).
Lynching at random is a slight improvement: 2/5 chance of hitting scum (taking us to 1-2, 1/3 EV), 3/5 chance of hitting town (7/27, as above). Overall: 13/45
No Lynching is better still. There's a 1/16 chance of a cross-kill (town win); otherwise, either one scum gets hit (1-2, 1/3 EV) or one/two townies get hit, putting us in either 1-1-1 or 1-1-2 which have the same 1/3 EV as shown above. Overall: 3/8- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
1-1-4... Lynching scum only gets us to 1-3 (NL down to 1-2, EV 1/3), so that's no good.
NL gives 1/25 cross-kill, one scum hit puts us at 1-3 (NL down to 1-2, EV 1/3), two townies hit put us at 1-1-2 (EV 1/3), but one townie double killed takes us to 1-1-3 (3/8); 4/25 of the latter happening. Overall we have... 1/25+4/15+3/50 = 55/150 = 11/30 = 36.666%.
3/8 = 37.5%, so the best play is actually to sacrifice a townie again and reduce to 1-1-3 going to night.
1-1-5 lynching: 2/7 chance of hitting scum, with a EV of 7/15 if we do; 5/7 chance of a 1-1-4 night, with the EV of 11/30. Overall: 2/15+11/42 = 83/210 = 39.5%. Better, but:
NL gives 1/36 cross-kill (EV 1), 10/36 one scum dead (1-4, EV 7/15), anything else is 1-1-4 or 1-1-3 (3/8). Overall: 1/36+7/54+25/96 = 361/864 = 41.8%.- Tenchi
-
Tenchi Mafia Scum
- Tenchi
- Mafia Scum
- Mafia Scum
- Posts: 1438
- Joined: November 19, 2008
- Location: California, USA
Question: I have trouble with the numbers here, but I'm trying to review my statistics here. Which is better, finding some closed formula do determine the exact solution for EVs or simulating?
I kinda gave up on coming up with a formula, given that I can't keep up with Xyl's post 43, and it's vanilla. And I'm boggled with how the spreadsheet formulas were derived. Would simulating a setup be acceptable?Yes. That same Tenchi.
Reicheru and Tenchi begin to bond more, sending love letters to each other.- mith
-
mith Godfather
- mith
- Godfather
- Godfather
- Posts: 9267
- Joined: March 27, 2002
- Location: McKinney, TX
- Contact:
Simulation is fine... the main issue is that it's difficult to know which strategy is optimal in certain situations, and in order to run a simulation you either need to decide beforehand how it will treat those situations (so you are just guessing what is optimal, and may not be finding the true EV... and in some cases, a non-obvious strategy may drastically shift the balance of the game), or you need to brute force it and try all the different possible strategies (at which point, might as well find an exact solution, IMO).Copyright © MafiaScum. All rights reserved.
- mith
- Tenchi
- mith
- mith
- mith
- Xylthixlm
- GIEFF
- shaft.ed
- mith
- mith
- GIEFF
- mith
- mith
- GIEFF
- mith
- mith
- mith
- Xylthixlm
- Trumpet of Doom
- Xylthixlm
- Trumpet of Doom
- Xylthixlm
- Empking
- Xylthixlm