Logo von Game Theory

Game Theory

CommunityBeliebt
brycewang-stanford
game-theory

This skill covers game-theoretic methods in structural econometrics and industrial organization. Use when the user is working with strategic interactions, equilibrium analysis, or game-theoretic structural models — including entry games, conduct testing, auction models with strategic bidding, bargaining, or matching markets. Triggers on "Nash equilibrium", "subgame perfect", "best response", "strategic interaction", "entry game", "conduct testing", "auction", "mechanism design", "matching market", "bargaining", "BNE", "Bayesian Nash", "static game", "dynamic game", "repeated game", "multiple equilibria", "equilibrium selection", "discrete game", "oligopoly", "game-theoretic", "player", "payoff", "strategy", "dominant strategy", "Bresnahan-Reiss", "Ciliberto-Tamer", "partial identification", "set identification", or markup test.

Add to TypingMind

Übersicht

Herausgeberbrycewang-stanford
RepositoryAuto-Empirical-Research-Skills
Skill-Namegame-theory
Sterne
4.6K
Forks
543
Mitgelieferte Dateien
6
Links
  • Anweisungen in Markdown

    Eine SKILL.md-Datei, die das Modell bei Bedarf lädt. So werden nur dann Token verbraucht, wenn eine Anfrage tatsächlich dazu passt.

  • Funktioniert mit jedem LLM

    KI-Skills bestehen aus reinem Markdown, nicht aus anbieterspezifischem Code. Daher funktionieren sie mit GPT, Claude, Gemini, Grok oder einem lokalen Modell.

  • Mitgelieferte Dateien: 6

    Skripte, Vorlagen und Referenzmaterial, die das Modell bei der Arbeit lesen kann. Die Dateien sind schreibgeschützt und werden niemals ausgeführt.

  • Open Source

    Von brycewang-stanford auf GitHub veröffentlicht. Prüfen Sie vor der Installation die Quelldateien.

Installation

Installieren Sie den KI-Skill Game Theory in TypingMind, um ihn mit jedem LLM zu nutzen, oder fügen Sie ihn einem anderen Agenten hinzu, der SKILL.md lesen kann.

1

In TypingMind installieren

TypingMind installiert einen Skill direkt aus seinem GitHub-Ordner. Dabei liest die App SKILL.md, bündelt die Ressourcendateien und speichert das Ergebnis lokal.

  1. Öffnen Sie die App und gehen Sie zu Plugins → Skills.
  2. Wählen Sie „Von GitHub installieren“.
  3. Fügen Sie die unten angegebene URL des Skill-Ordners ein und bestätigen Sie.
    https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tree/main/skills/11-James-Traina-compound-science/skills/game-theory
  4. Aktivieren Sie den Skill in jedem Chat, in dem er verfügbar sein soll.
Plugins → Skills → Skill hinzufügen → Über GitHub-URL. Fügen Sie dann die Ordner-URL ein und klicken Sie auf „Weiter“.
2

In einem anderen Agenten installieren

Jeder Agent, der das Agent-Skills-Format unterstützt, kann diesen Skill nutzen. Kopieren Sie den Ordner in das Skill-Verzeichnis des jeweiligen Agenten.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills.git /tmp/Auto-Empirical-Research-Skills
mkdir -p .claude/skills
cp -r /tmp/Auto-Empirical-Research-Skills/skills/11-James-Traina-compound-science/skills/game-theory .claude/skills/game-theory
Starten Sie Claude Code nach dem Kopieren neu, damit der neue Skill erkannt wird.

In TypingMind verwenden

Aktivieren Sie Game Theory in einem beliebigen Chat in TypingMind. Den Rest übernimmt das Modell. Name und Beschreibung des Skills stehen im System-Prompt. Sobald eine Anfrage passt, lädt das Modell selbstständig die vollständigen Anweisungen — Sie müssen den Skill nie manuell aufrufen, und er verbraucht erst Token, wenn er tatsächlich genutzt wird.

