A method for probabilistic forecast of the global horizontal irradiance is proposed.
The model is applied to ultra-short term forecast horizons.
The k-means algorithm is used to cluster past observations of the clear-sky index.
Prediction performance improves or is in-line with state-of-the-art methods.
The method has low computational complexity, suitable for microgrids applications.