Developing a Certainty/Confidence Metric for Weather Model Agreement
To create a variable-agnostic certainty/confidence metric that evaluates the agreement among multiple weather models, we need a method that:
- Normalizes the differences between model predictions relative to the range of the data.
- Is insensitive to the absolute values (e.g., treats [64, 65, 66, 67, 68, 69] the same as [14, 15, 16, 17, 18, 19]).
- Returns 1 when all models agree exactly and decreases as disagreement increases.
Proposed Metric: Normalized Spread Score (NSS)
The metric is defined as:
[
\text{NSS} = 1 - \frac{\text{range of predictions}}{\text{range of predictions} + \text{mean absolute deviation (MAD)}}
]
However, this may not fully capture the desired properties. Instead, a better approach is to use the coefficient of variation (CV) of the predictions, but adjusted for the range. Here’s a refined version:
- Compute the range of the predictions: ( \text{range} = \max(\text{predictions}) - \min(\text{predictions}) ).
- Compute the mean absolute deviation (MAD) from the median (more robust than mean for outliers):
[
\text{MAD} = \text{median}(|x_i - \text{median}(\text{predictions})|)
]
- Define the Normalized Spread Score (NSS) as:
[
\text{NSS} = 1 - \frac{\text{range}}{\text{range} + k \cdot \text{MAD}}
]
where ( k ) is a scaling factor to balance the contributions of range and MAD. For simplicity, we can set ( k = 1 ), giving:
[
\text{NSS} = 1 - \frac{\text{range}}{\text{range} + \text{MAD}}
]
Why This Works:
- Variable-agnostic: The metric uses relative differences (range and MAD), so it works for any variable (temperature, precipitation, wind speed, etc.).
- Normalized: The range and MAD are inherently normalized by their sum, so the metric is insensitive to absolute values (e.g., [64, 65, 66, 67, 68, 69] and [14, 15, 16, 17, 18, 19] will have the same NSS).
- Agreement sensitivity: When all models agree (range = 0, MAD = 0), NSS = 1. As disagreement increases, NSS decreases.
Alternative: Inverse of Coefficient of Variation (CV)
Another approach is to use the inverse of the coefficient of variation (CV), where CV is the standard deviation divided by the mean. However, this is sensitive to the mean value, which may not be desirable. Instead, we can use the standard deviation divided by the range:
[
\text{NSS} = 1 - \frac{\text{std}(\text{predictions})}{\text{range}}
]
But this may not always be bounded between 0 and 1. A better alternative is:
[
\text{NSS} = \exp\left(-\frac{\text{std}(\text{predictions})}{\text{range}}\right)
]
This will give a score close to 1 when the standard deviation is small relative to the range and decrease as disagreement increases.
Final Proposed Metric:
The most robust and interpretable metric is the Normalized Spread Score (NSS) defined as:
[
\text{NSS} = 1 - \frac{\text{range}}{\text{range} + \text{MAD}}
]
Interpretation of Scores:
- Good agreement: NSS > 0.8. The models are very close to each other.
- Moderate agreement: 0.5 ≤ NSS ≤ 0.8. The models show some disagreement but are still somewhat consistent.
- Poor agreement: NSS < 0.5. The models are highly inconsistent.
Example Calculations:
-
All models agree (e.g., [10, 10, 10, 10, 10, 10]):
- Range = 0, MAD = 0.
- NSS = 1 - (0 / (0 + 0)) = 1 (undefined, but in practice, you can handle this as NSS = 1).
-
Predictions = [64, 65, 66, 67, 68, 69]:
- Range = 69 - 64 = 5.
- Median = 66.
- MAD = median(|64-66|, |65-66|, ..., |69-66|) = median(2, 1, 0, 1, 2, 3) = 1.5.
- NSS = 1 - (5 / (5 + 1.5)) = 1 - (5 / 6.5) ≈ 0.23.
-
Predictions = [14, 15, 16, 17, 18, 19]:
- Same as above: NSS ≈ 0.23.
-
Predictions = [10, 20, 30, 40, 50, 60]:
- Range = 50.
- Median = 35.
- MAD = median(|10-35|, |20-35|, ..., |60-35|) = median(25, 15, 5, 5, 15, 25) = 15.
- NSS = 1 - (50 / (50 + 15)) ≈ 0.23.
This shows that the metric is not perfect for all cases, so further refinement may be needed. A better approach might be to use the standard deviation relative to the range:
[
\text{NSS} = 1 - \frac{\text{std}}{\text{range}}
]
But this can give negative values if std > range. To fix this, you can use:
[
\text{NSS} = \max\left(0, 1 - \frac{\text{std}}{\text{range}}\right)
]
Revised Final Metric:
[
\text{NSS} = \max\left(0, 1 - \frac{\text{std}(\text{predictions})}{\text{range}(\text{predictions})}\right)
]
- If all models agree, std = 0 and range = 0, so NSS = 1 (handle division by zero).
- Otherwise, NSS decreases as std increases relative to the range.
Interpretation:
- Good agreement: NSS > 0.7.
- Moderate agreement: 0.4 ≤ NSS ≤ 0.7.
- Poor agreement: NSS < 0.4.
This metric is simple, variable-agnostic, and works for any continuous variable.