Overview / Workspace

OpenSTEMTool / Health & Medicine / Public Health

Diagnostic Test Confusion Matrix – Free Online Scientific Calculator

Calculate test sensitivity, specificity, and predictive values from counts.

Interactive & 100% Free: Enter your values directly in the calculator above or change the default inputs below to compute outputs instantly in your browser. All computations run locally for immediate privacy and high performance.

What this tool calculates

Calculate test sensitivity, specificity, and predictive values from counts.. This computational model is built for university students, educators, lab researchers, and practicing engineers who need transparent, verified scientific calculations.

Calculation method and underlying formula

Sensitivity TP/(TP+FN), specificity TN/(TN+FP), PPV TP/(TP+FP), NPV TN/(TN+FN). Predictive values depend on prevalence.

The calculation evaluates relationships between input variables according to standard scientific principles. Inspect the editable parameter table below to test specific values.

Step-by-step calculation guide

  1. Input Parameters: Enter the required values into the parameter table below.
  2. Model Evaluation: The system automatically evaluates the governing equations locally with high numerical precision.
  3. Analyze & Export: Review the calculated outputs, inspect the generated curve plot, and download publication-ready reports or CSV data.

Worked example: default input values

The default worked example demonstrates calculation with the following parameters. You can modify any value in the interactive panel to re-evaluate your specific scenario:

ParameterExample valueUnit
True positives90—
False positives20—
True negatives180—
False negatives10—

Worked example results

Based on the default parameters entered above, the model computes the following quantities:

Calculated quantityOutput valueUnit
Sensitivity90%
Specificity90%
Positive predictive value81.8182%
Negative predictive value94.7368%

Assumptions and interpretation

  • An idealized educational model; check its assumptions before interpreting real-world measurements.
  • Units shown beside the input and output values are part of the model and must be respected.

Educational calculations are not substitutes for professional engineering design approvals, certified laboratory assays, clinical diagnostics, or peer-reviewed scientific publications. Always inspect units, verify physical domains, and evaluate boundary conditions.

Frequently asked questions (FAQ)

How does the Diagnostic Test Confusion Matrix calculator work?

The calculator computes results locally in your browser using the established mathematical model: Sensitivity TP/(TP+FN), specificity TN/(TN+FP), PPV TP/(TP+FP), NPV TN/(TN+FN). Predictive values depend on prevalence.

What are the input parameters for Diagnostic Test Confusion Matrix?

The required parameters include: True positives (dimensionless), False positives (dimensionless), True negatives (dimensionless), False negatives (dimensionless).

What assumptions apply to this Diagnostic Test Confusion Matrix model?

An idealized educational model; check its assumptions before interpreting real-world measurements.. Units shown beside the input and output values are part of the model and must be respected.

Can I export results from this calculator?

Yes. OpenSTEMTool supports exporting publication-ready SVG charts, PNG graphics, raw CSV data tables, JSON parameter archives, and printable HTML/PDF scientific reports.

Other useful Health & Medicine tools

Explore the OpenSTEM ecosystem

OpenSTEM Field is the flagship ecosystem platform for university scholarships, graduate funding, and research opportunities across 10 countries. OpenSTEM Library provides open textbooks and theory derivations. OpenSTEM Lab provides 895+ virtual laboratory experiments.

Join our Discord Community ↗ · Contact: [email protected] ✉

Browse all scientific calculators · Browse academic departments