A Simulator for Hedonic Games

Luke Harold MilesarXiv 2017

Introduction

In social and economic systems, individuals frequently organize into groups, such as project teams, community organizations, or international trade blocs. Hedonic games provide a formal game-theoretic framework for modeling these processes, where a player's utility is derived solely from the composition of their own group, or coalition. Despite their theoretical importance, determining the stability of these groups—ensuring no subset of players has an incentive to defect—is often computationally complex. This paper introduces a web-based simulator designed to bridge the gap between abstract mathematical definitions and practical social dynamics, providing an intuitive interface for visualizing social graphs and testing stability measures.

The Simulator's Framework

The primary contribution of this work is an interactive tool that allows researchers to define social networks and test various group partitions. Users begin by inputting an adjacency list that represents the underlying social graph of friendships. This graph serves as the foundation for calculating player utilities based on different preference rules.

A sample social graph representing friendships between individuals a through e.

The simulator supports several subclasses of hedonic games, each representing a different psychological or social priority:

  • Fractional Games: Players assign real values to others; a player's utility is the sum of values assigned to members of their own coalition.
  • Friend/Enemy Oriented (FO/EO): These models assume players prioritize the quantity of friends or the absence of enemies. In a friend-oriented game, a player prefers a coalition with more friends; ties are broken by the number of enemies.
  • Altruistic Models: A core focus of the simulator, these models account for "happiness by proxy." These include Selfish-first (prioritizing personal utility before considering friends), Equal-treatment (weighting friends' happiness equally to one's own), and Altruistic-treatment (prioritizing friends' happiness over personal gain).

Stability and Preference Models

A critical feature of the tool is its ability to automate stability checks, which are often mathematically taxing. It evaluates whether a given partition is "individually rational" (no player is worse off than being alone) or "core stable." A partition is core stable if no "blocking coalition" exists—a group of players who would all prefer to be together in a new group rather than remain in their current ones.

Because checking for a core requires evaluating every possible subset of players—a task that grows exponentially with the number of participants—the simulator provides an essential service by offering an immediate "Yes/No" verification. This allows users to quickly iterate through different social structures and preference models to see which configurations lead to lasting social harmony.

Key Insights

The simulator reveals several counterintuitive properties of social organization. One such insight is the Paradox of Choice in altruistic models: adding a friend to a group can sometimes decrease a player's utility if that friend's presence negatively impacts other group members. The player, caring for their friends' well-being, may prefer a smaller group to ensure the happiness of the collective.

Furthermore, the tool highlights a fascinating divide in computational complexity. Finding stable arrangements in friend-oriented games is relatively straightforward (polynomial time), whereas the problem becomes NP-hard in enemy-oriented games. The paper also notes that "selfish-first" altruistic games are guaranteed to have a non-empty core, meaning a stable arrangement always exists, though whether this holds for "truly altruistic" models remains an open question.

Results and Conclusion

The resulting Hedonic Game Simulator, hosted at lukemiles.org/hedonic-games, serves as both a pedagogical and research aid. By automating utility calculations across models like FO, EO, SF, EQ, and AL, it allows for rapid prototyping of social scenarios, from small classroom groupings to complex political alliances.

The simulator visualizes group partitions using color-coded nodes.

While the tool is currently optimized for desktop use and smaller social graphs, it provides a clear mathematical path for implementing socially aware agents in larger simulations. Future work will address the theoretical existence of stable cores in "equal-treatment" and "altruistic-treatment" models, as well as scaling the simulator's performance to handle larger social networks with hundreds of nodes.

Summary updated

BibTeX
@misc{miles2017simulator,
  author = {Luke Harold Miles},
  title = {{A Simulator for Hedonic Games}},
  year = {2017},
  eprint = {1706.08501},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1706.08501},
}
Figure