Description
With both endpoints present, validate their order and calculate width plus scaled outside penalties; otherwise return score zero, defined false, and missing endpoint names.
An interval forecast has both a width and a relationship to an observed value. Scoring rules can penalize narrow misses while boundary conventions determine coverage separately.
With both endpoints present, validate their order and calculate width plus scaled outside penalties; otherwise return score zero, defined false, and missing endpoint names.
When to use this tool
Use Interval Score Missing Endpoint Case when you need one interval width, coverage, penalty, or error-envelope term.
How to use the tool and how it works
- Enter lower, upper, actual, alpha, lowerPresent, upperPresent. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read defined, score, missingEndpoints. Inspect defined before interpreting the associated values.
Require alpha in (0, 1). With both endpoints present, validate their order and calculate width plus scaled outside penalties; otherwise return score zero, defined false, and missing endpoint names.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| lower | Lower | Required. Finite number. |
| upper | Upper | Required. Finite number. |
| actual | Observed value on the same scale and unit as its prediction. | Required. Finite number. |
| alpha | Nominal interval miscoverage as a fraction, not a percentage. | Required. Finite number. |
| lowerPresent | Lower Present | Required. Boolean. |
| upperPresent | Upper Present | Required. Boolean. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| defined | Whether the accompanying numeric result has an available denominator or required inputs. | Required. Boolean. |
| score | Score under the explicit mathematical and availability conventions above. | Required. Finite number. |
| missingEndpoints | Missing Endpoints | Required. Array of text; maximum UTF-16 length 8192; maximum items 256. |
{
"input": {
"lower": 1,
"upper": 3,
"actual": 4,
"alpha": 0.5,
"lowerPresent": true,
"upperPresent": true
},
"output": {
"defined": true,
"score": 6,
"missingEndpoints": []
}
} Limitations and assumptions
- Absent endpoint numbers are ignored for ordering and the score is a placeholder; this does not construct one-sided interval scores.
- 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
Aggregate scores over comparable observations and examine empirical coverage and interval width together.
References
Similar or alternative tools
- Metrics: Interval Score Observation
Add width, 2/alpha times any shortfall below lower, and 2/alpha times any exceedance above upper.
- Winkler Score Width Penalty Split
Return interval width plus a penalty of 2/alpha times the distance below lower or above upper; observations within the interval add no penalty.