Review of Methodology and Rationale of Monte Carlo Simulation

Size: px
Start display at page:

Download "Review of Methodology and Rationale of Monte Carlo Simulation"

Transcription

1 Review of Methodology and Rationale of Monte Carlo Simulation Application to Metrology with Open Source Software Vishal Ramnath Mechanical Metrology Group National Metrology Institute of South Africa November 6, 2008

2 Overview of Presentation Introduction Review of GUM Methodology Review of Monte Carlo Methodology Analysing and Understanding the Data Reporting Results in GUM Terms

3 Review of GUM Methodology Review of Monte Carlo Methodology Introduction This is an introductory presentation to convey the basic ideas behind the mechanics of the Monte Carlo technique as applied to metrology measurement uncertainty problems. The rationale for the need to understand and implement Monte Carlo (MC) techniques in the context of metrology is that with the advance of science and technology more accurate measurements are for various reasons increasingly necessary in many economies and MC simulations present the most accurate and readily available numerical technology to solve such challenges taking into account certain limitations in existing approaches such as the well known ISO Guide to Uncertainty in Measurement (GUM).

4 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 1 - Essential Information Needed For an input quantity x i in the GUM framework three quantities are needed viz. the expectation of x i which is just the estimate of this input the standard deviation of x i which is the standard deviation of this input σ(x i ) the corresponding degrees of freedom ν i associated with x i If there are dependencies with other input quantities x j, j i then covariances are also required: in the case of two inputs x i and x j the covariance u(x i, x j ) and correlation coefficient r(x i, x j ) are related by (1) u(x i, x j ) = r(x i, x j )u(x i )u(x j ), 1 r(x i, x j ) 1

5 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 1 cont. - Essential Information Needed (2) u(x i, x j ) = 1 q(q 1) q (x i,k x i )(x j,k x j ) k=1 If r(x i, x j ) = 0 then there is no correlation and if r(x i, x j ) 1 then there is strong correlation Most uncertainty calculations assume r(x i, x j ) 0 for simplicity i.e. no correlation between input quantities but if necessary correlation can be explicitly incorporated into calculations In the case of correlation between more than two variables e.g. x i, x j, x k with i j k then a covariance matrix and not a scalar correlation coefficient is required

6 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 1 cont. - Essential Information Needed The GUM approach is the propagation of uncertainties associated with input quantities in a measurement model to provide estimates of the model output quantity (univariate) or quantities (multivariate) It should be noted that: Within the framework of the GUM a mathematical model of the measurand is a prerequisite in order to implement an uncertainty calculation

7 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 2 - Standard Calculation Technique (3a) (3b) (3c) (3d) (3e) y = f(x 1,..., x n ) math model c i = f sens coeff x i n [ ] 2 f u 2 (y) = u 2 (x i ) std unc x i u 4 (y) ν eff = k i=1 n i=1 t t c 4 i u 4 (x i ) ν i calc eff deg freedom Γ[ ν ν eff +1 ) eff +1 2 ] (1 πνeff Γ[ ν eff 2 ] + u2 2 du = p ν eff coverage factor

8 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 2 - Brief Comment on Sensitivity coeff s Various possibilities will arise in practise with real inputs x R n : univariate, explicit, real model or multivariate, explicit, real model univariate, implicit, real model or multivariate, implicit, real model In the case of an implicit model i.e. where an explicit functional relationship between the input and output(s) is not known then additional matrix algebraic manipulations are necessary and such manipulations require the solution of linear systems of equations In addition as per the above but with complex models i.e. with x C n require analogous sensitivity conterparts where now partial derivatives for both the real and imaginary components of an input are necessary

9 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 3 - Assumptions & Limitations of the GUM There are three chief requirements that limit the applicability of the GUM: the non-linearity for the measurand as modelled by a function f(x) must be insignificant [GUM Clause 5.1.2] the Central Limit Theorem must be assumed to apply for the model of the measurand i.e. the PDF for the output must be Gaussian (alternately in terms of a t-distribution) [GUM Clauses G.2.1 and G.6.6] and the necessary conditions for a Welch-Satterthwaite formula to calculate the effective degrees of freedom must apply [GUM Clause G.4.2]

10 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 4 - When & how will the GUM not work As per the three requirements for the GUM to adequately apply it will then by implication not function adequately when: non-linearities in the model are significant - when the model can not accurately be represented by a first order Taylor series expansion then the probability distribution of the measurand can similarly not be accurately represented in terms of the convolution integral of the distributions of the input quantities; the conditions for the validity of the Central Limit Theorem as applicable to the measurement model are not sufficiently strong - theoretically the CLT predicts a Gaussian distribution for the measurand only in the limit as the number of input quantities increases i.e. it is not necessarily a true or accurate representation of the measurand PDF for a small finite number of input parameters

11 Review of GUM Methodology Review of Monte Carlo Methodology GUM Review 4 cont. - When & how will the GUM not work As per the three requirements for the GUM to adequately apply it will then by implication not function adequately when: the conditions for the validity of the Welch-Satterthwaite formula are not present i.e. in the case for a univariate, real output y where the input quantities x are not mutually independent - the GUM does not state how ν eff is to be calculated when the input quantities are correlated i.e. even though correlation coefficients (alternately covariance matrix) may be modelled / calculated from experimental data there is no methodology to estimate ν eff and hence a corresponding coverage factor k unless one assumes u(x i, x j ) 0 i j Correlation coefficients r(x i, x j ) are used for calculating the combined standard uncertainty u c, cf. U = k(p, ν eff ) u c

12 Review of GUM Methodology Review of Monte Carlo Methodology Review of GUM Methodology - Background to why MC is being utilized With the three requirements for the GUM to adequately apply and with limitations and lack of applicability that arises when these conditions are not met for many practical measurement models of real measurement systems and standards we then see that: Due to the sometimes restrictive conditions on the limitations and applicability of the GUM that many NMI s and possibly even industrial metrology laboratories are starting to investigate and implement Monte Carlo simulations for their own laboratory standards and in inter-comparisons for e.g. CMC justifications

13 Review of GUM Methodology Review of Monte Carlo Methodology Review of MC Methodology In a measurement uncertainty analysis one is concerned with propagating uncertainties from inputs to outputs and the GUM propogates uncertainties from a first order approximation from a model of a measurement system with the assumption that the measurand has a Gaussian distribution whilst a MC method directly propogates PDF information without any prior assumptions. A MC method can be accurately described as a statistical sampling technique.

14 Review of GUM Methodology Review of Monte Carlo Methodology Outline of MC Process Used for a Univariate Model 1. select M Monte Carlo trials 2. generate M vectors by sampling from the PDF s for the set of N input quantities 3. for each vector evaluate the model to give the corresponding value of the output quantity 4. calculate the estimate of the output quantity i.e. the measurand and its associated standard uncertainty 5. use the simulation data to build a discrete representation of the distribution function 6. use the distribution function to calculate the coverage interval for the measurand

15 For continous random variables recall: f(x) is a PDF for a random variable x if (i) f(x) 0 x R, (ii) f(x)dx = 1, (iii) P(a < X < b) = b a f(x)dx The corresponding cumulative distribution function is F(x) = x f(t)dt For MC work we will use the following nomenclature: Let the PDF for input X i be g i (ξ i ), the PDF for the measurand Y be g(η), and G(η) = η g(z)dz denote the distribution function corresponding to g(η)

16 There are additional mathematical definitions and terminology that are necessary to more fully understand how a Monte Carlo simulation works in practice but for our purposes we will not delve too deeply into the finer details in this presentation and rather concentrate on some of the more practical considerations that are needed if one wishes to undertake and implement a MC measurement uncertainty analysis

17 A few preliminary points should be noted: a good random number generator is essential for reliable work - the MS Excel RNG is not satisfactory and will introduce problems the software code used should allow definition of a model and the parameters defining the PDF s for the input quantities symmetry in the output PDF is not assumed no derivatives are required there is an avoidance of the concept of effective degrees of freedom sensitivity coefficients are not calculated or needed: possible to modify post-processing to calc a sensitivity coeff

18 When developing a mathematical model for a MC simulation it should be noted that there is no distinction between Type A and Type B uncertainty contributors and that the measurand is simply defined in terms of a function e.g. (4) y = f(x 1, x 2,..., x n ) where the inputs x 1,..., x n directly model and describe the influence if an input is changed - it is this variation/change in the input parameters that is propogated through the model and hence influences the output expressible as an uncertainty.

19 A MC simulation is therefore different from the GUM in the sense that one has to have a full and complete understanding of the entire measurement system under investigation and one can not simply assign an input uncertainty and a unity sensitivity coefficient without adequate justification

20 In a MC simulation the PDF s of the input quantities g 1 (ξ 1 ),..., g N (ξ N ) are required and the following options are possible: if the input x i is a quantity that has been measured/calibrated then it will have a measurement/calibration certificate that was done with the GUM so the quoted value is the mean µ i and its standard uncertainty is obtained by dividing the expanded uncertainty by the applicable coverage factor - this is enough information to infer its PDF since the GUM result is always expressed in terms of a Gaussian PDF which is completely defined in terms of µ and σ similarly as above for rectangular (particularly if estimated from e.g. literature), triangular, U shaped distributions etc.

21 cont. a statistical analysis based on relevant theory may indicate an inputs PDF e.g. dimensional cosine terms and one then just has to estimate some parameters to fully define the PDF there may be discrete numerical data for an input parameter which means that input parameter s PDF can be built up with its frequency data (like a histogram)

22 Mass Meas Unc Example to Contrast the GUM vs. MC Example (Math Model Explanation & Details) Consider a mass calibration to illustrate the principles of a MC simulation and some of the differences with the standard GUM approach with a schematic illustration of the measurement system

23 Mass Meas Unc Example to Contrast the GUM vs. MC Example (Math Model Explanation & Details) Consider a mass calibration to illustrate the principles of a MC simulation and some of the differences with the standard GUM approach with a schematic illustration of the measurement system m W pivot δm R m R

24 Mass Meas Unc Example to Contrast the GUM vs. MC Example (Math Model Explanation & Details) Consider a mass calibration to illustrate the principles of a MC simulation and some of the differences with the standard GUM approach with a schematic illustration of the measurement system m W pivot δm R m R The principle of a mass measurement with an equal arm force balance is of a balance of moments generated which by applying a force balance with Archimedes principle for buoyancy effects we then get

25 Mass Meas Unc Example to Contrast the GUM vs. MC Example (Math Model Explanation & Details) Consider a mass calibration to illustrate the principles of a MC simulation and some of the differences with the standard GUM approach with a schematic illustration of the measurement system m W pivot δm R m R The principle of a mass measurement with an equal arm force balance is of a balance of moments generated which by applying a force balance with Archimedes principle for buoyancy effects we then get m W m R + δm R (5) m W g ρ air g = (m R + δm R )g ρ air g ρ W ρ R

26 Developing the Meas Model Example (Mass example cont.) Rearranging

27 Developing the Meas Model Example (Mass example cont.) Rearranging ( m W 1 ρ ) ( air = (m R + δm R ) 1 ρ ) air ρ W ρ R Symbol m W m R δm R ρ i Description mass of weight piece W mass of reference weight piece R small test mass to add onto m R to achieve force balance mass density with i respectively that of the weight W air medium air or that of the reference s density R

28 Developing the Meas Model cont. Example (Expressing model with lab specific stds) Mass is an invariant quantity as any physical parameter in metrology but the values quoted will differ depending on the lab system in use e.g. mass is heavier in air than in water which is why astronauts train under water to simulate weightlessness:

29 Developing the Meas Model cont. Example (Expressing model with lab specific stds) Mass is an invariant quantity as any physical parameter in metrology but the values quoted will differ depending on the lab system in use e.g. mass is heavier in air than in water which is why astronauts train under water to simulate weightlessness: In mass metrology laboratories use the concept of conventional mass Definition (Conventional Mass) The conventional mass m W,c of a weight W is the apparent mass of a hypothetical weight of density ρ W 0 = 8000 kg.m 3 that balances W in air when the air density is ρ air 0 = 1.2 kg.m 3 i.e. m W (1 ρ air 0 /ρ W ) = m W,c (1 ρ air 0 /ρ W 0 ) Fact (Usage of Conventional Mass) Conventional mass is simply a measurement tool used to incorporate the invariance of inertial mass i.e. compare apples with apples

30 Final Measurement Model We utilize the Open Source computer algebra system Maxima to simplify our calculations due to the substitions that the conventional mass introduces. The reason for why one may prefer to use a CAS is in the cases when fairly complicated expressions and hand calculations carry the risk of lengthy time and error generation.

31 Review of calculas theory - cf. GUM assumptions Recall that from multi-variable calculas that Taylor series expansions for the case of a single variable (6) f(x) = f(a)+ f (a) 1! (x a)+ f (a) (x a) f (n 1) (a) 2! (n 1)! (x a)n 1 +R n (x) can be generalized to the case for multiple variables. An example for two variables would be f(x, y) = f(a, b) + f x + 1 2! f (a, b)(x a) + (a, b)(y b) y [ 2 f x 2(a, b)(x a) f x y + 2 f y 2(a, b)(y b)2 ] + (a, b)(x a)(y b)

32 Approx. of functions - linearized in 1D 9 Let f(x) = exp(x 2 ) and expand about a = 1 f = exp(x 2 ) 8 y-axis function e x2 1st e + 2e(x 1) 2nd e + 2e(x 1) + 3e(x 1) x-axis

33 Approx. of functions - linearized in 2D Let f(x) = exp(x 2 + y 2 ) and expand about a = [1, 1] T Linear approx: L(f) = 2e 2 (y 1) + 2e 2 (x 1) + e 2 z y x d plot y x1-3 % error

34 Approx. of functions - linearized in 2D Let f(x) = exp(x 2 + y 2 ) and expand about a = [1, 1] T Linear approx: L(f) = 2e 2 (y 1) + 2e 2 (x 1) + e 2 Quadratic approx: f = L(f)+ 1 2 [6e2 (y 1) 2 +8e 2 (x 1)(y 1)+6e 2 (x 1) 2 ] 9 3d plot z y x d plot z y x y y x1-3 % error x % error

35 Approx. of functions - linearized in 2D Let f(x) = exp(x 2 + y 2 ) and expand about a = [1, 1] T Linear approx: L(f) = 2e 2 (y 1) + 2e 2 (x 1) + e 2 Quadratic approx: f = L(f)+ 1 2 [6e2 (y 1) 2 +8e 2 (x 1)(y 1)+6e 2 (x 1) 2 ] 9 3d plot z y x d plot z y x y x % error % error The error for a linear approximation of the very non-linear model function i.e. using the GUM method is 3% and for a quadratic approximation 0.3% y x

36 Taylor series for f(x 1,..., x d ) For n variables we then have the Taylor series T(x 1,..., x d ) for f(x 1,..., x d ) as (7) T(x 1,..., x d ) = n 1 =0 n d =0 n 1 x n 1 1 n d x n d d (x 1 a 1 ) n1 (x d a d ) n d f(a 1,...,a d ) n 1! n d! (8) T(x 1,...,x d ) = D α f(a) (x a) α α! i N 0

37 Special cases for Taylor series expansions For a model f(x) of the measurement system given with inputs x = [x 1,...,x n ] T (x is a column vector with dimensions n 1) and with nominal value a which is the state that the measurement ystem is in then making use of the general Taylor series expansion for multiple variables T(x) = D α f(a) α 0 α! (x a) α we note that: First order approximation: (9) f(x) f(a 1,..., a n ) + f x 1 (x 1 a 1 )+ + f a x n (x n a n ) a

38 Special cases for Taylor series expansions cont. In most cases it is seldom beneficial to construct a multiple variable Taylor series expansion for 3rd or higher order Second order approximation: [ ] f f(x) f(a 1,..., a n ) + f x a a x n a (10) + 1 2! 2 f x1 2 2 f x 2 x 1. 2 f x n x 1 2 f x 1 x 2 2 f 2 f x 2 2 x 1 x n 2 f x 2 x n f x n x 2 2 f xn 2 x 1 a 1. x n a n x 1 a 1 x n a n Comment: the n n square matrix above is the Hessian matrix for f and all the entries are evaluated at a

39 Final Measurement Model - Calc details Recall that we have a model for the mass to be measured ( (11) m W 1 ρ ) ( air = (m R + δm R ) 1 ρ ) air ρ W ρ R and we wish to write the model in terms of the conventional mass by subsituting the formulae ( m W = m W,c 1 ρ ) ( air0 1 ρ ) 1 air0 (12a) (12b) (12c) ρ W 0 m R = m R,c ( 1 ρ air0 ρ W 0 δm R = δm R,c ( 1 ρ air0 ρ W 0 ) ( 1 ρ air0 ρ W ) 1 ρ R ) ( 1 ρ air0 ρ R ) 1 Once the equations are substited we then want to solve for m W,c which is the mass of the weight that we wish to calibrate

40 Measurement Model - Formulating and solving in Maxima In Maxima we use the following computer code: LHS: mw*(1 - rhoair/rhow); RHS: (mr + deltamr)*(1 - rhoair/rhor); LHS1: ev(lhs, mw = mwc*(1 - rhoair0/rhow0)/(1 - rhoair0/rhow)); RHS1: ev(rhs, mr = mrc*(1 - rhoair0/rhow0)/(1 - rhoair0/rhor), deltamr = deltamrc*(1 - rhoair0/rhow0)/(1 - rhoair0/rhor)); soln: solve(lhs1 = RHS1, mwc); mwc: rhs(soln[1]); whence m W,c = 1 (ρ R ρ air 0 )ρ W ρ air ρ R + ρ air ρ air 0 [((m R,c + δm R,c )ρ R ρ air m R,c ρ air δm R,c )ρ W (13) +( ρ air 0 m R,c ρ air 0 δm R,c )ρ R +ρ air ρ air 0 m R,c + ρ air ρ air 0 δm R,c ]

41 Measurement Model - GUM Formulation The measurement model consists of five input parameters which we list below: symbol description PDF comments m R,c reference mass Gaussian from meas cert δm R,c balance mass Gaussian from meas cert ρ air density of air rectangular estimated from CIPM formula ρ W density of weight rectangular estimate that is equally likely ρ R density of reference rectangular from literature of physical properties Comment on parameters that are not included: the density ρ W 0 does not explicitly appear in the model equation as it cancels out when the model equation is algebraically solved for m W,c which would not be obvious in a spreadsheet the air density ρ air 0 is not included in the model as a variable but as a constant since this is known exactly

42 Practical Implementation of MC Model Inputs Definition (Model constants & parameters) In a measurement mathematical model working in SI units one should distinguish between how to incorporate constants and parameters. A parameter is a variable that one is uncertain of and which has a statistical uncertainty (however small) and PDF whilst a constant is exactly known. 1 Fact (Theories which use exact constants i.e. zero unc) An example would be the speed of light which was historically measured using various techniques with associated experimental uncertainties and with Einstein s Special Theory of Relativity fixed and then later defined as c 0 = m.s 1 where σ(c 0 ) def = 0 Fact (Theories which use approx constants i.e. finite unc) An example would be the Avogadro number N A = mol 1 which as a constant of nature is fixed but which is currently experimentally known to an accuracy of σ(n A ) = mol 1 1 For details see the CODATA website for physical and chemical reference values at

43 Math Model - GUM Calcs 1 We will consider both first and second order calc s using the GUM for comparison with a Monte Carlo simulation. 1st order: apply the GUM as usual with sums of products of gradients etc. 2nd order: must build up f with additional terms using Hessian matrix etc. Fact (Practical observation of GUM calc s) The GUM makes use of the assumption that there is a linearized model of the system to propogate the uncertainties and to be strictly consistent one should apply a linearized model when calculating the standard uncertainty in order not to mix of terms from different assumptions and approximations, however we note that in practice most metrologists would most likely take the original expression to evaluate the model and not its linearization - this is only valid if the model is approximately linear in a neighbourhood of a where a is the state space that the system is in.

44 Math Model - GUM Calcs 2 Since there are five input variables in our mathematical model the distinction and implications of 1st and 2nd order approximations are not immediately obvious to appreciate. Noting the variables m R,c, δm R,c, ρ air, ρ W, ρ R we can reasonably conclude that the two variables that are most likely to be uncertain and vary are δm R,c because this must be adequately controlled to achieve a balance and equlibrium on the force beam and the equilibrium can be a bit subjective if there isn t an exact balance and the beam is moving very slowly ρ air the actual air density which will depend and vary with the laboratory s ambient temperature and pressure

45 Math Model - GUM Calcs 2 cont Setting the nominal conditions for argument as a = (m R,c, δm R,c, ρ air, ρ W, ρ R ) = (0.099 kg, kg, 1.17 kg.m 3, 7800 kg.m 3, 8000 kg.m 3 ) for m W,c kg we can then see in a limited sense the implications of the GUM requirement for a linearized model.

46 Mass Unc Math Model - Approx Linear approx of f error [ppm] O( ) Quadratic approx of f error [ppm] O( ) ρair / kg.m ρair / kg.m e-008 4e-008 3e-008 2e-008 1e e e-008-3e e δm R,c / kg δm R,c / kg e-008

47 Uncertainty results using the GUM 1 Assuming for argument that all the inputs for m W,c = f(m R,c, δm R,c, ρ air, ρ W, ρ R ) have uncertainties of 0.1% and in addition are not correlated we then have that the uncertainty estimate for the mass being weighed m W,c reported in standard uncertainty is: 1st order: (14) u(m W,c ) = kg 2nd order: (15) u 2 (f) = N ( ) 2 f u 2 (x i ) i=1 + N i=1 = L + H x i N j=1 [ ( ) ] f + f 3 f u 2 (x 2 x i x j x i x i xj 2 i )u 2 (x j ) u(f) = kg difference in uncertainty is underestimated by approx. 113 ppm

48 Uncertainty results using the GUM 2 Full uncertainty can be misleading if linearization not accurate if f is very non-linear in the above it is not too significant since f is not too non-linear It should be noted that H is formed out of double sum over the number of variables N and that such a calculation can only realistically be performed in a computer algebra system due to the excessive number of partial derivatives that must be computed e.g. with N = 5 then 100 partial derivatives must be calculated. The computer code to perform this computation within a CAS e.g. Maxima is relatively straightforward to implement but it should be noted that the full expression can become algebraically large and unwieldy the non-linear terms correctly evaluate to zero when the model is indeed linear.

49 Including non-linear terms using the GUM Example (A nonlinear functional) Work out the uncertainty for f(x 1, x 2 ) = exp[x x 2 2 ] assuming u(x 1 ) = u(x 2 ) = 0.1% at the point a = [x 1 = 1, x 2 = 1] T and compare the linear and nonlinear answers using the GUM. The linearization of f is 2e 2 (x 2 1) + 2e 2 (x 1 1) + e 2 and now the nonlinear term H where u 2 (f) = L + H is H = u 2 1 ( u 2 2 ( (8 x 21 x22 e2 x 2 2 ) +x2 ( )) x 1 e x2 2 +x2 1 8 x 1 x 2 2 ex2 2 +x x 1 e x2 2 +x2 1 +u 2 1 ( ) 2 ( ) 4 x 2 2 x 1 e x2 2 +x2 1 8 x 1 3 ex2 2 +x x 1 e x2 2 +x2 1 ex2 2 +x e x2 2 +x u 2 2 ( u 2 1 ( (8 x 21 x22 e2 x 2 2 ) +x2 ( )) x 2 e x2 2 +x2 1 8 x 1 2 x 2 ex2 2 +x x 2 e x2 2 +x2 1 +u 2 2 ( ) 2 ( ) 4 x 2 2 x 2 e x2 2 +x2 1 8 x 2 3 ex2 2 +x x 2 e x2 2 +x2 2 ex2 2 +x e x2 2 +x

50 Non-linear calc - how significant are the GUM approx? For f = e x2 1 +x2 2 the non-linear contribution H is non-zero as indicated above, and the difference between the linear and non-linear uncertainty estimates is u(f linear ) = u(f non linear ) = the difference in uncertainty is therefore underestimated by approx. 11 ppm Fact (GUM linear model underestimates uncertainty) It is seen that a linearized model may underestimate the actual uncertainty by ppm

51 Comparison of PDF s for Math Model s Calc Unc When calculating uncertainties there are three PDF s that one must consider when interpreting the measurand s uncertainty: the actual PDF for the measurand as computed in terms of a convolution integral (Markov formula 2 ) (16) g(η) = g(ξ)δ(y f(ξ))dξ N dξ N 1 dξ 1 a Gaussian 3 like i.e. a t-distribution with ν eff degrees-of-freedom via. the Welch-Satterwaithe formula for the calculation of the measurand y s PDF as per the GUM approach a discrete PDF in a Monte Carlo simulation that is built up with sampled data from the input PDF s g 1 (ξ 1 ),..., g N (ξ N ) that will converge to the measurand s actual PDF (as calculated with a covolution integral) as the number of MC events M 2 adequate mathematical statistics working knowledge is necessary to fully understand the conditions/derivation of the Markov formula wrt. GUM 3 A Gaussian PDF i.e. N(µ = 0; σ 2 ) is entirely defined in terms of the variance σ 2 whilst a t-distribution needs ν to define its shape

52 Comment on Application of Markov formula The GUM is based on the application of the Markov formula to linearized models and all of the results and formulae in the GUM can be derived (with certain assumptions) via. application of the Markov formula Practical examples: 1. Higher order terms are necessary in the GUM for non-linear models where the GUM will not work yielding incorrect results e.g. Y = X 2 where u(y) = 2x u(x) x if just linear terms of the form u 2 (f) = N i=1 [ x f u(x i i)] 2 are used 2. The Markov formula will yield the correct result with u(y) = u(x) 4x u2 (x) which is true even for x = 0 In general a direct evaluation is only analytically possible for certain simple cases whilst symbolic evaluation is only feasible with a low order of variables requiring transformations and evaluation/calculation of Jacobians with a numerical approach preferred

53 Comment on Application of Markov formula cont. The joint PDF g X1,X 2,...(ξ 1, ξ 2,...) built up in terms of matrix multiplications requires the use of a Dirac delta function δ as defined in terms of a sum with derivative terms and in addition manipulation of the inputs ξ i wrt. the output η Such calculations in the GUM require the application of further matrix algebra and will not be considered in this presentation The direct application of the Markov formula is in practice awkward and difficult to implement particularly in the case of non-linear models and the use of a Monte Carlo approach is entirely consistent with the Markov formula and is in fact a more practical calculation method that does not rely on any of the assumptions inherent as in the GUM

54 Implementation of the MC Algorithm We proceed as per the six steps as previously discussed as follows: 1. set the number of simulations to a minimum number of events to yield adequate statistical data to analyse, say M = the model for our measurand is (17) (18) m W,c = f(m R,c, δm R,c, ρ air, ρ W, ρ R ) y = f(x 1, x 2, x 3, x 4, x 5 ) so there are 5 inputs for the model and all of these inputs are simple scalar quantities. The first two inputs have a Gaussian PDF whilst the remaining inputs all have rectangular PDF s. Our numerical calculations will be performed in GNU Octave for convenience

55 Implementation of the MC Algorithm cont. 2. implementation for sample draws in Octave: for Gaussian PDF with g N(µ, σ): set z = µ + σ randn() for a rectangular PDF with mean µ and half-width a: set z = µ + a 2 (rand() 0.5) 3. the model is just evaluated by specifying the functional f as a m-file of form

56 Implementation of the MC Algorithm cont. 3. sample m-file: function value = mwc(mrc,deltamrc,rhoair,rhow,rhor) rhoair0 = 1.2; value = ( ((mrc + deltamrc)*rhor - rhoair*mrc - rhoair*deltamrc)*rhow + (-rhoair0*mrc - rhoair0*deltamrc)*rhor + rhoair*rhoair0*mrc + rhoair*rhoair0*deltamrc ) / ( (rhor - rhoair0)*rhow - rhoair*rhor + rhoair*rhoair0 ); sample function call: test = mwc(0.9999, , 1.19, 7950, ) test =

57 Implementation of the MC Algorithm cont. 3. Short overview of a MC program (actual program 300 lines of code) clear all clc M = input( Enter the number of MC events: ); % nominal values in model mrc_ref = 0.099; deltamrc_ref = 0.001; rhoair_ref = 1.17; rhow_ref = 7800; rhor_ref = 8000; % uncertainties in model ux1 = 0.1E-2*mRc_ref; ux2 = 0.1E-2*deltamRc_ref; ux3 = 0.1E-2*rhoair_ref; ux4 = 0.1E-2*rhoW_ref; ux5 = 0.1E-2*rhoR_ref; data = zeros(m,1); tic for i=1:m x1 = mrc_ref + ux1*randn(); x2 = deltamrc_ref + ux2*randn(); x3 = rhoair_ref + ux3*2*(rand() - 0.5); x4 = rhow_ref + ux4*2*(rand() - 0.5); x5 = rhor_ref + ux5*2*(rand() - 0.5); f = mwc(x1,x2,x3,x4,x5); data(i) = f; end toc hist(data) print( C:/Draft/test.eps, -color ) Running the above program on a single 2.4 GHz CPU takes approx. 1.8 seconds for 10 4 MC events i.e. simple models can realistically be simulated with run times of a few minutes.

58 Implementation of the MC Algorithm cont. 4. the output quantity is estimated by applying a weighted sum of all the MC events this is generally indistinguishable from the arithmetic mean for large M e.g. M = O(10 6 ) 5. the simulation is used to build up a discrete representation of the underlying model s distribution function this is equivalent to calc s via. a PDF but is more accurate: a rough analogy would be the use of a histogram of measured data as a indicator of the underlying PDF as illustrated in the previous slide 6. once all the data is generated a coverage interval is estimated by inverse linear interpolation using Ĝ(η) a rough explanation would be a minima search of a parameter α for a function built up in terms of the inverse function of the distribution function where α would be used to calculate lower and upper bounds for y for a given confidence limit e.g %

59 Analysing and Understanding the Data Reporting Results in GUM Terms A measurement uncertainty calculation using the Monte Carlo method requires an underlying model of the measurand (univariate or multivariate) and could be in the form of an explicit or implicit formulation. The steps involved in order to perform post-processing and analysis are simply: formulate a model of the measurand apply multiple simulations of the model using sampled draws from the input PDF s to generate a data set of the measurand to analyse The data set to perform further operations on is simply a collection of the model evaluated M times e.g. if the model is univariate and explicit i.e. y = f(x 1,...,x N ) then the data set is just an array of numbers (19) data = [y 1,..., y M ]

60 Analysing and Understanding the Data Reporting Results in GUM Terms Analysing and Understanding the Data An statistical analysis of the data using formulae as defined in the techniques/algorithms inherent in a Monte Carlo measurement uncertainty calculation can be thought of as a numerical/statistical experiment that approximates a real physical experimental situation with simulated experimental conditions. The data that results from a MC simulation are: ŷ = the expected value of the measurand u(ŷ) = the measurand s standard deviation [y low, y high ] = the confidence interval of the measurand for a given probability e.g. p = 95.45% using the actual PDF g(η) for the measurand i.e. the expanded uncertainty The measurand s PDF g(η) is not necessarily symmetric or even Gaussian which means a simple ± for expanded uncertainty may be misleading with results more accurately reported of form ŷ +(y high ŷ) (ŷ y low )

61 Analysing and Understanding the Data Reporting Results in GUM Terms Reporting Results in GUM Terms In essence a MC simulation will yield the same outputs that are required in a measurement uncertainty calculation viz. standard and expanded uncertainties for the expected value of the measurand (ŷ µ): (20) (21) u(y) = u(ŷ) σ U(Y) 1 2 [(y high ŷ) + (ŷ y low )] the difference is that since the method does not involve the concept of effective degrees of freedom ν eff there is no corresponding coverage factor e.g. k = 2 for a p = 95.45% confidence level so an analogous quantity would be (22) k = U(y) u(y) Recall that in the GUM one must convert to standard uncertainties where the PDF is by definition Gaussian i.e. N(µ, σ 2 )

62 The GUM is based on certain assumptions/approximations and only be accurately applied in certain limiting cases Modifications to the standard GUM technique are available in certain limiting cases but are generally limiting and difficult to apply with only modest improved uncertainty accuracy improvement A Monte Carlo measurement uncertainty simulation will work for any problem of arbitary complexity and will always yield accurate and reliable results with sufficient MC simulation events (an adaptive MC algorithm to test for convergence is possible to avoid unnessary computational overhead) Questions

Guide to the Expression of Uncertainty in Measurement Supplement 1 Numerical Methods for the Propagation of Distributions

Guide to the Expression of Uncertainty in Measurement Supplement 1 Numerical Methods for the Propagation of Distributions Guide to the Expression of Uncertainty in Measurement Supplement 1 Numerical Methods for the Propagation of Distributions This version is intended for circulation to the member organizations of the JCGM

More information

Essentials of expressing measurement uncertainty

Essentials of expressing measurement uncertainty Essentials of expressing measurement uncertainty This is a brief summary of the method of evaluating and expressing uncertainty in measurement adopted widely by U.S. industry, companies in other countries,

More information

Guide to the Expression of Uncertainty in Measurement (GUM) and its supplemental guides

Guide to the Expression of Uncertainty in Measurement (GUM) and its supplemental guides National Physical Laboratory Guide to the Expression of Uncertainty in Measurement (GUM) and its supplemental guides Maurice Cox National Physical Laboratory, UK maurice.cox@npl.co.uk http://www.npl.co.uk/ssfm/index.html

More information

A guide to expression of uncertainty of measurements QA4EO-QAEO-GEN-DQK-006

A guide to expression of uncertainty of measurements QA4EO-QAEO-GEN-DQK-006 A guide to expression of uncertainty of measurements QA4EO-QAEO-GEN-DQK-006 A guide to expression of uncertainty of measurements Author: E-mail: Nigel Fox Nigel.Fox@npl.co.uk Editor: E-mail: Marie-Claire

More information

Estimation of uncertainties using the Guide to the expression of uncertainty (GUM)

Estimation of uncertainties using the Guide to the expression of uncertainty (GUM) Estimation of uncertainties using the Guide to the expression of uncertainty (GUM) Alexandr Malusek Division of Radiological Sciences Department of Medical and Health Sciences Linköping University 2014-04-15

More information

Guide to the Expression of Uncertainty in Measurement (GUM)- An Overview

Guide to the Expression of Uncertainty in Measurement (GUM)- An Overview Estimation of Uncertainties in Chemical Measurement Guide to the Expression of Uncertainty in Measurement (GUM)- An Overview Angelique Botha Method of evaluation: Analytical measurement Step 1: Specification

More information

y, x k estimates of Y, X k.

y, x k estimates of Y, X k. The uncertainty of a measurement is a parameter associated with the result of the measurement, that characterises the dispersion of the values that could reasonably be attributed to the quantity being

More information

Document No: TR 12 Issue No: 1

Document No: TR 12 Issue No: 1 ESTIMATION OF THE UNCERTAINTY OF MEASUREMENT BY CALIBRATION LABORATORIES AND SPECIFICATION OF CALIBRATION AND MEASUREMENT CAPABILITY ON SCHEDULES OF ACCREDITATION Prepared by: SADCAS Technical Manage Approved

More information

Multivariate Distributions

Multivariate Distributions IEOR E4602: Quantitative Risk Management Spring 2016 c 2016 by Martin Haugh Multivariate Distributions We will study multivariate distributions in these notes, focusing 1 in particular on multivariate

More information

R SANAS Page 1 of 7

R SANAS Page 1 of 7 ESTIMATION OF THE UNCERTAINTY OF MEASUREMENT BY CALIBRATION LABORATORIES AND SPECIFICATION OF CALIBRATION AND MEASUREMENT CAPABILITY ON SCHEDULES OF ACCREDITATION Approved By: Chief Executive Officer:

More information

Revision of the Guide to the expression of uncertainty in measurement impact on national metrology institutes and industry

Revision of the Guide to the expression of uncertainty in measurement impact on national metrology institutes and industry Revision of the Guide to the expression of uncertainty in measurement impact on national metrology institutes and industry Maurice Cox/Peter Harris National Physical Laboratory, Teddington, UK CCRI BIPM,

More information

Measurement And Uncertainty

Measurement And Uncertainty Measurement And Uncertainty Based on Guidelines for Evaluating and Expressing the Uncertainty of NIST Measurement Results, NIST Technical Note 1297, 1994 Edition PHYS 407 1 Measurement approximates or

More information

Introduction to Uncertainty. Asma Khalid and Muhammad Sabieh Anwar

Introduction to Uncertainty. Asma Khalid and Muhammad Sabieh Anwar Introduction to Uncertainty Asma Khalid and Muhammad Sabieh Anwar 1 Measurements and uncertainties Uncertainty Types of uncertainty Standard uncertainty Confidence Intervals Expanded Uncertainty Examples

More information

Science. Approaches to measurement uncertainty evaluation. Introduction. for a safer world 28/05/2017. S L R Ellison LGC Limited, Teddington, UK

Science. Approaches to measurement uncertainty evaluation. Introduction. for a safer world 28/05/2017. S L R Ellison LGC Limited, Teddington, UK Approaches to measurement uncertainty evaluation S L R Ellison LGC Limited, Teddington, UK Science for a safer world 1 Introduction Basic principles a reminder Uncertainty from a measurement equation Gradient

More information

The Monte Carlo method what and how?

The Monte Carlo method what and how? A top down approach in measurement uncertainty estimation the Monte Carlo simulation By Yeoh Guan Huah GLP Consulting, Singapore (http://consultglp.com) Introduction The Joint Committee for Guides in Metrology

More information

An improved procedure for combining Type A and Type B components of measurement uncertainty

An improved procedure for combining Type A and Type B components of measurement uncertainty Int. J. Metrol. Qual. Eng. 4, 55 62 (2013) c EDP Sciences 2013 DOI: 10.1051/ijmqe/2012038 An improved procedure for combining Type A and Type B components of measurement uncertainty R. Willink Received:

More information

Monte Carlo uncertainty estimation for wavelength calibration Abstract

Monte Carlo uncertainty estimation for wavelength calibration Abstract Monte Carlo uncertainty estimation for wavelength calibration *Thang H.L., Nguyen D.D., Dung.D.N. Vietnam metrology institute 8 Hoang Quoc Viet street, Cau Giay district, Hanoi city, Vietnam * thanglh@vmi.gov.vn

More information

RECOMMENDED TOOLS FOR SENSITIVITY ANALYSIS ASSOCIATED TO THE EVALUATION OF MEASUREMENT UNCERTAINTY

RECOMMENDED TOOLS FOR SENSITIVITY ANALYSIS ASSOCIATED TO THE EVALUATION OF MEASUREMENT UNCERTAINTY Advanced Mathematical and Computational Tools in Metrology and Testing IX Edited by F. Pavese, M. Bär, J.-R. Filtz, A. B. Forbes, L. Pendrill and K. Shirono c 2012 World Scientific Publishing Company (pp.

More information

Determination of Uncertainties for Correlated Input Quantities by the Monte Carlo Method

Determination of Uncertainties for Correlated Input Quantities by the Monte Carlo Method Determination of Uncertainties for Correlated Input Quantities by the Monte Carlo Method Marcel Goliaš 1, Rudolf Palenčár 1 1 Department of Automation, Measurement and Applied Informatics, Faculty of Mechanical

More information

EA 4/02. Expression of the Uncertainty of Measurement in Calibration. Publication Reference

EA 4/02. Expression of the Uncertainty of Measurement in Calibration. Publication Reference EAEA Publication Reference EA 4/0 Expression of the Uncertainty of Measurement in Calibration PURPOSE The purpose of this document is to harmonise evaluation of uncertainty of measurement within EA, to

More information

REVIEW OF DIFFERENTIAL CALCULUS

REVIEW OF DIFFERENTIAL CALCULUS REVIEW OF DIFFERENTIAL CALCULUS DONU ARAPURA 1. Limits and continuity To simplify the statements, we will often stick to two variables, but everything holds with any number of variables. Let f(x, y) be

More information

TYPICAL PRESSURE MEASUREMENT UNCERTAINTY DEFINED BY AN FPG8601 FORCE BALANCED PISTON GAUGE

TYPICAL PRESSURE MEASUREMENT UNCERTAINTY DEFINED BY AN FPG8601 FORCE BALANCED PISTON GAUGE TYPICAL PRESSURE MEASUREMENT UNCERTAINTY DEFINED BY AN FPG8601 FORCE BALANCED PISTON GAUGE Michael Bair and Pierre Delajoud 2002 DEC 10 Revised 2004 MAR 26 FORWARD FPG8601 is a pressure standard designed

More information

Structural Reliability

Structural Reliability Structural Reliability Thuong Van DANG May 28, 2018 1 / 41 2 / 41 Introduction to Structural Reliability Concept of Limit State and Reliability Review of Probability Theory First Order Second Moment Method

More information

POWER UNDERSTANDING MEASUREMENT UNCERTAINTY IN DP FLOW DEVICES

POWER UNDERSTANDING MEASUREMENT UNCERTAINTY IN DP FLOW DEVICES Proceedings of the ASME 2014 Power Conference POWER2014 July 28-31, 2014, Baltimore, Maryland, USA POWER2014-32205 UNDERSTANDING MEASUREMENT UNCERTAINTY IN DP FLOW DEVICES Michael S. Hering Rosemount DP

More information

Mathematica tools for uncertainty analysis

Mathematica tools for uncertainty analysis Journal of Physics: Conference Series OPEN ACCESS Mathematica tools for uncertainty analysis To cite this article: M D Mikhailov and V Y Aibe 015 J. Phys.: Conf. Ser. 575 0104 View the article online for

More information

OIML D 28 DOCUMENT. Edition 2004 (E) ORGANISATION INTERNATIONALE INTERNATIONAL ORGANIZATION. Conventional value of the result of weighing in air

OIML D 28 DOCUMENT. Edition 2004 (E) ORGANISATION INTERNATIONALE INTERNATIONAL ORGANIZATION. Conventional value of the result of weighing in air INTERNATIONAL DOCUMENT OIML D 28 Edition 2004 (E) Conventional value of the result of weighing in air Valeur conventionnelle du résultat des pesées dans l'air OIML D 28 Edition 2004 (E) ORGANISATION INTERNATIONALE

More information

Preliminary statistics

Preliminary statistics 1 Preliminary statistics The solution of a geophysical inverse problem can be obtained by a combination of information from observed data, the theoretical relation between data and earth parameters (models),

More information

MEASUREMENT UNCERTAINTY AND SUMMARISING MONTE CARLO SAMPLES

MEASUREMENT UNCERTAINTY AND SUMMARISING MONTE CARLO SAMPLES XX IMEKO World Congress Metrology for Green Growth September 9 14, 212, Busan, Republic of Korea MEASUREMENT UNCERTAINTY AND SUMMARISING MONTE CARLO SAMPLES A B Forbes National Physical Laboratory, Teddington,

More information

component risk analysis

component risk analysis 273: Urban Systems Modeling Lec. 3 component risk analysis instructor: Matteo Pozzi 273: Urban Systems Modeling Lec. 3 component reliability outline risk analysis for components uncertain demand and uncertain

More information

Lecture 13: Simple Linear Regression in Matrix Format. 1 Expectations and Variances with Vectors and Matrices

Lecture 13: Simple Linear Regression in Matrix Format. 1 Expectations and Variances with Vectors and Matrices Lecture 3: Simple Linear Regression in Matrix Format To move beyond simple regression we need to use matrix algebra We ll start by re-expressing simple linear regression in matrix form Linear algebra is

More information

Primer on statistics:

Primer on statistics: Primer on statistics: MLE, Confidence Intervals, and Hypothesis Testing ryan.reece@gmail.com http://rreece.github.io/ Insight Data Science - AI Fellows Workshop Feb 16, 018 Outline 1. Maximum likelihood

More information

VNA error models: Comments on EURAMET/cg-12/v.01

VNA error models: Comments on EURAMET/cg-12/v.01 Industrial Research Limited Report 2444 VNA error models: Comments on EURAMET/cg-12/v.01 B. D. Hall Measurement Standards Laboratory of New Zealand Lower Hutt, New Zealand 16 June 2010, (Replaces 5 May

More information

Experiment 2 Random Error and Basic Statistics

Experiment 2 Random Error and Basic Statistics PHY191 Experiment 2: Random Error and Basic Statistics 7/12/2011 Page 1 Experiment 2 Random Error and Basic Statistics Homework 2: turn in the second week of the experiment. This is a difficult homework

More information

Topics in Probability and Statistics

Topics in Probability and Statistics Topics in Probability and tatistics A Fundamental Construction uppose {, P } is a sample space (with probability P), and suppose X : R is a random variable. The distribution of X is the probability P X

More information

Multivariate Distribution Models

Multivariate Distribution Models Multivariate Distribution Models Model Description While the probability distribution for an individual random variable is called marginal, the probability distribution for multiple random variables is

More information

Problem set 2 The central limit theorem.

Problem set 2 The central limit theorem. Problem set 2 The central limit theorem. Math 22a September 6, 204 Due Sept. 23 The purpose of this problem set is to walk through the proof of the central limit theorem of probability theory. Roughly

More information

Modeling the Goodness-of-Fit Test Based on the Interval Estimation of the Probability Distribution Function

Modeling the Goodness-of-Fit Test Based on the Interval Estimation of the Probability Distribution Function Modeling the Goodness-of-Fit Test Based on the Interval Estimation of the Probability Distribution Function E. L. Kuleshov, K. A. Petrov, T. S. Kirillova Far Eastern Federal University, Sukhanova st.,

More information

A Unified Approach to Uncertainty for Quality Improvement

A Unified Approach to Uncertainty for Quality Improvement A Unified Approach to Uncertainty for Quality Improvement J E Muelaner 1, M Chappell 2, P S Keogh 1 1 Department of Mechanical Engineering, University of Bath, UK 2 MCS, Cam, Gloucester, UK Abstract To

More information

4. Distributions of Functions of Random Variables

4. Distributions of Functions of Random Variables 4. Distributions of Functions of Random Variables Setup: Consider as given the joint distribution of X 1,..., X n (i.e. consider as given f X1,...,X n and F X1,...,X n ) Consider k functions g 1 : R n

More information

Computer Intensive Methods in Mathematical Statistics

Computer Intensive Methods in Mathematical Statistics Computer Intensive Methods in Mathematical Statistics Department of mathematics johawes@kth.se Lecture 16 Advanced topics in computational statistics 18 May 2017 Computer Intensive Methods (1) Plan of

More information

CALCULATION OF UNCERTAINTY IN CHEMICAL ANALYSIS. A.Gnanavelu

CALCULATION OF UNCERTAINTY IN CHEMICAL ANALYSIS. A.Gnanavelu CALCULATION OF UNCERTAINTY IN CHEMICAL ANALYSIS A.Gnanavelu UNCERTAINTY (U) Every measurement has error which is unknown and unknowable. This unknown error is called measurement uncertainty. Types of Error

More information

A combinatorial technique for weighbridge verification

A combinatorial technique for weighbridge verification VERIFICATION/WEIGHING A combinatorial technique for weighbridge verification MARK T. CLARKSON Measurement Standards Laboratory of New Zealand Industrial Research Ltd. P O Box 31-310, Lower Hutt, New Zealand

More information

Outline. Copulas for Uncertainty Analysis. Refractive Index Partial Derivatives. Refractive Index. Antonio Possolo. Jun 21st, 2010

Outline. Copulas for Uncertainty Analysis. Refractive Index Partial Derivatives. Refractive Index. Antonio Possolo. Jun 21st, 2010 Outline Copulas for Uncertainty Analysis GUM Antonio Possolo Refractive index Shortcomings GUM SUPPLEMENT 1 Change-of-Variables Formula Monte Carlo Method COPULAS Jun 21st, 2010 Definition & Illustrations

More information

Fitting Linear Statistical Models to Data by Least Squares: Introduction

Fitting Linear Statistical Models to Data by Least Squares: Introduction Fitting Linear Statistical Models to Data by Least Squares: Introduction Radu Balan, Brian R. Hunt and C. David Levermore University of Maryland, College Park University of Maryland, College Park, MD Math

More information

TAYLOR SERIES METHOD (TSM) FOR UNCERTAINTY PROPAGATION 1

TAYLOR SERIES METHOD (TSM) FOR UNCERTAINTY PROPAGATION 1 APPEDIX B TAYLOR SERIES METHOD (TSM) FOR UCERTAITY PROPAGATIO 1 In nearly all experiments, the measured values of different variables are combined using a data reduction equation (DRE) to form some desired

More information

ARE211, Fall 2004 CONTENTS. 4. Univariate and Multivariate Differentiation (cont) Four graphical examples Taylor s Theorem 9

ARE211, Fall 2004 CONTENTS. 4. Univariate and Multivariate Differentiation (cont) Four graphical examples Taylor s Theorem 9 ARE211, Fall 24 LECTURE #18: TUE, NOV 9, 24 PRINT DATE: DECEMBER 17, 24 (CALCULUS3) CONTENTS 4. Univariate and Multivariate Differentiation (cont) 1 4.4. Multivariate Calculus: functions from R n to R

More information

Statistics. Lent Term 2015 Prof. Mark Thomson. 2: The Gaussian Limit

Statistics. Lent Term 2015 Prof. Mark Thomson. 2: The Gaussian Limit Statistics Lent Term 2015 Prof. Mark Thomson Lecture 2 : The Gaussian Limit Prof. M.A. Thomson Lent Term 2015 29 Lecture Lecture Lecture Lecture 1: Back to basics Introduction, Probability distribution

More information

Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air

Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air 1 2 3 4 5 6 Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air Technical note for submission to NCSLI Measure Celia J. Flicker* Hy D. Tran 7 8 9 10 11 12 13

More information

WGFF Guidelines for CMC Uncertainty and Calibration Report Uncertainty

WGFF Guidelines for CMC Uncertainty and Calibration Report Uncertainty WGFF Guidelines for CMC Uncertainty and Calibration Report Uncertainty October 21, 2013 Summary The Working Group for Fluid Flow (WGFF) defines Calibration and Measurement Capability (CMC) uncertainty

More information

MEASUREMENT UNCERTAINTY PREPARED FOR ENAO ASSESSOR CALIBRATION COURSE OCTOBER/NOVEMBER Prepared by MJ Mc Nerney for ENAO Assessor Calibration

MEASUREMENT UNCERTAINTY PREPARED FOR ENAO ASSESSOR CALIBRATION COURSE OCTOBER/NOVEMBER Prepared by MJ Mc Nerney for ENAO Assessor Calibration MEASUREMENT PREPARED FOR ENAO ASSESSOR CALIBRATION COURSE UNCERTAINTY OCTOBER/NOVEMBER 2012 Prepared by for ENAO Assessor Calibration B SCOPE Introduction House Rules Overview 17025 & 15189 MU Approaches

More information

Systematic bias in pro rata allocation schemes

Systematic bias in pro rata allocation schemes Systematic bias in pro rata allocation schemes Armin Pobitzer Ranveig Nygaard Bjørk Astrid Marie Skålvik Christian Michelsen Research AS, Bergen, Norway ABSTRACT Misallocation due to allocation uncertainty

More information

-However, this definition can be expanded to include: biology (biometrics), environmental science (environmetrics), economics (econometrics).

-However, this definition can be expanded to include: biology (biometrics), environmental science (environmetrics), economics (econometrics). Chemometrics Application of mathematical, statistical, graphical or symbolic methods to maximize chemical information. -However, this definition can be expanded to include: biology (biometrics), environmental

More information

Chapter 2: Resampling Maarten Jansen

Chapter 2: Resampling Maarten Jansen Chapter 2: Resampling Maarten Jansen Randomization tests Randomized experiment random assignment of sample subjects to groups Example: medical experiment with control group n 1 subjects for true medicine,

More information

QUADRATIC EQUATIONS M.K. HOME TUITION. Mathematics Revision Guides Level: GCSE Higher Tier

QUADRATIC EQUATIONS M.K. HOME TUITION. Mathematics Revision Guides Level: GCSE Higher Tier Mathematics Revision Guides Quadratic Equations Page 1 of 8 M.K. HOME TUITION Mathematics Revision Guides Level: GCSE Higher Tier QUADRATIC EQUATIONS Version: 3.1 Date: 6-10-014 Mathematics Revision Guides

More information

Practical Statistics for the Analytical Scientist Table of Contents

Practical Statistics for the Analytical Scientist Table of Contents Practical Statistics for the Analytical Scientist Table of Contents Chapter 1 Introduction - Choosing the Correct Statistics 1.1 Introduction 1.2 Choosing the Right Statistical Procedures 1.2.1 Planning

More information

GUIDE TO THE EXPRESSION OF UNCERTAINTY IN MEASUREMENT

GUIDE TO THE EXPRESSION OF UNCERTAINTY IN MEASUREMENT KINGDOM OF SAUDI ARABIA SASO.../006 SAUDI STANDARD DRAFT NO. 13/000 GUIDE TO THE EXPRESSION OF UNCERTAINTY IN MEASUREMENT SAUDI ARABIAN STANDARDS ORGANIZATION -----------------------------------------------------------------------------------------------

More information

Modern Methods of Data Analysis - WS 07/08

Modern Methods of Data Analysis - WS 07/08 Modern Methods of Data Analysis Lecture VII (26.11.07) Contents: Maximum Likelihood (II) Exercise: Quality of Estimators Assume hight of students is Gaussian distributed. You measure the size of N students.

More information

SYSM 6303: Quantitative Introduction to Risk and Uncertainty in Business Lecture 4: Fitting Data to Distributions

SYSM 6303: Quantitative Introduction to Risk and Uncertainty in Business Lecture 4: Fitting Data to Distributions SYSM 6303: Quantitative Introduction to Risk and Uncertainty in Business Lecture 4: Fitting Data to Distributions M. Vidyasagar Cecil & Ida Green Chair The University of Texas at Dallas Email: M.Vidyasagar@utdallas.edu

More information

MATHEMATICAL THEORY FOR SOCIAL SCIENTISTS

MATHEMATICAL THEORY FOR SOCIAL SCIENTISTS The Mean Value Theorem Rolle s Theorem. If f(x) is continuous in the closed interval [a, b] and differentiable in the open interval (a, b), and if f(a) =f(b) = 0, then there exists a number c (a, b) such

More information

Joint Probability Distributions and Random Samples (Devore Chapter Five)

Joint Probability Distributions and Random Samples (Devore Chapter Five) Joint Probability Distributions and Random Samples (Devore Chapter Five) 1016-345-01: Probability and Statistics for Engineers Spring 2013 Contents 1 Joint Probability Distributions 2 1.1 Two Discrete

More information

Index. Cambridge University Press Data Analysis for Physical Scientists: Featuring Excel Les Kirkup Index More information

Index. Cambridge University Press Data Analysis for Physical Scientists: Featuring Excel Les Kirkup Index More information χ 2 distribution, 410 χ 2 test, 410, 412 degrees of freedom, 414 accuracy, 176 adjusted coefficient of multiple determination, 323 AIC, 324 Akaike s Information Criterion, 324 correction for small data

More information

L03. PROBABILITY REVIEW II COVARIANCE PROJECTION. NA568 Mobile Robotics: Methods & Algorithms

L03. PROBABILITY REVIEW II COVARIANCE PROJECTION. NA568 Mobile Robotics: Methods & Algorithms L03. PROBABILITY REVIEW II COVARIANCE PROJECTION NA568 Mobile Robotics: Methods & Algorithms Today s Agenda State Representation and Uncertainty Multivariate Gaussian Covariance Projection Probabilistic

More information

Confidence Intervals. Confidence interval for sample mean. Confidence interval for sample mean. Confidence interval for sample mean

Confidence Intervals. Confidence interval for sample mean. Confidence interval for sample mean. Confidence interval for sample mean Confidence Intervals Confidence interval for sample mean The CLT tells us: as the sample size n increases, the sample mean is approximately Normal with mean and standard deviation Thus, we have a standard

More information

UNCERTAINTY OF COMPLEX SYSTEMS BY MONTE CARLO SIMULATION

UNCERTAINTY OF COMPLEX SYSTEMS BY MONTE CARLO SIMULATION 16TH NORTH SEA FLOW MEASUREMENT WORKSHOP 1998 Gleneagles, 6-9 October 1998 UNCERTAINTY OF COMPLEX SYSTEMS BY MONTE CARLO SIMULATION Mr Martin Basil, FLOW Ltd Mr Andrew W Jamieson, Shell UK Exploration

More information

2008 Winton. Statistical Testing of RNGs

2008 Winton. Statistical Testing of RNGs 1 Statistical Testing of RNGs Criteria for Randomness For a sequence of numbers to be considered a sequence of randomly acquired numbers, it must have two basic statistical properties: Uniformly distributed

More information

Random Eigenvalue Problems in Structural Dynamics: An Experimental Investigation

Random Eigenvalue Problems in Structural Dynamics: An Experimental Investigation Random Eigenvalue Problems in Structural Dynamics: An Experimental Investigation S. Adhikari, A. Srikantha Phani and D. A. Pape School of Engineering, Swansea University, Swansea, UK Email: S.Adhikari@swansea.ac.uk

More information

Traceable Mass Determination and Uncertainty Calculation

Traceable Mass Determination and Uncertainty Calculation Traceable Mass Determination and Uncertainty Calculation Falko Hilbrunner, Thomas Fehling, Siego Mühlich, Mario Schreiber Sartorius Lab Instruments GmbH Weender Landstrasse 94-108 Goettingen, Germany ABSTRACT

More information

Eco517 Fall 2004 C. Sims MIDTERM EXAM

Eco517 Fall 2004 C. Sims MIDTERM EXAM Eco517 Fall 2004 C. Sims MIDTERM EXAM Answer all four questions. Each is worth 23 points. Do not devote disproportionate time to any one question unless you have answered all the others. (1) We are considering

More information

Notes on Random Vectors and Multivariate Normal

Notes on Random Vectors and Multivariate Normal MATH 590 Spring 06 Notes on Random Vectors and Multivariate Normal Properties of Random Vectors If X,, X n are random variables, then X = X,, X n ) is a random vector, with the cumulative distribution

More information

Experiment 2 Random Error and Basic Statistics

Experiment 2 Random Error and Basic Statistics PHY9 Experiment 2: Random Error and Basic Statistics 8/5/2006 Page Experiment 2 Random Error and Basic Statistics Homework 2: Turn in at start of experiment. Readings: Taylor chapter 4: introduction, sections

More information

Bayesian Estimation of DSGE Models 1 Chapter 3: A Crash Course in Bayesian Inference

Bayesian Estimation of DSGE Models 1 Chapter 3: A Crash Course in Bayesian Inference 1 The views expressed in this paper are those of the authors and do not necessarily reflect the views of the Federal Reserve Board of Governors or the Federal Reserve System. Bayesian Estimation of DSGE

More information

L09. PARTICLE FILTERING. NA568 Mobile Robotics: Methods & Algorithms

L09. PARTICLE FILTERING. NA568 Mobile Robotics: Methods & Algorithms L09. PARTICLE FILTERING NA568 Mobile Robotics: Methods & Algorithms Particle Filters Different approach to state estimation Instead of parametric description of state (and uncertainty), use a set of state

More information

Monte Carlo Studies. The response in a Monte Carlo study is a random variable.

Monte Carlo Studies. The response in a Monte Carlo study is a random variable. Monte Carlo Studies The response in a Monte Carlo study is a random variable. The response in a Monte Carlo study has a variance that comes from the variance of the stochastic elements in the data-generating

More information

Estimating functional uncertainty using polynomial chaos and adjoint equations

Estimating functional uncertainty using polynomial chaos and adjoint equations 0. Estimating functional uncertainty using polynomial chaos and adjoint equations February 24, 2011 1 Florida State University, Tallahassee, Florida, Usa 2 Moscow Institute of Physics and Technology, Moscow,

More information

Multivariate Time Series

Multivariate Time Series Multivariate Time Series Notation: I do not use boldface (or anything else) to distinguish vectors from scalars. Tsay (and many other writers) do. I denote a multivariate stochastic process in the form

More information

Establishing traceability and estimating measurement uncertainty in physical, chemical and biological measurements

Establishing traceability and estimating measurement uncertainty in physical, chemical and biological measurements Establishing traceability and estimating measurement uncertainty in physical, chemical and biological measurements Experimental Design 8.2.2013 Doc. Martti Heinonen etunimi.sukunimi@mikes.fi Outline 1.

More information

Lawrence D. Brown* and Daniel McCarthy*

Lawrence D. Brown* and Daniel McCarthy* Comments on the paper, An adaptive resampling test for detecting the presence of significant predictors by I. W. McKeague and M. Qian Lawrence D. Brown* and Daniel McCarthy* ABSTRACT: This commentary deals

More information

User Guide for Hermir version 0.9: Toolbox for Synthesis of Multivariate Stationary Gaussian and non-gaussian Series

User Guide for Hermir version 0.9: Toolbox for Synthesis of Multivariate Stationary Gaussian and non-gaussian Series User Guide for Hermir version 0.9: Toolbox for Synthesis of Multivariate Stationary Gaussian and non-gaussian Series Hannes Helgason, Vladas Pipiras, and Patrice Abry June 2, 2011 Contents 1 Organization

More information

Probability and Information Theory. Sargur N. Srihari

Probability and Information Theory. Sargur N. Srihari Probability and Information Theory Sargur N. srihari@cedar.buffalo.edu 1 Topics in Probability and Information Theory Overview 1. Why Probability? 2. Random Variables 3. Probability Distributions 4. Marginal

More information

INTRODUCTION TO PATTERN RECOGNITION

INTRODUCTION TO PATTERN RECOGNITION INTRODUCTION TO PATTERN RECOGNITION INSTRUCTOR: WEI DING 1 Pattern Recognition Automatic discovery of regularities in data through the use of computer algorithms With the use of these regularities to take

More information

Stochastic Structural Dynamics Prof. Dr. C. S. Manohar Department of Civil Engineering Indian Institute of Science, Bangalore

Stochastic Structural Dynamics Prof. Dr. C. S. Manohar Department of Civil Engineering Indian Institute of Science, Bangalore Stochastic Structural Dynamics Prof. Dr. C. S. Manohar Department of Civil Engineering Indian Institute of Science, Bangalore Lecture No. # 33 Probabilistic methods in earthquake engineering-2 So, we have

More information

Preparation Primary Gas Reference Material (PGRM) by using NIMT Facilities

Preparation Primary Gas Reference Material (PGRM) by using NIMT Facilities Preparation Primary Gas Reference Material (PGRM) by using NIMT Facilities By Ms.Ratirat Sinweeruthai June 9-11, 2010 Tsukuba, Japan 8 th APMP/TCQM Gas CRM Workshop Overview Objective of Study EMU of Weighing

More information

Uncertainty due to Finite Resolution Measurements

Uncertainty due to Finite Resolution Measurements Uncertainty due to Finite Resolution Measurements S.D. Phillips, B. Tolman, T.W. Estler National Institute of Standards and Technology Gaithersburg, MD 899 Steven.Phillips@NIST.gov Abstract We investigate

More information

Gaussian processes. Chuong B. Do (updated by Honglak Lee) November 22, 2008

Gaussian processes. Chuong B. Do (updated by Honglak Lee) November 22, 2008 Gaussian processes Chuong B Do (updated by Honglak Lee) November 22, 2008 Many of the classical machine learning algorithms that we talked about during the first half of this course fit the following pattern:

More information

Gaussian, Markov and stationary processes

Gaussian, Markov and stationary processes Gaussian, Markov and stationary processes Gonzalo Mateos Dept. of ECE and Goergen Institute for Data Science University of Rochester gmateosb@ece.rochester.edu http://www.ece.rochester.edu/~gmateosb/ November

More information

Unit 4. Statistics, Detection Limits and Uncertainty. Experts Teaching from Practical Experience

Unit 4. Statistics, Detection Limits and Uncertainty. Experts Teaching from Practical Experience Unit 4 Statistics, Detection Limits and Uncertainty Experts Teaching from Practical Experience Unit 4 Topics Statistical Analysis Detection Limits Decision thresholds & detection levels Instrument Detection

More information

Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air

Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air 1 2 3 4 5 6 Calculating Measurement Uncertainty of the Conventional value of the result of weighing in air Technical note for submission to NCSLI Measure Celia J. Flicker* Hy D. Tran 7 8 9 10 11 12 13

More information

SOLVING LINEAR SYSTEMS

SOLVING LINEAR SYSTEMS SOLVING LINEAR SYSTEMS We want to solve the linear system a, x + + a,n x n = b a n, x + + a n,n x n = b n This will be done by the method used in beginning algebra, by successively eliminating unknowns

More information

Problem List MATH 5143 Fall, 2013

Problem List MATH 5143 Fall, 2013 Problem List MATH 5143 Fall, 2013 On any problem you may use the result of any previous problem (even if you were not able to do it) and any information given in class up to the moment the problem was

More information

CS 195-5: Machine Learning Problem Set 1

CS 195-5: Machine Learning Problem Set 1 CS 95-5: Machine Learning Problem Set Douglas Lanman dlanman@brown.edu 7 September Regression Problem Show that the prediction errors y f(x; ŵ) are necessarily uncorrelated with any linear function of

More information

Statistical Inference: Estimation and Confidence Intervals Hypothesis Testing

Statistical Inference: Estimation and Confidence Intervals Hypothesis Testing Statistical Inference: Estimation and Confidence Intervals Hypothesis Testing 1 In most statistics problems, we assume that the data have been generated from some unknown probability distribution. We desire

More information

Some Approximations of the Logistic Distribution with Application to the Covariance Matrix of Logistic Regression

Some Approximations of the Logistic Distribution with Application to the Covariance Matrix of Logistic Regression Working Paper 2013:9 Department of Statistics Some Approximations of the Logistic Distribution with Application to the Covariance Matrix of Logistic Regression Ronnie Pingel Working Paper 2013:9 June

More information

conditional cdf, conditional pdf, total probability theorem?

conditional cdf, conditional pdf, total probability theorem? 6 Multiple Random Variables 6.0 INTRODUCTION scalar vs. random variable cdf, pdf transformation of a random variable conditional cdf, conditional pdf, total probability theorem expectation of a random

More information

Model Calibration under Uncertainty: Matching Distribution Information

Model Calibration under Uncertainty: Matching Distribution Information Model Calibration under Uncertainty: Matching Distribution Information Laura P. Swiler, Brian M. Adams, and Michael S. Eldred September 11, 008 AIAA Multidisciplinary Analysis and Optimization Conference

More information

Practice Problems Section Problems

Practice Problems Section Problems Practice Problems Section 4-4-3 4-4 4-5 4-6 4-7 4-8 4-10 Supplemental Problems 4-1 to 4-9 4-13, 14, 15, 17, 19, 0 4-3, 34, 36, 38 4-47, 49, 5, 54, 55 4-59, 60, 63 4-66, 68, 69, 70, 74 4-79, 81, 84 4-85,

More information

Fitting Linear Statistical Models to Data by Least Squares I: Introduction

Fitting Linear Statistical Models to Data by Least Squares I: Introduction Fitting Linear Statistical Models to Data by Least Squares I: Introduction Brian R. Hunt and C. David Levermore University of Maryland, College Park Math 420: Mathematical Modeling February 5, 2014 version

More information

Typical pressure measurement uncertainty defined by an FPG8601 Force Balanced Piston Gauge

Typical pressure measurement uncertainty defined by an FPG8601 Force Balanced Piston Gauge Typical pressure measurement uncertainty defined by an FPG8601 Force Balanced Piston Gauge 2090TN05 Revised 2004 March 26 Technical Note FPG8601 is a pressure standard designed to cover the range from

More information

Basic Analysis of Data

Basic Analysis of Data Basic Analysis of Data Department of Chemical Engineering Prof. Geoff Silcox Fall 008 1.0 Reporting the Uncertainty in a Measured Quantity At the request of your supervisor, you have ventured out into

More information

Statistics for Data Analysis. Niklaus Berger. PSI Practical Course Physics Institute, University of Heidelberg

Statistics for Data Analysis. Niklaus Berger. PSI Practical Course Physics Institute, University of Heidelberg Statistics for Data Analysis PSI Practical Course 2014 Niklaus Berger Physics Institute, University of Heidelberg Overview You are going to perform a data analysis: Compare measured distributions to theoretical

More information

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way

Designing Information Devices and Systems I Fall 2018 Lecture Notes Note Introduction to Linear Algebra the EECS Way EECS 16A Designing Information Devices and Systems I Fall 018 Lecture Notes Note 1 1.1 Introduction to Linear Algebra the EECS Way In this note, we will teach the basics of linear algebra and relate it

More information