Talk:Confusion matrix/Operation Transposition

noted on Talk:Confusion_matrix that confusion matrices in statistics books more commonly have actual (ground truth) values as rows and predicted values as columns, as opposed to the current convention on Wikipedia, and proposes changing Wikipedia articles accordingly.

To avoid inconsistency during the process, suggests identifying all articles needing changes, so that most (if not all) can be done in a short time, such as during an edit-a-thon.

Please append an asterisk to each entry below if it contains an image requiring modification:


 * ✅ Confusion matrix
 * ✅ Template:DiagnosticTesting_Diagram
 * ✅ Template:SensSpecPPVNPV
 * ✅ transcludes Template:DiagnosticTesting_Example
 * ✅ Evaluation_of_binary_classifiers
 * ✅ Matthews_correlation_coefficient
 * ✅ Receiver_operating_characteristic
 * ✅ Diagnostic_odds_ratio
 * ✅ Total_operating_characteristic
 * ✅ Accuracy paradox
 * ✅ Prosecutor's_fallacy
 * ✅ File:Prosecutor_fallacy.svg Prosecutor_fallacy.svg ]]
 * ✅ Bayes'_theorem

User:Danilosilva128 additionally found these on 2022-02-10: and these on 2022-02-11: (all these new additions were based on searches for "statistics/statistical + test") — Preceding unsigned comment added by Danilosilva128 (talk • contribs) 15:29, 11 February 2022 (UTC)
 * Statistical_hypothesis_testing
 * Type_I_and_type_II_errors
 * Durbin–Wu–Hausman_test
 * Base_rate_fallacy
 * Multiple_comparisons_problem
 * Family-wise_error_rate
 * Prosecutor%27s_fallacy
 * False_discovery_rate
 * False_coverage_rate
 * Detection_theory (inconsistent ordering of positive/negative)
 * Confusion_of_the_inverse
 * Pre-_and_post-test_probability
 * Bayesian_inference
 * Rare_disease_assumption

The following articles need not be changed, as they already use the proposed convention (inconsistently with the ones above):


 * Binary_classification
 * Classification_rule
 * Whistled_language
 * Fairness_(machine_learning)

Many related articles need not be changed since they either use a template listed above or do not give a specific example of a confusion matrix.

Note: I covered all articles in the search for "confusion matrix", "table of confusion" and "contingency table". In the latter search, the articles either refer to a generic contingency table or already mention the keyword "confusion matrix". So I believe these are all the articles that need to be changed.

, since these are few articles, I think this can be done by the two of us. For instance, we decide the changes previously, and then a single person edits all the articles and clicks "Publish changes" at approximately the same time on all of them. What do you think? (I have no experience with edit-a-thon) Danilosilva128 (talk) 16:17, 8 May 2021 (UTC)
 * Thanks a lot for identifying the articles. That looks quite manageable and I'll be glad to do it tomorrow. The big one are the two templates Template:DiagnosticTesting_Diagram and Template:SensSpecPPVNPV. Since I worked on them before, shall I take them?
 * Curiously enough, there's a London meetup tomorrow. The last one I attended (virtually), we edited several articles together, pooling in resources and sharing tips. I've proposed it to see if anyone is interested. Cheers, cm&#610;&#671;ee&#9094;&#964;a&#671;&#954; 16:49, 8 May 2021 (UTC)
 * Sure, please take the two templates (and any other you wish). If no one is interested in the remaining ones, I can take them. Just let me know.
 * Thanks, I've created template:diagnostic testing diagram and template:diagnostic testing example so that their respective transclusions be switched over during the London meetup at 12:00 UTC (13:00 BST, 14:00 CET). I'll put a ✅ against those I've finished as above. Cheers, cm&#610;&#671;ee&#9094;&#964;a&#671;&#954; 10:17, 9 May 2021 (UTC)
 * P.S. I'll update the transclusions now. cm&#610;&#671;ee&#9094;&#964;a&#671;&#954; 12:36, 9 May 2021 (UTC)
 * I've done all the pages you've identified. When you get online, can you please check if I've missed anything? Thanks, cm&#610;&#671;ee&#9094;&#964;a&#671;&#954; 14:04, 9 May 2021 (UTC)
 * Thanks for being so quick! I checked all the articles and fixed the few things left that I noticed. It is all looking pretty good now. Thanks so much for helping with this! Danilosilva128 (talk) 14:44, 9 May 2021 (UTC)
 * My pleasure. Thanks for initiating the idea. May I get your opinion on one thing? Several of the articles using Template:diagnostic testing diagram introduce it with "Let us define an experiment from P positive instances and N negative instances for some condition. The four outcomes can be formulated in a 2×2 contingency table or confusion matrix, as follows:", though the diagram doesn't actually use "P" and "N" and the table is more than 2×2. Can you suggest a better way to introduce it? Cheers, cm&#610;&#671;ee&#9094;&#964;a&#671;&#954; 20:15, 9 May 2021 (UTC)