Variance

Variance is the average of the squared deviation from the mean value of observations. The square root of variation is called the standard deviation. Variance can be computed as $\sigma^2 = \frac{\sum (X_i-\overline{X})^2}{N}$ or $\sigma=\sqrt{\frac{\sum (X_i-\overline{X})^2}{n-1}}$

Read more about Variance

Introduction to R Programming Language