CN100442270C - 一种用蒙特卡罗统计模拟计算合成不确定度的方法 - Google Patents

一种用蒙特卡罗统计模拟计算合成不确定度的方法 Download PDF

Info

Publication number
CN100442270C
CN100442270C CNB2005100285878A CN200510028587A CN100442270C CN 100442270 C CN100442270 C CN 100442270C CN B2005100285878 A CNB2005100285878 A CN B2005100285878A CN 200510028587 A CN200510028587 A CN 200510028587A CN 100442270 C CN100442270 C CN 100442270C
Authority
CN
China
Prior art keywords
uncertainty
random number
output quantity
sigma
output
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CNB2005100285878A
Other languages
English (en)
Other versions
CN1912861A (zh
Inventor
盛克平
何宝林
杨伟浩
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Institute of Measurement and Testing Technology
Original Assignee
Shanghai Institute of Measurement and Testing Technology
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shanghai Institute of Measurement and Testing Technology filed Critical Shanghai Institute of Measurement and Testing Technology
Priority to CNB2005100285878A priority Critical patent/CN100442270C/zh
Publication of CN1912861A publication Critical patent/CN1912861A/zh
Application granted granted Critical
Publication of CN100442270C publication Critical patent/CN100442270C/zh
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Complex Calculations (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

本发明涉及计量测试技术领域,尤其是涉及一种用蒙特卡罗统计模拟计算合成不确定度的方法。它包括如下步骤:a、引入测量输入量和输出量函数关系的数学模型Y=f(x1,x2,…,xn),上式中Y为输出量、x1,x2,…,xn为输入量;b、引入输入量x1,x2,…,xn不确定度的概率分布和参数;c、根据输入量x1,x2,…,xn不确定度的概率分布和参数,选择随机数ξ1,ξ2,…,ξn;d、选择对随机数ξ1,ξ2,…,ξn的检验方法;e、在计算机上进行模拟计算输出量Y、输出量Y的标准偏差和与置信水平精确相关的合成不确定度。本发明可使最终的扩展不确定度与置信水平精确关联,特别是高置信水平的扩展不确定度(置信水平95%或99%等)。这将在许多领域,如工业、商业以及卫生和安全等领域发挥很重要的作用。

Description

一种用蒙特卡罗统计模拟计算合成不确定度的方法
技术领域
本发明涉及计量测试技术领域,尤其是涉及一种用蒙特卡罗统计模拟计算合成不确定度的方法。
背景技术
不确定度的概念在计量测试技术领域占有着重要的地位。任一有效的测量必须带有不确定度的评定,以便于人们可以对这一测量过程的优劣进行评估、比较和复现这一测量过程。它在科技领域成为不可缺少的部分,所以国际上于1993年由国际标准化组织(ISO)等7个国际组织的名义联合发布了《测量不确定度表示指南》(Guide to the Expression of Uncertainty in Measurement简称GUM)。我国也于1999年发布了JJF1059-1999《测量不确定度评定与表示》,以便于与国际同步,可对重要的测量过程进行统一的评估,也保证了计量领域的量值传递的可行性和统一性。
但是,不确定度伴随着任一测量过程。许多领域,如工业、商业以及卫生和安全等领域,需要伴随着这个测量值的不确定度有一个确切的置信区间,以期望将其作为依据,预测项目的可行性。人们期望得到的数据(不确定度)既不夸大可预知性,即在概率要求确定的情况下,缩小不确定度;也不缩小预知性(如果发生相反的情况),而期望获得正确的预测。由于大多数测量结果的概率分布是很难用数学方法得出的,所以上述标准根据不确定度传播率导出的合成标准不确定度uc乘以复盖因子kp得到的扩展不确定度Up,并不确切地与置信水平的概率相关联(如p=95%,,表示大约应有95%的测量结果落入此区间)。
发明内容
本发明所要解决的技术问题是提供一种可使最终的合成不确定度与置信水平精确关联的用蒙特卡罗统计模拟计算合成不确定度的方法,它包括如下步骤:a、引入测量输入量和输出量函数关系的数学模型Y=f(x1,x2,…xn),上式中Y为输出量、x1,x2,…xn为输入量;b、引入输入量x1,x2,…xn不确定度的概率分布和参数;c、根据输入量x1,x2,…xn不确定度的概率分布和参数,选择随机数ξ1,ξ2,…ξn;d、选择对随机数ξ1,ξ2,…ξn的检验方法;e、在计算机上进行模拟计算输出量Y、输出量Y的标准偏差和与置信水平精确相关的合成不确定度,在计算机上进行模拟计算是将各随机数ξ1,ξ2,…ξn代入Y=f(x1,x2,…xn)得到yi=f(ξ1i,ξ2i,…ξni),各随机数的取值范围在各不确定度分量分布的全范围,相应得到的yi即为输出量的可能值,i=1,2,…n,在计算机上产生n个模拟值y1,y2,…yn,输出量 Y = 1 n Σ i = 1 n y i ,输出量Y的标准偏差 s = [ Σ i = 1 n ( y i - Y ) 2 / ( n - 1 ) ] 1 / 2 , 并根据需要评定合成不确定度置信区间的概率p,使得p=m/n,式中n为模拟总次数,m为|yi-Y|<δ的模拟次数,δ为需要最终评定的输出量Y的与置信水平精确相关的合成不确定度。
本发明可使最终的合成不确定度与置信水平精确关联,特别是高置信水平的合成不确定度(置信水平95%或99%等)。如果根据不确定度传播率导出的合成标准不确定度uc乘以复盖因子kp得到的扩展不确定度Up,由于输出量的分布往往不可知,而不确切地与置信水平的概率相关联。本发明将在许多领域,如工业、商业、医药卫生等领域发挥很大的作用。
附图说明
图1为模拟计算的计算机程序流程。
图2为模拟计算Y=f(D0,Mx,Dx)的分布。
具体实施方式
表1为模拟计算的10次重复计算值(不同模拟次数)。
实施例:本实施例是一个校准扫描电子显微镜记录图像上显微标尺的实例,其中测量数学模型即为计算校准值的计算公式:
M=D0×Mx/Dx
式中:
M——显微标尺的校准值;
D0——标准物质的长度值;
Mx——记录图像上显微标尺的长度测量值;
Dx——标准物质的长度测量值。
各输入量不确定度的确定和产生随机数的方法
在测量的数学模型f(D0,Mx,Dx)=D0×Mx/Dx已建立的情况下,其中各输入量D0,Mx,Dx的不确定度假设确定如下:
标准物质的长度值D0=4.6μm±0.05μm,不确定度服从正态分布N(a,σ),这里a=4.6μm;σ=0.05μm。标准物质的长度值用随机数ξ1i表示,选择通常蒙特卡罗方法介绍的正态分布N(a,σ)的随机数产生的方法,可以得到:
ξ 1 i = σ ( Σ k = 1 48 r k - 24 ) / 2 + a
= 0.05 ( Σ k = 1 48 r k - 24 ) / 2 + 4.6 (其中rk为(0,1)上均匀分布的随机数)
记录图像上显微标尺的长度测量值Mx=15mm±0.5mm,不确定度服从(a,b)区间的均匀分布,这里a=15mm-0.5mm=14.5mm;b=15mm+0.5mm=15.5mm。记录图像上显微标尺的长度测量值用随机数ξ2i表示,选择通常蒙特卡罗方法介绍的对任意区域(a,b)上均匀分布的随机数产生的方法产生,可以得到:
ξ2i=a+(b-a)r2i=14.5+r2i(其中r2i为(0,1)上均匀分布的随机数)
标准物质的长度测量值Dx=36mm±0.5mm,不确定度服从在(a,b)区间的均匀分布,这里a=36mm-0.5mm=35.5mm;b=36mm+0.5mm=36.5mm。标准物质长度测量值用随机数ξ3i表示,选择通常蒙特卡罗方法介绍的对任意区域(a,b)上均匀分布的随机数产生的方法产生,可以得到:
ξ3i=a+(b-a)r3i=35.5+r3i(其中r3i为(0,1)上均匀分布的随机数)随机数的检验
由于本实例是采用美国Microsoft公司的产品Visual Basic 6.0软件编制的计算机程序来进行模拟计算,随机数的产生是该软件所附的随机数发生器产生的。可以认为这样获得的在(0,1)上均匀分布的随机数系列是通过各项参数检验、均匀性检验和独立性检验的,所以在计算程序中,我们仅对在该随机数基础上构造起来的在任意区域(a,b)上均匀分布的随机数和正态分布N(a,σ)的随机数的平均值 y ‾ = 1 n Σ i = 1 n y i 进行参数检验,其方法如下:
对于任意区域(a,b)上均匀分布随机数的数学期望和方差表示为:
E(y)=(a+b)/2
σ2=E(y2)-[E(y)]2=(b3-a3)/3-(a+b)2/4
由中心极限定理知统计量:
u = [ Σ i = 1 n y i - nE ( y ) ] / ( σ × n ) = n [ 1 n Σ i = 1 n y i - a + b 2 ] / [ b 3 - a 3 3 - ( a + b ) 2 4 ] 1 / 2
当N充分大时,渐近地服从N(0,1)分布。
对于正态分布N(a,σ)的随机数的数学期望和方差直接就是a和σ,所以由中心极限定理得到统计量:
u = [ Σ i = 1 n y i - nE ( y ) ] / ( σ × n ) = n σ ( 1 n Σ i = 1 n y i - a )
当N充分大时,渐近地服从N(0,1)分布。
取显著性水平α=0.1,则当|u|>1.645时,计算机程序将重新产生随机数,一直到产生的随机数通过参数检验然后继续进行模拟计算。
模拟计算的计算机程序流程参见图1。
模拟计算结果:
模拟计算Y=f(D0,Mx,Dx)的分布参见图2。
Y的模拟计算平均值:E(y)=1.91670410155901μm;模拟计算次数:n=100000;Y的模拟计算标准偏差:S=4.62415096429435E-02μm;模拟计算值的置信概率为95%的合成不确定度:U95=0.086317873244385μm。
本发明还可以采用多次重复计算取得平均值,以便获得更高的精度。模拟计算的10次重复计算值(不同模拟次数)参见表1。
如果取n=100000的10次重复计算平均值为最终结果,可得校准值及不确定度为:
图像上显微标尺校准值M=1.917μm,标准偏差s=0.046μm,U95(M)=0.085μm。
根据《测量不确定度表示指南》(Guide to the Expression of Uncertainty inMeasurement简称GUM)和中国国家标准JJF1059-1999《测量不确定度评定与表示》中规定的不确定度的传播率 u c 2 ( y ) = Σ i = 1 N [ ∂ f ∂ x i ] 2 u 2 ( x i ) 计算可得校准值及不确定度为:图像上显微标尺校准值M=1.917μm,合成标准不确定度uc(M)=0.045μm,扩展不确定度U(M)=0.090μm;k=2。
  模拟次数n   模拟计算平均值E(y)   标准偏差S   合成不确定度(95%)
  1000   1.91999960561   0.04343572944   0.07719564026
  1000   1.91431399520   0.04693235069   0.08898753965
  1000   1.91650754874   0.04502600662   0.08558322496
  1000   1.91461375245   0.04853157404   0.09428388535
  1000   1.92130136760   0.04419618587   0.08387538353
  1000   1.92078692475   0.04687640923   0.08692830841
  1000   1.91278062577   0.04706553280   0.08933426860
  1000   1.92021422396   0.04675727676   0.08659899333
  1000   1.92007606678   0.04442139537   0.08172215466
  1000   1.91660246479   0.04489642036   0.08437755711
  平均值   1.91771965757   0.04581388812   0.08588869559
  标准偏差   0.00311924152   0.00162946694   0.00462960147
  10000   1.91327348144   0.04485437348   0.08474359067
  10000   1.91471483038   0.04687660217   0.08655682969
  10000   1.91336180236   0.04237230110   0.08064296981
  10000   1.91254033916   0.04510784008   0.08615734388
  10000   1.91822420335   0.04547925248   0.08737239349
  10000   1.91401236881   0.04731933820   0.08725464655
  10000   1.91526978118   0.04781703640   0.09169709697
  10000   1.91719845107   0.04706752749   0.08899017738
  10000   1.92087012419   0.04491498246   0.08518137817
  10000   1.92042430766   0.04588298945   0.08492132702
  平均值   1.91598896896   0.04576922433   0.08635177536
  标准偏差   0.00302165441   0.00160376252   0.00290713773
(续下页)
(接上页)
50000 1.91445048858 0.04601576090 0.08670459993
  50000   1.91490416155   0.04514804391   0.08322765646
  50000   1.91764740887   0.04391093842   0.08278820786
  50000   1.91899204445   0.04468988012   0.08517379323
  50000   1.92114890430   0.04589111150   0.08504693505
  50000   1.91788347790   0.04502908213   0.08452275663
  50000   1.91936685187   0.04553810318   0.08506173059
  50000   1.91788666864   0.04758123999   0.08746756429
  50000   1.91578996295   0.04386265770   0.08274164036
  50000   1.91312546807   0.04560360155   0.08617017878
  平均值   1.91711954372   0.04532704194   0.08489050632
  标准偏差   0.00249433394   0.00108890950   0.00162074597
  100000   1.91645610604   0.04647044109   0.08786854215
  100000   1.91847265710   0.04554862898   0.08565389052
  100000   1.91560375003   0.04577514149   0.08593928581
  100000   1.91709709493   0.04626752522   0.08563484604
  100000   1.91789391940   0.04447459245   0.08307888582
  100000   1.91695612417   0.04530520963   0.08518167415
  100000   1.91808268402   0.04508823893   0.08446613380
  100000   1.91783382781   0.04513480701   0.08416785468
  100000   1.91522932069   0.04712540374   0.08666412406
  100000   1.91642910731   0.04621093718   0.08563994081
  平均值   1.91700545915   0.04574009257   0.08542951779
  标准偏差   0.00108284077   0.00078684744   0.00133235532
表1

Claims (1)

1.一种用蒙特卡罗统计模拟计算合成不确定度的方法,其特征是它包括如下步骤:
a、引入测量输入量和输出量函数关系的数学模型Y=f(x1,x2,…xn),上式中Y为输出量、x1,x2,…xn为输入量;
b、引入输入量x1,x2,…xn不确定度的概率分布和参数;
c、根据输入量x1,x2,…xn不确定度的概率分布和参数,选择随机数ξ1,ξ2,…ξn
d、选择对随机数ξ1,ξ2,…ξn的检验方法;
e、在计算机上进行模拟计算输出量Y、输出量Y的标准偏差和与置信水平精确相关的合成不确定度,在计算机上进行模拟计算是将各随机数ξ1,ξ2,…ξn代入Y=f(x1,x2,…xn)得到yi=f(ξ1i,ξ2i,…ξni),各随机数的取值范围在各不确定度分量分布的全范围,相应得到的yi即为输出量的可能值,i=1,2,…n,在计算机上产生n个模拟值y1,y2,…yn,输出量 Y = 1 n Σ i = 1 n y i , 输出量Y的标准偏差为 s = [ Σ i = 1 n ( y i - Y ) 2 / ( n - 1 ) ] 1 / 2 , 并根据需要评定合成不确定度置信区间的概率p,使得p=m/n,式中n为模拟总次数,m为|yi-Y|<δ的模拟次数,δ为需要最终评定的输出量Y的与置信水平精确相关的合成不确定度。
CNB2005100285878A 2005-08-08 2005-08-08 一种用蒙特卡罗统计模拟计算合成不确定度的方法 Expired - Fee Related CN100442270C (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2005100285878A CN100442270C (zh) 2005-08-08 2005-08-08 一种用蒙特卡罗统计模拟计算合成不确定度的方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2005100285878A CN100442270C (zh) 2005-08-08 2005-08-08 一种用蒙特卡罗统计模拟计算合成不确定度的方法

Publications (2)

Publication Number Publication Date
CN1912861A CN1912861A (zh) 2007-02-14
CN100442270C true CN100442270C (zh) 2008-12-10

Family

ID=37721801

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2005100285878A Expired - Fee Related CN100442270C (zh) 2005-08-08 2005-08-08 一种用蒙特卡罗统计模拟计算合成不确定度的方法

Country Status (1)

Country Link
CN (1) CN100442270C (zh)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101603958B (zh) * 2009-07-16 2013-03-27 朱家平 分析不确定度的方法及装置
US8712712B2 (en) * 2011-03-29 2014-04-29 Bio-Rad Laboratories, Inc. System and method for producing statistically valid assay means and ranges for quality control materials
CN103106332B (zh) * 2012-12-13 2015-09-23 华中科技大学 一种测量不确定度的分析方法
CN103246776B (zh) * 2013-05-14 2016-04-20 哈尔滨工业大学 基于蒙特卡洛模拟的接触器触头分断速度合格率预测方法
CN105045223B (zh) * 2015-05-28 2018-08-03 鲁东大学 一种不确定条件下多产品间歇过程生产调度方法
CN105653808A (zh) * 2016-01-05 2016-06-08 成都阳光铝制品有限公司 一种基于蒙特卡洛的规定塑性延伸强度不确定度评定方法
CN105987676A (zh) * 2016-03-17 2016-10-05 合肥工业大学 一种三坐标测量机机构误差引入的测量不确定度评定方法
CN107872055A (zh) * 2016-09-28 2018-04-03 北京南瑞电研华源电力技术有限公司 电网安全运行通信设备传输数据不确定度评定方法及装置
CN106528048B (zh) * 2016-11-02 2021-06-15 北京旷视科技有限公司 评估随机数生成器质量的方法及装置
CN107229771B (zh) * 2017-04-21 2020-09-04 中广核研究院有限公司 进行核燃料板弹簧压紧力模拟测定的方法
CN109063233B (zh) * 2018-06-15 2023-05-16 中国核电工程有限公司 一种用蒙特卡洛法评定核素含量对keff不确定度影响的方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1111018A (zh) * 1993-07-26 1995-11-01 埃克森生产研究公司 利用有限孔径偏移和蒙特卡罗偏移的偏移速度分析
CN1225482A (zh) * 1997-11-28 1999-08-11 日本电气株式会社 溅射装置的模拟方法
CN1538700A (zh) * 2003-02-28 2004-10-20 �����ձ�����ʵ���ҹ�˾ 通过顺序蒙特卡罗的接近最佳的多输入多输出信道检测
US20040267456A1 (en) * 2003-06-27 2004-12-30 Stephan Brunner Method and computer program product for drug discovery using weighted grand canonical metropolis Monte Carlo sampling
WO2005001645A2 (en) * 2003-06-27 2005-01-06 Locus Pharmaceuticals, Inc. Method and computer program product for drug discovery using weighted grand canonical metropolis monte carlo sampling

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1111018A (zh) * 1993-07-26 1995-11-01 埃克森生产研究公司 利用有限孔径偏移和蒙特卡罗偏移的偏移速度分析
CN1225482A (zh) * 1997-11-28 1999-08-11 日本电气株式会社 溅射装置的模拟方法
CN1538700A (zh) * 2003-02-28 2004-10-20 �����ձ�����ʵ���ҹ�˾ 通过顺序蒙特卡罗的接近最佳的多输入多输出信道检测
US20040267456A1 (en) * 2003-06-27 2004-12-30 Stephan Brunner Method and computer program product for drug discovery using weighted grand canonical metropolis Monte Carlo sampling
WO2005001645A2 (en) * 2003-06-27 2005-01-06 Locus Pharmaceuticals, Inc. Method and computer program product for drug discovery using weighted grand canonical metropolis monte carlo sampling

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
用MC仿真计算不确定度. 刘智敏.中国计量学院学报,第16卷第1期. 2005 *
蒙特卡罗模拟法在边坡可靠性分析中的运用. 江永红.数理统计与原理,第17卷第2期. 1998 *

Also Published As

Publication number Publication date
CN1912861A (zh) 2007-02-14

Similar Documents

Publication Publication Date Title
CN100442270C (zh) 一种用蒙特卡罗统计模拟计算合成不确定度的方法
Doll et al. A confirmatory factor analysis of the user information satisfaction instrument
Cox et al. Evaluation of measurement uncertainty based on the propagation of distributions using Monte Carlo simulation
Cox et al. Software Support for Metrology Best Practice Guide No. 6. Uncertainty evaluation.
Yeh et al. Using the Monte Carlo simulation methods in gauge repeatability and reproducibility of measurement system analysis
CN112131685B (zh) 一种联合循环机组整体热力性能试验不确定度评估方法
CN111751313B (zh) 一种单点校准测量系统的测量不确定度的评定方法
Yang Visual assessment of residual plots in multiple linear regression: A model-based simulation perspective
Patil et al. Using resampling techniques to compute confidence intervals for the harmonic mean of rate-based performance metrics
Zhou et al. Inverse statistics and multifractality of exit distances in 3D fully developed turbulence
CN103106332A (zh) 一种测量不确定度的分析方法
CN101930501A (zh) 基于分形维数的多相混合效果预测模型建立的方法
CN117308838A (zh) 超声测厚系统的回波次数获取方法、装置、介质及设备
CN105527596B (zh) 一种晶圆验收测试机台加压校准方法
CN106874579A (zh) 基于屈服强度与抗拉强度双关键点的钢制压力容器极限承载力分析方法
Nardelli et al. Uncertainty evaluation of computed tomography measurements using multiple calibrated workpieces
CN109359862A (zh) 一种粮食作物实时估产方法及系统
Arredondo-Soto et al. Calibration system for cost reduction: A case study in the Maquiladora industry
Novoa et al. Bootstrap methods for analyzing time studies and input data for simulations
CN109858699B (zh) 水质定量模拟方法、装置、电子设备及存储介质
Coelho et al. A numerical study of measurement uncertainties for wave gauges
Choudhary et al. An Investigation of Various Methods for Evaluating the Measurement Uncertainty
Briggs Proficiency testing for calibration laboratories
Healy et al. Gage repeatability and reproducibility methodologies suitable for complex test systems in semi-conductor manufacturing
Hynek et al. Quality assessment of fetal nuchal translucency measurements in the first trimester of pregnancy

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20081210

Termination date: 20100808