D. Guirado Instituto de Astrofísica de Andalucía CSIC, Granda, Spain Polarization school, Aussois, 06/06/2013

Size: px
Start display at page:

Download "D. Guirado Instituto de Astrofísica de Andalucía CSIC, Granda, Spain Polarization school, Aussois, 06/06/2013"

Transcription

1 MONTE CARLO METHODS D. Guirado Instituto de Astrofísica de Andalucía CSIC, Granda, Spain Polarization school, Aussois, 06/06/2013

2 STOCHASTIC ALGORITHMS PROBLEM = GET OUTPUT FROM INPUT THROUGH AN ALGORITHM Deterministic algorithm: Input 1 Output 1 Stochastic algorithm: Input 1 + random decision Output 1 Output 2 Output 3...

3 MONTE CARLO METHODS Definition: Iterative method including random decisions that gives the correct solution of a problem with a certain probability <1. Named after the district of Monte Carlo (Monaco), European gambling capital. Origin: Study of the diffusion of neutrons in a fusion experiment (Los Álamos Laboratory). Monte Carlo Monte Carlo casino

4 TYPICAL MONTE CARLO METHOD Input parameters + i x i N X = 1 N i=1 x i

5 PRACTICE #1: VALUE OF π 2R 10 0 { Area=4R 2 Area=π R 2 0 N (darts inside) N (darts thrown) } π=4 N (darts inside) N (darts thrown) =4 1 N N i=1 x i 10 N =N (darts thrown) x i = { 1 if dart goes inside 0 if dart goes out }

6 STOCHASTIC METHODS WITH COMPUTERS? HOW? Stochastic method = generating random number + performing operation N t Computers make operations much faster. Computer are deterministic, no random numbers. Solution: pseudo-random numbers. PSEUDO-RANDOM NUMBERS Finite (but large) lists of numbers generated by an algorithm. No correlations beteween the numbers. Examples: Numerical Recipes. MKL (optimized for ifort) ran2 (Numerical Recipes) For any Fortran or C compiler. The authors offer $1000 to the first person who finds a statistical test that proves that ran2 fails.

7 CENTRAL LIMIT THEOREM 2 x 1, x 2,..., x N = collection of N values sampled through. x= Any probability density function with average and variance. Then, the probability density distribution X N = 1 N i=1 N N σ 2 = 1 (x N i μ) 2 i=1, which elements are, has a average of and a variance of, where. N X x i σ 2 N LAW OF LARGE NUMBERS N N gaussian.

8 HOW TO CALCULATE THE ERROR IN A MONTE CARLO METHOD N Fit all calculated to a gaussian distribution and obtain. Let us call the correct solution of the problem. Then: with. with. with. x i X [ N, N ] X [ 2 N,2 N ] X [ 3 N,3 N ] p=0.682 p=0.954 p=0.998 If the accuracy is not enough, increase N (the error decreases as ). ~ 1 N RESULTS FROM MONTE CARLO SIMULATIONS HAVE ERRORS!

9 PRACTICE #2: INTEGRATION S S Integral=S x i ={ N (darts inside positive) N (darts inside negative) =S 1 N N (darts thrown) N i=1 N =N (darts thrown) 0 if dart goes outside 1 if dart goes inside positive 1 if dart goes inside negative} x i

10 PRACTICE MONTE #3: CARLO LINEAR MODEL POLARIZATION OF RADIATIVE IN SCATTERING TRANSFER INCLUDING LINEAR AND CIRCULAR POLARIZATION ( I i 0,Q i 0,U i 0,V i 0 ) I,Q,U, V = 1 I 0 N i,q 0 i,u 0 i,v 0 i i =1 N x I,Q,U, V θ φ z y

11 PRACTICE #3: LINEAR POLARIZATION IN SCATTERING

12 PRACTICE #3: LINEAR POLARIZATION IN SCATTERING Particles: - Any size distribution. - Any refractive index (even optically activity). - Any geometry. - Any orientation (aligned or not). Any optical thickness of the coma (single or multiple scattering). Inhomogeneous coma. Packet of photons (W) - Improves statistics. - Reduces computation time. W=1 at the beginning Ends when W<Wmin

13 PRACTICE #3: LINEAR POLARIZATION IN SCATTERING

14 $~top SOME COMPUTATIONAL CONSIDERATIONS

15 PARALLELIZE YOUR CODE Classical method: MPI. New easier alternative: OpenMP (Fortran and C). How it works: Compile: PROGRAM OMP_SUM2 INTEGER NMAX PARAMETER(NMAX=20000) INTEGER I REAL A(NMAX),C(NMAX) DO I = 1,NMAX A(I) = I * 1.0 C(I)=1. ENDDO C$OMP PARALLEL shared(a,b,c,nmax) private(i,j) C$OMP DO DO I = 1,NMAX DO J=1,I C(I)= C(I)+A(J) END DO Compile: ENDDO C$OMP END DO C$OMP END PARALLEL WRITE(*,*)C(NMAX) END $~gfortran omp_sum2.f -o omp_sum2 Sequential omp_sum2 $~gfortran -fopenmp omp_sum2.f -o omp_sum2 Parallel omp_sum2 Execute: $~time./omp_sum2

