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

Fix calculation of average value in statistics #87

Open
mccartney opened this issue Feb 18, 2024 · 9 comments
Open

Fix calculation of average value in statistics #87

mccartney opened this issue Feb 18, 2024 · 9 comments
Labels
bug Something isn't working

Comments

@mccartney
Copy link
Contributor

I fail to understand what does phi (Φ) is supposed to mean in the Statistics page.
Screenshot_20240218-222431.jpg

@meikpiep
Copy link
Owner

It means 'average value'. In German, this is a usual sign for this. Is it unsuitable in English?

@meikpiep meikpiep added the question Further information is requested label Feb 18, 2024
@mccartney
Copy link
Contributor Author

Well, this was my first thought. But how come average is 4 if min is 24?

@mccartney
Copy link
Contributor Author

mccartney commented Feb 18, 2024

Also re English - I don't think the symbol is used that widely for average, at least in non technical contexts. But I am not a native speaker.

In such contexts I saw three letters "avg" being used.

@meikpiep
Copy link
Owner

"avg" should be fine.

Nevertheless, I didn't even read the values of the screenshot, sorry for that. Will investigate the numbers.

@meikpiep meikpiep added bug Something isn't working and removed question Further information is requested labels Feb 18, 2024
@meikpiep meikpiep changed the title Unclear meaning of phi in statistics Properly name the average value in statistics and fix its calculation Feb 20, 2024
@mccartney
Copy link
Contributor Author

Will investigate the numbers

Could it be that the actual logic of calculations is fine on paper, but it's based on incomplete data?

A random thought looking at:

val durationAverage = overall.solvedDurationSum / overall.gamesSolved

  • maybe the solvedDurationSum has data starting the moment the statistics were introduced (recently)
  • and overall.gamesSolved has a longer history?

@mccartney
Copy link
Contributor Author

Maybe use solvedDuration.size() instead of overall.gamesSolved as the denominator?

@meikpiep
Copy link
Owner

meikpiep commented Mar 8, 2024

Sorry for the delay, I'm kind of busy to calculate game difficulties on Azure, using a limited offer from Microsoft.

solvedDuration and other lists get cut to have a maximum of 50 values, so we can't use them as a source for all games played. Maybe, the data have to be restructured to enable proper calculations like this. That would lead to every installation being forced to reset their statistics...

@meikpiep
Copy link
Owner

meikpiep commented Mar 8, 2024

Feel free to add your ideas!

@meikpiep
Copy link
Owner

FYI: The label got corrected.

@meikpiep meikpiep changed the title Properly name the average value in statistics and fix its calculation Fix calculation of average value in statistics Mar 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants