Appendix 1 As 1.13 MB

Total Page:16

File Type:pdf, Size:1020Kb

Appendix 1 As 1.13 MB Stochastic Empirical Loading and Dilution Model (SELDM) Version 1.0.0—Appendix 1. Monte Carlo Methods By Gregory E. Granato Prepared in cooperation with the U.S. Department of Transportation, Federal Highway Administration, Office of Project Development and Environmental Review Techniques and Methods 4–C3 U.S. Department of the Interior U.S. Geological Survey U.S. Department of the Interior KEN SALAZAR, Secretary U.S. Geological Survey Suzette M. Kimball, Acting Director U.S. Geological Survey, Reston, Virginia: 2013 For more information on the USGS—the Federal source for science about the Earth, its natural and living resources, natural hazards, and the environment, visit http://www.usgs.gov or call 1–888–ASK–USGS. For an overview of USGS information products, including maps, imagery, and publications, visit http://www.usgs.gov/pubprod To order this and other USGS information products, visit http://store.usgs.gov Any use of trade, firm, or product names is for descriptive purposes only and does not imply endorsement by the U.S. Government. Although this information product, for the most part, is in the public domain, it also may contain copyrighted materials as noted in the text. Permission to reproduce copyrighted items must be secured from the copyright owner. Suggested citation: Granato, G.E., 2013, Stochastic empirical loading and dilution model (SELDM) Version 1.0.0—Appendix 1, Monte Carlo methods: U.S. Geological Survey Techniques and Methods, book 4, chap. C3, 26 p., CD–ROM. (Also available at http://pubs.usgs.gov/tm/04/c03/.) iii Contents Introduction.....................................................................................................................................................1 Generating Random Numbers from a Uniform Distribution ....................................................................1 The MRG32k3a Multiple Recursive Pseudorandom-Number Generator ....................................2 Random-Seed Management in SELDM ............................................................................................3 Generating Random Numbers by Using the Inverse Cumulative Distribution Function ....................5 The One- or Two-Parameter Exponential Distribution....................................................................5 The Trapezoidal Distribution ...............................................................................................................5 Generating Random Numbers by Using the Frequency Factor Method ..............................................8 The Normal or Lognormal Distribution ..............................................................................................8 The Pearson Type III or Log-Pearson Type III Distribution ..........................................................10 Generating Random Numbers by Using a Regression Relation ..........................................................17 Generating Random Numbers with an Input Rank Correlation Coefficient .......................................17 Generating Random Numbers Adjusted for Conditional Probability ...................................................22 Calculating the Number of Storms to be Simulated in a Stochastic Sample ....................................24 References Cited..........................................................................................................................................25 Figures 1–1. Schematic diagram showing five possible probability-density functions of the trapezoidal distribution as defined by the location variables ...............................................6 1–2. Graph showing example of implementation of algorithm AS 241 (Wichura, 1988) for producing normal variates from uniform variates for a sample of 12,000 randomly generated points .........................................................................................................................11 1–3. Graphs showing three random samples of the standard normal distribution with the nominal values (average = 0, standard deviation = 1, and coefficient of skew = 0) and the 95-percent confidence intervals for these statistics .............................................12 1–4. Graph showing the normal variate and six Pearson type III variates generated by using the Kirby (1972) adjusted Wilson-Hilferty approximation ..........................................16 1–5. Graph showing the percent reduction in the standard deviation of the dependent uniform random-number sample as a function of the absolute value of the rank correlation coefficient (Spearman’s rho) ................................................................................19 1–6. Graphs showing examples of the theoretical 95-percent confidence intervals for selected values of Spearman’s rank correlation coefficients generated by using the large-sample approximation .....................................................................................................23 Tables 1–1. Parameters for the MRG32k3a combined multiple recursive random-number generator (CMRRNG) by L’Ecuyer (1999) ..................................................................................3 1–2. Coefficients for the polynomials used to implement algorithm AS241 by Wichura (1988) ..............................................................................................................................9 1–3. Interpolation table for the adjusted Wilson-Hilferty approximation by Kirby (1972) .......14 iv Abbreviations BMP best management practice CMRRNG combined multiple recursive random-number generator CDF cumulative distribution function INT integer function KN normal variate, a pseudorandom decimal value that is generated to represent a random variable with a normal distribution KP Pearson type III variate, a pseudorandom decimal value that is generated to represent a random variable with a Pearson type III distribution ln natural logarithm LCG linear congruential generator MRRNG multiple recursive random-number generator PC personal computer PPCC probability-plot correlation coefficient PRNG pseudorandom-number generator RAM random access memory SELDM Stochastic Empirical Loading and Dilution Model U01 uniform random variate, a pseudorandom decimal value that is generated to represent a random variable with a uniform distribution between 0 and 1 VB Microsoft Visual Basic® VBA Microsoft Visual Basic for Applications® Stochastic Empirical Loading and Dilution Model (SELDM) Version 1.0.0—Appendix 1. Monte Carlo Methods By Gregory E. Granato Introduction The Stochastic Empirical Loading and Dilution Model (SELDM) uses Monte Carlo methods to generate large stochastic datasets for the variables needed to provide planning-level estimates of runoff quality at a site of interest. The results of the stochastic analysis indicate the risk for exceeding water-quality objectives and therefore the potential need for mitigation measures to reduce effects of runoff on receiving waters. In SELDM, Monte Carlo methods are used with input statistics to generate multiyear samples of precipitation, prestorm streamflow, runoff coefficients, water-quality data, and metrics for the performance of best management practices (BMPs). Monte Carlo methods are used because the interplay of these variables is complex. Theoretical and analytical solutions cannot characterize the potential combinations of input variables because each variable may be best characterized by a different probability distribution. The purpose of this appendix is to document the numerical methods that are implemented in SELDM with references to literature that describes the theory and development of such methods. This appendix provides the information and equations needed to generate stochastic data for each statistical distribution used in SELDM. This appendix documents methods for adjusting these data to represent correlations between variables by using rank correlation coefficients or regression equations. Methods for adjusting data to represent conditional probabilities also are documented. Uses for different methods are described as examples in this appendix, but the applications of each method for individual hydrologic variables in the model are described in the main body of this report. Generating Random Numbers from a Uniform Distribution SELDM uses a pseudorandom-number generator (PRNG) to generate seemingly random numbers that simulate a uniform distribution. Computer-based random-number generators are identified as PRNGs because computers are, by design, precise and deterministic calculators that cannot produce a set of truly random numbers without an external random signal (Press and others, 1992; L’Ecuyer, 1999; Saucier, 2000; Gentle, 2003). A variate is commonly defined as a single pseudorandom number that is generated to represent a random variable (Devroye, 1986). A series of variates generated by a PRNG represents a sample of values from a specified probability distribution. All values within the specified range of a uniform distribution are equally likely to occur. Hydrologic processes do not commonly produce values that fit a uniform distribution (Haan, 1977; Chow and others, 1988; Stedinger and others, 1993), but the other distributions of interest for modeling hydrologic data are generated by using one or more variates generated from a uniform distribution (Devroye, 1986; Press and others, 1992; Salas, 1993; Saucier, 2000; Gentle, 2003; L’Ecuyer and Simard, 2007). A high-quality PRNG is needed for defensible stochastic simulation models. There are,
Recommended publications
  • 2.1 Introduction Civil Engineering Systems Deal with Variable Quantities, Which Are Described in Terms of Random Variables and Random Processes
    2.1 Introduction Civil Engineering systems deal with variable quantities, which are described in terms of random variables and random processes. Once the system design such as a design of building is identified in terms of providing a safe and economical building, variable resistances for different members such as columns, beams and foundations which can sustain variable loads can be analyzed within the framework of probability theory. The probabilistic description of variable phenomena needs the use of appropriate measures. In this module, various measures of description of variability are presented. 2. HISTOGRAM AND FREQUENCY DIAGRAM Five graphical methods for analyzing variability are: 1. Histograms, 2. Frequency plots, 3. Frequency density plots, 4. Cumulative frequency plots and 5. Scatter plots. 2.1. Histograms A histogram is obtained by dividing the data range into bins, and then counting the number of values in each bin. The unit weight data are divided into 4- kg/m3 wide intervals from to 2082 in Table 1. For example, there are zero values between 1441.66 and 1505 Kg / m3 (Table 1), two values between 1505.74 kg/m3 and 1569.81 kg /m3 etc. A bar-chart plot of the number of occurrences in each interval is called a histogram. The histogram for unit weight is shown on fig.1. Table 1 Total Unit Weight Data from Offshore Boring Total unit Total unit 2 3 Depth weight (x-βx) (x-βx) Depth weight Number (m) (Kg / m3) (Kg / m3)2 (Kg / m3)3 (m) (Kg / m3) 1 0.15 1681.94 115.33 -310.76 52.43 1521.75 2 0.30 1906.20 2050.36 23189.92 2.29 1537.77
    [Show full text]
  • Stat 345 - Homework 3 Chapter 4 -Continuous Random Variables
    STAT 345 - HOMEWORK 3 CHAPTER 4 -CONTINUOUS RANDOM VARIABLES Problem One - Trapezoidal Distribution Consider the following probability density function f(x). 8 > x+1 ; −1 ≤ x < 0 > 5 > <> 1 ; 0 ≤ x < 4 f(x) = 5 > 5−x ; 4 ≤ x ≤ 5 > 5 > :>0; otherwise a) Sketch the PDF. b) Show that the area under the curve is equal to 1 using geometry. c) Show that the area under the curve is equal to 1 by integrating. (You will have to split the integral into pieces). d) Find P (X < 3) using geometry. e) Find P (X < 3) with integration. Problem Two - Probability Density Function Consider the following function f(x), where θ > 0. 8 < c (θ − x); 0 < x < θ f(x) = θ2 :0; otherwise a) Find the value of c so that f(x) is a valid PDF. Sketch the PDF. b) Find the mean and standard deviation of X. p c) If nd , 2 and . θ = 2 P (X > 1) P (X > 3 ) P (X > 2 − 2) c) Compute θ 3θ . P ( 10 < X < 5 ) Problem Three - Cumulative Distribution Functions For each of the following probability density functions, nd the CDF. The Median (M) of a distribution is dened by the property: 1 . Use the CDF to nd the Median of each distribution. F (M) = P (X ≤ M) = 2 a) (Special case of the Beta Distribution) 8 p <1:5 x; 0 < x < 1 f(x) = :0; otherwise b) (Special case of the Pareto Distribution) 8 < 1 ; x > 1 f(x) = x2 :0; otherwise c) Take the derivative of your CDF for part b) and show that you can get back the PDF.
    [Show full text]
  • STAT 345 Spring 2018 Homework 5 - Continuous Random Variables Name
    STAT 345 Spring 2018 Homework 5 - Continuous Random Variables Name: Please adhere to the homework rules as given in the Syllabus. 1. Trapezoidal Distribution. Consider the following probability density function. 8 x+1 ; −1 ≤ x < 0 > 5 > 1 < 5 ; 0 ≤ x < 4 f(x) = 5−x > ; 4 ≤ x ≤ 5 > 5 :>0; otherwise a) Sketch the PDF. b) Show that the area under the curve is equal to 1 using geometry. c) Show that the area under the curve is equal to 1 by integrating. (You will have to split the integral into peices). d) Find P (X < 3) using geometry. e) Find P (X < 3) with integration. 2. Let X have the following PDF, for θ > 0. ( c (θ − x); 0 < x < θ f(x) = θ2 0; otherwise a) Find the value of c which makes f(x) a valid PDF. Sketch the PDF. b) Find the mean and standard deviation of X. θ 3θ c) Find P 10 < X < 5 . 3. PDF to CDF. For each of the following PDFs, find and sketch the CDF. The Median (M) of a continuous distribution is defined by the property F (M) = 0:5. Use the CDF to find the Median of each distribution. a) (Special case of Beta Distribution) p f(x) = 1:5 x; 0 < x < 1 b) (Special case of Pareto Distribution) 1 f(x) = ; x > 1 x2 4. CDF to PDF. For each of the following CDFs, find the PDF. a) 8 0; x < 0 <> F (x) = 1 − (1 − x2)2; 0 ≤ x < 1 :>1; x ≥ 1 b) ( 0; x < 0 F (x) = 1 − e−x2 ; x ≥ 0 5.
    [Show full text]
  • Hand-Book on STATISTICAL DISTRIBUTIONS for Experimentalists
    Internal Report SUF–PFY/96–01 Stockholm, 11 December 1996 1st revision, 31 October 1998 last modification 10 September 2007 Hand-book on STATISTICAL DISTRIBUTIONS for experimentalists by Christian Walck Particle Physics Group Fysikum University of Stockholm (e-mail: [email protected]) Contents 1 Introduction 1 1.1 Random Number Generation .............................. 1 2 Probability Density Functions 3 2.1 Introduction ........................................ 3 2.2 Moments ......................................... 3 2.2.1 Errors of Moments ................................ 4 2.3 Characteristic Function ................................. 4 2.4 Probability Generating Function ............................ 5 2.5 Cumulants ......................................... 6 2.6 Random Number Generation .............................. 7 2.6.1 Cumulative Technique .............................. 7 2.6.2 Accept-Reject technique ............................. 7 2.6.3 Composition Techniques ............................. 8 2.7 Multivariate Distributions ................................ 9 2.7.1 Multivariate Moments .............................. 9 2.7.2 Errors of Bivariate Moments .......................... 9 2.7.3 Joint Characteristic Function .......................... 10 2.7.4 Random Number Generation .......................... 11 3 Bernoulli Distribution 12 3.1 Introduction ........................................ 12 3.2 Relation to Other Distributions ............................. 12 4 Beta distribution 13 4.1 Introduction .......................................
    [Show full text]
  • MARLAP Manual Volume III: Chapter 19, Measurement Uncertainty
    19 MEASUREMENT UNCERTAINTY 19.1 Overview This chapter discusses the evaluation and reporting of measurement uncertainty. Laboratory measurements always involve uncertainty, which must be considered when analytical results are used as part of a basis for making decisions.1 Every measured result reported by a laboratory should be accompanied by an explicit uncertainty estimate. One purpose of this chapter is to give users of radioanalytical data an understanding of the causes of measurement uncertainty and of the meaning of uncertainty statements in laboratory reports. The chapter also describes proce- dures which laboratory personnel use to estimate uncertainties. This chapter has more than one intended audience. Not all readers are expected to have the mathematical skills necessary to read and completely understand the entire chapter. For this reason the material is arranged so that general information is presented first and the more tech- nical information, which is intended primarily for laboratory personnel with the required mathe- matical skills, is presented last. The general discussion in Sections 19.2 and 19.3 requires little previous knowledge of statistical metrology on the part of the reader and involves no mathe- matical formulas; however, if the reader is unfamiliar with the fundamental concepts and terms of probability and statistics, he or she should read Attachment 19A before starting Section 19.3. The technical discussion in Sections 19.4 and 19.5 requires an understanding of basic algebra and at least some familiarity with the fundamental concepts of probability and statistics. The discus- sion of uncertainty propagation requires knowledge of differential calculus for a com- Contents plete understanding.
    [Show full text]
  • Generating Random Variates
    CHAPTER 8 Generating Random Variates 8.1 Introduction................................................................................................2 8.2 General Approaches to Generating Random Variates ....................................3 8.2.1 Inverse Transform...............................................................................................................3 8.2.2 Composition.....................................................................................................................11 8.2.3 Convolution......................................................................................................................16 8.2.4 Acceptance-Rejection.......................................................................................................18 8.2.5 Special Properties.............................................................................................................26 8.3 Generating Continuous Random Variates....................................................27 8.4 Generating Discrete Random Variates.........................................................27 8.4.3 Arbitrary Discrete Distribution...........................................................................................28 8.5 Generating Random Vectors, Correlated Random Variates, and Stochastic Processes ........................................................................................................34 8.5.1 Using Conditional Distributions ..........................................................................................35
    [Show full text]
  • Tumor Detection Using Trapezoidal Function and Rayleigh Distribution
    IOSR Journal of Electronics and Communication Engineering (IOSR-JECE) e-ISSN: 2278-2834,p- ISSN: 2278-8735.Volume 12, Issue 3, Ver. IV (May - June 2017), PP 27-32 www.iosrjournals.org Tumor Detection Using Trapezoidal Function and Rayleigh Distribution. *Mohammad Aslam. C1 Satya Narayana. D2 Padma Priya. K3 1 Vaagdevi Institute of Technology and Science, Proddatur, A.P 2 Rajiv Gandhi Memorial College Of Engineering And Technology, Nandyal, A.P 3jntuk College of Engineering, Kakinada, A.P Corresponding Author: Mohammad Aslam. C1 Abstract: Breast cancer is one of the most common cancers worldwide. In developed countries, among one in eight women develop breast cancer at some stage of their life. Early diagnosis of breast cancer plays a very important role in treatment of the disease. With the goal of identifying genes that are more correlated with the prognosis of breast cancer. An algorithm based on Trapezoidal and Rayleigh distributions. Property is used for the detection of the cancer tumors. Fuzzy logic and markov random fields work in real time. We also try to show its performance by comparing it with the existing real time algorithm that uses only markov random fields. This is not only suitable for the detection of the tumors, but also suitable for various general applications like in the detection of object in an image etc. Keywords: Tumors, Rayleigh distribution texture, Segmentation, Fuzzy Logic. --------------------------------------------------------------------------------------------------------------------------------------- Date of Submission: 19-06-2017 Date of acceptance: 26-07-2017 ----------------------------------------------------------------------------------------------------------------------------- ---------- I. Introduction Breast Cancer is one of the main sources of malignancy related passings in ladies. There are accessible distinctive strategies for the discovery of malignancy tumors, these techniques are utilized for the finding of disease in ladies at early stages.
    [Show full text]
  • Determining the 95% Confidence Interval of Arbitrary Non-Gaussian Probability Distributions
    XIX IMEKO World Congress Fundamental and Applied Metrology September 6−11, 2009, Lisbon, Portugal DETERMINING THE 95% CONFIDENCE INTERVAL OF ARBITRARY NON-GAUSSIAN PROBABILITY DISTRIBUTIONS France Pavlovčič, Janez Nastran, David Nedeljković University of Ljubljana, Faculty of Electrical Engineering, Ljubljana, Slovenia E-mail: [email protected], [email protected], [email protected] Abstract − Measurements are nowadays permanent at- drift, the time drift, and the resolution, all have the rectan- tendants of scientific research, health, medical care and gular distribution. Sometimes also the A-type uncertainties treatment, industrial development, safety and even global do not match with the normal distribution as they are result economy. All of them depend on accurate measurements of regulated quantities, or are affected by the resolution of and tests, and many of these fields are under the legal me- measuring device. In the latter case the probability distribu- trology because of their severity. How the measurement is tion consists of two Dirac functions, one at the lower meas- accurate, is expressed by uncertainty, which is obtained by urement reading and the other at the upper measurement multiplication of standard deviations by coverage factors to reading regarding the resolution. If the distribution is un- increase trustfulness in the measured results. These coverage known the coverage factor is calculated from Chebyshev's factors depend on degree of freedom, which is the function inequality [2] and is 4.472 for the 95% confidence interval. of the number of implied repetitions of measurements, and The uncertainty, the extended or the standard one, does not therefore the reliability of the results is increased.
    [Show full text]
  • Generalized Trapezoidal Distributions
    1 Generalized Trapezoidal Distributions J. René van Dorp, Samuel Kotz Department of Engineering Management & Systems Engineering, The George Washington University, 1776 G Street, N.W., Washington D.C. 20052 (e-mail: [email protected]). Submitted April 24, 2002; Revised, March 2003 Abstract. We present a construction and basic properties of a class of continuous distributions of an arbitrary form defined on a compact (bounded) set by concatenating in a continuous manner three probability density functions with bounded support using a modified mixture technique. These three distributions may represent growth, stability and decline stages of a physical or mental phenomenon. Keywords: Mixtures of Distributions, Risk AnalysisÄ Applied Physics 1. INTRODUCTION Trapezoidal distributions have been advocated in risk analysis problems by Pouliquen (1970) and more recently by Powell and Wilson (1997). They have also found application as membership functions in fuzzy set theory (see, e.g. Chen and Hwang (1992)). Our interest in trapezoidal distributions and their modifications stems mainly from the conviction that many physical processes in nature and human body and mind (over time) reflect the form of the trapezoidal distribution. In this context, trapezoidal distributions have been used in the screening and detection of cancer (see, e.g. Flehinger and Kimmel, (1987) and Brown (1999)). Trapezoidal distributions seem to be appropriate for modeling the duration and the form of a phenomenon which may be represented by three stages. The first stage can be To appear in Metrika, Vol. 58, Issue 1, July 2003 2 viewed as a growth-stage, the second corresponds to a relative stability and the third represents a decline (decay).
    [Show full text]
  • RCEM – Reclamation Consequence Estimating Methodology Interim
    RCEM – Reclamation Consequence Estimating Methodology Interim Examples of Use U.S. Department of the Interior Bureau of Reclamation June 2014 Mission Statements The U.S. Department of the Interior protects America’s natural resources and heritage, honors our cultures and tribal communities, and supplies the energy to power our future. The mission of the Bureau of Reclamation is to manage, develop, and protect water and related resources in an environmentally and economically sound manner in the interest of the American public. Interim RCEM – Reclamation Consequence Estimating Methodology Examples of Use U.S. Department of the Interior Bureau of Reclamation June 2014 RCEM – Examples of Use Interim Table of Contents Introduction ................................................................................................................... 1 General Usage ........................................................................................................... 1 Description of Examples ........................................................................................... 1 Format of Examples .................................................................................................. 3 Graphical Approach ...................................................................................................... 3 Uncertainty and Variability ........................................................................................... 8 Examples ......................................................................................................................
    [Show full text]
  • Selecting and Applying Error Distributions in Uncertainty Analysis1
    SELECTING AND APPLYING ERROR DISTRIBUTIONS 1 IN UNCERTAINTY ANALYSIS Dr. Howard Castrup Integrated Sciences Group 14608 Casitas Canyon Road Bakersfield, CA 93306 1-661-872-1683 [email protected] ABSTRACT Errors or biases from a number of sources may be encountered in performing a measurement. Such sources include random error, measuring parameter bias, measuring parameter resolution, operator bias, environmental factors, etc. Uncertainties due to these errors are estimated either by computing a Type A standard deviation from a sample of measurements or by forming a Type B estimate based on experience. In this paper, guidelines are given for selecting and applying various statistical error distribution that have been found useful for Type A and Type B analyses. Both traditional and Monte Carlo methods are outlined. Also discussed is the estimation of the degrees of freedom for both Type A or Type B estimates. Where appropriate, concepts will be illustrated using spreadsheets, freeware and commercially available software. INTRODUCTION THE GENERAL ERROR MODEL The measurement error model employed in this paper is given in the expression x = xtrue + (1) where x = a value obtained by measurement xtrue = the true value of the measured quantity = the measurement error. With univariate direct measurements, the variable is composed of a linear sum of errors from various measurement error sources. With multivariate measurements consists of a weighted sum of error components, each of which is make up of errors from measurement error sources. More will be said on this later. APPLICABLE AXIOMS In order to use Eq. (1) to estimate measurement uncertainty, we invoke three axioms [HC95a]: Axiom 1 Measurement errors are random variables that follow statistical distributions.
    [Show full text]
  • Uncertainty-Aware Principal Component Analysis
    Uncertainty-Aware Principal Component Analysis Jochen Gortler,¨ Thilo Spinner, Dirk Streeb, Daniel Weiskopf, and Oliver Deussen 0 0 0 0 0 0 0 0 0 0 0 0 (a) Regular PCA (b) s = 0.5 (c) s = 0.8 (d) s = 1.0 Fig. 1. Data uncertainty can have a significant influence on the outcome of dimensionality reduction techniques. We propose a generalization of principal component analysis (PCA) that takes into account the uncertainty in the input. The top row shows the dataset with varying degrees of uncertainty and the corresponding principal components, whereas the bottom row shows the projection of the dataset, using our method, onto the first principal component. In Figures (a) and (b), with relatively low uncertainty, the blue and the orange distributions are comprised by the red and the green distributions. In Figures (c) and (d), with a larger amount of uncertainty, the projection changes drastically: now the orange and blue distributions encompass the red and the green distributions. Abstract—We present a technique to perform dimensionality reduction on data that is subject to uncertainty. Our method is a generalization of traditional principal component analysis (PCA) to multivariate probability distributions. In comparison to non-linear methods, linear dimensionality reduction techniques have the advantage that the characteristics of such probability distributions remain intact after projection. We derive a representation of the PCA sample covariance matrix that respects potential uncertainty in each of the inputs, building the mathematical foundation of our new method: uncertainty-aware PCA. In addition to the accuracy and performance gained by our approach over sampling-based strategies, our formulation allows us to perform sensitivity analysis with regard to the uncertainty in the data.
    [Show full text]