Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.MixedBehaviorProfile#

class pygambit.gambit.MixedBehaviorProfile#

Represents a mixed behavior profile over the actions in a Game.

A mixed behavior profile is a dict-like object, mapping each action at each information set in a game to the corresponding probability with which the action is played, conditional on that information set being reached.

Mixed behavior profiles may represent probabilities as either exact (rational) numbers, or floating-point numbers. These may not be combined in the same mixed behavior profile.

Changed in version 16.1.0: Profiles are accessed as dict-like objects; indexing by integer player, infoset, or action indices is no longer supported.

See also

Game.mixed_behavior_profile

Creates a new mixed behavior profile on a game.

MixedStrategyProfile

Represents a mixed strategy profile over a Game.

Methods

action_regret(action)

Returns the regret to playing action, if all other players play according to the profile.

action_value(action)

Returns the expected payoff to the player of playing an action conditional on reaching its information set, if all players play according to the profile.

as_strategy()

Returns a MixedStrategyProfile which is equivalent to the profile.

belief(node)

Returns the conditional probability that a node is reached, given that its information set is reached.

copy()

Creates a copy of the behavior strategy profile.

infoset_prob(infoset)

Returns the probability with which an information set is reached.

infoset_regret(infoset)

Returns the regret to the player for playing their mixed action at infoset, if all other players play according to the profile.

infoset_value(infoset)

Returns the expected payoff to the player conditional on reaching an information set, if all players play according to the profile.

is_defined_at(infoset)

Returns whether the profile has probabilities defined at the information set.

liap_value()

Returns the Lyapunov value (see [McK91]) of the strategy profile.

max_regret()

Returns the maximum regret of any player.

mixed_actions()

Iterate over the mixed actions specified by the profile.

mixed_behaviors()

Iterate over the mixed behaviors in the profile.

node_value(player, node)

Returns the expected payoff to player conditional on play reaching node, if all players play according to the profile.

normalize()

Create a profile with the same action proportions as this one, but normalised so probabilities for each infoset sum to one.

payoff(player)

Returns the expected payoff to a player if all players play according to the profile.

realiz_prob(node)

Returns the probability with which a node is reached.

Attributes

game

The game on which this mixed behavior profile is defined.