- 1、本文档共8页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
Incremental calculation of weighted mean and (增量计算加权平均数)
Incremental calculation of weighted mean and variance
Tony Finch
fanf2@cam.ac.uk dot@dotat.at
University of Cambridge Computing Service
February 2009
Abstract
In these notes I explain how to derive formulae for numerically stable calculation of the mean
and standard deviation, which are also suitable for incremental on-line calculation. I then generalize
these formulae to weighted means and standard deviations. I unpick the difficulties that arise when
generalizing further to normalized weights. Finally I show that the exponentially weighted moving
average is a special case of the incremental normalized weighted mean formula, and derive a formula
for the exponentially weighted moving standard deviation.
1 Simple mean
Straightforward translation of equation 1 into code can suffer from loss of precision because of the
difference in magnitude between a sample and the sum of all samples. Equation 4 calculates the mean
in a way that is more numerically stable because it avoids accumulating large sums.
n
1
µn = xi (1)
n
i=1
n−1
1
= (x + x ) (2)
n
您可能关注的文档
- Ideal for Satellite Applications Video (适合卫星应用视频).pdf
- Ideal Taper Prediction for Slab Casting (理想锥度预测板坯铸造).pdf
- Identification and Care of Veterinary Dental - AVA(识别和兽医牙科保健艾娃).pdf
- IDEMA STANDARDS(IDEMA标准).pdf
- Identification of Urethane Linkage, Soft Segment (识别聚氨酯链接,软段).pdf
- Identification of the Volatile Constituents of (的挥发性成分的识别).pdf
- Identification of Gear Noise with Single Flank (识别齿轮噪声与单一的侧面).pdf
- IEEE Citation Reference(IEEE引用参考).pdf
- IEEE 693 Seismic Qualification of Composites for ...(IEEE 693地震复合材料的资格).pdf
- I am sorry to say that global warming is not just (我很抱歉地说,全球变暖不仅是).doc
- 江西省九江市都昌县2023-2024学年八年级上学期11月期中英语试题(含答案).pdf
- 八年级上册历史复习知识点.docx
- 人教部编版五年级上册-第四单元-作文《习作:二十年后的家乡》.精品.ppt
- 六年级数学《分数除法》单元分析.docx
- 新课标人教版小学六年级语文上册课程纲要(2021年整理).doc
- 物理人教版必修第一册第二章匀变速直线运动的研究章节复习共28张课件.pptx
- (名师整理)最湘教版地理8年级上册第1章第4节《中国的民族》精品课件.ppt
- 人音版(五线谱)二年级上册音乐《8小拜年》说课稿.docx
- 2024年初中心理健康工作计划(五篇).doc
- 2024-2025学年小学五年级英语上册期中质量检查试题及答案北京版.docx
文档评论(0)