This will open up the following dialog. To calculate the variance of a sample first add all of the data points in your sample set together and divide the sum by the number of data points to find the mean. Mean is the average -- the sum divided by the number of entries.
The formula to find the standard deviation of a sample is.
Variance is the sum of the squares of the values minus the mean then take the square root and divided by the number of samples You can vectorize the calculation using sum. Just print the result without saving it. How to calculate the population variance is what Im going to show you next Example 2. The first step in analyzing multivariate data is computing the meanvector and the variance-covariance matrix.