codecamp

Statistics - Geometric Mean of Discrete Series

当数据与其频率一起给出时。 下面是离散系列的例子:

项目 5 10 20 30 40 50 60 70
频率 2 5 1 3 12 0 5 7

在离散系列的情况下,几何平均值使用以下公式计算。

$G.M. = Antilog\ \frac{\sum f \times \log x}{N} \\[7pt] \, = Antilog\ \frac{f_{1} \log x_{1} + f_{2} \log x_{2} + .... + f_{n} \log x_{n}}{N}$

其中 -

  • $ {G.M。} $ =几何平均值

  • $ {x_1,x_2,x_3,...,x_n} $ =变量x的不同值。

  • $ {f_1,f_2,f_3,...,f_n} $ =变量x的相应频率。

  • $ {N = \\ sum f} $

例子

问题陈述:

计算以下离散数据的几何平均值:

项目 14 36 45 70 105
频率 2 5 1 3 12

解决方案:

基于给定的数据,我们有:

$ {x} $ $ {f} $ $ {logx} $ $ {flogx} $
14 1 1.1461 1.1461
36 2 1.5563 3.1126
45 1 1.6532 1.6532
70 2 1.8450 3.6900
105 1 2.0211 2.0211
    11.623

基于上述公式,几何平均$ G.M. $将是:

$G.M. = Antilog\ \frac{\sum f \times \log x}{N} \\[7pt] \, = Antilog\ of\ \frac{11.623}{5} \\[7pt] \, = Antilog\ of\ 2.3246 \\[7pt] \, = 211.15$

给定数字的几何平均值为211.15。


Statistics - Geometric Mean of Individual Series
Statistics - Standard Deviation of Continuous Data Series
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Statistics Tutorial

Statistics Useful Resources

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }