Created
July 19, 2020 03:44
-
-
Save JohnDeJesus22/d7bf1e0ab8c2083da8617a993deee22a to your computer and use it in GitHub Desktop.
Matthew's correlation coefficient
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
numerator = (cm[1,1] * cm[0,0]) - (cm[0,1] * cm[1,0]) | |
denominator = sqrt((cm[1,1] + cm[0,1]) * (cm[1,1] + cm[1,0]) * (cm[0,0] + cm[0,1]) * (cm[0,0] + cm[1,0])) | |
mcc = numerator/denominator |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment