Solar forecasting explained · Published article, open code

NICEᵏ metrics: solar forecast errors compared with persistence

The NICEᵏ metrics (Normalized Informed Comparison of Errors: the error of a forecast divided by that of simple persistence, a ratio without unit) were introduced by Voyant et al. in Sustainable Energy Technologies and Assessments (2025).

In brief

  • NICEᵏ divides the Lᵏ error of a forecast (the typical size of its gaps to the observation, large gaps counting more as k grows) by that of simple persistence, the forecast that repeats the last observed value, on the same samples: a normalized ratio. A useful forecast lies between 0 (perfect) and 1 (simple persistence); > 1 means worse than simple persistence.
  • Orders k = 1, 2 and 3 (mean absolute error MAE, root mean square error RMSE, root mean cubic error RMCE (the cube root of the mean cubed absolute errors)) weigh large errors more and more; NICE^Σ combines them with equal weights. Unlike skill scores, NICE does not depend on an arbitrary baseline, and it is linked to the autocorrelation of the series (linear similarity with time-shifted values, from −1 to 1; 0 means no linear correlation, not necessarily independence): the more persistent the series, the harder persistence is to beat.
  • Published in Sustainable Energy Technologies and Assessments (2025) by C. Voyant, M. Despotovic, L. Garcia-Gutierrez, R. Amaro e Silva, P. Lauret, T. Soubdhan and N. Bailek; MATLAB code with a worked example, doi:10.5281/zenodo.23562549.

What does NICE add?

The study compares the errors of a deterministic forecast with those of simple persistence on the same observations, for three error norms (NICE¹ with the MAE, NICE² with the RMSE, NICE³ with the RMCE) and their weighted combination NICE^Σ (equal weights in the balanced case).

Three days of a synthetic irradiance-like signal with simple persistence, smart persistence and an AR(1) model on the clear-sky residual
Figure 1 of the nice-metrics repository: three days of a synthetic signal. Simple persistence (dashed red), the reference of NICE, lags the observation by one hour; smart persistence (it repeats the clear-sky index, the ratio of the measure to the cloud-free curve, instead of the raw value) corrects that lag with the clear-sky shape, and the AR(1) model (autoregression of order 1: each value is predicted from the previous one) on the clear-sky residual also uses the correlation of the noise.
NICE¹, NICE², NICE³ and NICE^Σ of smart persistence and of an AR(1) model on the clear-sky residual, all below the simple persistence line at 1
Scores of the same demonstration: NICEᵏ of smart persistence and of the AR(1) model relative to simple persistence (dashed line at 1; 0 would be a perfect forecast). Redrawn from results/demo_scores.csv of the nice-metrics repository, with smart persistence and AR(1) only.

Cyril Voyant · Updated 2026-10-20

The NICEᵏ metrics (Normalized Informed Comparison of Errors), introduced by Cyril Voyant and co-authors in Sustainable Energy Technologies and Assessments (2025, doi:10.1016/j.seta.2025.104588 · BibTeX), score a deterministic solar forecast against simple persistence, as an error ratio. A useful forecast lies between 0 (perfect) and 1 (simple persistence); > 1 means worse than simple persistence.

Questions about NICEᵏ solar forecast metrics

What do NICE metrics measure in deterministic solar forecasting?

NICEᵏ compares a forecast error norm with the error norm of a specified persistence forecast on the same observations. It is a reference-relative measure of deterministic forecast accuracy. Here, NICEᵏ refers to the solar forecasting framework published by Voyant and coauthors in 2025, with DOI 10.1016/j.seta.2025.104588 · BibTeX.

What does a NICE component below one mean in solar forecasting?

For the component defined as the ratio of L-k error norms, a value below one means smaller errors than the chosen persistence baseline. A value of 0.8 means that this error norm is 20% smaller on the evaluated samples. It does not imply a 20% improvement in every error metric or in economic value. A zero baseline norm makes the ratio undefined.

