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

Sensitivity, Specificity metrics formulas #508

Open
jxu opened this issue May 14, 2024 · 1 comment
Open

Sensitivity, Specificity metrics formulas #508

jxu opened this issue May 14, 2024 · 1 comment

Comments

@jxu
Copy link

jxu commented May 14, 2024

https://yardstick.tidymodels.org/reference/sens.html

For the table, I think you should use TP, FP, FN, TN instead of A, B, C, D to make things clearer like wikipedia does. https://en.wikipedia.org/wiki/Confusion_matrix

Also the formulas don't need to be written in mathjax as they're too wide for the page on my browser and don't use any special symbols.
I think it's much more intuitive to write
P (positive) = TP + FN
PP (predicted positive) = TP + FP
N (negative) = FP + TN
Sensitivity = TP / P
Specificity = TN / N
Precision, PPV = TP / PP

@jxu
Copy link
Author

jxu commented Jun 20, 2024

@EmilHvitfeldt I can attempt a PR of this, if you consider it a good idea.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant