File:Contingency table of test accuracy metrics.png - Wikipedia
Chi-Square Test of Independence in R - Easy Guides - Wiki - STHDA
probability theory - Direct proof for the chi-square value being chi-square distributed with one degree of freedom for a 2x2 contingency table - Mathematics Stack Exchange