Re: Measuring Time to Convergence
- From: Inman Harvey <inmanh@xxxxxxxxxx>
- Date: Thu, 30 Jun 2005 16:20:51 +0100
Richard Marsden wrote:
I'm experimenting with a genetic algorithm at the moment to solve a problem.
For testing, I'm using problems that are small enough to allow a brute force attack. I then stop my genetic program when it gets with 5% of the calculated optimum fitness.
I am wanting to compare lots of different runs. Soon I'll be varying different parameters (mutation crossover, population size,etc).
So I need a way to collect statistics regarding the speed of convergence. For each setup, I run multiple models ("problems") and multiple runs with the same model.
First I tried the mean and standard deviation of the log of the number of required generations.
The reasoning behind the log was that I was seeing runs as low as a few hundred generations, and some over a million generations. With a strong positive skew in the distribution, the Normal distribution cannot be assumed.
Generally one can expect the distribution to be something very much like a Poisson Distribution -- which has the property that the Variance equals the Mean. So yes indeed you should expect the wide variances that you are reporting. There is a close relationship between Poisson Distributions and Binomial Distributions for large sample sizes.
I calculate the standard deviation to use in calculating an approximation of the sample mean's error (approximation because it isn't a normal distribution).
I'm not convinced the log solution represents the long runs correctly.
Therefore I tried without the log, and now I'm worried that they're over-represented! You need a lot of 100 generation runs to counteract a 1000000 generation run! (with a population of 90, I'm seeing a simple mean of about 3000 generations)
So what statistic is usually used to measure and compare generation counts?
Look up statistics related to Poisson Distributions. Because of the high variance, any Mean that you take from a series of runs is highly noisy. There are ways of getting confidence intervals, try Googling for "Poisson distribution confidence intervals".
Inman Harvey .
- Follow-Ups:
- Re: Measuring Time to Convergence
- From: Richard Marsden
- Re: Measuring Time to Convergence
- References:
- Measuring Time to Convergence
- From: Richard Marsden
- Measuring Time to Convergence
- Prev by Date: Measuring Time to Convergence
- Next by Date: Re: Measuring Time to Convergence
- Previous by thread: Measuring Time to Convergence
- Next by thread: Re: Measuring Time to Convergence
- Index(es):
Relevant Pages
|