egttools.plotting.simplified.check_if_there_is_random_drift¶
- check_if_there_is_random_drift(payoff_matrix, group_size, population_size=None, beta=None, nb_points=100, atol=1e-08)[source]¶
Check for pairs of strategies that exhibit random drift based on replicator gradients.
- Parameters:
payoff_matrix (ndarray) – Payoff matrix of shape (nb_strategies, nb_strategies) or appropriate for n-player games.
group_size (int) – Size of groups in the game.
population_size (int, optional default=None) – Total number of individuals in the population.
beta (float, optional default=None) – Intensity of selection.
nb_points (int, optional) – Number of discrete invader values to evaluate, by default 100.
atol (float, optional) – Absolute tolerance to consider the gradient as zero, by default 1e-8.
- Returns:
List of strategy index pairs (i, j) exhibiting drift (i.e. zero gradient across evaluated points).
- Return type: