How can I export conclusion from this confusion matrix table ?

GeorgeOik1999
GeorgeOik1999 New Altair Community Member
edited November 2024 in Community Q&A
I have 4 chest pain types , what is the actual correlation between reality and predictions? Should I take into account the recall or the precision?
Tagged:

Best Answer

  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Answer ✓
    Hi!

    The classical correlation is defined for two sets of numbers, it can't be calculated for this matrix. The accuracy (percentage of correct results) is what you get, and you are probably interested in the recall. 

    The importance of precision and recall (specificity and sensitivity) depends on the use case. Sometimes you're interested in a high recall for one class, sometimes in a high precision or the overall accuracy.

    Here you have a very imbalanced data set with lots of ASY cases which skews the predictions into that direction. This results in a good recall for this class but bad values for the others. You might want to downsample that class, or use example weights so the models can predict the other classes better.

    Regards,

    Balázs

Answers

  • MartinLiebig
    MartinLiebig
    Altair Employee
    this really really depends on your use case.

    Best,
    Martin
  • BalazsBaranyRM
    BalazsBaranyRM New Altair Community Member
    Answer ✓
    Hi!

    The classical correlation is defined for two sets of numbers, it can't be calculated for this matrix. The accuracy (percentage of correct results) is what you get, and you are probably interested in the recall. 

    The importance of precision and recall (specificity and sensitivity) depends on the use case. Sometimes you're interested in a high recall for one class, sometimes in a high precision or the overall accuracy.

    Here you have a very imbalanced data set with lots of ASY cases which skews the predictions into that direction. This results in a good recall for this class but bad values for the others. You might want to downsample that class, or use example weights so the models can predict the other classes better.

    Regards,

    Balázs