Chadwick Gambit: Software Tools for Game Theory

pygambit.gambit.Game.mixed_behavior_profile#

Game.mixed_behavior_profile(data=None, rational=False) MixedBehaviorProfile#

Create a mixed behavior profile over the game.

If data is not specified, the profile is initialized to uniform randomization at each information set.

Parameters:
  • data (array_like of array_like of array_like, optional) – A nested list (or compatible type) with the same dimension as the action set of the game, specifying the probabilities of the actions.

  • rational (bool, optional) – If True, probabilities are represented using rational numbers; otherwise floating point numbers are used.

Raises:

UndefinedOperationError – If the game does not have a tree representation.

See also

random_behavior_profile

Create a MixedBehaviorProfile with randomly-drawn probabilities.