El Farol Minority Game

Interactive simulation of bounded rationality and inductive reasoning — the El Farol Bar Problem by W. Brian Arthur (1994)

Bar Attendance Over Time
Prediction Accuracy (RMSE)
Best Strategy Distribution

The El Farol Bar Problem

In 1994, W. Brian Arthur posed a deceptively simple question: N people each week independently decide whether to go to El Farol, a bar in Santa Fe. If fewer than θ people (e.g., 60 of 100) attend, everyone has a good time. If θ or more attend, it's overcrowded and unpleasant. There is no communication or coordination. Each person has access to the same historical attendance data but must form their own prediction using personal inductive strategies. The result: mean attendance spontaneously converges to θ, with fluctuations around it — an emergent equilibrium with no rational agent, no shared model, and no central planner.

Bounded Rationality & Inductive Reasoning

Classical economics assumes deductive rationality — agents know the correct model and optimize. Arthur argued this is impossible here: if everyone believes attendance will be below θ, everyone goes, making it crowded. If everyone expects crowding, nobody goes, making it empty. There is no consistent rational expectation. Instead, agents use inductive reasoning: they maintain multiple simple prediction rules (strategies) and follow whichever has been most accurate recently. This bounded rationality — learning from patterns rather than deducing from first principles — is far more realistic and leads to self-organized coordination.

Emergence Without Equilibrium

The most striking result: the system achieves statistical efficiency (mean ≈ θ) despite constant individual-level flux. Strategies that worked last month may fail this month because other agents have adapted. This is an ecology of strategies — a constantly shifting competitive landscape. The attendance fluctuations never settle to a fixed pattern (unless strategies are too simple), demonstrating that equilibrium and efficiency can coexist with perpetual disequilibrium at the micro level. The variance of attendance depends on the diversity of strategies: more diverse strategies lead to lower variance (closer to θ).

Strategy Generation

Each agent holds S strategies. A strategy is a function mapping the last m attendance values to a predicted attendance. Strategies are linear combinations: pred = w₀ + w₁·A(t-1) + ... + wₘ·A(t-m), plus heuristics: mirror, mean, cycle, contrarian, last-value. Each agent picks different random weights, creating diversity. The agent uses whichever strategy has the lowest cumulative prediction error.

Decision Rule

Each week: (1) Evaluate all S strategies against history, computing cumulative squared error; (2) Select the best strategy; (3) Predict next week's attendance; (4) Go if predicted < θ, else stay home; (5) With probability ε, randomly reverse the decision.

Why It Converges

Negative feedback: if attendance is consistently above θ, agents learn to predict high and stay home → attendance drops. If below θ, agents learn low and go → attendance rises. Convergence speed depends on: (1) strategies S — more means faster adaptation; (2) memory m — longer captures more patterns but slower response; (3) θ/N — optimal at 50%.

Financial Markets

Traders independently decide to buy/sell based on historical patterns. If too many buy (crowded trade), returns are poor. Technical analysis strategies are the analog of Arthur's prediction rules. The Minority Game is extensively studied in econophysics for modeling market volatility.

Traffic & Routing

Commuters choosing routes face the same structure: a route is fast if few use it, slow if many do. GPS navigation apps create a real-time El Farol problem. The heterogeneity of routing algorithms acts like diverse strategies, naturally distributing traffic.

Prediction Markets

Participants with diverse models collectively produce accurate aggregate predictions. Failed models lose money and exit; successful models attract imitation — an evolutionary ecology of strategies. The key requirement is diversity of models, not accuracy of any individual model.

Network Resource Allocation

Internet traffic routing, cloud load balancing, and wireless spectrum access all face El Farol-type problems. Distributed algorithms inspired by the Minority Game achieve efficient load balancing without central coordination.