The theory

Why a new metric, in the words of the article: the RMSE is scale-dependent, the MAE lacks sensitivity to large deviations, and skill scores depend on arbitrary baselines. NICE (Normalized Informed Comparison of Errors) measures a model against one fixed reference, simple persistence, the forecast that repeats the last observed value, and gives a normalized error ratio whose reference and evaluation samples must be specified. A result > 1 stays visible: the model is worse than simple persistence. The equation numbers below are those of the article.

Definitions

\(y(t)\)
observation at time \(t\), time step \(\Delta t\)
\(\hat y(t)\)
forecast of model X
P
simple persistence: \(\hat y(t)=y(t-\Delta t)\); at horizon \(n\), \(\hat y(t+n\Delta t)=y(t)\). It is the only reference of NICE.
\(n\)
number of evaluated samples, the same for X and P

From the RMSE to NICE² (Eqs. 1 to 4)

$$\mathrm{RMSE}=\sqrt{\frac1n\sum_{t=1}^{n}\big(y(t)-\hat y(t)\big)^2}\ \ (1),$$ $$\mathrm{RMSE}_P=\sqrt{\frac1n\sum_{t=1}^{n}\big(y(t)-y(t-\Delta t)\big)^2}\ \ (2).$$

Start from \(\mathrm{NICE}^2=\alpha\,\mathrm{RMSE}_X\) (3) and require a perfect forecast to give 0 and persistence to give 1: \(\alpha\,\mathrm{RMSE}_P=1\), so \(\alpha=1/\mathrm{RMSE}_P\) and

$$\mathrm{NICE}^2=\frac{\mathrm{RMSE}_X}{\mathrm{RMSE}_P},$$ $$(4).$$

Generalization to \(L^k\) (Eqs. 5 and 6)

$$\mathrm{NICE}^k=\frac{L^k\text{-Error}_X}{L^k\text{-Error}_P}\ \ (5),$$ $$L^k\text{-Error}=\left(\frac1n\sum_{t=1}^{n}\big|y(t)-\hat y(t)\big|^{k}\right)^{1/k}\ \ (6).$$

\(k=1\) gives the MAE and treats all errors alike (robust to outliers); \(k=2\) the RMSE, which weighs large deviations more; \(k=3\) the root mean cubic error (RMCE), which amplifies rare large errors (grid management, extreme events). Beyond 3 the metric is dominated by extreme errors and loses interpretability. NICE² is the standard choice; NICE¹ when robustness to outliers matters.

Link with the autocorrelation (Eqs. 7 to 14)

For a weakly stationary series of variance \(\sigma^2\) and lag-\(n\) autocorrelation \(\rho(n)\):

$$E\big[(y(t)-y(t-\Delta t))^2\big]=2\sigma^2\big(1-\rho(1)\big)\ \ (7),$$ $$\mathrm{RMSE}_P\approx\sqrt{2\sigma^2\big(1-\rho(1)\big)}\ \ (8),$$ $$\mathrm{NICE}^2\approx\frac{1}{\sigma\sqrt2}\,\frac{\sqrt{\tfrac1n\sum_{t}\big(y(t)-\hat y(t)\big)^2}}{\sqrt{1-\rho(1)}}\ \ (9).$$

At horizon \(n\), persistence predicts \(\hat y(t+n\Delta t)=y(t)\), \(E\big[(y(t+n\Delta t)-y(t))^2\big]=2\sigma^2(1-\rho(n))\) (12), and \(\rho(1)\) is replaced by \(\rho(n)\) in (9), which gives Eq. (14). The more autocorrelated the series, the harder persistence is to beat: NICE measures a model against the forecastability of the series. NICE¹ and NICE³ follow the same way under an additional normality assumption (Eq. 10, Appendix B).

NICEΣ (Eqs. 15 to 17)

$$\mathrm{NICE}^{\Sigma}=w_1\mathrm{NICE}^1+w_2\mathrm{NICE}^2+w_3\mathrm{NICE}^3,$$ $$w_1+w_2+w_3=1,\ w_i\ge0\ \ (15,16);$$

the article uses equal weights, \(w_i=1/3\) (17), to stay neutral; a risk-sensitive application can weigh NICE³ more.

How to read it

  • A useful forecast lies between 0 and 1: 0 is a perfect forecast; 1 is simple persistence; > 1 means worse than simple persistence. A zero reference error makes the ratio undefined. Never clip the ratio to 1.
  • A value close to 0: the model captures much more of the dynamics than persistence. A value close to 1: it hardly does better than repeating the last value.
  • A model worse than simple persistence is possible in theory, but in practice its usefulness is highly questionable, and little insight can be gained from evaluating it.

Assumptions and validity

The model and simple persistence are scored on the same samples, horizon and time step. The theoretical forms (8) to (14) assume weak stationarity, reasonable for irradiance at short lags (under one hour) or at daily scale, not for long horizons; the article finds the empirical form (5) the most insightful. The perfect forecast of the lower bound is unattainable in practice. The repository README adds a note on the constant of Eq. (B.5), checked on the arXiv version of the article.

Try it in your browser

Paste an observation and a forecast column, or keep the demo data, give the forecast horizon, and read NICE¹, NICE², NICE³ and NICE-Σ against simple persistence (Eqs. 5, 6, 11 and 17 of the article).

Run it

The model keeps about a third of the error of simple persistence. NICE³ is the lowest because the model removes the 150 W/m² miss that dominates the cubic error of persistence. Called as nice_metrics(y, y_hat) on a regularly sampled series, the reference is simple persistence y(t-1). Executed with MATLAB R2025b on 23 October 2026.

% from a clone of github.com/cyrilvoyant/nice-metrics: the worked example of the README
y     = [500 450 600 550];   % observed irradiance, hours 2 to 5 (W/m2)
y_hat = [460 480 560 580];   % model forecast
y_P   = [400 500 450 600];   % simple persistence: the observation of the previous hour
m = nice_metrics(y, y_hat, y_P);
fprintf('NICE1 %.3f NICE2 %.3f NICE3 %.3f NICE_Sigma %.3f\n', m.NICE1, m.NICE2, m.NICE3, m.NICE_Sigma);

Output:

NICE1 0.400 NICE2 0.365 NICE3 0.340 NICE_Sigma 0.368

The repository also contains demo_nice.m (teaching demonstration with figures) and the article's own scripts, unchanged, in paper_scripts/.

Reporting protocol

State persistence definition, horizon, temporal alignment, scoring window and missing-value mask. Report absolute errors alongside the ratio. A ratio below one does not establish operational value or superiority to every possible baseline.

Reference and implementation

NICEᵏ Metrics: Unified and Multidimensional Framework for Evaluating Deterministic Solar Forecasting Accuracy, 2025. Credit all authors as listed in the publication. The nice-metrics repository (archived: doi:10.5281/zenodo.23562549) gives the MATLAB functions, a worked example by hand, a teaching demonstration with figures and the article's scripts; the PV_ELM_pred repository uses the metrics in a full benchmark. See PV forecasting protocol.

Publication authors: Cyril Voyant, Milan Despotovic, Luis Garcia-Gutierrez, Rodrigo Amaro e Silva, Philippe Lauret, Ted Soubdhan, Nadjem Bailek.

Related: persistence and BLEND · γ-index for displaced forecasts · PV_ELM_pred benchmark · deseasonalization benchmark.

Research explained

Read the findings, evidence and limits in these research stories.

Download the paper references (BibTeX, complete author lists)

See also: which forecast for which signal, with sliders · compare forecasts · NICE in a worked course example · the course, slide by slide.

Need this method on your own data? Collaborate: a joint answer to a call for projects, a research contract with Mines Paris – PSL, or academic work with a clear valorization objective.