Worked example · fictitious teaching values · Published article

Stochastic persistence for solar nowcasting: a worked example

Stochastic persistence: why average the clear-sky gap?

Worked example. All input values below are fictitious teaching values, not observations or results from the cited paper.

Result: three fictitious observations give an additive stochastic-persistence forecast of 510 W/m². The multiplicative form gives 497.97 W/m². They are different models.

Why average before persisting?

A single measurement carries useful recent information and fluctuations. The idea is to persist a short-window summary relative to clear sky rather than copy every fluctuation. “Stochastic” here does not mean adding a random draw to the forecast.

Three past observations

Fictitious daylight inputs, oldest to newest. GHI: global horizontal irradiance; CS: clear-sky irradiance (cloudless sky), both in W/m²; CS−GHI: the gap to clear sky (W/m²); GHI/CS: the ratio to clear sky (no unit)
TimeGHI W/m²CS W/m²CS−GHIGHI/CS
t−24005001000.80
t−14506001500.75
t4808003200.60

The theory

Over the last \(N\) available observations, persist a short-window summary of the departure from clear sky instead of the last value (Voyant and Notton, 2018, Eqs. 5–11):

$$\text{additive: }\ \widehat{\mathrm{GHI}}(t+h)=\mathrm{CS}(t+h)-\frac1N\sum_{i=0}^{N-1}\Big(\mathrm{CS}(t-i)-\mathrm{GHI}(t-i)\Big),$$ $$\text{multiplicative: }\ \widehat{\mathrm{GHI}}(t+h)=\mathrm{CS}(t+h)\left(\prod_{i=0}^{N-1}\frac{\mathrm{GHI}(t-i)}{\mathrm{CS}(t-i)}\right)^{1/N}.$$

The first averages the deficit arithmetically, the second the ratio geometrically: they are different models. \(N=1\) gives back the usual clear-sky persistences. \(N\) is chosen on a validation period.

Additive form, step by step

Equation 5 of Voyant and Notton (2018) uses the mean deficit Δ = CS − GHI (the difference to trend with its sign reversed; GHI: global horizontal irradiance, CS: clear-sky irradiance) over the last N available observations. With N = 3, Δ̄ = (100+150+320)/3 = 190 W/m². Given CS(t+h) = 700 W/m², forecast GHI = 700−190 = 510 W/m². Equivalently: mean(GHI) + future CS − mean(CS).

Multiplicative form

The other form uses the geometric mean of the ratios to trend GHI/CS: (0.80 × 0.75 × 0.60)^(1/3) ≈ 0.711379. Multiplying by future clear sky 700 gives 497.97 W/m². An arithmetic mean of these ratios to trend would implement a different rule.

Run it

Python 3, NumPy; executed on 22 October 2026.

import numpy as np

ghi = np.array([400, 450, 480]); cs = np.array([500, 600, 800]); cs_future = 700
print(cs_future - np.mean(cs - ghi))                        # additive
print(round(cs_future * np.prod(ghi / cs) ** (1 / 3), 2))   # multiplicative

Output:

510.0
497.97

Compare without claiming a winner

Ordinary persistence predicts 480 W/m². With N = 1, the additive clear-sky correction predicts 700−320 = 380 W/m²; persistence of the ratio to trend predicts 0.60 × 700 = 420 W/m². A held-out observation is needed to rank these forecasts.

What this study contributes

Voyant and Notton develop additive and multiplicative stochastic-persistence forecasts using short-window summaries relative to clear sky. The source provides the definitions, evaluation conditions and selection of the window length.

Limits and reproducibility

Averaging can suppress useful rapid changes as well as noise. Choose N on a validation period, then keep the test period untouched. Ratios to trend near zero clear sky need filtering; geometric means need an explicit policy for zero or invalid values. The example contains only positive daylight values. Any physical clipping must be reported. It proves the arithmetic, not superiority at a real station.

Author manuscript on HAL, equations 5–11 · Author’s public code (no dedicated implementation of this paper is asserted).

Key point: smooth the deviation from clear sky before extending it. Do not confuse the arithmetic mean of the deficit with the geometric mean of the ratio; the window size remains to be validated.

Authors, source and citation

Cyril Voyant, Gilles Notton. Solar irradiation nowcasting by stochastic persistence: A new parsimonious, simple and efficient forecasting tool. Renewable and Sustainable Energy Reviews. doi:10.1016/j.rser.2018.04.116 · BibTeX.

Cyril Voyant wrote this teaching page. The method belongs to the complete author team credited above.

Explore the research guide · Try the public-data comparison

Download the paper references (BibTeX, complete author lists)

See also: difference to trend and ratio to trend in the course · which forecast for which signal, with sliders · 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.