I create a vector of randomly selected values from a normal distribution of mean = 0 and std = 1. I calculate the mean and expect as a result zero. And I calculate the mean of the absolute value and I expect as a result but instead I get a non-zero mean and a result of for the mean of the absolute value.
How is that?
>> noise=randn(1,1000000);>> mean(noise)ans = 0.0013>> mean(abs(noise))ans = 0.7985
Best Answer