Loading…

False Positive or Negative Rate Analyzer

Math Probability • Conditional Probability and Events

View all topics

False Positive/Negative Rate Analyzer – Sensitivity, Specificity & Bayes (Free)

Enter prevalence \(P(D)\), sensitivity \(P(T+\mid D)\), and specificity \(P(T-\mid \neg D)\). This tool computes false positive/negative rates, the confusion matrix, and Bayes posteriors like PPV \(P(D\mid T+)\) and NPV \(P(\neg D\mid T-)\).

Tip: Press Play after calculating to animate how outcomes fill the confusion matrix and how the ROC point \((\mathrm{FPR},\mathrm{TPR})\) is placed.

Inputs
Scale for the confusion matrix

Inputs accept 1e-3, pi, e, sqrt(2), sin(), cos(), tan(), ln(), log(), abs(). Use * for multiplication.

Display & animation

The ROC preview shows the point \((\mathrm{FPR}, \mathrm{TPR})\) where \(\mathrm{TPR}=\) sensitivity and \(\mathrm{FPR}=1-\) specificity.

Ready
Confusion matrix + ROC preview

Left: confusion matrix (expected counts for \(N\)). Right: ROC preview (\(\mathrm{FPR}\) vs \(\mathrm{TPR}\)).

Rate this calculator

0.0 /5 (0 ratings)
Be the first to rate.
Your rating
You can update your rating any time.

Frequently Asked Questions

Is false positive rate the same as P(D|T+)?

No. FPR is P(T+|~D)=1-specificity, while P(D|T+) is PPV, computed with Bayes’ theorem and dependent on prevalence.

Why can PPV be low even with a good test?

If prevalence is small, the non-disease group is much larger, so even a modest false positive rate can produce many false positives compared to true positives.

What does the ROC preview show?

It shows the point (FPR,TPR) where TPR is sensitivity and FPR is 1-specificity for your entered test performance.

Does this handle multi-class tests?

This version is for binary outcomes (positive/negative). University extensions include multi-class confusion matrices, thresholded scores, and ROC/AUC analysis.