Skip to content

Phi Coefficient Formula #163

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

Closed
santiviquez opened this issue Dec 12, 2024 · 2 comments
Closed

Phi Coefficient Formula #163

santiviquez opened this issue Dec 12, 2024 · 2 comments
Labels
good first issue Good for newcomers

Comments

@santiviquez
Copy link
Collaborator

We are missing the formula. It should be color-coded and described with arrows following the standards of other formulas present in the book.

Here it is standard Accuracy as an example:
Group 7 (4)

@santiviquez santiviquez added the good first issue Good for newcomers label Dec 12, 2024
@elcapo
Copy link

elcapo commented Jan 2, 2025

Hi @santiviquez,

The formula that appears in the Wikipedia article about the Phi coefficient, in other words, this:

$${\displaystyle {\upphi}={\frac {{\mathit {TP}}\times {\mathit {TN}}-{\mathit {FP}}\times {\mathit {FN}}}{\sqrt {({\mathit {TP}}+{\mathit {FP}})({\mathit {TP}}+{\mathit {FN}})({\mathit {TN}}+{\mathit {FP}})({\mathit {TN}}+{\mathit {FN}})}}}}$$

Is correct?

If so, I'd be happy to contribute by adding it.

@santiviquez
Copy link
Collaborator Author

Hi @elcapo that's correct. But I've just realized that this issue is duplicated since phi-coefficient is exactly the same as the Matthew’s Correlation Coefficient and that one has already been solved under this PR #168

But feel free to take another one.

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

No branches or pull requests

2 participants