变化计算器的系数
衡量相对变化情况,作为标准偏离与平均值的比率。
输入结果时更新 。
关于此计算器
The coefficient of variation (CV) expresses the standard deviation as a percentage of the mean, giving a unit-free measure of relative spread. Because it is scale-independent, the CV lets you compare the variability of data sets that have very different means or units — you can put the consistency of a set of body weights next to a set of exam scores even though they share no units.
The formula is simply CV = (standard deviation ÷ mean) × 100%. This calculator uses the sample or population standard deviation you choose, divides it by the mean of the data and flags whether the relative variability is low, moderate or high (below about 15%, between 15% and 30%, or above 30% here).
Worked example: for 10, 12, 14, 16, 18 the mean is 14 and the sample standard deviation is about 3.16, so the coefficient of variation is 3.16 ÷ 14 × 100% ≈ 22.6% — moderate relative variability. The CV is widely used in finance to compare investment risk per unit of return and in the lab to judge the precision of repeated measurements.
经常问到的问题
什么是高变差系数?
不存在普遍截断,但低于15%左右的简历通常被认为低(一致)差异,高于30%,相对较高。 总是根据您字段的典型值来判断。
何时变化系数没有用处?
当平均值接近零时,CV是不可靠的,因为除以一小块平均值会使它爆炸,对于负值数据或缺乏真正的零点(如摄氏温度)的数据来说,CV没有意义。
变差系数我怎么计算?
标准差除以平均值,乘以100,以表示为百分比。以14和3.16为平均值,CV为3.16,CV为3.16 14 × 100% + 22.6%。
为什么使用CV 而不是标准偏差?
标准偏差与数据单位和尺度挂钩,因此无法公平地比较美元价格的分布和以厘米计的高度分布。 以平均值表示的偏差可以去除单位, 使您比较完全不同的数据集的相对一致性。
变化系数是否与相对标准差相同?
是。 相对标准差是以百分比表示的变差系数的另一个名称;这两个词可以互换。
我应使用抽样还是人口标准差?
当您的数字是从较大组中抽取的子集时,使用样本选项,当它们为整个组时使用人口选项。选择会略微改变标准差,因此也略微改变CV,特别是小数据集。
API - 使用代码中的计算器
将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →
终点
GET https://calculator.free/api/v1/coefficient-of-variation/
curl
curl "https://calculator.free/api/v1/coefficient-of-variation/?numbers=10, 12, 14, 16, 18&type=sample"
JavaScript fetch()
const r = await fetch(
"https://calculator.free/api/v1/coefficient-of-variation/?" + new URLSearchParams({
"numbers": "10, 12, 14, 16, 18",
"type": "sample"
}));
const data = await r.json();
console.log(data.results);
成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。