Skip to main content
QUICK REVIEW

[Paper Review] A mathematical model of the Mafia game

Piotr Migdał|arXiv (Cornell University)|Sep 6, 2010
Complex Systems and Time Series AnalysisEconomics, Econometrics and Finance7 citations
TL;DR

This paper presents a mathematical model of the Mafia game as a discrete-time pure death process, analyzing the probability of mafia victory $ w(n,m) $ in a game with $ n $ players and $ m $ mafia members. It derives closed-form solutions and shows that the optimal mafia size scales as $ \sim \sqrt{n} $, giving both sides roughly equal winning chances when $ m \approx \frac{1}{2} \sqrt{\frac{2}{\pi}} \sqrt{n} $, with strong dependence on the parity of $ n $. The model also provides exact dynamics and continuous-time approximations.

ABSTRACT

Mafia (also called Werewolf) is a party game. The participants are divided into two competing groups: citizens and a mafia. The objective is to eliminate the opponent group. The game consists of two consecutive phases (day and night) and a certain set of actions (e.g. lynching during day). The mafia members have additional powers (knowing each other, killing during night) whereas the citizens are more numerous. We propose a simple mathematical model of the game, which is essentially a pure death process with discrete time. We find the closed-form solutions for the mafia winning-chance, w(n,m), as well as for the evolution of the game. Moreover, we investigate the discrete properties of results, as well as their continuous-time approximations. It turns out that a relatively small number of the mafia members, i.e. proportional to the square root of the total number of players, gives equal winning-chance for both groups. Furthermore, the game strongly depends on the parity of the total number of players.

Motivation & Objective

  • To develop a stochastic mathematical model of the Mafia game that captures the core mechanics of player elimination in discrete day-night cycles.
  • To determine the exact probability $ w(n,m) $ that the mafia wins, given $ n $ total players and $ m $ mafia members.
  • To analyze the dynamical evolution of the game, including the distribution of mafia members over time.
  • To investigate the asymptotic behavior and continuous-time approximations of the model.
  • To identify conditions under which both factions have equal winning chances, particularly the optimal $ m $ for a given $ n $.

Proposed method

  • Model the game as a pure death process with discrete time steps corresponding to alternating day and night phases.
  • Use combinatorial probability to compute the transition probabilities between states with different numbers of mafia members.
  • Derive a closed-form expression for the probability $ p_m(t) $ that $ m $ mafia members remain after $ t $ turns using inclusion-exclusion and double factorial identities.
  • Apply continuous-time approximation to the discrete process, showing convergence to a deterministic differential equation.
  • Use asymptotic analysis to derive approximations for $ w(n,m) $, especially in the limit $ n \to \infty $, and relate them to known results.
  • Investigate parity effects by analyzing the behavior of the model separately for even and odd $ n $.

Experimental results

Research questions

  • RQ1What is the exact probability $ w(n,m) $ that the mafia wins in a game with $ n $ players and $ m $ mafia members?
  • RQ2How does the number of surviving mafia members evolve over time, and what is the distribution of this process?
  • RQ3What is the optimal number of mafia members $ m_{\text{opt}} $ that gives both factions equal winning probability for a given $ n $?
  • RQ4How does the game’s outcome depend on the parity of $ n $, and why does this matter for the dynamics?
  • RQ5How well do continuous-time approximations capture the behavior of the discrete-time model?

Key findings

  • The exact probability of mafia victory is given by the closed-form expression $ w(n,m) = 1 - \sum_{i=0}^{m} \binom{m}{i} (-1)^i \frac{(n-i)!!}{n!! \, ((n \bmod 2) - i)!!} $.
  • For large $ n $, the winning chance scales as $ w(n,m) \approx \left(\frac{\pi}{2}\right)^{(n \bmod 2) - 1/2} \frac{m}{\sqrt{n}} $, showing a $ \sim m / \sqrt{n} $ dependence.
  • The optimal number of mafia members for equal winning chances is approximately $ m_{\text{opt}} \approx \frac{1}{2} \left(\frac{\pi}{2}\right)^{-(n \bmod 2) + 1/2} \sqrt{n} $, which is proportional to $ \sqrt{n} $.
  • The game exhibits strong dependence on the parity of $ n $: for even $ n $, the $ i=2 $ term in the sum vanishes, simplifying the asymptotic behavior.
  • The continuous-time approximation loses discrete parity effects, indicating that the discrete nature of the game is essential for capturing full dynamics.
  • For a single mafia member ($ m=1 $), the winning probability is $ w(n,1) = 1 - \left(1 - \sqrt{1 - \frac{n-1}{n}}\right)^1 \approx \frac{1}{\sqrt{n}} $, confirming the general asymptotic trend.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.