We analyzed the role of predictable and unpredictable variability in the identification of optimal renewable energy mixes in an electricity system. Renewable energy sources are the fastest growing energy generation technology, but the variable nature of production linked to climate variability raises structural, technological and economical issues. This work proposes the differentiation of the treatment applied to predictable and unpredictable variability in the context of Markowitz portfolio theory for optimal renewable deployment. The e4clim model was used as a tool to analyze the impact of predictable sources of generation variability on the optimal renewable energy mixes. Significant differences appeared, depending on the consideration of risk, all of them showing room for improvement with respect to the current situation. The application of the methods developed in this study is encouraged in mean-variance analyses, since its contribution favors scenarios where unpredictable variability in the climate-powered renewable energy sources are considered for their risk introduction.