At the end of each test the actual output is compared with the target output for that test. The bigger the difference the worse the fitness.
With Hamming fitness the difference is given by counting number of output bits which are different from the target.
The total fitness value is given by summing the difference for each test.
If the output is bits wide,
then all values
are equally likely and the Hamming
distance
(to any target value) is
The fitness function tests bits so the fitness is Binomial
distributed with mean
and standard deviation
The chance of perfect solution is
The Binomial distribution can be approximated by the Normal distribution.