Consider two alleles, A and B. Denote the density of A by

.
We have
* a 2-by-2 payoff matrix

* a 2-by-2 matrix of probabilities describing the chance of interacting with other types:

.
Expected fitness of A's:
Similarly, expected fitness of B individuals is
- Note that
, and similarly
, so all we really need to specify are
and
.
| case |
|
|
| randomly mixed |
|
|
| perfectly sorted |
|
|
partial assortment |
|
|
Example: prisoner's dilemma
- agents can choose to help each other: helping benefits the other guy by
, but costs you (the helper)
. We assume
to make it interesting.
- Consider two pure strategies: C and D (cooperate and defect).
- Denote density of C by
.
Payoff matrix:
Plugging these in gives
Expected fitness of C:
Similarly, expected fitness of D:
William D. Hamilton: