DEV Community

Discussion on: The Github Contribution Stats

Collapse
 
____marcell profile image
Marcell Cruz

Nice project, but I think the contribution results are not making much sense right now, I think it should be more focused on the overall contribution, how is the calculation done ?

Collapse
 
lorddashme profile image
Dash Reyes • Edited

Hello! thanks for the comment, appreciated 😄. For the ratings calculation we've used some of the common statistic formula to get the final result, for example getting the Mean of the 3 data sets (which in our case the This Year, This Month, and This Week), when you have the Mean you can use it together with the Standard Deviation (Basically I considered this as the threshold for the score) to calculate the Z-Score which will be the basis for the ratings 😄. For more technical details you can also check the ContributionRatings.js which holds all the information for the calculation 😄.

Some comments have been hidden by the post's author - find out more