Fitness proportionate selection

Also known as: roulette wheel selection

On this page 7

Fitness proportionate selection, also called roulette wheel selection, is a parent selection operator in which each individual is chosen with a probability equal to its fitness divided by the total fitness of the population. In evolutionary computation, it is the classic selection scheme of the original genetic algorithm and the one assumed by the schema theorem.

The method gives fitter candidates more offspring while still allowing weaker ones to reproduce occasionally. Its simplicity made it a textbook default, but its behavior depends heavily on how fitness values are scaled, which is why practitioners often replace it with rank-based or tournament selection.

How the roulette wheel assigns probabilities

For a population of N individuals with fitness values f1 to fN, the selection probability of individual i is fi / Σf. Each individual therefore occupies a slice of an imaginary wheel whose angle is proportional to its fitness, and one spin selects one parent.

The expected number of copies an individual receives in a full mating pool equals fi divided by the mean fitness. An individual twice as fit as average expects two copies; one at half the average expects half a copy. The table below shows a small population of four.

IndividualFitnessProbabilityExpected copies (N = 4)
A400.401.6
B300.301.2
C200.200.8
D100.100.4
Selection probabilities in a four-member population

Two preconditions follow from the formula. Fitness must be non-negative, and the sum must be greater than zero. Negative objective values or minimization problems therefore require a transformation before the operator can be applied.

Sampling algorithms and their cost

The probability rule can be implemented in several ways. They produce the same expected distribution but differ in computational cost and sampling variance, which the following comparison summarizes.

MethodCost per selectionVarianceNotes
Linear scan of cumulative sumsO(N)HighSimplest; fine for small populations
Binary search on cumulative sumsO(log N)HighNeeds O(N) prefix sums per generation
Stochastic acceptanceO(1) expectedHighFast when fitness values are similar
Alias methodO(1)HighNeeds O(N) table setup each generation
Stochastic universal samplingO(N) for all N picksMinimalOne spin with N equally spaced pointers
Implementations of fitness proportionate selection

Stochastic universal sampling, proposed by James Baker in 1987, deserves special attention. Independent spins can, by chance, give a strong individual no copies at all. A single spin with evenly spaced pointers guarantees that each individual receives either the floor or the ceiling of its expected count, which removes this sampling error at no extra cost.

Selection pressure and the scaling problem

The central weakness of the method is that selection pressure depends on raw fitness differences, not on rank. Early in a run, one lucky individual may hold most of the wheel and flood the next generation, causing premature convergence. Late in a run, when all fitness values are close, every slice looks alike and the search degenerates into a near-random walk.

The operator is also not invariant to translation. Adding a constant of 1,000 to every fitness value leaves the ranking unchanged but almost equalizes the probabilities. The same optimization problem can therefore behave very differently depending on an arbitrary offset in the fitness function.

Classic remedies transform fitness before selection. The table below lists the most common ones.

TechniqueTransformationMain effect
Linear scalingf’ = a·f + b with fixed best-to-mean ratioCaps dominance of the best individual
Sigma truncationSubtract mean minus c standard deviationsAdapts pressure to population spread
WindowingSubtract the worst fitness of recent generationsRemoves arbitrary offsets
Boltzmann scalingExponential with decreasing temperatureRaises pressure gradually over time
Power scalingf’ = f raised to kSharpens or flattens differences
Fitness scaling techniques

Comparison with other selection operators

Modern evolutionary algorithms more often use tournament selection or rank-based selection, because both depend only on the ordering of individuals. The comparison below highlights the practical differences.

PropertyFitness proportionateRank-basedTournament
UsesRaw fitness valuesRanks onlyPairwise comparisons
Pressure controlIndirect, via scalingDirect, via rank weightsDirect, via tournament size
Sorting neededNoYes, O(N log N)No
Handles negative fitnessNoYesYes
Parallel friendlyNeeds global sumNeeds global sortFully local
Fitness proportionate selection versus alternatives

Fitness proportionate selection remains useful when fitness magnitudes carry real meaning, for example when an individual with twice the measured yield should genuinely have twice the reproductive chance. It is also the natural choice for theoretical analysis, since the schema theorem and many convergence results are stated for it.

In the schema theorem, the expected number of instances of a schema in the next generation grows with the ratio of the schema’s average fitness to the population mean. This proportional growth rate exists only because selection probabilities follow raw fitness, which explains why John Holland’s analysis of implicit parallelism is tied so closely to this operator. Under rank-based or tournament selection, the same reasoning requires different and usually more complex derivations.

In steady-state genetic algorithms, where only one or two individuals are replaced per step, the operator is still applicable, but the total fitness must be updated incrementally after each replacement to avoid recomputing the sum over the entire population.

Practical guidelines and common mistakes

Most problems with roulette wheel selection come from the design of the fitness function rather than from the operator itself. Before tuning mutation or crossover rates, practitioners should inspect the ratio between the best and the mean fitness in each generation, because a ratio far above two in early generations usually predicts a loss of diversity.

  • Shift or invert fitness for minimization problems, for example by using a large constant minus cost, and check that no value becomes negative.
  • Prefer stochastic universal sampling over repeated independent spins to reduce variance.
  • Combine with elitism so that the best solution is never lost through bad luck.
  • Monitor population diversity; a sudden collapse usually signals a super-individual.
  • Avoid fitness values near zero for all individuals, which makes the probabilities numerically unstable.

Stripped to the essentials

Imagine a raffle where each candidate gets tickets in proportion to its score. A candidate with twice the score holds twice the tickets. Each draw picks a winner to become a parent of the next generation.

Better candidates win more often, but weaker ones still have a chance. The catch is that one runaway leader can buy almost every ticket, and then the group loses variety. That is why programmers often adjust the scores first or use a different method.

Where it is applied

A logistics team uses a genetic algorithm to plan delivery routes for 60 vans. Each candidate plan receives a fitness of 100,000 divided by its total driving distance, so shorter plans score higher and every value stays positive. The population holds 200 plans, and stochastic universal sampling fills the mating pool each generation.

In early tests, one plan scored far above the rest and took over the population within ten generations, leaving routes about 8 percent longer than the known best. The team added linear scaling that limits the best plan to twice the average share and kept the two best plans through elitism.

With these changes, diversity stayed high for longer, and the algorithm found routes within 2 percent of the best known solution after 400 generations, which was good enough for daily dispatch planning.