Coefficient of variation for ungrouped data
Coefficient of variation is an absolute measure of variation and is used for the comparison of variability between two or more frequency distribution.
Let $x_i, i=1,2, \cdots , n$ be $n$ observations.
Formula
Coefficient of variation is given by
$CV =\dfrac{s_x}{\overline{x}}\times 100$
where,
$\overline{x} =\dfrac{1}{n}\sum_{i=1}^{n}x_i$
is the sample mean of $X$,$n$
total number of observations,$s_x=\sqrt{V(x)}$
is the sample standard deviation of $X$,$s_x^2=V(x)=\dfrac{1}{n-1}\bigg(\sum_{i=1}^{n}x_i^2 -\dfrac{\big(\sum_{i=1}^n x_i\big)^2}{n}\bigg)$
is the sample variance of $X$