fixed return of variance before any samples are in (returns initial value) and computation of residuals for uk in v1 model