RSS 2.0 Feed

» Welcome Guest Log In :: Register

Pages: (14) < [1] 2 3 4 5 6 ... >   
  Topic: Evolutionary Computation, Stuff that drives AEs nuts< Next Oldest | Next Newest >  
sledgehammer



Posts: 533
Joined: Sep. 2008

(Permalink) Posted: June 18 2009,11:05   

Quote (Bob O'H @ June 17 2009,23:58)
   
Quote
Favorable Mutations:

c...  Compute mean absolute fitness effect for favorable mutations.

     sum = 0.
     d2  = 1.

     do i=1,1000000
        d1 = d2
        d2 = exp(-alpha_fav*(0.000001*i)**gamma_fav)
        sum = sum + d1 + d2
     end do

     fav_mean = 0.0000005*sum*max_fav_fitness_gain

Ugh.  That's a horrible way to do the integration.  I recognise the density (George Box was promoting it in the 50s), and it has an analytic solution: alpha_fav*gamma_fav*Gamma(1/gamma_fav), where Gamma() is the gamma function.

(ref: Box, G. E. P. 1953. A note on regions for tests of kurtosis. Biometrika 40: 465-468)

Also, where does the 0.0000005 come from?  I'm always suspicious of constants like that.

Well it is 1/2*1/1,000,000, and since it is a density, the sum-as-integral needs to be scaled, but I thought the (0.000001*i) was supposed to do that.
 I think it's a boo-boo.

--------------
The majority of the stupid is invincible and guaranteed for all time. The terror of their tyranny is alleviated by their lack of consistency. -A. Einstein  (H/T, JAD)
If evolution is true, you could not know that it's true because your brain is nothing but chemicals. ?Think about that. -K. Hovind

  
  418 replies since Mar. 17 2009,11:00 < Next Oldest | Next Newest >  

Pages: (14) < [1] 2 3 4 5 6 ... >   


Track this topic Email this topic Print this topic

[ Read the Board Rules ] | [Useful Links] | [Evolving Designs]