Stats output from BehaviorSpace not giving mean and standard deviation for Spread of Disease

In the Spread of Disease Model in the Models Library, when I run the BehaviorSpace experiment ‘population-density’ and select Table and Stats Output using the default settings involving 10 repetitions, I do not get mean and standard deviation for number of ticks taken (for full infection) calculated across repetitions in the output stats file. Instead, every repetition is treated as an independent run, the mean is given as the ticks for that repetition and std is returned as N/A. I attach the Excel file of BehaviorSpace’s output. Any help would be most appreciated! :slight_smile:

I also encounter the same problem in the ‘environmental’ BehaviorSpace experiment, so I’m guessing the problem will be common to all the other pre-entered experiments too.

Spread of Disease population-density-stats-import2excel.xlsx (11.9 KB)

Hi Derek,

The stats output format aggregates data by tick, but the experiment you referenced outputs the final (and only) data point at a different tick for each run due to randomness in the model. Since it’s just a single row of values, I would recommend using Excel’s built-in functions such as MIN, MAX, and AVERAGE; BehaviorSpace’s stats output format is a bit overkill and not intended for this situation.

Isaac B.

Hi Isaac,

Thank you for your quick reply! That makes a lot of sense.

I created a quick fix by changing the stop condition to a standard value of 500 ticks, and having BehaviorSpace measure the number of ticks at the first instant when the population is fully infected. Stats output works fine with this version. Excel works too but this method has the benefit of getting BehaviorSpace to do the busy statistics work.

I attach the modified version containing the workaround in case it may be useful to anyone.

Spread of Disease-modified.nlogox (51.8 KB)

Thank you again, Isaac. You really helped me out! :smiley:

Best Wishes,

Derek