RelVar
Whereas standard deviation and variance are measures of absolute variance, the coefficient of variation is a measure of relative variance. This is generally useful to compare several data sets. It can also be used as a simple quality indicator. The definition used here is ratio of standard deviation to mean value expressed as percentage. For more information on descriptive statistics, check out the online documentation for the Statistics Toolbox at http://www.mathworks.com/help/stats/index.html?searchHighlight=Statistics+Toolbox.
This is just a one-line utility but I use it often because it's convenient - saves typing.
Cite As
Robert Bemis (2024). RelVar (https://www.mathworks.com/matlabcentral/fileexchange/3278-relvar), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- AI and Statistics > Statistics and Machine Learning Toolbox > Descriptive Statistics and Visualization >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.