Английская Википедия:Coefficient of variation

Материал из Онлайн справочника
Перейти к навигацииПерейти к поиску

Шаблон:Short description Шаблон:Distinguish Шаблон:Use American English Шаблон:Use dmy dates

In probability theory and statistics, the coefficient of variation (CV), also known as Normalized Root-Mean-Square Deviation (NRMSD), Percent RMS, and relative standard deviation (RSD), is a standardized measure of dispersion of a probability distribution or frequency distribution. It is defined as the ratio of the standard deviation <math> \sigma </math> to the mean <math> \mu </math> (or its absolute value, Шаблон:Nowrap, and often expressed as a percentage ("%RSD"). The CV or RSD is widely used in analytical chemistry to express the precision and repeatability of an assay. It is also commonly used in fields such as engineering or physics when doing quality assurance studies and ANOVA gauge R&R,Шаблон:Citation needed by economists and investors in economic models, and in psychology/neuroscience.

Definition

The coefficient of variation (CV) is defined as the ratio of the standard deviation <math>\sigma</math> to the mean <math>\mu</math>, <math>CV = \frac{\sigma}{\mu}.</math>[1]

It shows the extent of variability in relation to the mean of the population. The coefficient of variation should be computed only for data measured on scales that have a meaningful zero (ratio scale) and hence allow relative comparison of two measurements (i.e., division of one measurement by the other). The coefficient of variation may not have any meaning for data on an interval scale.[2] For example, most temperature scales (e.g., Celsius, Fahrenheit etc.) are interval scales with arbitrary zeros, so the computed coefficient of variation would be different depending on the scale used. On the other hand, Kelvin temperature has a meaningful zero, the complete absence of thermal energy, and thus is a ratio scale. In plain language, it is meaningful to say that 20 Kelvin is twice as hot as 10 Kelvin, but only in this scale with a true absolute zero. While a standard deviation (SD) can be measured in Kelvin, Celsius, or Fahrenheit, the value computed is only applicable to that scale. Only the Kelvin scale can be used to compute a valid coefficient of variability.

Measurements that are log-normally distributed exhibit stationary CV; in contrast, SD varies depending upon the expected value of measurements.

A more robust possibility is the quartile coefficient of dispersion, half the interquartile range <math> {(Q_3 - Q_1)/2} </math> divided by the average of the quartiles (the midhinge), <math> {(Q_1 + Q_3)/2} </math>.

In most cases, a CV is computed for a single independent variable (e.g., a single factory product) with numerous, repeated measures of a dependent variable (e.g., error in the production process). However, data that are linear or even logarithmically non-linear and include a continuous range for the independent variable with sparse measurements across each value (e.g., scatter-plot) may be amenable to single CV calculation using a maximum-likelihood estimation approach.[3]

Examples

In the examples below, we will take the values given as randomly chosen from a larger population of values.

  • The data set [100, 100, 100] has constant values. Its standard deviation is 0 and average is 100, giving the coefficient of variation as 0 / 100 = 0
  • The data set [90, 100, 110] has more variability. Its standard deviation is 10 and its average is 100, giving the coefficient of variation as 10 / 100 = 0.1
  • The data set [1, 5, 6, 8, 10, 40, 65, 88] has still more variability. Its standard deviation is 32.9 and its average is 27.9, giving a coefficient of variation of 32.9 / 27.9 = 1.18

In these examples, we will take the values given as the entire population of values.

  • The data set [100, 100, 100] has a population standard deviation of 0 and a coefficient of variation of 0 / 100 = 0
  • The data set [90, 100, 110] has a population standard deviation of 8.16 and a coefficient of variation of 8.16 / 100 = 0.0816
  • The data set [1, 5, 6, 8, 10, 40, 65, 88] has a population standard deviation of 30.8 and a coefficient of variation of 30.8 / 27.9 = 1.10

Estimation

When only a sample of data from a population is available, the population CV can be estimated using the ratio of the sample standard deviation <math>s \,</math> to the sample mean <math>\bar{x}</math>:

<math>\widehat{c_{\rm v}} = \frac{s}{\bar{x}}</math>

But this estimator, when applied to a small or moderately sized sample, tends to be too low: it is a biased estimator. For normally distributed data, an unbiased estimator[4] for a sample of size n is:

<math>\widehat{c_{\rm v}}^*=\bigg(1+\frac{1}{4n}\bigg)\widehat{c_{\rm v}}</math>

Log-normal data

Many datasets follow an approximately log-normal distribution.[5] In such cases, a more accurate estimate, derived from the properties of the log-normal distribution,[6][7][8] is defined as:

<math>\widehat{cv}_{\rm raw} = \sqrt{\mathrm{e}^{s_{\rm ln}^2}-1}</math>

where <math>{s_{\rm ln}} \,</math> is the sample standard deviation of the data after a natural log transformation. (In the event that measurements are recorded using any other logarithmic base, b, their standard deviation <math>s_b \,</math> is converted to base e using <math>s_{\rm ln} = s_b \ln(b) \,</math>, and the formula for <math>\widehat{cv}_{\rm raw} \,</math> remains the same.[9]) This estimate is sometimes referred to as the "geometric CV" (GCV)[10][11] in order to distinguish it from the simple estimate above. However, "geometric coefficient of variation" has also been defined by Kirkwood[12] as:

<math>\mathrm{GCV_K} = {\mathrm{e}^{s_{\rm ln}}\!\!-1}</math>

This term was intended to be analogous to the coefficient of variation, for describing multiplicative variation in log-normal data, but this definition of GCV has no theoretical basis as an estimate of <math>c_{\rm v} \,</math> itself.

For many practical purposes (such as sample size determination and calculation of confidence intervals) it is <math>s_{ln} \,</math> which is of most use in the context of log-normally distributed data. If necessary, this can be derived from an estimate of <math>c_{\rm v} \,</math> or GCV by inverting the corresponding formula.

Comparison to standard deviation

Advantages

The coefficient of variation is useful because the standard deviation of data must always be understood in the context of the mean of the data. In contrast, the actual value of the CV is independent of the unit in which the measurement has been taken, so it is a dimensionless number. For comparison between data sets with different units or widely different means, one should use the coefficient of variation instead of the standard deviation.

Disadvantages

  • When the mean value is close to zero, the coefficient of variation will approach infinity and is therefore sensitive to small changes in the mean. This is often the case if the values do not originate from a ratio scale.
  • Unlike the standard deviation, it cannot be used directly to construct confidence intervals for the mean.

Applications

The coefficient of variation is also common in applied probability fields such as renewal theory, queueing theory, and reliability theory. In these fields, the exponential distribution is often more important than the normal distribution. The standard deviation of an exponential distribution is equal to its mean, so its coefficient of variation is equal to 1. Distributions with CV < 1 (such as an Erlang distribution) are considered low-variance, while those with CV > 1 (such as a hyper-exponential distribution) are considered high-varianceШаблон:Citation needed. Some formulas in these fields are expressed using the squared coefficient of variation, often abbreviated SCV. In modeling, a variation of the CV is the CV(RMSD). Essentially the CV(RMSD) replaces the standard deviation term with the Root Mean Square Deviation (RMSD). While many natural processes indeed show a correlation between the average value and the amount of variation around it, accurate sensor devices need to be designed in such a way that the coefficient of variation is close to zero, i.e., yielding a constant absolute error over their working range.

In actuarial science, the CV is known as unitized risk.[13]

In Industrial Solids Processing, CV is particularly important to measure the degree of homogeneity of a powder mixture. Comparing the calculated CV to a specification will allow to define if a sufficient degree of mixing has been reached.[14]

In Fluid Dynamics, the CV, also referred to as Percent RMS, %RMS, %RMS Uniformity, or Velocity RMS, is a useful determination of flow uniformity for industrial processes. The term is used widely in the design of pollution control equipment, such as electrostatic precipitators (ESPs),[15] selective catalytic reduction (SCR), scrubbers, and similar devices. The Institute of Clean Air Companies (ICAC) references RMS deviation of velocity in the design of fabric filters (ICAC document F-7).[16] The guiding principal is that many of these pollution control devices require "uniform flow" entering and through the control zone. This can be related to uniformity of velocity profile, temperature distribution, gas species (such as ammonia for an SCR, or activated carbon injection for mercury absorption), and other flow-related parameters. The Percent RMS also is used to assess flow uniformity in combustion systems, HVAC systems, ductwork, inlets to fans and filters, air handling units, etc. where performance of the equipment is influenced by the incoming flow distribution.

Laboratory measures of intra-assay and inter-assay CVs

CV measures are often used as quality controls for quantitative laboratory assays. While intra-assay and inter-assay CVs might be assumed to be calculated by simply averaging CV values across CV values for multiple samples within one assay or by averaging multiple inter-assay CV estimates, it has been suggested that these practices are incorrect and that a more complex computational process is required.[17] It has also been noted that CV values are not an ideal index of the certainty of a measurement when the number of replicates varies across samples − in this case standard error in percent is suggested to be superior.[18] If measurements do not have a natural zero point then the CV is not a valid measurement and alternative measures such as the intraclass correlation coefficient are recommended.[19]

As a measure of economic inequality

The coefficient of variation fulfills the requirements for a measure of economic inequality.[20][21][22] If x (with entries xi) is a list of the values of an economic indicator (e.g. wealth), with xi being the wealth of agent i, then the following requirements are met:

  • Anonymity – cv is independent of the ordering of the list x. This follows from the fact that the variance and mean are independent of the ordering of x.
  • Scale invariance: cv(x) = cvx) where α is a real number.[22]
  • Population independence – If {x,x} is the list x appended to itself, then cv({x,x}) = cv(x). This follows from the fact that the variance and mean both obey this principle.
  • Pigou–Dalton transfer principle: when wealth is transferred from a wealthier agent i to a poorer agent j (i.e. xi > xj) without altering their rank, then cv decreases and vice versa.[22]

cv assumes its minimum value of zero for complete equality (all xi are equal).[22] Its most notable drawback is that it is not bounded from above, so it cannot be normalized to be within a fixed range (e.g. like the Gini coefficient which is constrained to be between 0 and 1).[22] It is, however, more mathematically tractable than the Gini coefficient.

As a measure of standardisation of archaeological artefacts

Archaeologists often use CV values to compare the degree of standardisation of ancient artefacts.[23][24] Variation in CVs has been interpreted to indicate different cultural transmission contexts for the adoption of new technologies.[25] Coefficients of variation have also been used to investigate pottery standardisation relating to changes in social organisation.[26] Archaeologists also use several methods for comparing CV values, for example the modified signed-likelihood ratio (MSLR) test for equality of CVs.[27][28]

Examples of misuse

Comparing coefficients of variation between parameters using relative units can result in differences that may not be real. If we compare the same set of temperatures in Celsius and Fahrenheit (both relative units, where kelvin and Rankine scale are their associated absolute values):

Celsius: [0, 10, 20, 30, 40]

Fahrenheit: [32, 50, 68, 86, 104]

The sample standard deviations are 15.81 and 28.46, respectively. The CV of the first set is 15.81/20 = 79%. For the second set (which are the same temperatures) it is 28.46/68 = 42%.

