 
 
 
 
 
   
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
 bits wide,
then all values  are equally likely and the Hamming
distance 
(to any target value) is
 are equally likely and the Hamming
distance 
(to any target value) is  
 bits must be a permutation.
But we are only testing a fraction (
 bits must be a permutation.
But we are only testing a fraction ( bits of
 bits of  )
of the output lines
and only
)
of the output lines
and only  of
 of  test cases.
 test cases.
The fitness function tests  bits so the fitness is Binomial
distributed with mean
 bits so the fitness is Binomial
distributed with mean 
 and standard deviation
 and standard deviation 
 
The chance of perfect solution is  
The Binomial distribution can be approximated by the Normal distribution.
 
 
 
 
