Closed Sogolumbo closed 3 years ago
Side note: you compare [n-1] to [n-7]. Those are different days of the week. Was that intentional, why?
To calculate the uncertainty I suggest: S(t): infections per day t n: today/now i: shift Difference of the infection rate with one week of time difference: d(i) = S(n-i-1) - S(n-i-8)
Now wecalculate the mean 7 day difference of the past week: D_mean = np.mean(d([0:6])) And it's statistical uncertainty: D_std = np.std(d([0:6])) Now you only need to propagate the error to your result. Ask me for help if you need some.
I'm looking at the active cases, instead of the infection rate. This should be less volatile than the infection rate (but still volatile). I'm looking at a 1 week diff (lastDate is calculated from nowDate).
Looking at multiple changes and giving an uncertainty is a good idea, I will looking into it.
Thanks, I like the visual implementation.
Please also display the uncertainty of your calculation. I know it's pretty hard to find a meaningful procedure here. The estimation of the uncertainty does not have to be perfect if you explain which kind of (statistical) errors go into your calculation and which (systematic) errors are not taken into account (amount of testing, delayed test reporting due to holidays, ...).
I'm not really sure, how to calculate the statistical uncertainty in this case. Here are two (more or less problematic) ideas:
I just noticed that I wrote all of this thinking about the uncertainty of the infection rate when we need the uncertainty of the change if the infection rate. So my suggestions are wrong but as the thoughts and ideas are still relevant I'll leave this here.