Member-only story
Use Python to calculate the Coefficient of Variation of a list of numbers
In an earlier post I discussed writing the code in Python for four common statistical functions, and that post can be found here:- https://medium.com/geekculture/write-your-own-statistical-functions-using-python-bc2c45a3aa39
In the past few days I decided to pick up my studies of statistics again to see if I could absorb more of this science if I perhaps I used a different type of instruction. The good news is that I have been able to absorb more information on statistics, and a review of that course will be coming soon.
One thing that I have learned in this new course is about the coefficient of variation. The coefficient of variation, or CV, is a statistical measure of the relative dispersion of data points in a data series around the mean. Higher values of a CV mean that the standard deviation is relatively large compared to the mean. CV’s of 5% or less are good indicators of method performance, which CV’s of over 10% can give cause for concern.
The coefficient of variation is somewhat easy to calculate if the standard deviation and the mean are already known. Fortunately, in my earlier post I had written the functions for both the standard deviation and the mean, so all a programmer needs to do is to use the functions that I have previously written to find the value…