Skip to content

Main content

Relative Squared Error One Pair Term Tool

Calculate relative squared error one pair term from explicit caller-supplied inputs.

Loading tool…

Description

Divide (actual - predicted)^2 by (actual - reference)^2 and require a strictly positive denominator.

A skill comparison expresses performance relative to a reference loss or scale. Zero baselines and orientation choices can make a nominal score undefined or reverse its interpretation.

Divide (actual - predicted)^2 by (actual - reference)^2 and require a strictly positive denominator.

When to use this tool

Use Relative Squared Error One Pair Term when you need an explicit baseline-relative error or equality term.

How to use the tool and how it works

  1. Enter actual, predicted, reference. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read ratio. Use the output convention below.

Divide (actual - predicted)^2 by (actual - reference)^2 and require a strictly positive denominator.1

Input fieldMeaning and unitsAccepted input
actualObserved value on the same scale and unit as its prediction.Required. Finite number.
predictedPredicted value on the same scale and unit as actual.Required. Finite number.
referenceReferenceRequired. Finite number.
Output fieldInterpretationReturned shape
ratioDimensionless ratio when numerator and denominator use compatible units.Required. Finite number.
json
{
  "input": {
    "actual": 10,
    "predicted": 8,
    "reference": 6
  },
  "output": {
    "ratio": 0.25
  }
}

Limitations and assumptions

  • A reference equal to actual is rejected; this is one pair's ratio rather than a ratio of dataset-level error sums.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
  • Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.

Alternative or Complementary methods

Check baseline suitability and aggregate losses on comparable observations before interpreting relative performance.

References

  1. Calculation and input contract: metrics/relative-squared-error-one-pair-term — tool.io

Similar or alternative tools