Skip to content
EvalSuite
Documentation menu

Clinical

Positive likelihood ratio

Implementedclinical.lr_positive

Definition

How much a positive result increases the odds of the condition.

Formula

LR+ = Sensitivity / (1 − Specificity)

Range: [0, ∞)

Inputs and outputs

  • y_true: binary reference standard
  • y_pred: binary test result

Returns: float

Assumptions

No assumptions beyond valid, aligned inputs of the documented types.

Limitations

  • Infinite when specificity is 1; reported explicitly.

Python API

PythonSince v0.2.0
import evalsuite as es

es.lr_positive(y_true, y_pred)

References

Primary references for this entry have not been added yet.

Implementation status