Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Smooth trailing 7days, and smooth *before* calculating proportions #33

Closed
wants to merge 3 commits into from

Conversation

Zac-HD
Copy link
Contributor

@Zac-HD Zac-HD commented Oct 2, 2020

Fixes #21 and closes #25 (with thanks to @scottgigante). The two differences to #25 are that

  1. Instead of centering the smoothing window, we use the trailing seven days. This means that the effect of the shorter window does not impact the most recent days of data, which is where maintainers tend to be most concerned - otherwise there would be a big dip on weekends when the window was Thurs-Sun and not yet brought back up by Mon-Tues.

  2. The proportional calculations have been refactored from "average of proportions" to "proportion of averages" - which is much less impacted by random variations, and the obvious interpretation when the plain averages are visible in the previous chart.

@crflynn - I'm keen to get this merged soon, is there anything I can do to help that?

scottgigante and others added 3 commits October 2, 2020 10:44
This moves all the short-window imprecision to the earliest data, avoiding transient large swings in the most recent three days of data.
This shares our calculation logic and avoids inflating random noise in the downloads out of proportion due to order of operations.
@scottgigante
Copy link

Brilliant work, thanks @Zac-HD for taking my PR and making it better!

@Zac-HD
Copy link
Contributor Author

Zac-HD commented Mar 25, 2021

@crflynn - anything I can do to help get this merged?

@Zac-HD
Copy link
Contributor Author

Zac-HD commented Apr 9, 2022

@crflynn - ping, it's been a while but I'd still like to get this merged so that I can understand my download numbers. Anything I can do to help, or can you merge it as-is?

@Zac-HD
Copy link
Contributor Author

Zac-HD commented Apr 26, 2022

Closing this just to get it off my stack of open PRs 😕

@Zac-HD Zac-HD closed this Apr 26, 2022
@scottgigante
Copy link

Sad :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7-day smoothing
2 participants