speedtest-tracker icon indicating copy to clipboard operation
speedtest-tracker copied to clipboard

More Statistics like variance

Open AleksCee opened this issue 1 year ago • 4 comments

What about more statistic data on the dashboard like the https://en.wikipedia.org/wiki/Variance of the test over time to show the deviation in up-/downloads? Now at the top there is only the deviation in % to the test befor. But a chart over the time would be nice too.

AleksCee avatar Feb 20 '24 19:02 AleksCee

Hi @AleksCee,

Can you clarify more what you would like to see.

Like a chart with the average per day over x time range.

svenvg93 avatar Aug 14 '24 18:08 svenvg93

@svenvg93 the variance is the average deferral from the values. Here is a example: IMG_4285

AleksCee avatar Aug 14 '24 18:08 AleksCee

Then it might be coming in an open pr. It will have the average per charts 357473416-b3584d00-40d0-4c04-992c-fc2669352e8b

svenvg93 avatar Aug 14 '24 18:08 svenvg93

Cool, a variance also will be nice too. here the formular from my example chart:

minDownload = Math.round(Math.min.apply(null, data.map(function(val){return parseFloat(val);})));
maxDownload = Math.round(Math.max.apply(null, data.map(function(val){return parseFloat(val);})));
avgDownload = Math.round(data.reduce(function(sum,val){return sum += parseFloat(val);},0)/data.length);
stddiffDownload = Math.round(Math.sqrt(data.map(function(val){return parseFloat(val) - avgDownload;}).map(function(val){return val * val;}).reduce(function(sum,val){return sum += val;},0)/data.length));

stddiff is the diff from the average to a smoothed min/Max values

AleksCee avatar Aug 14 '24 18:08 AleksCee