fix: varForecast is not undefined for empty sample.
feature: replaced stddev with a fold implementation.