NegativeLikelihoodRatioMetric<T>

Models & Types · AiDotNet.Evaluation.Metrics.Classification

Computes Negative Likelihood Ratio (LR-): (1 - Sensitivity) / Specificity = FNR / TNR.

Implements: IClassificationMetric<T>

For Beginners

Negative Likelihood Ratio:

  • How much less likely a negative test is in disease vs healthy
  • LR- < 0.1: Strong evidence against disease
  • LR- 0.1-0.2: Moderate evidence
  • LR- 0.2-0.5: Weak evidence
  • LR- = 1: No diagnostic value

How It Works

LR- = (1 - Sensitivity) / Specificity = FNR / TNR

Clinical use: Multiply pre-test odds by LR- to get post-test odds after negative result.

Constructors

Constructor Summary
NegativeLikelihoodRatioMetric()

Properties

Property Summary
MetricDirection Direction { get; }
T MaxValue { get; }
T MinValue { get; }
bool RequiresProbabilities { get; }
bool SupportsMultiClass { get; }
string Category { get; }
string Description { get; }
string Name { get; }

Methods

Method Summary
MetricWithCI<T> ComputeWithCI(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals, ConfidenceIntervalMethod ciMethod, double confidenceLevel, int bootstrapSamples, int? randomSeed)
T Compute(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals)