aradzie / keybr.com

The smartest way to learn touch typing and improve your typing speed.
https://www.keybr.com/
GNU Affero General Public License v3.0
1.69k stars 152 forks source link

Use moving average instead of all time average for comparison graph #98

Open JZro opened 9 months ago

JZro commented 9 months ago

Context: I have done about 600 lessons and made quite an improvement, from average 25wpm to about 50wpm.

Unfortunately, this graph is showing my all time average which is quite low and brings no value when comparing to other people.

image

Solution proposal: Use only last X (10? 20?) lessons to calculate average speed to compare with other users.

eikowagenknecht commented 9 months ago

Same goes for the other graphs as well (heatmap, key frequency, ...).

SUPERCILEX commented 5 months ago

Came to create an issue about comparing the current lesson's stats to the average. Also not that useful right now given that the average will swing wildly as new keys are introduced. I'd say probably reset the moving average every time a new key is introduced and limit it to the last 100 lessons, whichever comes first.

ZenithFlux commented 4 months ago

+1 this. There is one more problem with absolute averages. The longer you calculate average for something the more insignificant future values become. For example: a 100 wpm value on your 100th lesson will have bigger impact on your average while same value at your 1000th lesson will have almost no impact on your average. Therefore, as you practice more, it becomes increasingly less worthwhile to compare your current skill with your average.