IFinancialMetric<T>

Interfaces · AiDotNet.Finance.Evaluation

A financial-performance metric for a FORECASTING/financial model — the analogue of a cluster-validity index for a clustering model. It scores how a model’s predictions would have performed as a trading signal (sign(prediction) taken against the realized return), so a forecaster is judged on money, not just error.

Known implementations: DirectionalAccuracyMetric<T>, InformationCoefficientMetric<T>, MaxDrawdownMetric<T>, ProfitFactorMetric<T>, StrategySharpeMetric<T>, StrategySortinoMetric<T>

Properties

Property Summary
bool HigherIsBetter { get; } Higher is better for ranking (drawdown metrics negate so “higher is better” holds uniformly).
string Name { get; } Metric name (e.g.

Methods

Method Summary
double Compute(IReadOnlyList<double> predicted, IReadOnlyList<double> actual) Computes the metric from aligned predicted and realized (actual) return series.