Das Modell lädt Game Theory automatisch, sobald eine passende Anfrage gestellt wird.

Funktioniert mit jedem KI-Modell

KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher ist Game Theory nicht an das Modell gebunden, für das der Skill geschrieben wurde. Installieren Sie ihn einmal in TypingMind und nutzen Sie ihn mit GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder einem selbst betriebenen lokalen Modell — alles mit Ihren eigenen API-Schlüsseln.

  • Wird nur bei Bedarf geladen

    Der System-Prompt enthält nur den Namen und die Beschreibung. Die Anweisungen werden bei der ersten passenden Anfrage geladen. Ein ungenutzter Skill verursacht daher keine Kosten.

  • Modell im laufenden Chat wechseln

    Da der Skill aus Anweisungen statt aus Code besteht, funktioniert er auch nach einem Modellwechsel — das nächste Modell liest dieselbe SKILL.md-Datei.

Skill-Anweisungen

Dies ist der Inhalt von SKILL.md, den das Modell lädt. Lesen Sie ihn vor der Installation — ein Skill besteht aus Anweisungen, denen Ihr Modell folgt.

Game Theory

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.

When to Use This Skill

Use when the user is:

  • Estimating a structural model where agents interact strategically (oligopoly, entry, bargaining, auctions)
  • Deriving or computing Nash equilibria, BNE, or subgame perfect equilibria
  • Handling the multiple equilibria problem in empirical games
  • Testing firm conduct (competitive vs. collusive vs. oligopolistic)
  • Estimating entry models, matching models, or bargaining models
  • Formalizing an identification argument for a game-theoretic model

Skip when:

  • The model is single-agent (use structural-modeling skill for dynamic discrete choice, demand estimation)
  • The task is standard causal inference without strategic interaction (use causal-inference skill)
  • The game is a well-known IO model with standard estimation code (pyblp covers BLP demand; see structural-modeling)

Quick reference only — for full implementation code, see references/ subdirectory.

Where to Start

  • Choosing equilibrium concept? See Equilibrium Concept Routing below, then references/equilibrium-concepts.md for definitions and formulas
  • Computing equilibria? See references/equilibrium-computation.md
  • Estimating an IO model? See references/io-applications.md
  • Estimation code and diagnostics? See references/estimation-diagnostics.md
  • Facing multiple equilibria? See Multiple Equilibria Summary below, then references/multiple-equilibria.md for selection rules and set identification
  • Identification argument? See Identification Summary below, then references/identification-in-games.md for exclusion restrictions and rank conditions

Quick Start: Nash Equilibrium Computation

python
import 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.

Equilibrium Concept Routing

Information StructureTimingConceptRefinementKey Reference
CompleteSimultaneousNash equilibriumDominant strategy, trembling-hand perfect—
CompleteSequentialSubgame perfect equilibrium (SPE)Backward induction—
CompleteRepeatedSPE with trigger strategiesFolk theorem, Nash reversionGreen-Porter (1984)
CompleteDynamic (states)Markov perfect equilibrium (MPE)Strategies depend only on payoff-relevant stateEricson-Pakes (1995)
Incomplete (private types)SimultaneousBayesian Nash equilibrium (BNE)Monotone strategies, threshold equilibria—
IncompleteSequentialPerfect Bayesian equilibrium (PBE)Sequential rationality + Bayesian updatingKreps-Wilson

Decision tree:

  1. Do players have private information? → Yes: BNE framework. No: Nash/SPE.
  2. Is the game sequential? → Yes: SPE (backward induction) or MPE (dynamic states). No: simultaneous Nash.
  3. Is the game repeated? → Yes: folk theorem applies; collusion may be sustainable.
  4. Are there multiple equilibria? → See Multiple Equilibria Summary.

For detailed definitions, formulas, and the complete-vs-incomplete information comparison table, see references/equilibrium-concepts.md.


Multiple Equilibria Summary

