Markov Ball

Interactive Cyberball Simulation

← sona.berlin


Cyberball is a virtual ball-tossing game used in psychology research to study social exclusion. Four players pass a ball to each other. In the inclusion condition, everyone throws fairly. In the ostracism condition, two confederates (C1, C2) stop passing to the target player (T) after the first two throws — effectively excluding them from the game.

This simulation models the game as a Markov chain. The key metric is the transgression ratio (TR): how often the target is skipped when they are statistically “due” for a throw. Watch it converge as the game runs.



Throws 0
Throws to T 0
CNT proportion —
k (since T held ball) 0
Target “due” (k ≥ 3) No
Transgression ratio —
Theoretical TR ~0.296

Throw log


About the model

The game is modeled as a 16-state Markov chain. Each state is a tuple (holder, k) where holder is the current ball-holder and k counts consecutive throws since the target last held the ball (capped at 3). Under random play, the theoretical transgression ratio is 8/27 ≈ 0.296. Under ostracism, confederate exclusion inflates k, pushing the expected TR to ≈ 0.654 — even though the participant still throws fairly.

Based on dissertation research at Maastricht University — Cyberball paradigm (Williams, 2006) with 4-player extension.