I need to find the variance of k+1 elements given the variance of k elements. I can also store other features for k elements like mean ($\mu_n$) etc. So, given the below function's value,
$$ \frac{1}{n}\sum\limits_{i=1}^n(a_i-\mu_{n})^2 $$
I need to find
$$ \frac{1}{n+1}\sum\limits_{i=1}^{n+1}(a_i-\mu_{n+1})^2 $$
where $\mu_{n}$ is the mean of k elements and $\mu_{n+1}$ is the new mean of k+1 elements.