/compound-science:game-theory <equilibrium concept or game type>from compound-science
Reference for game-theoretic methods in structural econometrics and industrial organization. Covers equilibrium concepts, entry games, auctions, bargaining, and identification challenges.
Ships in compound-science. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Reference for game-theoretic methods in applied structural econometrics and industrial organization. Covers equilibrium concepts, computational methods, structural IO applications, and the identification challenges unique to game-theoretic models.
Use when the user is:
Skip when:
structural-modeling skill for dynamic discrete choice, demand estimation)causal-inference skill)structural-modeling)Quick reference only — for full implementation code, see references/ subdirectory.
references/equilibrium-concepts.md for definitions and formulasreferences/equilibrium-computation.mdreferences/io-applications.mdreferences/estimation-diagnostics.mdreferences/multiple-equilibria.md for selection rules and set identificationreferences/identification-in-games.md for exclusion restrictions and rank conditionsimport nashpy as nash
import numpy as np
# Define a 2-player game: row player payoffs A, column player payoffs B
A = np.array([[3, 0], [5, 1]]) # e.g., Prisoner's Dilemma
B = A.T # Symmetric game
game = nash.Game(A, B)
# Find ALL Nash equilibria via support enumeration
for i, (sr, sc) in enumerate(game.support_enumeration()):
print(f"NE {i+1}: row={sr.round(3)}, col={sc.round(3)}")
For larger games, extensive-form games, or QRE computation, see references/equilibrium-computation.md.
| Information Structure | Timing | Concept | Refinement | Key Reference |
|---|---|---|---|---|
| Complete | Simultaneous | Nash equilibrium | Dominant strategy, trembling-hand perfect | — |
| Complete | Sequential | Subgame perfect equilibrium (SPE) | Backward induction | — |
| Complete | Repeated | SPE with trigger strategies | Folk theorem, Nash reversion | Green-Porter (1984) |
| Complete | Dynamic (states) | Markov perfect equilibrium (MPE) | Strategies depend only on payoff-relevant state | Ericson-Pakes (1995) |
| Incomplete (private types) | Simultaneous | Bayesian Nash equilibrium (BNE) | Monotone strategies, threshold equilibria | — |
| Incomplete | Sequential | Perfect Bayesian equilibrium (PBE) | Sequential rationality + Bayesian updating | Kreps-Wilson |
Decision tree:
For detailed definitions, formulas, and the complete-vs-incomplete information comparison table, see references/equilibrium-concepts.md.
The central identification challenge in empirical games. Three resolution strategies:
| Strategy | Approach | Trade-off | Key Reference |
|---|---|---|---|
| Impose selection rule | Order firms by profitability; pick unique NE | Point identification, but selection rule is an assumption | Berry (1992) |
| Set identification | Accept all NE-consistent parameters | No selection assumption, but wider confidence regions | Ciliberto-Tamer (2009) |
| Exploit multiplicity | Use correlates of equilibrium selection as instruments | Point identification with weaker assumptions | Sweeting (2009) |
| QRE | Bounded rationality generates unique equilibrium | Testable, but imposes logistic choice structure | McKelvey-Palfrey |
For the full selection rule comparison table, QRE implementation code, and Ciliberto-Tamer bounds procedure, see references/multiple-equilibria.md.
Two sources of endogeneity distinguish games from single-agent models: (1) strategic complementarities/substitutes create simultaneity, and (2) correlated unobservables create spurious correlation in actions.
Resolution: Firm-specific instruments Z_i (cost, distance, regulatory history) excluded from rival j's profit equation. Variation in Z_i shifts firm i's entry, which instruments for j's strategic response.
Rank condition (Bajari-Hong-Ryan 2010): The Jacobian of the best-response system w.r.t. exogenous variables must have full rank. Fails when all firms share the same instruments, competitive effects are zero, or instruments are weak.
Conduct parameter identification: Cost shifters must shift supply independently of demand (standard simultaneous equations condition). The conduct parameter θ is identified from the curvature of the markup-quantity relationship.
For the full treatment — exclusion restriction formulas, two-step estimation logic, competitive effect identification, and conduct rank condition failure modes — see references/identification-in-games.md.
For full model specifications, estimation code, and references, see references/io-applications.md and references/estimation-diagnostics.md.
| Application | Model Class | Estimation | Reference File |
|---|---|---|---|
| Market structure (symmetric firms) | Bresnahan-Reiss ordered probit | MLE | io-applications.md |
| Entry (asymmetric firms) | Berry ordered equilibrium | MLE with equilibrium constraints | io-applications.md |
| Entry (multiple equilibria) | Ciliberto-Tamer partial identification | Moment inequalities | io-applications.md |
| Conduct testing | BLP supply side + markup equation | GMM + Rivers-Vuong test | io-applications.md |
| Vertical bargaining | Generalized Nash bargaining (Horn-Wolinsky) | GMM with outside option instruments | io-applications.md |
| Procurement/first-price auctions | BNE bidding + GPV inversion | Nonparametric | io-applications.md |
| Dynamic oligopoly | MPE (Ericson-Pakes) | CCP two-step (Bajari-Benkard-Levin) | estimation-diagnostics.md |
| Collusion sustainability | Repeated game + trigger strategies | Threshold discount factor | equilibrium-concepts.md |
identification-critic agent to verify equilibrium existence, uniqueness, and stability properties before reporting resultsstructural-modeling skill for the estimation machinery (GMM, MLE, NFXP, MPEC) when the game-theoretic structure is already set upidentification-critic agent to stress-test the game-theoretic identification argument — exclusion restrictions, rank conditions, separability assumptionsidentification-critic agent (or identification-proofs skill) to formalize the full identification argument: target parameter → model → equilibrium concept → moment conditions → rank conditionnumerical-auditor agent to design Monte Carlo studies verifying identification and estimator performance in your specific game| Anti-Pattern | Problem | Better Approach |
|---|---|---|
| Assuming unique equilibrium without verification | Model may have multiple equilibria; point estimates are identification-assumption-dependent | Enumerate all Nash equilibria at estimated parameters; verify uniqueness or state selection rule |
| Using complete-information entry model when firms have private information | Equilibrium concept is wrong; identification fails | Use incomplete-information model (Seim 2006, Bajari-Hong-Ryan 2010) or test for information structure |
| Ignoring the multiple equilibria problem in partial identification | Inference is invalid under point identification when set identification is required | Use Ciliberto-Tamer bounds or impose and justify a selection rule |
| Conduct test with weak instruments | Low power to reject Bertrand; cannot distinguish conduct | Report first-stage relevance; use optimal instruments (BLP supply side) |
| Treating equilibrium prices as exogenous regressors in demand | Prices are endogenous (set in equilibrium); OLS demand estimates are biased | Instrument with cost shifters; use BLP/IV approach |
| Estimating bargaining weight without outside option variation | β is not identified without variation in outside options | Find instruments for outside options (market-level variation in alternatives) |
| Nash reversion assumption in collusion test without threshold test | Assumes away the inference problem | Estimate threshold discount factor; test whether δ* is plausible given observed interest rates |
| Not reporting equilibrium verification | Referees cannot assess model validity | Always report that estimated parameters support equilibrium existence |
| Setting | Model | Equilibrium Concept | Estimation Approach | Key Reference |
|---|---|---|---|---|
| Oligopoly market structure | Complete information entry | Nash (ordered selection) | Ordered probit MLE | Bresnahan-Reiss (1991) |
| Asymmetric firm entry | Complete information entry | Nash (ordered selection) | MLE with equilibrium constraints | Berry (1992) |
| Entry with multiple equilibria | Partial identification | Nash (all equilibria) | Moment inequalities | Ciliberto-Tamer (2009) |
| Entry with private cost info | Bayesian game | Bayesian Nash (threshold) | MLE / two-step | Seim (2006) |
| Conduct: competitive vs. collusive | Oligopoly pricing | Nash in prices/quantities | BLP supply + Rivers-Vuong test | Berry-Levinsohn-Pakes (1995) |
| Vertical bargaining | Nash bargaining | Generalized Nash solution | GMM with outside option instruments | Horn-Wolinsky (1988), Crawford-Yurukoglu (2012) |
| Procurement auctions | First-price sealed-bid | Bayesian Nash (bidding) | GPV nonparametric inversion | Guerre-Perrigne-Vuong (2000) |
| Takeover/merger auctions | Ascending auction | Dominant strategy (IPV) | Order statistics / MLE | Athey-Haile (2002) |
| Common value auctions | Affiliated values | BNE (affiliated) | Parametric MLE | Li-Perrigne-Vuong (2002) |
| Dynamic oligopoly | Markov perfect equilibrium | MPE | CCP two-step (Bajari-Benkard-Levin) | Pakes-McGuire (1994), Bajari et al. (2007) |
| Collusion sustainability | Repeated game | Subgame perfect | Threshold discount factor estimation | Green-Porter (1984), Porter (1983) |
| Matching markets | Stable matching | Stable (Gale-Shapley) | Revealed preference from match outcomes | Fox (2010), Choo-Siow (2006) |
| Small 2-player game (theory) | Normal form | Nash (all equilibria) | nashpy / gambit computation | — |
Decision heuristic:
Read these when implementing a specific model type:
references/equilibrium-concepts.md — Detailed definitions and formulas for Nash, BNE, SPE, MPE, mixed strategies, repeated games, folk theorem, complete-vs-incomplete information comparisonreferences/equilibrium-computation.md — Computing Nash, BNE, and SPE: best response iteration, support enumeration, Gambit solver integration, linear complementarity, dynamic programmingreferences/multiple-equilibria.md — Selection rules (risk dominance, QRE, ordered equilibrium), QRE implementation code, Ciliberto-Tamer set identification procedure, multiplicity-as-variationreferences/identification-in-games.md — Exclusion restrictions, rank conditions (Bajari-Hong-Ryan), two-step estimation logic, competitive effect identification, conduct parameter identification and failure modesreferences/io-applications.md — Entry models (Bresnahan-Reiss, Berry, Ciliberto-Tamer), conduct testing (BLP supply, Rivers-Vuong), bargaining (Nash, Rubinstein), auction foundationsreferences/estimation-diagnostics.md — Estimation code (MLE, two-step, MPEC, moment inequalities), convergence diagnostics, model fit tests, equilibrium verificationreferences/equilibrium-computation.md (opens in a new tab)references/equilibrium-concepts.md (opens in a new tab)references/estimation-diagnostics.md (opens in a new tab)references/identification-in-games.md (opens in a new tab)references/io-applications.md (opens in a new tab)references/multiple-equilibria.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
20 skills in this plugin
/bayesian-estimationThis skill covers Bayesian estimation and inference in quantitative social science. Use when the user is specifying priors, running MCMC, diagnosing chain convergence, or reporting posterior summaries — including hierarchical models, Bayesian structural models, and small-sample settings where priors regularize. Triggers on "Bayesian estimation", "Bayesian inference", "MCMC", "Markov chain Monte Carlo", "Stan", "PyMC", "NumPyro", "prior", "posterior", "credible interval", "Bayesian structural", "Bayesian BLP", "Bayesian DSGE", "hierarchical model", "random effects Bayesian", "posterior predictive check", "Bayes factor", "prior predictive check", "NUTS", "HMC", "Hamiltonian Monte Carlo", "R-hat", "rhat", "effective sample size", "ESS", "Bayesian calibration", "posterior distribution", "prior elicitation", "weakly informative prior", "brms", "rstanarm", "cmdstanpy", "pymc", "arviz"./causal-inferenceThis skill covers causal inference methods in observational and quasi-experimental settings. Use when the user is implementing, choosing between, or debugging causal identification strategies — including instrumental variables, difference-in-differences, regression discontinuity, synthetic control, or matching estimators. Triggers on "causal effect", "identification strategy", "instrumental variable", "2SLS", "GMM", "difference-in-differences", "DiD", "staggered treatment", "regression discontinuity", "RDD", "synthetic control", "matching", "propensity score", "IPW", "AIPW", "doubly robust", "LATE", "ATT", "ATE", "parallel trends", "exclusion restriction", "first stage", "weak instruments", or "endogeneity".Claude Code refuses to install this plugin
.claude-plugin/plugin.json: outputStyles: Invalid string: must start with "./"
Checked against Claude Code 2.1.332's install rules. The listing below is what the repository ships; Claude Code cannot install it as published.
Other plugins' skills for the same job