TheilUMetric<T>
Models & Types · AiDotNet.Evaluation.Metrics.TimeSeries
Computes Theil’s U Statistic: measures forecast accuracy relative to a naive no-change forecast.
Implements: ITimeSeriesMetric<T>
For Beginners
Theil’s U compares your model to the simplest possible forecast (no change):
- U = 0: Perfect predictions
- U = 1: Model is as accurate as naive “no change” forecast
- U < 1: Model outperforms naive forecast
- U > 1: Model is worse than simply predicting no change
Particularly useful for economic forecasting.
How It Works
Theil’s U = √[Σ(ŷ_t - y_t)² / Σ(y_t - y_{t-1})²]
Constructors
| Constructor | Summary |
|---|---|
TheilUMetric() |
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 |
|---|---|
T Compute(ReadOnlySpan<T> predictions, ReadOnlySpan<T> actuals, int? seasonalPeriod) |