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

GPA/SD incorrectly calculated #115

Closed
au5ton opened this issue Feb 7, 2023 · 9 comments
Closed

GPA/SD incorrectly calculated #115

au5ton opened this issue Feb 7, 2023 · 9 comments
Labels
bug Something isn't working question Further information is requested
Milestone

Comments

@au5ton
Copy link
Member

au5ton commented Feb 7, 2023

This has been kind of a long-standing issue. A good example of this is:

How should this be addressed?

@au5ton au5ton added bug Something isn't working question Further information is requested labels Feb 7, 2023
@au5ton au5ton added this to the v1.1.0 milestone Feb 7, 2023
@au5ton au5ton moved this to 📋 Backlog in Backlog Feb 7, 2023
@au5ton au5ton added this to Backlog Feb 7, 2023
@au5ton au5ton moved this from 📋 Backlog to 🔖 Ready in Backlog Feb 7, 2023
@au5ton au5ton changed the title GPA incorrectly calculated GPA/SD incorrectly calculated Feb 7, 2023
@au5ton
Copy link
Member Author

au5ton commented Feb 7, 2023

We already have a precedent of hiding a Badge when the GPA or SD is 0. Maybe this logic could also apply to whether or not to update the GPA value for a Course or Instructor.

...(gpa.average !== 0 ? [
{
key: 'gpa',
text: formatGPAValue(gpa.average),
color: grade2Color[getGradeForGPA(gpa.average)],
caption: 'Grade Point Average',
}
] : []),
...(gpa.average !== 0 ? [
{
key: 'sd',
text: formatSDValue(gpa.standardDeviation),
color: grade2Color[getGradeForStdDev(gpa.standardDeviation)],
caption: 'Standard Deviation',
}
] : []),

Maybe include GPA if typeof GPA === 'number' && GPA > 0. Maybe this could also be addressed at a data-intake level? Should we be making sure that the GPA column in the CSV files isn't 0, but blank?

@au5ton
Copy link
Member Author

au5ton commented Feb 7, 2023

Another good example to study: https://next.cougargrades.io/i/Asghar,%20Mohammad

@au5ton au5ton moved this from 🔖 Ready to 📋 Backlog in Backlog Feb 10, 2023
@au5ton
Copy link
Member Author

au5ton commented Feb 11, 2023

Another example:

@au5ton
Copy link
Member Author

au5ton commented Feb 13, 2023

@au5ton au5ton moved this from 📋 Backlog to 📆 Planned in Backlog Feb 13, 2023
@au5ton
Copy link
Member Author

au5ton commented Feb 20, 2023

This could potentially be addressed by setting AVG_GPA with null if it is 0 and there is no enrollment information. Maybe the existing algorithms can accommodate null?

@au5ton
Copy link
Member Author

au5ton commented Feb 25, 2023

@au5ton
Copy link
Member Author

au5ton commented Feb 26, 2023

The code below is used for determining whether or now to include a section/row in a Course/Instructor's GPA:

https://github.com/cougargrades/types/blob/24ba72ed0dcbcb26fdd8a0e8dcf34f306ec03e8a/src/GradeDistributionCSVRow.ts#L202-L207

@au5ton au5ton moved this from 📆 Planned to 🏗 In progress in Backlog Feb 26, 2023
@au5ton
Copy link
Member Author

au5ton commented Feb 26, 2023

Implemented in: cougargrades/publicdata@5521b25

@au5ton
Copy link
Member Author

au5ton commented Feb 26, 2023

Before/After:
Screenshot 2023-02-26 at 4 01 47 AM
Screenshot 2023-02-26 at 4 02 00 AM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
Status: Done
Development

No branches or pull requests

1 participant