• Posts
  • RSS
  • ◂◂RSS
  • Contact

  • Careful With Trailing Averages

    January 1st, 2022
    covid-19
    With covid, it is common for people to look at seven day trailing averages. For example, the MA Covid Dashboard has "the seven day average of percent positivity is 18.42%". While this isn't exactly wrong, it's not a good fit for a rapidly rising number. Here's how it's usually presented:

    This gives the impression that 18.4% is the number for 12/30, but it's clearer to think of it as a number for 12/27. That way it represents our best guess of how things were on the 27th by looking three days into the future and three days into the past to average out fluctuations:

    On the other hand, these variations are clearly not noise; it's a weekly cycle. People are much more likely to test positive on the weekend than during the week:

    Monday 89%
    Tuesday 85%
    Wednesday 96%
    Thursday 93%
    Friday 113%
    Saturday 172%
    Sunday 145%

    (Average ratio by day of week comparing daily test positivity to the seven day average of test positivity centered on that day.)

    This makes sense: weekend testing will include a larger proportion of people who are getting tested because they are sick.

    Instead of trying to average this pattern away, we can use it, scaling each day by the inverse of its average departure from the 7d average:

    This gives us a metric that is as responsive as the daily numbers with less of the day-by-day variation from from measuring different populations on different days. It's not perfect, you can see it getting things wrong by treating Thanksgiving and Christmas like normal days, but it's pretty good.

    When case numbers are changing quickly, this responsiveness is helpful. Using the most recent seven days we'd get a test positivity of 18%, but the most recent weekday-adjusted daily number is 23% (+25%).

    Comment via: facebook, lesswrong

    Recent posts on blogs I like:

    Be less scared of overconfidence

    deferring to markets • deferring to experts • deferring to low-information heuristics • why they fail • blindness to outliers • what to do instead

    via benkuhn.net November 30, 2022

    Corncob Dolls

    I went to a farm and at the farm I got to see a corncrib and the corn that had fell out of the corncrib that no one wanted I got to use my fingers to take off the corn kernels and once the cobs were empty I put them in a bag and then once I got back to the…

    via Anna Wise's Blog Posts November 7, 2022

    Light Switch

    When I got my loft bed it was just so annoying every morning to have to get out of bed, climb down the ladder, turn the light on, and climb back up, just so I could see stuff. I decided to make a string for my light switch because I really wanted to be abl…

    via Lily Wise's Blog Posts November 7, 2022

    more     (via openring)


  • Posts
  • RSS
  • ◂◂RSS
  • Contact