16 Download

Introduction. Microscopic Theories of Nuclear Structure, Dynamics and Electroweak Currents June 12-30, 2017, ECT*, Trento, Italy

Introduction. Microscopic Theories of Nuclear Structure, Dynamics and Electroweak Currents June 12-30, 2017, ECT*, Trento, Italy Introduction Stefano Gandolfi Los Alamos National Laboratory (LANL) Microscopic Theories of Nuclear Structure, Dynamics and Electroweak Currents June 12-30, 2017, ECT*, Trento, Italy Stefano Gandolfi (LANL)

More information

AMath 483/583 Lecture 26. Notes: Notes: Announcements. Notes: AMath 483/583 Lecture 26. Outline:

AMath 483/583 Lecture 26. Notes: Notes: Announcements. Notes: AMath 483/583 Lecture 26. Outline: AMath 483/583 Lecture 26 Outline: Monte Carlo methods Random number generators Monte Carlo integrators Random walk solution of Poisson problem Announcements Part of Final Project will be available tomorrow.

More information

Mean Intensity. Same units as I ν : J/m 2 /s/hz/sr (ergs/cm 2 /s/hz/sr) Function of position (and time), but not direction

Mean Intensity. Same units as I ν : J/m 2 /s/hz/sr (ergs/cm 2 /s/hz/sr) Function of position (and time), but not direction MCRT: L5 MCRT estimators for mean intensity, absorbed radiation, radiation pressure, etc Path length sampling: mean intensity, fluence rate, number of absorptions Random number generators J Mean Intensity

More information

Monte Carlo Methods. Part I: Introduction

Monte Carlo Methods. Part I: Introduction Monte Carlo Methods Part I: Introduction Spring Semester 2013/14 Department of Applied Mathematics, University of Crete Instructor: Harmandaris Vagelis, email: vagelis@tem.uoc.gr Course web page: http://www.tem.uoc.gr/~vagelis/courses/em385/

More information

Simulation. Version 1.1 c 2010, 2009, 2001 José Fernando Oliveira Maria Antónia Carravilla FEUP

Simulation. Version 1.1 c 2010, 2009, 2001 José Fernando Oliveira Maria Antónia Carravilla FEUP Simulation Version 1.1 c 2010, 2009, 2001 José Fernando Oliveira Maria Antónia Carravilla FEUP Systems - why simulate? System any object or entity on which a particular study is run. Model representation

More information

Numerically Solving Partial Differential Equations

Numerically Solving Partial Differential Equations Numerically Solving Partial Differential Equations Michael Lavell Department of Applied Mathematics and Statistics Abstract The physics describing the fundamental principles of fluid dynamics can be written

More information

MCRT: L4 A Monte Carlo Scattering Code

MCRT: L4 A Monte Carlo Scattering Code MCRT: L4 A Monte Carlo Scattering Code Plane parallel scattering slab Optical depths & physical distances Emergent flux & intensity Internal intensity moments Constant density slab, vertical optical depth

More information

Enrico Fermi and the FERMIAC. Mechanical device that plots 2D random walks of slow and fast neutrons in fissile material

Enrico Fermi and the FERMIAC. Mechanical device that plots 2D random walks of slow and fast neutrons in fissile material Monte Carlo History Statistical sampling Buffon s needles and estimates of π 1940s: neutron transport in fissile material Origin of name People: Ulam, von Neuman, Metropolis, Teller Other areas of use:

More information

Fortran program + Partial data layout specifications Data Layout Assistant.. regular problems. dynamic remapping allowed Invoked only a few times Not part of the compiler Can use expensive techniques HPF

More information

Applications of Mathematical Economics

Applications of Mathematical Economics Applications of Mathematical Economics Michael Curran Trinity College Dublin Overview Introduction. Data Preparation Filters. Dynamic Stochastic General Equilibrium Models: Sunspots and Blanchard-Kahn

More information

Simulation. Where real stuff starts

Simulation. Where real stuff starts 1 Simulation Where real stuff starts ToC 1. What is a simulation? 2. Accuracy of output 3. Random Number Generators 4. How to sample 5. Monte Carlo 6. Bootstrap 2 1. What is a simulation? 3 What is a simulation?

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

MCRT L10: Scattering and clarification of astronomy/medical terminology

MCRT L10: Scattering and clarification of astronomy/medical terminology MCRT L10: Scattering and clarification of astronomy/medical terminology What does the scattering? Shape of scattering Sampling from scattering phase functions Co-ordinate frames Refractive index changes

More information

Dirac Mixture Density Approximation Based on Minimization of the Weighted Cramér von Mises Distance

