Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedStrategyProfile.strategy_value_deriv#

MixedStrategyProfile.strategy_value_deriv(strategy: Strategy | str, other: Strategy | str) float | Rational#

Returns the derivative of the payoff to playing strategy, with respect to the probability that other is played.

Raises:
  • MismatchError – If strategy or other is a Strategy from a different game.

  • KeyError – If strategy or other is a string and no strategy in the game has that label.