Monte Carlo Methods A so-called “embarrassingly parallel” computation as it decomposes into obviously independent tasks that can be done in parallel without.

Slides:



Advertisements
Similar presentations
Prepared 7/28/2011 by T. O’Neil for 3460:677, Fall 2011, The University of Akron.
Advertisements

Grid Computing, B. Wilkinson, C Program Command Line Arguments A normal C program specifies command line arguments to be passed to main with:
Modeling and Simulation Monte carlo simulation 1 Arwa Ibrahim Ahmed Princess Nora University.
1 Finding the Sample Mean  Given: The times, in seconds, required for a sample of students to perform a required task were: 6,  Find the sample mean.
Graduate School of Information Sciences, Tohoku University
COMPE472 Parallel Computing Embarrassingly Parallel Computations Partitioning and Divide-and-Conquer Strategies Pipelined Computations Synchronous Computations.
Embarrassingly Parallel Computations Partitioning and Divide-and-Conquer Strategies Pipelined Computations Synchronous Computations Asynchronous Computations.
Generating Continuous Random Variables some. Quasi-random numbers So far, we learned about pseudo-random sequences and a common method for generating.
1 UNC-Charlotte’s Grid Computing “Seeds” framework 1 © 2011 Jeremy Villalobos /B. Wilkinson Fall 2011 Grid computing course. Slides10-1.ppt Modification.
Embarrassingly Parallel Computations Partitioning and Divide-and-Conquer Strategies Pipelined Computations Synchronous Computations Asynchronous Computations.
Monte Carlo Integration in Excel
Determine whether the sequence 6, 18, 54, is geometric. If it is geometric, find the common ratio. Choose the answer from the following :
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Monte Carlo Integration in Excel
Exercise problems for students taking the Programming Parallel Computers course. Janusz Kowalik Piotr Arlukowicz Tadeusz Puzniakowski Informatics Institute.
D MANCHE Finding the area under curves:  There are many mathematical applications which require finding the area under a curve.  The area “under”
Stochastic Algorithms Some of the fastest known algorithms for certain tasks rely on chance Stochastic/Randomized Algorithms Two common variations – Monte.
1 " Teaching Parallel Design Patterns to Undergraduates in Computer Science” Panel member SIGCSE The 45 th ACM Technical Symposium on Computer Science.
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Monte Carlo Methods.
Find the point P that partitions the segment from A (-1, -4) to B (6, 10) in the ratio of 2:5. Answer: (1, 0)
Slides for Parallel Programming Techniques & Applications Using Networked Workstations & Parallel Computers 2nd ed., by B. Wilkinson & M
Geometry 9-6 Geometric Probability. Example Find the probability that a point chosen randomly in the rectangle will be: Inside the square. 20 ft 10 ft.
M ONTE C ARLO SIMULATION Modeling and Simulation CS
Embarrassingly Parallel Computations Partitioning and Divide-and-Conquer Strategies Pipelined Computations Synchronous Computations Asynchronous Computations.
Computer simulation Sep. 9, QUIZ 2 Determine whether the following experiments have discrete or continuous out comes A fair die is tossed and the.
June 4, 2009 Dr. Lisa Green.  Main goal: Understand the difference between probability and statistics.  Also will see: Binomial Model Law of Large Numbers.
CSCI-455/552 Introduction to High Performance Computing Lecture 9.
Pattern Programming with the Seeds Framework © 2013 B. Wilkinson/Clayton Ferner SIGCSE 2013 Workshop 31 intro.ppt Modification date: Feb 17,
Suzaku Pattern Programming Framework (a) Structure and low level patterns © 2015 B. Wilkinson Suzaku.pptx Modification date February 22,
Pattern Programming Seeds Framework Notes on Assignment 1 PP-2.1 ITCS 4/5145 Parallel Programming UNC-Charlotte, B. Wilkinson, August 30, 2012 PatternProg-2.
Embarrassingly Parallel Computations
CHAPTER 6 Random Variables
Chapter 9: Value-Returning Functions
Monte Carlo Methods Some example applications in C++
Dependent-Samples t-Test
Optimization of Monte Carlo Integration
Analysis of variance ANOVA.
Monte Carlo simulation
MONTE CARLO SIMULATION
MTH1150 Tangents and Their Slopes
Basic simulation methodology
Intro CS – Probability and Random Numbers
Homework Assignment #2 J. H. Wang Oct. 24, 2017.
BUS 308 HELPS Perfect Education/ bus308helps.com.
cuRAND cuRAND uses GPU to generate pseudorandom numbers
Calculus II (MAT 146) Dr. Day Wednesday, February 28, 2018
Lecture 5 – Improved Monte Carlo methods in finance: lab
Chapter 11 Analysis of Variance
Embarrassingly Parallel
Lecture 2 – Monte Carlo method in finance
Fractions
Creating Random Multiple Versions of Canvas Questions
B. Wilkinson/Clayton Ferner Seeds.ppt Modification date August
© B. Wilkinson/Clayton Ferner SIGCSE 2013 Workshop 31 session2a
CSC4005 – Distributed and Parallel Computing
Monte Carlo Integration Using MPI
Introduction to parallelism and the Message Passing Interface
Computational Lab in Physics: Monte Carlo Integration.
Introduction to High Performance Computing Lecture 7
Parallel Techniques • Embarrassingly Parallel Computations
Embarrassingly Parallel Computations
Statistical Data Mining
Pattern Programming Seeds Framework Workpool Assignment 1
Matrix Addition and Multiplication
Sec. 2.2 Functions.
Chapter 5: Discrete Probability Distributions
Chapter 2. Random Variables
Functions By Anand George.
Sampling Plans.
Presentation transcript:

Monte Carlo Methods A so-called “embarrassingly parallel” computation as it decomposes into obviously independent tasks that can be done in parallel without any task communications during the computation. Monte Carlo methods use random selections. For parallelizing Monte Carlo code, must address best way to generate random numbers in parallel.

Calculate p using the Monte Carlo method Circle formed within a 2 x 2 square. Ratio of area of circle to square given by: Points within square chosen randomly. Score kept of how many points happen to lie within circle. Fraction of points within circle will be , given sufficient number of randomly selected samples.

Typically only one quadrant used. One quadrant can be described by integral: Random pairs of numbers, (xr,yr) generated, each between 0 and 1. Counted as in circle if

Workpool implementation Slaves Compute Return number of N random points inside arc of circle inside Starting seed for random sequence to each slave seed Aggregate answers DiffuseData GatherData Master Compute node Source/sink

Alternative (better) Monte Carlo Method (Not used here) Generate random values of x to compute f(x) Sum values of f(x): where xr are randomly generated values of x between x1 and x2. Monte Carlo method very useful if the function cannot be integrated numerically (maybe having a large number of variables) 3.19