The central identification challenge in empirical games. Three resolution strategies:

StrategyApproachTrade-offKey Reference
Impose selection ruleOrder firms by profitability; pick unique NEPoint identification, but selection rule is an assumptionBerry (1992)
Set identificationAccept all NE-consistent parametersNo selection assumption, but wider confidence regionsCiliberto-Tamer (2009)
Exploit multiplicityUse correlates of equilibrium selection as instrumentsPoint identification with weaker assumptionsSweeting (2009)
QREBounded rationality generates unique equilibriumTestable, but imposes logistic choice structureMcKelvey-Palfrey

For the full selection rule comparison table, QRE implementation code, and Ciliberto-Tamer bounds procedure, see references/multiple-equilibria.md.


Identification Summary

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.


Structural IO Applications: Routing

For full model specifications, estimation code, and references, see references/io-applications.md and references/estimation-diagnostics.md.

ApplicationModel ClassEstimationReference File
Market structure (symmetric firms)Bresnahan-Reiss ordered probitMLEio-applications.md
Entry (asymmetric firms)Berry ordered equilibriumMLE with equilibrium constraintsio-applications.md
Entry (multiple equilibria)Ciliberto-Tamer partial identificationMoment inequalitiesio-applications.md
Conduct testingBLP supply side + markup equationGMM + Rivers-Vuong testio-applications.md
Vertical bargainingGeneralized Nash bargaining (Horn-Wolinsky)GMM with outside option instrumentsio-applications.md
Procurement/first-price auctionsBNE bidding + GPV inversionNonparametricio-applications.md
Dynamic oligopolyMPE (Ericson-Pakes)CCP two-step (Bajari-Benkard-Levin)estimation-diagnostics.md
Collusion sustainabilityRepeated game + trigger strategiesThreshold discount factorequilibrium-concepts.md

Integration with compound-science

  • Use identification-critic agent to verify equilibrium existence, uniqueness, and stability properties before reporting results
  • Use structural-modeling skill for the estimation machinery (GMM, MLE, NFXP, MPEC) when the game-theoretic structure is already set up
  • Use identification-critic agent to stress-test the game-theoretic identification argument — exclusion restrictions, rank conditions, separability assumptions
  • Use the identification-critic agent (or identification-proofs skill) to formalize the full identification argument: target parameter → model → equilibrium concept → moment conditions → rank condition
  • Use numerical-auditor agent to design Monte Carlo studies verifying identification and estimator performance in your specific game

Common Anti-Patterns

Anti-PatternProblemBetter Approach
Assuming unique equilibrium without verificationModel may have multiple equilibria; point estimates are identification-assumption-dependentEnumerate all Nash equilibria at estimated parameters; verify uniqueness or state selection rule
Using complete-information entry model when firms have private informationEquilibrium concept is wrong; identification failsUse incomplete-information model (Seim 2006, Bajari-Hong-Ryan 2010) or test for information structure
Ignoring the multiple equilibria problem in partial identificationInference is invalid under point identification when set identification is requiredUse Ciliberto-Tamer bounds or impose and justify a selection rule
Conduct test with weak instrumentsLow power to reject Bertrand; cannot distinguish conductReport first-stage relevance; use optimal instruments (BLP supply side)
Treating equilibrium prices as exogenous regressors in demandPrices are endogenous (set in equilibrium); OLS demand estimates are biasedInstrument with cost shifters; use BLP/IV approach
Estimating bargaining weight without outside option variationβ is not identified without variation in outside optionsFind instruments for outside options (market-level variation in alternatives)
Nash reversion assumption in collusion test without threshold testAssumes away the inference problemEstimate threshold discount factor; test whether δ* is plausible given observed interest rates
Not reporting equilibrium verificationReferees cannot assess model validityAlways report that estimated parameters support equilibrium existence

Method Selection Guide

SettingModelEquilibrium ConceptEstimation ApproachKey Reference
Oligopoly market structureComplete information entryNash (ordered selection)Ordered probit MLEBresnahan-Reiss (1991)
Asymmetric firm entryComplete information entryNash (ordered selection)MLE with equilibrium constraintsBerry (1992)
Entry with multiple equilibriaPartial identificationNash (all equilibria)Moment inequalitiesCiliberto-Tamer (2009)
Entry with private cost infoBayesian gameBayesian Nash (threshold)MLE / two-stepSeim (2006)
Conduct: competitive vs. collusiveOligopoly pricingNash in prices/quantitiesBLP supply + Rivers-Vuong testBerry-Levinsohn-Pakes (1995)
Vertical bargainingNash bargainingGeneralized Nash solutionGMM with outside option instrumentsHorn-Wolinsky (1988), Crawford-Yurukoglu (2012)
Procurement auctionsFirst-price sealed-bidBayesian Nash (bidding)GPV nonparametric inversionGuerre-Perrigne-Vuong (2000)
Takeover/merger auctionsAscending auctionDominant strategy (IPV)Order statistics / MLEAthey-Haile (2002)
Common value auctionsAffiliated valuesBNE (affiliated)Parametric MLELi-Perrigne-Vuong (2002)
Dynamic oligopolyMarkov perfect equilibriumMPECCP two-step (Bajari-Benkard-Levin)Pakes-McGuire (1994), Bajari et al. (2007)
Collusion sustainabilityRepeated gameSubgame perfectThreshold discount factor estimationGreen-Porter (1984), Porter (1983)
Matching marketsStable matchingStable (Gale-Shapley)Revealed preference from match outcomesFox (2010), Choo-Siow (2006)
Small 2-player game (theory)Normal formNash (all equilibria)nashpy / gambit computation—

Decision heuristic:

  1. Is the game static or dynamic?
    • Dynamic → Markov perfect equilibrium; use CCP two-step (Bajari-Benkard-Levin 2007)
    • Static → proceed below
  2. Is information complete or incomplete?
    • Incomplete (private types) → BNE; use threshold strategy estimation or GPV for auctions
    • Complete → Nash equilibrium; proceed below
  3. Are there multiple equilibria at plausible parameter values?
    • Yes, and willing to impose selection → ordered probit / Berry (1992)
    • Yes, and not willing to impose selection → moment inequalities / Ciliberto-Tamer (2009)
    • No → standard MLE or GMM
  4. Is the question about conduct?
    • Use BLP supply side + Rivers-Vuong test, or Rotemberg-Saloner markup test
  5. Is bargaining the mechanism?
    • Use generalized Nash bargaining with outside option instruments

Reference Files

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 comparison
  • references/equilibrium-computation.md — Computing Nash, BNE, and SPE: best response iteration, support enumeration, Gambit solver integration, linear complementarity, dynamic programming
  • references/multiple-equilibria.md — Selection rules (risk dominance, QRE, ordered equilibrium), QRE implementation code, Ciliberto-Tamer set identification procedure, multiplicity-as-variation
  • references/identification-in-games.md — Exclusion restrictions, rank conditions (Bajari-Hong-Ryan), two-step estimation logic, competitive effect identification, conduct parameter identification and failure modes
  • references/io-applications.md — Entry models (Bresnahan-Reiss, Berry, Ciliberto-Tamer), conduct testing (BLP supply, Rivers-Vuong), bargaining (Nash, Rubinstein), auction foundations
  • references/estimation-diagnostics.md — Estimation code (MLE, two-step, MPEC, moment inequalities), convergence diagnostics, model fit tests, equilibrium verification

Mitgelieferte Dateien

Das Modell liest diese Dateien bei Bedarf, während der Skill geladen ist. Sie werden als lesbare Dateien bereitgestellt und niemals ausgeführt.

Häufig gestellte Fragen

Was macht der KI-Skill Game Theory?

