egttools.analytical.utils.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[double]) – 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) – Total number of individuals in the population.beta (
float) – Intensity of selection.nb_points (
int) – Number of discrete invader values to evaluate, by default 100.atol (
float) – 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: