calqulio.
◎ English · Global

True-negative rate — Classifier Precision from Base Rate Calculator

Classifier Precision from Base Rate: Calculate true-negative rate from Positive-label precision, Positive-class base rate, True-positive rate. Check the formula, input units and worked result on this page.

Enter your values

%
Formula symbol: precision. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
%
Formula symbol: prior. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
%
Formula symbol: sensitivity. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.

Use a decimal point, without thousands separators.

Keep positive and negative class definitions fixed. The tool does not test data shift or validity on new observations. Inverse solutions exclude singular probability boundaries.
Example result
True-negative rate
80 %

The initial result uses the example values. Enter your own values and calculate again.

Edit inputs

How it works

The true-positive share among positive labels follows Bayes’ relation using a class base rate and two conditional classification rates. This form solves for true-negative rate; enter the known quantities in Positive-label precision, Positive-class base rate, True-positive rate.

Inputs and units
True-negative rate — Classifier Precision from Base Rate Calculator · Inputs and units
InputExample valueWhat to enter
Positive-label precision50 %Formula symbol: precision. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
Positive-class base rate20 %Formula symbol: prior. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
True-positive rate80 %Formula symbol: sensitivity. Enter the percentage as a number: for 15%, enter 15. Must be greater than zero. Allowed range: 0.000001–99.999999.
specificity = (100 - ((prior * sensitivity * (100 - precision)) / (precision * (100 - prior))))

Worked example

Show example inputs and results

This example is generated by the same calculation engine using the starting values in the form. Your own inputs produce your own result.

Positive-label precision
50 %
Positive-class base rate
20 %
True-positive rate
80 %

Complete example results

True-negative rate
80 %

Reading the result

The result solves for true-negative rate from the entered quantities. Check the result unit and the formula conditions before using it.

Questions and answers

Can I use the example values for my own calculation?

The example values illustrate the calculation. Replace every input with your own information, especially dates, rates and the selected operation.

When can I use the true-negative rate result?

Keep positive and negative class definitions fixed. The tool does not test data shift or validity on new observations. Inverse solutions exclude singular probability boundaries.

Why are some results rounded?

Results display up to 8 decimal places. Calculations use the unrounded values; very small values use scientific notation. JavaScript floating-point arithmetic can introduce tiny rounding differences.

Are my inputs sent to a server?

The calculator processes inputs in your browser. Its code does not send your values to a server.

Method sources: ocw.mit.edu

Methods & accuracy

What would you like to calculate?

Browse all calculators

Graphing calculator ↗