My program doesn't hold the value in a variable as I want it. I want to attach the calculated value as a list in a variable. What is wrong here?
t = 10
While[t >= 1,
sw = 30^2*(StandardDeviation[x]/Sqrt[11 - t])^2 + 10^2*(StandardDeviation[y]/Sqrt[t])^2;
t = t - 1];
sw = Table[30^2*(StandardDeviation[x]/Sqrt[11 - t])^2 + 10^2*(StandardDeviation[y]/Sqrt[t])^2, {t, 10, 1, -1}]
not work? $\endgroup$