pygambit.gambit.MixedStrategyProfile#
- class pygambit.gambit.MixedStrategyProfile#
Represents a mixed strategy profile over the strategies in a
Game.A mixed strategy profile is a dict-like object, mapping each strategy in a game to the corresponding probability with which that strategy is played.
Mixed strategy profiles may represent probabilities as either exact (rational) numbers, or floating-point numbers. These may not be combined in the same mixed strategy profile.
Changed in version 16.1.0: Profiles are accessed as dict-like objects; indexing by integer player or strategy indices is no longer supported.
See also
Game.mixed_strategy_profileCreates a new mixed strategy profile on a game.
MixedBehaviorProfileRepresents a mixed behavior profile over a
Gamewith an extensive representation.
Methods
Creates a mixed behavior profile which is equivalent to this mixed strategy profile.
copy()Creates a copy of the mixed strategy profile.
Returns the Lyapunov value (see [McK91]) of the strategy profile.
Returns the maximum regret of any player.
Iterate over the mixed strategies in the profile.
Create a profile with the same strategy proportions as this one, but normalised so probabilities for each player sum to one.
payoff(player)Returns the expected payoff to a player if all players play according to the profile.
player_regret(player)Returns the regret of player for playing their mixed strategy, if all other players play according to the profile.
strategy_regret(strategy)Returns the regret to playing strategy, if all other players play according to the profile.
strategy_value(strategy)Returns the expected payoff to playing the strategy, if all other players play according to the profile.
strategy_value_deriv(strategy, other)Returns the derivative of the payoff to playing strategy, with respect to the probability that other is played.
Attributes
The game on which this mixed strategy profile is defined.
