NAVADMC / ADSM

A simulation of disease spread in livestock populations. Includes detection and containment simulation.
Other
10 stars 5 forks source link

Median Duration - which is correct? #951

Closed missyschoenbaum closed 5 years ago

missyschoenbaum commented 5 years ago

Can someone double check me on this, because I am feeling like this is insane.

When I run Sample Scenario, I come up with 3 different duration values, depending of what I am looking at. On the Results home, I show 76 as median duration. In the summary, I show 72 as median (50 percentile). If I export raw data and calculate in Excel, I get 74. I could understand a possibility for rounding error, but this seems like too much to be rounding error.

MedianinExcel

BryanHurst commented 5 years ago

@missyschoenbaum All three answers are correct. Depending on how you want to calculate the MEDIAN. We'll talk about it at the meeting today.

BryanHurst commented 5 years ago

Also of note, the summary.csv is outputting percentile and not medians.

missyschoenbaum commented 5 years ago

The 50th percentile is the median. Confirmed with statistician.

BryanHurst commented 5 years ago

I noticed that the summary.csv was not calculating percentiles correctly.

missyschoenbaum commented 5 years ago

Looks good!