This skill covers game-theoretic methods in structural econometrics and industrial organization. Use when the user is working with strategic interactions, equilibrium analysis, or game-theoretic structural models — including entry games, conduct testing, auction models with strategic bidding, bargaining, or matching markets. Triggers on "Nash equilibrium", "subgame perfect", "best response", "strategic interaction", "entry game", "conduct testing", "auction", "mechanism design", "matching market", "bargaining", "BNE", "Bayesian Nash", "static game", "dynamic game", "repeated game", "multipl...

Warum Game Theory in TypingMind nutzen?

Weil Sie den Skill einmal installieren und mit jedem Modell verwenden können. Game Theory besteht aus reinem Markdown statt aus anbieterspezifischem Code. So funktioniert derselbe Skill mit GPT-5, Claude, Gemini, Grok oder einem lokalen Modell – und Sie können das Modell mitten im Chat wechseln, ohne dass der Skill seine Funktion verliert. TypingMind verwendet Ihre eigenen API-Schlüssel. Sie bezahlen die Anbieter daher direkt statt über ein Abonnement pro Nutzerplatz, und Ihre Skills und Chats bleiben in Ihrem eigenen Speicher.

Wie installiere ich Game Theory in TypingMind?

Öffnen Sie in TypingMind Plugins → Skills → Von GitHub installieren und fügen Sie https://github.com/brycewang-stanford/Auto-Empirical-Research-Skills/tree/main/skills/11-James-Traina-compound-science/skills/game-theory ein. TypingMind liest die Datei SKILL.md, bündelt die zugehörigen Dateien und installiert alles als Skill, den Sie für jeden Chat einzeln aktivieren können.

Welche KI-Modelle können Game Theory nutzen?

Jedes Modell, das Sie mit TypingMind verbinden. KI-Skills bestehen aus reinen Markdown-Anweisungen statt aus anbieterspezifischem Code. Daher können GPT, Claude, Gemini, Grok und lokale Modelle diesen Skill laden, wenn eine Anfrage dazu passt.

Wie viele KI-Modelle kann ich mit Game Theory verwenden?

So viele Sie möchten. In TypingMind können Sie Game Theory mit jedem Modell verwenden, das Skills unterstützt, etwa mit GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama. Dabei nutzen Sie Ihre eigenen API-Schlüssel.

Ist der KI-Skill Game Theory kostenlos?

Der Skill wird von brycewang-stanford auf GitHub veröffentlicht. Prüfen Sie im Repository, ob dort Lizenzbedingungen angegeben sind. Sie bezahlen nur Ihren eigenen KI-Anbieter für die verwendeten Token.

Was sind KI-Skills?

Ein KI-Skill ist ein wiederverwendbares Anweisungspaket, das einem KI-Modell vermittelt, wie es eine bestimmte Aufgabe erledigt. Es folgt dem offenen Format Agent Skills: Die Datei SKILL.md enthält den Namen und die Beschreibung des Skills. Hinzu kommen bei Bedarf Skripte, Vorlagen oder Referenzdateien für das Modell. Das Modell liest die Anweisungen nur, wenn Ihre Anfrage zum Skill passt. Ein installierter Skill verursacht daher erst Kosten, wenn er verwendet wird.

Wie unterscheiden sich KI-Skills von Plugins oder MCP-Servern?

Ein Plugin oder MCP-Server stellt einem Modell neue aufrufbare Tools bereit – Code, der auf einem System ausgeführt wird und ein Ergebnis zurückgibt. Ein KI-Skill vermittelt dem Modell stattdessen Wissen und Vorgehensweisen: wie es eine Aufgabe angeht, welche Schritte es befolgt und wie eine gute Ausgabe aussieht. Skills bestehen aus reinem Markdown und kommen daher ohne Server, API-Schlüssel und Laufzeitumgebung aus. Sie funktionieren mit jedem Modell.

Alle anzeigen

Jetzt eigenen KI-Arbeitsbereich einrichten

Abonnieren Sie unseren Newsletter und erfahren Sie mehr über neue Funktionen und kommende Gewinnspiele 👇