Below is my code for determining the variance. I want to sum the var for every new x. This is the formula I want to use. p and mu are determined. I want to create a formula