Read a two-by-two contingency table

Keep the numerator and denominator in the stated order. · 162 words

A museum tests a captioning rule on forty pictures. Twenty-four pictures show an animal. Of these, the rule marks eighteen as animals and misses six. Among the sixteen remaining pictures, the rule marks four as animals and correctly leaves twelve unmarked. Arrange actual content along the rows of a table and predicted labels along the columns. The first row adds to twenty-four and the second adds to sixteen. Checking both sums catches a misplaced count before any rates are calculated.

A visitor who inspects only the flagged pictures sees twenty-two pictures, since the eighteen correct flags appear alongside four false flags. Eighteen of those twenty-two pictures really contain an animal. A curator interested in finding every animal starts from a different set of twenty-four actual animal pictures. The same eighteen correct flags enter both calculations, but the question determines which margin of the table belongs in the denominator. Label the direction of each comparison in words before turning it into a fraction.

Check your recall

How many pictures appear in the flagged column, and how many of them really show animals?

Check your answer

There are twenty-two flagged pictures, including eighteen actual animal pictures.

Sources and credits

Original KeyTouch lesson. Background reading · UC Berkeley · Introduction to Artificial Intelligence.