I am learning Mathematica on the fly, one of my tasks is to find the variance of white noise. I followed the tutorial for finding white noise by using the code:
WN = WhiteNoiseProcess[NormalDistribution[0, 10]];
data = RandomFunction[WN, {0, 10000}];
I know I can use the following code to find the variance:Variance[data]
However, I would like to find it by using the formula for variance. I checked the reference built into Mathematica and it says I can simply use:
Total[(list-Mean[list])^2]/(Length[list]-1)
I input data for the list:
Total[(data-Mean[data])^2]/(Length[data]-1)
When I do this, I don't get the same output as when I use the Variance[data]
code, but instead get:
So, I am curious what I am doing wrong? I'm sure it's something simple I am not doing, but after spending a couple of hours wrestling with this, I am breaking down to ask. Sorry if this is a dumb question. Thank you in advance for your time.