Re:The Economist's excess deaths model
by stonemetal12 on Tuesday May 25, 2021 @10:59AM
(#27277660)
>What should the amount of excess deaths be?
With several fake known inputs and there associated outputs we should be able to determine if the calculation is right.
The result on the real world data is not known but when calculating a statistic you should be able to figure out if you are calculating the right statistic or returning 42 for all inputs.
Here it is not as clear what the code should do. What should the amount of excess deaths be? In what ways would we change the logic such that the test case would break? If the input data set is static, isn't it more like a mock anyway?
I think for this reason you often see more sanity checks in research code because the should case is not as clearly defined.