Abstract
Researchers building behavioral models, such as behavioral game theorists, use experimental data to evaluate predictive models of human behavior. However, there is little agreement about which loss function should be used in evaluations, with error rate, negative log-likelihood, cross-entropy, Brier score, and squared L2 error all being common choices. We attempt to offer a principled answer to the question of which loss functions should be used for this task, formalizing axioms that we argue loss functions should satisfy. We construct a family of loss functions, which we dub "diagonal bounded Bregman divergences", that satisfy all of these axioms. These rule out many loss functions used in practice, but notably include squared L2 error; we thus recommend its use for evaluating behavioral models.
Introduction
In fields like behavioral game theory and experimental economics, researchers frequently compare models to determine which best predicts human decision-making. However, the choice of evaluation metric—or loss function—is often arbitrary. Whether a researcher selects the error rate, Negative Log-Likelihood (NLL), or the Brier score can fundamentally alter the ranking of models.
This ambiguity is particularly problematic because behavioral models are almost always "misspecified." Designed for interpretability, they use a handful of parameters to approximate complex human behavior. Standard statistical principles, like the likelihood principle, often assume the "true" model exists within the search space. In the reality of behavioral modeling, this assumption fails, making the choice of loss function a subjective decision that can lead to inconsistent scientific conclusions.
An Axiomatic Approach to Evaluation
To move beyond intuition, we propose an axiomatic framework. We identify five core properties that any robust evaluation metric for behavioral models should satisfy:
1. Alignment Axioms
- Sample Pareto-Alignment (SPA) & Distributional Pareto-Alignment (DPA): These ensure that if Model A is strictly closer to the observed data (or the true distribution) than Model B across every possible dimension, the loss function must rank Model A as superior.
2. Interpretability Axioms
- Empirical Distribution Sufficiency (EDS): The loss should depend only on the distribution of actions, not the order of observations or the total sample size. This ensures consistency across studies with different sample sizes.
- Counterfactual Pareto-Regularity (CPR): If the observed data shifts to become more similar to a model's prediction, that model’s loss should decrease.
- Zero Minimum (ZM): A perfect prediction (matching the empirical distribution exactly) should result in a loss of zero, providing a clear baseline for performance.
Results: The Failure of Common Metrics
By testing common loss functions against these axioms, we find that most widely used metrics fail in critical ways.
As shown in the table above, many standard metrics are "scoring rules" (like NLL and Brier score). While effective for training models to provide honest probability estimates, they are often unsuitable for evaluation.
- Negative Log-Likelihood (NLL): Fails on three counts, including Zero Minimum and EDS. Its sensitivity to sample size makes it difficult to compare across different experimental setups.
- Error Rate: This metric can be deceptive, sometimes rewarding a model for being less accurate overall if it happens to predict the mode of the distribution correctly.
- KL Divergence: While it satisfies the Zero Minimum, it fails Pareto-alignment. It can impose an infinite penalty on a model for assigning zero probability to a rare event that occurs even once in the data.
The Recommendation: Squared L2 Error
Our mathematical derivation identifies a specific family of functions—diagonal bounded Bregman divergences (DBBD)—that satisfy all proposed axioms. Within this family, the squared L2 error (the squared Euclidean distance between predicted and observed probability distributions) emerges as the most practical and robust choice. It is the only widely used metric that satisfies every axiom in our framework.
Case Study: The Traveler’s Dilemma
To demonstrate the real-world impact of these findings, we analyzed experimental data from "traveler’s dilemma" games originally published by Goeree and Holt (2001). We compared three models: the rational Nash Equilibrium, the Level-k model, and the Quantal Cognitive Hierarchy (QCH) model.
The choice of loss function changed the outcome:
- Using the error rate, the "rational" Nash equilibrium appeared to outperform the Level-k model.
- Using squared L2 error, the behavioral models (Level-k and QCH) were correctly identified as superior fits for the human data, aligning with the qualitative observations of the original study.
Conclusion
Evaluating behavioral models requires more than just statistical convenience; it requires a principled foundation. By adopting an axiomatic approach, we demonstrate that many common metrics fail to provide consistent or interpretable rankings. We recommend that researchers adopt the squared L2 error as a standard for evaluating behavioral models to ensure more reliable and comparable scientific results.
Summary updated