Dirac Mixture Density Approximation Based on Minimization of the Weighted Cramér von Mises Distance Dirac Mixture Density Approximation Based on Minimization of the Weighted Cramér von Mises Distance Oliver C Schrempf, Dietrich Brunn, and Uwe D Hanebeck Abstract This paper proposes a systematic procedure

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 1940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic -

More information

Serpent Monte Carlo Neutron Transport Code

Serpent Monte Carlo Neutron Transport Code Serpent Monte Carlo Neutron Transport Code NEA Expert Group on Advanced Monte Carlo Techniques, Meeting September 17 2012 Jaakko Leppänen / Tuomas Viitanen VTT Technical Research Centre of Finland Outline

More information

Monte Carlo Methods. Leon Gu CSD, CMU

Monte Carlo Methods. Leon Gu CSD, CMU Monte Carlo Methods Leon Gu CSD, CMU Approximate Inference EM: y-observed variables; x-hidden variables; θ-parameters; E-step: q(x) = p(x y, θ t 1 ) M-step: θ t = arg max E q(x) [log p(y, x θ)] θ Monte

More information

Lecture notes on Regression: Markov Chain Monte Carlo (MCMC)

Lecture notes on Regression: Markov Chain Monte Carlo (MCMC) Lecture notes on Regression: Markov Chain Monte Carlo (MCMC) Dr. Veselina Kalinova, Max Planck Institute for Radioastronomy, Bonn Machine Learning course: the elegant way to extract information from data,

More information

To: Professor Paul McCudden 9/3/15 Dr. John Sepikas

To: Professor Paul McCudden 9/3/15 Dr. John Sepikas To: Professor Paul McCudden 9/3/5 Dr. John Sepikas From: Tannaz Oskui Subject: Final Report -Supercomputer Numerical Simulation of Astrophysical Processes JPL/205 CURE My 205 summer CURE project was to

More information

Monte Carlo Radiation Transport Kenny Wood

Monte Carlo Radiation Transport Kenny Wood MCRT: L0 Some background, what previous courses students should look over, gentle introduction/recap of probabilities Get an idea of computer programming experience of the class Overview of course structure

More information

Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods: Markov Chain Monte Carlo

Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods: Markov Chain Monte Carlo Group Prof. Daniel Cremers 11. Sampling Methods: Markov Chain Monte Carlo Markov Chain Monte Carlo In high-dimensional spaces, rejection sampling and importance sampling are very inefficient An alternative

More information

Monte Carlo Radiation Transport Kenny Wood

Monte Carlo Radiation Transport Kenny Wood Monte Carlo Radiation Transport Kenny Wood kw25@st-andrews.ac.uk A practical approach to the numerical simulation of radiation transport Develop programs for the random walks of photons and neutrons using

More information

Large Sample Properties & Simulation