If, for example, the data sets are temperature readings from two different sensors (a Celsius sensor and a Fahrenheit sensor) and you want to know which sensor is better by picking the one with the least variance, then you will be misled if you use CV. The problem here is that you have divided by a relative value rather than an absolute.

Comparing the same data set, now in absolute units:

Kelvin: [273.15, 283.15, 293.15, 303.15, 313.15]

Rankine: [491.67, 509.67, 527.67, 545.67, 563.67]

The sample standard deviations are still 15.81 and 28.46, respectively, because the standard deviation is not affected by a constant offset. The coefficients of variation, however, are now both equal to 5.39%.

Mathematically speaking, the coefficient of variation is not entirely linear. That is, for a random variable <math>X</math>, the coefficient of variation of <math>aX+b</math> is equal to the coefficient of variation of <math>X</math> only when <math>b = 0</math>. In the above example, Celsius can only be converted to Fahrenheit through a linear transformation of the form <math>ax+b</math> with <math>b \neq 0</math>, whereas Kelvins can be converted to Rankines through a transformation of the form <math>ax</math>.

Distribution

Provided that negative and small positive values of the sample mean occur with negligible frequency, the probability distribution of the coefficient of variation for a sample of size <math>n</math> of i.i.d. normal random variables has been shown by Hendricks and Robey to be[29]

<math display="block">\mathrm{d}F_{c_{\rm v}} = \frac{2}{\pi^{1/2} \Gamma {\left(\frac{n-1}{2}\right)}} \; \mathrm{e}^{-\frac{n}{2\left(\frac{\sigma}{\mu}\right)^2}\frac{{c_{\rm v}}^2}{1+{c_{\rm v}}^2}}\frac{{c_{\rm v}}^{n-2}}{(1+{c_{\rm v}}^2)^{n/2}}\sideset{}{^\prime}\sum_{i=0}^{n-1}\frac{(n-1)! \, \Gamma \left(\frac{n-i}{2}\right)}{(n-1-i)! \, i! \,}\frac{n^{i/2}}{2^{i/2} \left(\frac{\sigma}{\mu}\right)^i}\frac{1}{(1+{c_{\rm v}}^2)^{i/2}} \, \mathrm{d}c_{\rm v} ,</math>

where the symbol <math display="inline">\sideset{}{^\prime}\sum</math> indicates that the summation is over only even values of <math>n - 1 - i</math>, i.e., if <math>n</math> is odd, sum over even values of <math>i</math> and if <math>n</math> is even, sum only over odd values of <math>i</math>.

This is useful, for instance, in the construction of hypothesis tests or confidence intervals. Statistical inference for the coefficient of variation in normally distributed data is often based on McKay's chi-square approximation for the coefficient of variation.[30][31][32][33][34][35] Methods for

Alternative

Liu (2012) reviews methods for the construction of a confidence interval for the coefficient of variation.[36] Notably, Lehmann (1986) derived the sampling distribution for the coefficient of variation using a non-central t-distribution to give an exact method for the construction of the CI.[37]

Similar ratios

Standardized moments are similar ratios, <math>{\mu_k}/{\sigma^k}</math> where <math>\mu_k</math> is the kth moment about the mean, which are also dimensionless and scale invariant. The variance-to-mean ratio, <math>\sigma^2/\mu</math>, is another similar ratio, but is not dimensionless, and hence not scale invariant. See Normalization (statistics) for further ratios.

In signal processing, particularly image processing, the reciprocal ratio <math>\mu/\sigma</math> (or its square) is referred to as the signal-to-noise ratio in general and signal-to-noise ratio (imaging) in particular.

Other related ratios include:

See also

References

Шаблон:Reflist

External links

  • cvequality: R package to test for significant differences between multiple coefficients of variation

Шаблон:Statistics