Skip to content
Research Medium #sensitivity#specificity#confusion-matrix

2x2 Diagnostic Table

TP/FP/FN/TN matrix with sensitivity and specificity callouts.

A free, animated 2x2 diagnostic table you can read here or embed on any website, from Scrollchart.

2x2 Diagnostic Table

Sensitivity & Specificity: 2x2 MatrixTrue Positive(TP)0False Positive(FP)0False Negative(FN)0True Negative(TN)0Sensitivity86%TP / (TP+FN)Specificity92%TN / (TN+FP)PPV75%TP / (TP+FP)NPV96%TN / (TN+FN)

The 2x2 diagnostic table is the foundational structure for evaluating any binary test. The columns represent true disease status (disease present vs absent); the rows represent test result (positive vs negative). The four cells are: true positives (TP), false positives (FP), false negatives (FN), and true negatives (TN).

From these counts, four performance metrics are computed. Sensitivity (TP / (TP + FN)) measures how reliably the test detects disease when it is present. Specificity (TN / (TN + FP)) measures how reliably it rules out disease when it is absent. Positive predictive value (PPV) and negative predictive value (NPV) reflect accuracy given a positive or negative result respectively, and unlike sensitivity and specificity, they depend on disease prevalence in the tested population.

Good for

  • Articles in the research category
  • Editorial pages where a quick visual replaces a wall of text
  • Content-marketing posts that need a clean, branded illustration

Source & accuracy

This 2x2 diagnostic table is an editorial illustration built to represent the concept accurately. Where it shows figures, they are typical or representative values chosen to make the relationship clear, not a single underlying dataset. The diagram and its explainer are reviewed and maintained centrally, and updated over time as understanding improves.

True positives, false positives, and the 2x2 grid

A 2x2 diagnostic table maps test results (positive/negative) against ground truth (disease present/absent), yielding four cells: true positives (TP, correctly identified cases), false positives (FP, healthy people flagged), false negatives (FN, missed cases), and true negatives (TN, correctly identified healthy). The grid reveals trade-offs: a sensitive test (high TP, few FN) catches disease but may over-flag. A specific test (high TN, few FP) rarely false-alarms but may miss cases. Perfect tests do not exist, so clinical and research contexts demand different priorities.

Sensitivity, specificity, and the clinical choice

Sensitivity (TP divided by TP plus FN) measures catch rate; specificity (TN divided by TN plus FP) measures false-alarm avoidance. A cancer screening test might aim for 95% sensitivity to minimize missed diagnoses, accepting higher false alarms that trigger followup imaging. A drug test for employment might prioritize 99% specificity to avoid false convictions, accepting occasional missed users. Positive predictive value (TP divided by TP plus FP) flips the question: given a positive result, how likely is disease? This depends on disease prevalence, which 2x2 tables make explicit.

Embed this diagram

Add this animated 2x2 diagnostic table to your own site. Copy one line of HTML, or use the embed builder for theme and sizing options.

Reference

What this is
A free, embeddable, animated 2x2 diagnostic table for any website.
Who uses it
Researchers & academics, Science journalists, Medical educators, Health journalists.
How to embed
Copy one line of HTML. No signup. No watermark. Works in WordPress, Webflow, Ghost, Substack, plain HTML.
File size
iframe embed, ~80 KB gzipped (loads on demand, does not block your page paint).
License
Free forever. Editorial explainer text included; updated centrally over time.

Embed format options

Copy the universal HTML snippet, the WordPress shortcode, or an iframe fallback - see the WordPress plugin page for details. Any format keeps the same Core Web Vitals profile and the same explainer text.

Embed snippet
<div data-scrollchart="sensitivity-specificity-2x2" data-scrollchart-v="1"></div>
<script src="https://scrollchart.com/embed.js" async></script>

Frequently asked questions

Where can I get a free animated "2x2 Diagnostic Table" for my website?
Scrollchart provides "2x2 Diagnostic Table" as a free, embeddable animated diagram you can add to any website with one line of HTML. No signup is required and there is no watermark. The diagram and its explainer text are served from scrollchart.com, so the embed stays current without any maintenance on your end.
How do I embed a 2x2 diagnostic table in a blog post or article?
Paste the one-line HTML snippet from the Scrollchart diagram page into your post editor. It works in WordPress, Webflow, Ghost, and plain HTML with no plugin required. The animated diagram and its explainer text load from scrollchart.com and render directly in your page DOM.