(a)–(d) show how the population average p and q values are determined by model parameters. Strengthened selection can cause the most favorable strategy to move from the lower-right corner, maximum in-group favoritism, towards the lower-left corner, defection. Under some circumstances (K > 0), as shown here, increasing selection pressure β first enhances in-group favoritism, but opposes it when β exceeds a certain threshold. The greater the number of groups, the more biased individuals become: They maintain in-group helping at high levels, but shun helping the out-group. Increasing the strategy mutation (or experimentation) rate, u, leads to reduced in-group and out-group helping. An intermediate migration rate between groups most enhances in-group helping while most reducing out-group helping. Parameters: (a) N = 100, M = 100, b = 1, c = 0.1, u = 0.002, v = 0.1, (b) N = 100, β = 0.01, b = 1, c = 0.2, u = 0.01, v = 0.1, (c) N = 100, β = 0.01, M = 10, b = 1, c = 0.1, v = 0.15, (d) N = 100, β = 0.01, M = 15, b = 1, c = 0.15, u = 0.01. Results are averaged over T = 2 × 109 time steps.