Large Sample Properties & Simulation Large Sample Properties & Simulation Quantitative Microeconomics R. Mora Department of Economics Universidad Carlos III de Madrid Outline Large Sample Properties (W App. C3) 1 Large Sample Properties (W

More information

4.5 Applications of Congruences

4.5 Applications of Congruences 4.5 Applications of Congruences 287 66. Find all solutions of the congruence x 2 16 (mod 105). [Hint: Find the solutions of this congruence modulo 3, modulo 5, and modulo 7, and then use the Chinese remainder

More information

Temporal-Difference Q-learning in Active Fault Diagnosis

Temporal-Difference Q-learning in Active Fault Diagnosis Temporal-Difference Q-learning in Active Fault Diagnosis Jan Škach 1 Ivo Punčochář 1 Frank L. Lewis 2 1 Identification and Decision Making Research Group (IDM) European Centre of Excellence - NTIS University

More information

Monte Carlo Radiation Transfer I

Monte Carlo Radiation Transfer I Monte Carlo Radiation Transfer I Monte Carlo Photons and interactions Sampling from probability distributions Optical depths, isotropic emission, scattering Monte Carlo Basics Emit energy packet, hereafter

More information

New approaches to uncertainty evaluation:

New approaches to uncertainty evaluation: New approaches to uncertainty evaluation: Propagation of uncertainty, numerical methods and Monte Carlo simulation Wolfram Bremser BAM Federal Institute for Materials Research and Testing Unter den Eichen

More information

Measurements made for web data, media (IP Radio and TV, BBC Iplayer: Port 80 TCP) and VoIP (Skype: Port UDP) traffic.

Measurements made for web data, media (IP Radio and TV, BBC Iplayer: Port 80 TCP) and VoIP (Skype: Port UDP) traffic. Real time statistical measurements of IPT(Inter-Packet time) of network traffic were done by designing and coding of efficient measurement tools based on the Libpcap package. Traditional Approach of measuring

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic - not

More information

Today: Fundamentals of Monte Carlo

Today: Fundamentals of Monte Carlo Today: Fundamentals of Monte Carlo What is Monte Carlo? Named at Los Alamos in 1940 s after the casino. Any method which uses (pseudo)random numbers as an essential part of the algorithm. Stochastic -

More information

I, at any rate, am convinced that He does not throw dice. Albert Einstein

I, at any rate, am convinced that He does not throw dice. Albert Einstein Monte Carlo Methods I, at any rate, am convinced that He does not throw dice. Albert Einstein Fall 2010 1 Pseudo Random Numbers: 1/3 Random numbers are numbers occur in a random way. If they are generated

More information

Subroutines to Simulate Fission Neutrons for Monte Carlo Transport Codes. J. P. Lestone Los Alamos National Laboratory, Los Alamos, New Mexico, USA

Subroutines to Simulate Fission Neutrons for Monte Carlo Transport Codes. J. P. Lestone Los Alamos National Laboratory, Los Alamos, New Mexico, USA Subroutines to Simulate Fission Neutrons for Monte Carlo Transport Codes J. P. Lestone Los Alamos National Laboratory, Los Alamos, New Mexico, USA Abstract Fortran subroutines have been written to simulate

More information

Introduction to Reinforcement Learning. CMPT 882 Mar. 18

Introduction to Reinforcement Learning. CMPT 882 Mar. 18 Introduction to Reinforcement Learning CMPT 882 Mar. 18 Outline for the week Basic ideas in RL Value functions and value iteration Policy evaluation and policy improvement Model-free RL Monte-Carlo and

More information

Data Analysis I. Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK. 10 lectures, beginning October 2006

Data Analysis I. Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK. 10 lectures, beginning October 2006 Astronomical p( y x, I) p( x, I) p ( x y, I) = p( y, I) Data Analysis I Dr Martin Hendry, Dept of Physics and Astronomy University of Glasgow, UK 10 lectures, beginning October 2006 4. Monte Carlo Methods

More information

Localization and Correlation in Ensemble Kalman Filters

Localization and Correlation in Ensemble Kalman Filters Localization and Correlation in Ensemble Kalman Filters Jeff Anderson NCAR Data Assimilation Research Section The National Center for Atmospheric Research is sponsored by the National Science Foundation.

More information

Probabilistic Planning. George Konidaris

Probabilistic Planning. George Konidaris Probabilistic Planning George Konidaris gdk@cs.brown.edu Fall 2017 The Planning Problem Finding a sequence of actions to achieve some goal. Plans It s great when a plan just works but the world doesn t

More information

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables Department of Electrical Engineering University of Arkansas ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables Dr. Jingxian Wu wuj@uark.edu OUTLINE 2 Random Variable Discrete Random

More information

Monte Carlo Methods:

Monte Carlo Methods: Short Course on Computational Monte Carlo Methods: Fundamentals Shuang Zhao Assistant Professor Computer Science Department University of California, Irvine Shuang Zhao 1 Teaching Objective Introducing

More information

Sequential Monte Carlo methods for filtering of unobservable components of multidimensional diffusion Markov processes

Sequential Monte Carlo methods for filtering of unobservable components of multidimensional diffusion Markov processes Sequential Monte Carlo methods for filtering of unobservable components of multidimensional diffusion Markov processes Ellida M. Khazen * 13395 Coppermine Rd. Apartment 410 Herndon VA 20171 USA Abstract

More information

Detectors in Nuclear Physics: Monte Carlo Methods. Dr. Andrea Mairani. Lectures I-II

Detectors in Nuclear Physics: Monte Carlo Methods. Dr. Andrea Mairani. Lectures I-II Detectors in Nuclear Physics: Monte Carlo Methods Dr. Andrea Mairani Lectures I-II INTRODUCTION Sampling from a probability distribution Sampling from a probability distribution X λ Sampling from a probability

More information

Monte Carlo Simulations

Monte Carlo Simulations Monte Carlo Simulations 1 Homework 3: Optical Sim A little late, so I am making it easier than my original goal (still due this coming MONDAY, 9-26) Run my Ray Tracer program and determine what fraction

More information

Reformulation of chance constrained problems using penalty functions

Reformulation of chance constrained problems using penalty functions Reformulation of chance constrained problems using penalty functions Martin Branda Charles University in Prague Faculty of Mathematics and Physics EURO XXIV July 11-14, 2010, Lisbon Martin Branda (MFF

More information

QUACCS 2014: Quantum Monte Carlo for Electrons

QUACCS 2014: Quantum Monte Carlo for Electrons QUACCS 2014: Quantum Monte Carlo for Electrons Pierre-François Loos Research School of Chemistry, Australian National University, Canberra, ACT 0200, Australia pf.loos@anu.edu.au Abstract The purpose of

More information

Sequential Importance Sampling for Rare Event Estimation with Computer Experiments

Sequential Importance Sampling for Rare Event Estimation with Computer Experiments Sequential Importance Sampling for Rare Event Estimation with Computer Experiments Brian Williams and Rick Picard LA-UR-12-22467 Statistical Sciences Group, Los Alamos National Laboratory Abstract Importance

More information

Simulation. Where real stuff starts

Simulation. Where real stuff starts Simulation Where real stuff starts March 2019 1 ToC 1. What is a simulation? 2. Accuracy of output 3. Random Number Generators 4. How to sample 5. Monte Carlo 6. Bootstrap 2 1. What is a simulation? 3

More information

Chapter 6 Randomization Algorithm Theory WS 2012/13 Fabian Kuhn

Chapter 6 Randomization Algorithm Theory WS 2012/13 Fabian Kuhn Chapter 6 Randomization Algorithm Theory WS 2012/13 Fabian Kuhn Randomization Randomized Algorithm: An algorithm that uses (or can use) random coin flips in order to make decisions We will see: randomization

More information

In this section again we shall assume that the matrix A is m m, real and symmetric.

In this section again we shall assume that the matrix A is m m, real and symmetric. 84 3. The QR algorithm without shifts See Chapter 28 of the textbook In this section again we shall assume that the matrix A is m m, real and symmetric. 3.1. Simultaneous Iterations algorithm Suppose we

More information

2008 Winton. Review of Statistical Terminology

2008 Winton. Review of Statistical Terminology 1 Review of Statistical Terminology 2 Formal Terminology An experiment is a process whose outcome is not known with certainty The experiment s sample space S is the set of all possible outcomes. A random

More information

Monte Carlo Methods in High Energy Physics I

Monte Carlo Methods in High Energy Physics I Helmholtz International Workshop -- CALC 2009, July 10--20, Dubna Monte Carlo Methods in High Energy Physics CALC2009 - July 20 10, Dubna 2 Contents 3 Introduction Simple definition: A Monte Carlo technique

More information

Parallelization of the Dirac operator. Pushan Majumdar. Indian Association for the Cultivation of Sciences, Jadavpur, Kolkata

Parallelization of the Dirac operator. Pushan Majumdar. Indian Association for the Cultivation of Sciences, Jadavpur, Kolkata Parallelization of the Dirac operator Pushan Majumdar Indian Association for the Cultivation of Sciences, Jadavpur, Kolkata Outline Introduction Algorithms Parallelization Comparison of performances Conclusions

More information

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more...

Periodic motions. Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions Periodic motions are known since the beginning of mankind: Motion of planets around the Sun; Pendulum; And many more... Periodic motions There are several quantities which describe a periodic

More information

Sampling Based Filters

Sampling Based Filters Statistical Techniques in Robotics (16-831, F12) Lecture#03 (Monday September 5) Sampling Based Filters Lecturer: Drew Bagnell Scribes: M. Taylor, M. Shomin 1 1 Beam-based Sensor Model Many common sensors

More information

The Use of Serpent 2 in Support of Modeling of the Transient Test Reactor at Idaho National Laboratory

The Use of Serpent 2 in Support of Modeling of the Transient Test Reactor at Idaho National Laboratory The Use of Serpent 2 in Support of Modeling of the Transient Test Reactor at Idaho National Laboratory Sixth International Serpent User s Group Meeting Politecnico di Milano, Milan, Italy 26-29 September,

More information

Sampling exactly from the normal distribution

Sampling exactly from the normal distribution 1 Sampling exactly from the normal distribution Charles Karney charles.karney@sri.com SRI International AofA 2017, Princeton, June 20, 2017 Background: In my day job, I ve needed normal (Gaussian) deviates

More information

Computational Nanoscience

Computational Nanoscience Computational Nanoscience Applications for Molecules, Clusters, and Solids KALMÄN VARGA AND JOSEPH A. DRISCOLL Vanderbilt University, Tennessee Щ CAMBRIDGE HP UNIVERSITY PRESS Preface Part I One-dimensional

More information

REVIEW: Waves on a String

REVIEW: Waves on a String Lecture 14: Solution to the Wave Equation (Chapter 6) and Random Walks (Chapter 7) 1 Description of Wave Motion REVIEW: Waves on a String We are all familiar with the motion of a transverse wave pulse

More information

APPLICATION OF LAGRANGIAN MODELLING IN URBAN AREAS. Richard Leduc, Ph.D. Environmental Modelling Workshop Edmonton, March

APPLICATION OF LAGRANGIAN MODELLING IN URBAN AREAS. Richard Leduc, Ph.D. Environmental Modelling Workshop Edmonton, March APPLICATION OF LAGRANGIAN MODELLING IN URBAN AREAS Richard Leduc, Ph.D. Environmental Modelling Workshop Edmonton, March 13 2013 1 SPECIAL THANKS Thanks to Jesse Thé, Lakes Environmental, and Yann Contratto,

More information

Spectral Representation of Random Processes

Spectral Representation of Random Processes Spectral Representation of Random Processes Example: Represent u(t,x,q) by! u K (t, x, Q) = u k (t, x) k(q) where k(q) are orthogonal polynomials. Single Random Variable:! Let k (Q) be orthogonal with

More information

Particle Filters. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics

Particle Filters. Pieter Abbeel UC Berkeley EECS. Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics Particle Filters Pieter Abbeel UC Berkeley EECS Many slides adapted from Thrun, Burgard and Fox, Probabilistic Robotics Motivation For continuous spaces: often no analytical formulas for Bayes filter updates

More information

THREE-DIMENSIONAL INTEGRAL NEUTRON TRANSPORT CELL CALCULATIONS FOR THE DETERMINATION OF MEAN CELL CROSS SECTIONS

THREE-DIMENSIONAL INTEGRAL NEUTRON TRANSPORT CELL CALCULATIONS FOR THE DETERMINATION OF MEAN CELL CROSS SECTIONS THREE-DIMENSIONAL INTEGRAL NEUTRON TRANSPORT CELL CALCULATIONS FOR THE DETERMINATION OF MEAN CELL CROSS SECTIONS Carsten Beckert 1. Introduction To calculate the neutron transport in a reactor, it is often

More information

Lecture 5: Two-point Sampling

Lecture 5: Two-point Sampling Randomized Algorithms Lecture 5: Two-point Sampling Sotiris Nikoletseas Professor CEID - ETY Course 2017-2018 Sotiris Nikoletseas, Professor Randomized Algorithms - Lecture 5 1 / 26 Overview A. Pairwise

More information

This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer.

This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer. This question has three parts, each of which can be answered concisely, but be prepared to explain and justify your concise answer. 1. Suppose you have a policy and its action-value function, q, then you

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

16 : Markov Chain Monte Carlo (MCMC)

16 : Markov Chain Monte Carlo (MCMC) 10-708: Probabilistic Graphical Models 10-708, Spring 2014 16 : Markov Chain Monte Carlo MCMC Lecturer: Matthew Gormley Scribes: Yining Wang, Renato Negrinho 1 Sampling from low-dimensional distributions

More information

Review of the role of uncertainties in room acoustics

Review of the role of uncertainties in room acoustics Review of the role of uncertainties in room acoustics Ralph T. Muehleisen, Ph.D. PE, FASA, INCE Board Certified Principal Building Scientist and BEDTR Technical Lead Division of Decision and Information

More information

Zacros. Software Package Development: Pushing the Frontiers of Kinetic Monte Carlo Simulation in Catalysis

Zacros. Software Package Development: Pushing the Frontiers of Kinetic Monte Carlo Simulation in Catalysis Zacros Software Package Development: Pushing the Frontiers of Kinetic Monte Carlo Simulation in Catalysis Jens H Nielsen, Mayeul D'Avezac, James Hetherington & Michail Stamatakis Introduction to Zacros

More information

A Randomized Algorithm for the Approximation of Matrices

A Randomized Algorithm for the Approximation of Matrices A Randomized Algorithm for the Approximation of Matrices Per-Gunnar Martinsson, Vladimir Rokhlin, and Mark Tygert Technical Report YALEU/DCS/TR-36 June 29, 2006 Abstract Given an m n matrix A and a positive

More information

Monte Carlo Sampling

Monte Carlo Sampling Monte Carlo Sampling Sampling from PDFs: given F(x) in analytic or tabulated form, generate a random number ξ in the range (0,1) and solve the equation to get the randomly sampled value X X ξ = F(x)dx

More information

Numerical Simulation of Light Propagation Through Composite and Anisotropic Media Using Supercomputers

Numerical Simulation of Light Propagation Through Composite and Anisotropic Media Using Supercomputers Moscow, Russia, September 25-26, 2017 Numerical Simulation of Light Propagation Through Composite and Anisotropic Media Using Supercomputers R.V. Galev, A.N. Kudryavtsev, S.I. Trashkeev Khristianovich

More information

Mathematical Methods for Neurosciences. ENS - Master MVA Paris 6 - Master Maths-Bio ( )

Mathematical Methods for Neurosciences. ENS - Master MVA Paris 6 - Master Maths-Bio ( ) Mathematical Methods for Neurosciences. ENS - Master MVA Paris 6 - Master Maths-Bio (2014-2015) Etienne Tanré - Olivier Faugeras INRIA - Team Tosca October 22nd, 2014 E. Tanré (INRIA - Team Tosca) Mathematical

More information

The Monte Carlo Method An Introduction to Markov Chain MC

The Monte Carlo Method An Introduction to Markov Chain MC The Monte Carlo Method An Introduction to Markov Chain MC Sachin Shanbhag Department of Scientific Computing, Florida State University Sources. Introduction to Monte Carlo Algorithms : Werner Krauth. Available

More information

Surface Sensitive X-ray Scattering

Surface Sensitive X-ray Scattering Surface Sensitive X-ray Scattering Introduction Concepts of surfaces Scattering (Born approximation) Crystal Truncation Rods The basic idea How to calculate Examples Reflectivity In Born approximation

More information

Monte Carlo (MC) Simulation Methods. Elisa Fadda

Monte Carlo (MC) Simulation Methods. Elisa Fadda Monte Carlo (MC) Simulation Methods Elisa Fadda 1011-CH328, Molecular Modelling & Drug Design 2011 Experimental Observables A system observable is a property of the system state. The system state i is

More information

Random Variable. Pr(X = a) = Pr(s)

Random Variable. Pr(X = a) = Pr(s) Random Variable Definition A random variable X on a sample space Ω is a real-valued function on Ω; that is, X : Ω R. A discrete random variable is a random variable that takes on only a finite or countably

More information

Computational modeling

Computational modeling Computational modeling Lecture 4 : Central Limit Theorem Theory: Normal distribution Programming: Arrays Instructor : Cedric Weber Course : 4CCP1000 Schedule Class/Week Chapter Topic Milestones 1 Monte

More information

Performance Analysis of Lattice QCD Application with APGAS Programming Model

Performance Analysis of Lattice QCD Application with APGAS Programming Model Performance Analysis of Lattice QCD Application with APGAS Programming Model Koichi Shirahata 1, Jun Doi 2, Mikio Takeuchi 2 1: Tokyo Institute of Technology 2: IBM Research - Tokyo Programming Models

More information

Mollifying Networks. ICLR,2017 Presenter: Arshdeep Sekhon & Be

Mollifying Networks. ICLR,2017 Presenter: Arshdeep Sekhon & Be Mollifying Networks Caglar Gulcehre 1 Marcin Moczulski 2 Francesco Visin 3 Yoshua Bengio 1 1 University of Montreal, 2 University of Oxford, 3 Politecnico di Milano ICLR,2017 Presenter: Arshdeep Sekhon

More information

Computer Vision Group Prof. Daniel Cremers. 14. Sampling Methods

Computer Vision Group Prof. Daniel Cremers. 14. Sampling Methods Prof. Daniel Cremers 14. Sampling Methods Sampling Methods Sampling Methods are widely used in Computer Science as an approximation of a deterministic algorithm to represent uncertainty without a parametric

More information

Monte Caro simulations

Monte Caro simulations Monte Caro simulations Monte Carlo methods - based on random numbers Stanislav Ulam s terminology - his uncle frequented the Casino in Monte Carlo Random (pseudo random) number generator on the computer

More information

Review of Statistical Terminology

Review of Statistical Terminology Review of Statistical Terminology An experiment is a process whose outcome is not known with certainty. The experiment s sample space S is the set of all possible outcomes. A random variable is a function

More information

Introduction to Machine Learning CMU-10701

Introduction to Machine Learning CMU-10701 Introduction to Machine Learning CMU-10701 Markov Chain Monte Carlo Methods Barnabás Póczos Contents Markov Chain Monte Carlo Methods Sampling Rejection Importance Hastings-Metropolis Gibbs Markov Chains

More information

Uncertainty in energy system models

Uncertainty in energy system models Uncertainty in energy system models Amy Wilson Durham University May 2015 Table of Contents 1 Model uncertainty 2 3 Example - generation investment 4 Conclusion Model uncertainty Contents 1 Model uncertainty

More information

FDSA and SPSA in Simulation-Based Optimization Stochastic approximation provides ideal framework for carrying out simulation-based optimization

FDSA and SPSA in Simulation-Based Optimization Stochastic approximation provides ideal framework for carrying out simulation-based optimization FDSA and SPSA in Simulation-Based Optimization Stochastic approximation provides ideal framework for carrying out simulation-based optimization Rigorous means for handling noisy loss information inherent

More information

The University of British Columbia Computer Science 405 Practice Midterm Solutions

The University of British Columbia Computer Science 405 Practice Midterm Solutions The University of British Columbia Computer Science 405 Practice Midterm Solutions Instructor: Kees van den Doel Time: 45 mins Total marks: 100 The solutions provided here are much more verbose than what

More information

Simulation of DART Buoy Data

Simulation of DART Buoy Data Simulation of DART Buoy Data goal: develop procedure for simulating detided DART buoy data that can be used to test inversion algorithm, train users etc. simulated data has three stochastic components:

More information

Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods

Computer Vision Group Prof. Daniel Cremers. 11. Sampling Methods Prof. Daniel Cremers 11. Sampling Methods Sampling Methods Sampling Methods are widely used in Computer Science as an approximation of a deterministic algorithm to represent uncertainty without a parametric

More information

The Lovasz-Vempala algorithm for computing the volume of a convex body in O*(n^4) - Theory and Implementation

The Lovasz-Vempala algorithm for computing the volume of a convex body in O*(n^4) - Theory and Implementation The Lovasz-Vempala algorithm for computing the volume of a convex body in O*(n^4) - Theory and Implementation Mittagsseminar, 20. Dec. 2011 Christian L. Müller, MOSAIC group, Institute of Theoretical Computer

More information

CHEF applications to the ALHAMBRA survey

CHEF applications to the ALHAMBRA survey Highlights of Spanish Astrophysics VII, Proceedings of the X Scientific Meeting of the Spanish Astronomical Society held on July 9-13, 2012, in Valencia, Spain. J. C. Guirado, L. M. Lara, V. Quilis, and

More information

Reinforcement Learning

Reinforcement Learning Reinforcement Learning March May, 2013 Schedule Update Introduction 03/13/2015 (10:15-12:15) Sala conferenze MDPs 03/18/2015 (10:15-12:15) Sala conferenze Solving MDPs 03/20/2015 (10:15-12:15) Aula Alpha

More information

Final Report: DE-FG02-95ER25239 Spectral Representations of Uncertainty: Algorithms and Applications

Final Report: DE-FG02-95ER25239 Spectral Representations of Uncertainty: Algorithms and Applications Final Report: DE-FG02-95ER25239 Spectral Representations of Uncertainty: Algorithms and Applications PI: George Em Karniadakis Division of Applied Mathematics, Brown University April 25, 2005 1 Objectives

More information

1.1 Variational principle Variational calculations with Gaussian basis functions 5

1.1 Variational principle Variational calculations with Gaussian basis functions 5 Preface page xi Part I One-dimensional problems 1 1 Variational solution of the Schrödinger equation 3 1.1 Variational principle 3 1.2 Variational calculations with Gaussian basis functions 5 2 Solution

More information

PoS(IX EVN Symposium)019

PoS(IX EVN Symposium)019 abc, K.-H. Mack, a C.R. Benn, d R. Carballo, e D. Dallacasa, f a J.I. González-Serrano, g J. Holt h and F. Jiménez-Luján gi a INAF - Istituto di Radioastronomia, Via P. Gobetti 101, I-40129 Bologna, Italy

More information

MCSHAPE: A MONTE CARLO CODE FOR SIMULATION OF POLARIZED PHOTON TRANSPORT

MCSHAPE: A MONTE CARLO CODE FOR SIMULATION OF POLARIZED PHOTON TRANSPORT Copyright JCPDS - International Centre for Diffraction Data 2003, Advances in X-ray Analysis, Volume 46. 363 MCSHAPE: A MONTE CARLO CODE FOR SIMULATION OF POLARIZED PHOTON TRANSPORT J.E. Fernández, V.

More information

Discrete Variables and Gradient Estimators

Discrete Variables and Gradient Estimators iscrete Variables and Gradient Estimators This assignment is designed to get you comfortable deriving gradient estimators, and optimizing distributions over discrete random variables. For most questions,

More information

Random Processes. DS GA 1002 Probability and Statistics for Data Science.

Random Processes. DS GA 1002 Probability and Statistics for Data Science. Random Processes DS GA 1002 Probability and Statistics for Data Science http://www.cims.nyu.edu/~cfgranda/pages/dsga1002_fall17 Carlos Fernandez-Granda Aim Modeling quantities that evolve in time (or space)

More information

Big-O Notation and Complexity Analysis

Big-O Notation and Complexity Analysis Big-O Notation and Complexity Analysis Jonathan Backer backer@cs.ubc.ca Department of Computer Science University of British Columbia May 28, 2007 Problems Reading: CLRS: Growth of Functions 3 GT: Algorithm

More information

From Random Numbers to Monte Carlo. Random Numbers, Random Walks, Diffusion, Monte Carlo integration, and all that

From Random Numbers to Monte Carlo. Random Numbers, Random Walks, Diffusion, Monte Carlo integration, and all that From Random Numbers to Monte Carlo Random Numbers, Random Walks, Diffusion, Monte Carlo integration, and all that Random Walk Through Life Random Walk Through Life If you flip the coin 5 times you will

More information

Digital Systems EEE4084F. [30 marks]

Digital Systems EEE4084F. [30 marks] Digital Systems EEE4084F [30 marks] Practical 3: Simulation of Planet Vogela with its Moon and Vogel Spiral Star Formation using OpenGL, OpenMP, and MPI Introduction The objective of this assignment is

More information

COMS 6100 Class Notes

COMS 6100 Class Notes COMS 6100 Class Notes Daniel Solus September 20, 2016 1 General Remarks The Lecture notes submitted by the class have been very good. Integer division seemed to be a common oversight when working the Fortran

More information

Fast Numerical Methods for Stochastic Computations

Fast Numerical Methods for Stochastic Computations Fast AreviewbyDongbinXiu May 16 th,2013 Outline Motivation 1 Motivation 2 3 4 5 Example: Burgers Equation Let us consider the Burger s equation: u t + uu x = νu xx, x [ 1, 1] u( 1) =1 u(1) = 1 Example:

More information