Introduction to Monte Carlo Methods
|
|
|
- Jemima Quinn
- 9 years ago
- Views:
Transcription
1 Introduction to Monte Carlo Methods Professor Richard J. Sadus Centre for Molecular Simulation Swinburne University of Technology PO Box 218, Hawthorn Victoria 3122, Australia R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 1
2 Overview This module comprises material for two lectures. The aim is to introduce the fundamental concepts behind Monte Carlo methods. The specific learning objectives are: (a) (b) (c) (d) (e) To become familiar with the general scope of Monte Carlo methods; To understand the key components of the Monte Carlo method; To understand to role of randomness in Monte Carlo; To understand the importance of careful choice of random number generators; To be able to write simple Monte Carlo programs. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 2
3 What is Meant by Monte Carlo Method? The term Monte Carlo method is used to embrace a wide range of problem solving techniques which use random numbers and the statistics of probability. Not surprisingly, the term was coined after the casino in the principality of Monte Carlo. Every game in a casino is a game of chance relying on random events such as ball falling into a particular slot on a roulette wheel, being dealt useful cards from a randomly shuffled deck, or the dice falling the right way! In principle, any method that uses random numbers to examine some problem is a Monte Carlo method. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 3
4 Examples of MC in Science Classical Monte Carlo (CMC) draw samples from a probability distribution to determine such things as energy minimum structures. Quantum Monte Carlo (QMC) random walks are used to determine such things as quantum-mechanical energies. Path-Integral Monte Carlo (PMC) quantum statistical mechanical integrals are evaluated to obtain thermodynamic properties. Simulation Monte Carlo (SMC) algorithms that evolve configurations depending on acceptance rules. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 4
5 A Classic Example The Calculation of π The value of π can be obtained by finding the area of a circle of unit radius. The diagram opposite represents such a circle centred at the origin (O) inside of a unit square. Trial shots ( ) are generated in the OABC square. At each trial, two independent random numbers are generated on a uniform distribution between 0 and 1. These random numbers represent the x and y coordinates of the shot. If N is the number of shots fired and H is the number of hits (within the circle): π 4 Area under CA 4H = Area of OABC N O y C B A x R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 5
6 The Calculation of π (contd) A simple C function to calculate π double calculate(int ntrials) { int hit = 0; double x, y distancefromorigin; for (int i = 1; i <= ntrials; i++) { x = myrand(); y = myrand(); distancefromorigin = sqrt(x*x +y*y); if (distancefromorigin <= 1.0) hit++; } return 4*(double) hit/ntrials; } Random number between 0 and 1 Pythagoras theorem Inside the quadrant R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 6
7 Another Example Radioactive Decay The kinetics of radioactive decay are first-order, which means that the decay constant (λ) is independent of the amount of material (N). In general: Nt () = λ N() t t The decay of radioactive material, although constant with time is purely a random event. As such it can be simulated using random numbers. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 7
8 Radioactive Decay (contd) C function to simulate radioactive decay void RadioactiveDecay(int maxtime, int maxatom, double lambda) { int numleft = maxatom, time, counter; counter = maxatom; Time loop for (time = 0; time <= maxtime; time++) { Atom loop for (atom = 1; atom <= numleft; atom++) if (myrandom() < lambda) counter--; Atom decays numleft = counter; printf((%d\t%f\n, time, (double) numleft/maxatom); } } R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 8
9 Monte Carlo Integration The calculation of is actually an example of hit and miss integration. It relies on its success of generating random numbers on an appropriate interval. Sample mean integration is a more general and accurate alternative to simple hit and miss integration. The general integral is rewritten: x u I = dxf ( x) x x l u f ( x) I = dx ρ ( x) ρ ( x ) x l where (x) is an arbitrary probability density function. If a number of trials n are performed by choosing a random number R t from the distribution (x) in the range (x l, x u ) then R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 9
10 Monte Carlo Integration (contd) I = f ρ ( R t ) ( R ) t trials Where the brackets denote the average over all trails (this is standard notation for simulated quantities). If we choose (x) to be uniform, ρ 1 ( x) = xl x x ( x x) The integral I can be obtained from: u l u I ( x x ) t u l t max t = 1 max f( R) t R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 10
11 Monte Carlo Integration (contd) The general MC procedure for integrating a function f(x) is to randomly obtain values of x within the upper and lower bounds of the integrand, determine the value of the function, accumulate a sum of these values and finally obtain an average by dividing the sum by the number of trials. In general, to calculate an integral of two independent values f(x,y) over an area in the (x,y)-values: (a) (b) Choose random points in the area and determine the value of the function at these points. Determine the average value of the function. (c) Multiply the average value of the function by the area over which the integration was performed. This procedure can be easily extended to multiple integrals R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 11
12 Simple Monte Carlo Integration (contd) MC integration is not usually a computationally viable alternative to other methods of integration such as Simpson s rule. However, it can be of some value in solving multiple integrals. Consider, the following multiple integral x y u u zu xu xyz( x + y + z ) ( x + y + z ) dxdydz = xl yl zl xl 3 yu yl zu zl This integral has an analytical solution (RHS), but many multiple integrals are not so easily evaluated in which case MC integration is a useful alternative. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 12
13 Simple Monte Carlo Integration (contd) The skeletal outline of simple C program to solve this integral is: main() { int i; double xl, xu, yu,yl, zu, zl x, y, z, xrange, yrange, zrange function, diff, sum = 0.0, accur = 0.001, oldval = 0.0; printf( Enter xl ); scanf( %f, &xl); /* add similar statements for xu, yl, yu, zl and zu here */ Returns random number between 0-1 xrange = xu xl; /* add similar statements for yrange, and zrange here */ do { i = i + 1; x = myrand()*xrange + xl; /* add similar statements fo y and z here */ function = x*x + y*y + z*z; sum = sum + function; integrand = (sum/i)*xrange*yrange*zrange; diff = fabs(integrand oldval); oldval = integrand; } while (diff > accur); printf( The integrand is %f, integrand); } Scale random number to suitable interval Multiply by volume since it is a triple integral R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 13
14 Key Components of a Monte Carlo Algorithm Having examined some simple Monte Carlo applications, it is timely to identify the key components that typically compose a Monte Carlo algorithm. They are: Random number generator Sampling rule Probability Distribution Functions (PDF) Error estimation In the remainder of this module will briefly examine the first three of these features. Both sampling and PDF are discussed in greater detail in Module 2. Error estimation is handled subsequently in the context of ensemble averaging (Module 4). R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 14
15 Random Number Generators A reliable random number generator is critical for the success of a Monte Carlo program. This is particularly important for Monte Carlo simulations which typically involve the use of literally millions of random numbers. If the numbers used are poorly chosen, i.e. if they show non-random behaviour over a relatively short interval, the integrity of the Monte Carlo method is severely compromised. In real life, it is very easy to generate truly random numbers. The lottery machine does this every Saturday night! Indeed, something as simple as drawing numbers of of a hat is an excellent way of obtain numbers that are truly random. In contrast, it is impossible to conceive of an algorithm that results in purely random numbers because by definition an algorithm, and the computer that executes it, is deterministic. That is it is based on well-defined, reproducible concepts. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 15
16 Pseudo Random Number Generators The closest that can be obtained to a random number generator is a pseudo random number generator. Most pseudo random number generators typically have two things in common: (a) the use of very large prime numbers and (b) the use of modulo arithmetic. Most language compilers typically supply a so-called random number generator. Treat this with the utmost suspicion because they typically generate a random number via a recurrence relationship such as: R = j 1 ar + + j c (mod m) R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 16
17 Pseudo Random Number Generators (contd) The above relationship will generate a sequence of random numbers R 1, R 2 etc between 0 and m 1. The a an c terms are positive constants. This is an example of a linear congruential generator. The advantage of such a random number generator is that it is very fast because it only requires a few operations. However, the major disadvantage is that the recurrence relationship will repeat itself with a period that is no greater than m. If a, c and m are chosen properly, then the repetition period can be stretched to its maximum length of m. However, m is typically not very large. For example, in many C applications m (called RAND_MAX) is only R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 17
18 Pseudo Random Number Generators (contd) A number like seems like a large number but a moment thought will quickly dispel this illusion. For example, a typical Monte Carlo integration involves evaluating one million different points but if the random numbers used to obtain these points repeat every 32767, the result is that the same points are evaluated 30 times! Another disadvantage is that the successive random numbers obtained from congruential generators are highly correlated with the previous random number. The generation of random numbers is a specialist topic. However, a practical solution is to use more than one congruential generators and shuffle the results. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 18
19 Pseudo Random Number Generators (contd) The following C++ function (from Press et al.) illustrates the process of shuffling. I use this code in all my Monte Carlo programs and I have found it to be very reliable. double myrandom(int *idum) { /* constants for random number generator */ const long int M1 = ; const int IA1 = 7141; const long int IC1 = 54773; const long int M2 = ; const int IA2 = 8121; const int IC2 = 28411; const long int M3 = ; const int IA3 = 4561; const long int IC3 = 51349; int j; static int iff = 0; static long int ix1, ix2, ix3; double RM1, RM2, temp; static double r[97]; R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 19
20 Pseudo Random Number Generators (contd) RM1 = 1.0/M1; RM2 = 1.0/M2; if(*idum < 0 iff == 0) /*initialise on first call */ { iff = 1; ix1 = (IC1 - (*idum)) % M1; /* seeding routines */ ix1 = (IA1 *ix1 + IC1) % M1; ix2 = ix1 % M2; ix1 = (IA1 * ix1 + IC1) % M1; ix3 = ix1 % M3; } for (j = 0; j < 97; j++) { ix1 = (IA1 * ix1 + IC1) % M1; ix2 = (IA2 * ix2 + IC2) % M2; r[j] = (ix1 + ix2 * RM2) * RM1; } *idum = 1; R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 20
21 Pseudo Random Number Generators (contd) /*generate next number for each sequence */ ix1 = (IA1 * ix1 + IC1) % M1; ix2 = (IA2 * ix2 + IC2) % M2; ix3 = (IA3 * ix3 + IC3) % M3; /* randomly sample r vector */ j = 0 + ((96 * ix3) / M3); if (j > 96 j < 0) cout <<"Error in random number generator\n"; temp = r[j]; /* replace r[j] with next value in the sequence */ r[j] = (ix1 + ix2 * RM2) * RM1; } return temp; R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 21
22 Sampling Monte Carlo works by using random numbers to sample the solution space of the problem to be solved. In our examples of the calculation of, simulation of radioactive decay and Monte Carlo integration we employed a simple sampling technique in which all points were accepted with equal probability. Such simple sampling is inefficient because we must obtain many points to obtain an accurate solution. Indeed the accuracy of our solution is directly proportional to the number of points sampled. However, not all points in the solution-space contribute equally to the solution. Some are of major importance, whereas others could be safely ignored without adversely affecting the accuracy of our calculation. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 22
23 Sampling (contd) In view of this, rather than sampling the entire region randomly, it would be computationally advantageous to sample those regions which make the largest contribution to the solution while avoiding lowcontributing regions. This type of sampling is referred to as importance sampling. To illustrate the difference between simple sampling and importance sampling, consider the difference between estimating an integral via simple sampling: N 1 I est = f ( x i ) N and using importance sampling N I = f ( x ) / p ( x ) est i i i i R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 23
24 Sampling (contd) In the later case, each point is chosen in accordance with the anticipated importance of the value to the function and the contribution it makes weighted by the inverse of the probability (p) of choice. Unlike the simple sampling scheme, the estimate is no longer a simple average of all points sampled but it is a weighted average. It should be noted that this type of sampling introduces a bias which must be eliminated. Importance sampling is discussed in greater detail in Module 2. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 24
25 Probability Distribution Functions As illustrated above, Monte Carlo methods work by sampling according to a probability distribution function (PDF). In the previous examples, using simple sampling, we have in effect been sampling from a uniform distribution function in which every selection is made with equal probability. In statistics, the most important PDF is probably the Gaussian or Normal Distribution: f ( x) = e 2 2 ( x µ ) /2σ 2 πσ R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 25
26 Probability Distribution Functions (contd) where µ is the mean of the distribution and σ 2 is the variance. This function has the well-known bell-shape and gives a good representation of such things as the distribution of the intelligence quotient (IQ) in the community centred on a normal value of IQ = 100 (hopefully we are a biased sample with IQs to the right of this value!). In scientific applications, a well-known distribution function is the Botlzmann distribution, which relates the fraction of particles N i with energy E i to the temperature (T) and Boltzmann s constatnt (k): R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 26
27 Probability Distribution Functions (contd) N / N = e i E i / kt Indeed, this distributed will play a central role in many of the Monte Carlo algorithms presented in subsequent modules. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 27
28 Problems 1. Consider the function f(x) = x Use a simple sampling MC technique to integrate this function between x = a and x = Implement the MC program to calculate π using the standard rand() function in place of myrand(). Compare the accuracy of your results after 30,000, and samples. Does the accuracy improve? Hint: depending on the compiler, you may have to convert the numbers to lie on the 0 1 range. 3. Repeat problem (2) using myrand() and compare the results. 4. Generalise the method used to solve the three-dimensional integral to solve the following 10-D integral: R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 28
29 Problems (continued) I = dx dx... dx ( x + x x ) Write your own simple function to generate random numbers using the linear congruent method. Test your generator with the values a = 111, c = 2, M = 256 and R 1 = 1 and determine the repetition period. 6. A simple random number generator can be obtained using the following relationship: R = R R n n p n q Where p = 17, q = 5 are off-set values. Write a function to compute random numbers in this way and compare the output with the random numbers generated your compiler s random number generator. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 29 2
30 Problems (continued) 7. Sometimes, it is useful to generate random numbers not uniformly but according to some pre-determined distribution. Numbers on the Guassian distribution can be generated via Box-Muller method. This involves generating two numbers (x 1 and x 2 ) on a uniform distribution and transforming them using: y = ( 2ln x ) cos(2 π x ) y = ( 2ln x ) sin(2 π x ) Write a function that calculates numbers on the Guassian distribution. R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 30
31 Reading Material The material covered in this module is discussed in greater detail in the following books: M.P. Allen and D. J. Tildesley, Computer Simulation of Liquids, OUP, Oxford, 1987, pages D. P. Landau and K. Binder, A Guide to Monte Carlo Simulations in Statistical Physics, CUP, 2000, pages 1-4 and D. Frenkel and B. Smit, Understanding Molecular Simulation: From Algorithms to Applications, Academic Press, San Diegio, 1996, pages R.J. Sadus, Molecular Simulation of Fluids: Theory, Algorithm and Object- Orientation, Elsevier, Amsterdam, W.H. Press, B.F. Flannery, S. A. Teukolsky and W. T. Vetterling, Numerical Recipes in C: The Art of Scientific Computing, CUP, Cambridge, 1988, pages R.H. Landau and M.J. Páez, Computational Physics: Problem Solving with Computers, Wiley, New York, 1997, pages R. J. Sadus, Centre for Molecular Simulation, Swinburne University of Technology 31
Introduction to the Monte Carlo method
Some history Simple applications Radiation transport modelling Flux and Dose calculations Variance reduction Easy Monte Carlo Pioneers of the Monte Carlo Simulation Method: Stanisław Ulam (1909 1984) Stanislaw
1. Degenerate Pressure
. Degenerate Pressure We next consider a Fermion gas in quite a different context: the interior of a white dwarf star. Like other stars, white dwarfs have fully ionized plasma interiors. The positively
1 The Brownian bridge construction
The Brownian bridge construction The Brownian bridge construction is a way to build a Brownian motion path by successively adding finer scale detail. This construction leads to a relatively easy proof
CHAPTER 6: Continuous Uniform Distribution: 6.1. Definition: The density function of the continuous random variable X on the interval [A, B] is.
Some Continuous Probability Distributions CHAPTER 6: Continuous Uniform Distribution: 6. Definition: The density function of the continuous random variable X on the interval [A, B] is B A A x B f(x; A,
A Simple Pseudo Random Number algorithm
Lecture 7 Generating random numbers is a useful technique in many numerical applications in Physics. This is because many phenomena in physics are random, and algorithms that use random numbers have applications
General Sampling Methods
General Sampling Methods Reference: Glasserman, 2.2 and 2.3 Claudio Pacati academic year 2016 17 1 Inverse Transform Method Assume U U(0, 1) and let F be the cumulative distribution function of a distribution
Chapter 3 RANDOM VARIATE GENERATION
Chapter 3 RANDOM VARIATE GENERATION In order to do a Monte Carlo simulation either by hand or by computer, techniques must be developed for generating values of random variables having known distributions.
0.1 Phase Estimation Technique
Phase Estimation In this lecture we will describe Kitaev s phase estimation algorithm, and use it to obtain an alternate derivation of a quantum factoring algorithm We will also use this technique to design
Lab 11. Simulations. The Concept
Lab 11 Simulations In this lab you ll learn how to create simulations to provide approximate answers to probability questions. We ll make use of a particular kind of structure, called a box model, that
Representing Uncertainty by Probability and Possibility What s the Difference?
Representing Uncertainty by Probability and Possibility What s the Difference? Presentation at Amsterdam, March 29 30, 2011 Hans Schjær Jacobsen Professor, Director RD&I Ballerup, Denmark +45 4480 5030
Generating Random Numbers Variance Reduction Quasi-Monte Carlo. Simulation Methods. Leonid Kogan. MIT, Sloan. 15.450, Fall 2010
Simulation Methods Leonid Kogan MIT, Sloan 15.450, Fall 2010 c Leonid Kogan ( MIT, Sloan ) Simulation Methods 15.450, Fall 2010 1 / 35 Outline 1 Generating Random Numbers 2 Variance Reduction 3 Quasi-Monte
1 Review of Newton Polynomials
cs: introduction to numerical analysis 0/0/0 Lecture 8: Polynomial Interpolation: Using Newton Polynomials and Error Analysis Instructor: Professor Amos Ron Scribes: Giordano Fusco, Mark Cowlishaw, Nathanael
Recursive Estimation
Recursive Estimation Raffaello D Andrea Spring 04 Problem Set : Bayes Theorem and Bayesian Tracking Last updated: March 8, 05 Notes: Notation: Unlessotherwisenoted,x, y,andz denoterandomvariables, f x
3 Some Integer Functions
3 Some Integer Functions A Pair of Fundamental Integer Functions The integer function that is the heart of this section is the modulo function. However, before getting to it, let us look at some very simple
Math 425 (Fall 08) Solutions Midterm 2 November 6, 2008
Math 425 (Fall 8) Solutions Midterm 2 November 6, 28 (5 pts) Compute E[X] and Var[X] for i) X a random variable that takes the values, 2, 3 with probabilities.2,.5,.3; ii) X a random variable with the
CHAPTER 5. Number Theory. 1. Integers and Division. Discussion
CHAPTER 5 Number Theory 1. Integers and Division 1.1. Divisibility. Definition 1.1.1. Given two integers a and b we say a divides b if there is an integer c such that b = ac. If a divides b, we write a
Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 18. A Brief Introduction to Continuous Probability
CS 7 Discrete Mathematics and Probability Theory Fall 29 Satish Rao, David Tse Note 8 A Brief Introduction to Continuous Probability Up to now we have focused exclusively on discrete probability spaces
Notes on Continuous Random Variables
Notes on Continuous Random Variables Continuous random variables are random quantities that are measured on a continuous scale. They can usually take on any value over some interval, which distinguishes
Breaking The Code. Ryan Lowe. Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and
Breaking The Code Ryan Lowe Ryan Lowe is currently a Ball State senior with a double major in Computer Science and Mathematics and a minor in Applied Physics. As a sophomore, he took an independent study
In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data.
MATHEMATICS: THE LEVEL DESCRIPTIONS In mathematics, there are four attainment targets: using and applying mathematics; number and algebra; shape, space and measures, and handling data. Attainment target
An Introduction to Partial Differential Equations
An Introduction to Partial Differential Equations Andrew J. Bernoff LECTURE 2 Cooling of a Hot Bar: The Diffusion Equation 2.1. Outline of Lecture An Introduction to Heat Flow Derivation of the Diffusion
Sums of Independent Random Variables
Chapter 7 Sums of Independent Random Variables 7.1 Sums of Discrete Random Variables In this chapter we turn to the important question of determining the distribution of a sum of independent random variables
Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab
Monte Carlo Simulation: IEOR E4703 Fall 2004 c 2004 by Martin Haugh Overview of Monte Carlo Simulation, Probability Review and Introduction to Matlab 1 Overview of Monte Carlo Simulation 1.1 Why use simulation?
Algebra 1: Basic Skills Packet Page 1 Name: Integers 1. 54 + 35 2. 18 ( 30) 3. 15 ( 4) 4. 623 432 5. 8 23 6. 882 14
Algebra 1: Basic Skills Packet Page 1 Name: Number Sense: Add, Subtract, Multiply or Divide without a Calculator Integers 1. 54 + 35 2. 18 ( 30) 3. 15 ( 4) 4. 623 432 5. 8 23 6. 882 14 Decimals 7. 43.21
Sources: On the Web: Slides will be available on:
C programming Introduction The basics of algorithms Structure of a C code, compilation step Constant, variable type, variable scope Expression and operators: assignment, arithmetic operators, comparison,
Tutorial on Markov Chain Monte Carlo
Tutorial on Markov Chain Monte Carlo Kenneth M. Hanson Los Alamos National Laboratory Presented at the 29 th International Workshop on Bayesian Inference and Maximum Entropy Methods in Science and Technology,
Model-based Synthesis. Tony O Hagan
Model-based Synthesis Tony O Hagan Stochastic models Synthesising evidence through a statistical model 2 Evidence Synthesis (Session 3), Helsinki, 28/10/11 Graphical modelling The kinds of models that
Lecture 13: Martingales
Lecture 13: Martingales 1. Definition of a Martingale 1.1 Filtrations 1.2 Definition of a martingale and its basic properties 1.3 Sums of independent random variables and related models 1.4 Products of
2.6. Probability. In general the probability density of a random variable satisfies two conditions:
2.6. PROBABILITY 66 2.6. Probability 2.6.. Continuous Random Variables. A random variable a real-valued function defined on some set of possible outcomes of a random experiment; e.g. the number of points
The Standard Normal distribution
The Standard Normal distribution 21.2 Introduction Mass-produced items should conform to a specification. Usually, a mean is aimed for but due to random errors in the production process we set a tolerance
Common Core State Standards for Mathematics Accelerated 7th Grade
A Correlation of 2013 To the to the Introduction This document demonstrates how Mathematics Accelerated Grade 7, 2013, meets the. Correlation references are to the pages within the Student Edition. Meeting
Current Standard: Mathematical Concepts and Applications Shape, Space, and Measurement- Primary
Shape, Space, and Measurement- Primary A student shall apply concepts of shape, space, and measurement to solve problems involving two- and three-dimensional shapes by demonstrating an understanding of:
Lecture L3 - Vectors, Matrices and Coordinate Transformations
S. Widnall 16.07 Dynamics Fall 2009 Lecture notes based on J. Peraire Version 2.0 Lecture L3 - Vectors, Matrices and Coordinate Transformations By using vectors and defining appropriate operations between
Lies My Calculator and Computer Told Me
Lies My Calculator and Computer Told Me 2 LIES MY CALCULATOR AND COMPUTER TOLD ME Lies My Calculator and Computer Told Me See Section.4 for a discussion of graphing calculators and computers with graphing
Network Security. Chapter 6 Random Number Generation. Prof. Dr.-Ing. Georg Carle
Network Security Chapter 6 Random Number Generation Prof. Dr.-Ing. Georg Carle Chair for Computer Networks & Internet Wilhelm-Schickard-Institute for Computer Science University of Tübingen http://net.informatik.uni-tuebingen.de/
Basics of Statistical Machine Learning
CS761 Spring 2013 Advanced Machine Learning Basics of Statistical Machine Learning Lecturer: Xiaojin Zhu [email protected] Modern machine learning is rooted in statistics. You will find many familiar
CHI-SQUARE: TESTING FOR GOODNESS OF FIT
CHI-SQUARE: TESTING FOR GOODNESS OF FIT In the previous chapter we discussed procedures for fitting a hypothesized function to a set of experimental data points. Such procedures involve minimizing a quantity
Probability and Random Variables. Generation of random variables (r.v.)
Probability and Random Variables Method for generating random variables with a specified probability distribution function. Gaussian And Markov Processes Characterization of Stationary Random Process Linearly
The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].
Probability Theory Probability Spaces and Events Consider a random experiment with several possible outcomes. For example, we might roll a pair of dice, flip a coin three times, or choose a random real
Lecture 6: Discrete & Continuous Probability and Random Variables
Lecture 6: Discrete & Continuous Probability and Random Variables D. Alex Hughes Math Camp September 17, 2015 D. Alex Hughes (Math Camp) Lecture 6: Discrete & Continuous Probability and Random September
Network Security. Chapter 6 Random Number Generation
Network Security Chapter 6 Random Number Generation 1 Tasks of Key Management (1)! Generation:! It is crucial to security, that keys are generated with a truly random or at least a pseudo-random generation
Statistics 100A Homework 7 Solutions
Chapter 6 Statistics A Homework 7 Solutions Ryan Rosario. A television store owner figures that 45 percent of the customers entering his store will purchase an ordinary television set, 5 percent will purchase
5. Continuous Random Variables
5. Continuous Random Variables Continuous random variables can take any value in an interval. They are used to model physical characteristics such as time, length, position, etc. Examples (i) Let X be
FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL
FEGYVERNEKI SÁNDOR, PROBABILITY THEORY AND MATHEmATICAL STATIsTICs 4 IV. RANDOm VECTORs 1. JOINTLY DIsTRIBUTED RANDOm VARIABLEs If are two rom variables defined on the same sample space we define the joint
Density Curve. A density curve is the graph of a continuous probability distribution. It must satisfy the following properties:
Density Curve A density curve is the graph of a continuous probability distribution. It must satisfy the following properties: 1. The total area under the curve must equal 1. 2. Every point on the curve
15.062 Data Mining: Algorithms and Applications Matrix Math Review
.6 Data Mining: Algorithms and Applications Matrix Math Review The purpose of this document is to give a brief review of selected linear algebra concepts that will be useful for the course and to develop
Gaussian Conjugate Prior Cheat Sheet
Gaussian Conjugate Prior Cheat Sheet Tom SF Haines 1 Purpose This document contains notes on how to handle the multivariate Gaussian 1 in a Bayesian setting. It focuses on the conjugate prior, its Bayesian
Moving Least Squares Approximation
Chapter 7 Moving Least Squares Approimation An alternative to radial basis function interpolation and approimation is the so-called moving least squares method. As we will see below, in this method the
CAMI Education linked to CAPS: Mathematics
- 1 - TOPIC 1.1 Whole numbers _CAPS curriculum TERM 1 CONTENT Mental calculations Revise: Multiplication of whole numbers to at least 12 12 Ordering and comparing whole numbers Revise prime numbers to
6.4 Normal Distribution
Contents 6.4 Normal Distribution....................... 381 6.4.1 Characteristics of the Normal Distribution....... 381 6.4.2 The Standardized Normal Distribution......... 385 6.4.3 Meaning of Areas under
Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10
CS 70 Discrete Mathematics and Probability Theory Fall 2009 Satish Rao, David Tse Note 10 Introduction to Discrete Probability Probability theory has its origins in gambling analyzing card games, dice,
ALGEBRA 2/TRIGONOMETRY
ALGEBRA /TRIGONOMETRY The University of the State of New York REGENTS HIGH SCHOOL EXAMINATION ALGEBRA /TRIGONOMETRY Thursday, January 9, 015 9:15 a.m to 1:15 p.m., only Student Name: School Name: The possession
1 Prior Probability and Posterior Probability
Math 541: Statistical Theory II Bayesian Approach to Parameter Estimation Lecturer: Songfeng Zheng 1 Prior Probability and Posterior Probability Consider now a problem of statistical inference in which
Section 1.3 P 1 = 1 2. = 1 4 2 8. P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., = 1 2 4.
Difference Equations to Differential Equations Section. The Sum of a Sequence This section considers the problem of adding together the terms of a sequence. Of course, this is a problem only if more than
An Introduction to Basic Statistics and Probability
An Introduction to Basic Statistics and Probability Shenek Heyward NCSU An Introduction to Basic Statistics and Probability p. 1/4 Outline Basic probability concepts Conditional probability Discrete Random
99.37, 99.38, 99.38, 99.39, 99.39, 99.39, 99.39, 99.40, 99.41, 99.42 cm
Error Analysis and the Gaussian Distribution In experimental science theory lives or dies based on the results of experimental evidence and thus the analysis of this evidence is a critical part of the
7 Gaussian Elimination and LU Factorization
7 Gaussian Elimination and LU Factorization In this final section on matrix factorization methods for solving Ax = b we want to take a closer look at Gaussian elimination (probably the best known method
For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )
Probability Review 15.075 Cynthia Rudin A probability space, defined by Kolmogorov (1903-1987) consists of: A set of outcomes S, e.g., for the roll of a die, S = {1, 2, 3, 4, 5, 6}, 1 1 2 1 6 for the roll
Bridging Documents for Mathematics
Bridging Documents for Mathematics 5 th /6 th Class, Primary Junior Cycle, Post-Primary Primary Post-Primary Card # Strand(s): Number, Measure Number (Strand 3) 2-5 Strand: Shape and Space Geometry and
5.1 Identifying the Target Parameter
University of California, Davis Department of Statistics Summer Session II Statistics 13 August 20, 2012 Date of latest update: August 20 Lecture 5: Estimation with Confidence intervals 5.1 Identifying
The continuous and discrete Fourier transforms
FYSA21 Mathematical Tools in Science The continuous and discrete Fourier transforms Lennart Lindegren Lund Observatory (Department of Astronomy, Lund University) 1 The continuous Fourier transform 1.1
1 Portfolio mean and variance
Copyright c 2005 by Karl Sigman Portfolio mean and variance Here we study the performance of a one-period investment X 0 > 0 (dollars) shared among several different assets. Our criterion for measuring
Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution
Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution 8 October 2007 In this lecture we ll learn the following: 1. how continuous probability distributions differ
15.3. Calculating centres of mass. Introduction. Prerequisites. Learning Outcomes. Learning Style
Calculating centres of mass 15.3 Introduction In this block we show how the idea of integration as the limit of a sum can be used to find the centre of mass of an object such as a thin plate, like a sheet
DIRECT SIMULATION OR ANALOG MONTE CARLO
DIRECT SIMULATIO OR AALOG MOTE CARLO M. Ragheb 9/9/007 ITRODUCTIO A simple example clarifies the nature of the Monte Carlo method in its simplest unsophisticated form as a simple analog experiment, which
Collinear Points in Permutations
Collinear Points in Permutations Joshua N. Cooper Courant Institute of Mathematics New York University, New York, NY József Solymosi Department of Mathematics University of British Columbia, Vancouver,
Review D: Potential Energy and the Conservation of Mechanical Energy
MSSCHUSETTS INSTITUTE OF TECHNOLOGY Department of Physics 8.01 Fall 2005 Review D: Potential Energy and the Conservation of Mechanical Energy D.1 Conservative and Non-conservative Force... 2 D.1.1 Introduction...
Monte Carlo Sampling Methods
[] Monte Carlo Sampling Methods Jasmina L. Vujic Nuclear Engineering Department University of California, Berkeley Email: [email protected] phone: (50) 643-8085 fax: (50) 643-9685 [2] Monte Carlo
1 Finite difference example: 1D implicit heat equation
1 Finite difference example: 1D implicit heat equation 1.1 Boundary conditions Neumann and Dirichlet We solve the transient heat equation ρc p t = ( k ) (1) on the domain L/2 x L/2 subject to the following
Lecture 13 - Basic Number Theory.
Lecture 13 - Basic Number Theory. Boaz Barak March 22, 2010 Divisibility and primes Unless mentioned otherwise throughout this lecture all numbers are non-negative integers. We say that A divides B, denoted
The BBP Algorithm for Pi
The BBP Algorithm for Pi David H. Bailey September 17, 2006 1. Introduction The Bailey-Borwein-Plouffe (BBP) algorithm for π is based on the BBP formula for π, which was discovered in 1995 and published
A teaching experience through the development of hypertexts and object oriented software.
A teaching experience through the development of hypertexts and object oriented software. Marcello Chiodi Istituto di Statistica. Facoltà di Economia-Palermo-Italy 1. Introduction (1) This paper is concerned
FOREWORD. Executive Secretary
FOREWORD The Botswana Examinations Council is pleased to authorise the publication of the revised assessment procedures for the Junior Certificate Examination programme. According to the Revised National
Second Order Linear Partial Differential Equations. Part I
Second Order Linear Partial Differential Equations Part I Second linear partial differential equations; Separation of Variables; - point boundary value problems; Eigenvalues and Eigenfunctions Introduction
SECURITY EVALUATION OF EMAIL ENCRYPTION USING RANDOM NOISE GENERATED BY LCG
SECURITY EVALUATION OF EMAIL ENCRYPTION USING RANDOM NOISE GENERATED BY LCG Chung-Chih Li, Hema Sagar R. Kandati, Bo Sun Dept. of Computer Science, Lamar University, Beaumont, Texas, USA 409-880-8748,
Figure 1. A typical Laboratory Thermometer graduated in C.
SIGNIFICANT FIGURES, EXPONENTS, AND SCIENTIFIC NOTATION 2004, 1990 by David A. Katz. All rights reserved. Permission for classroom use as long as the original copyright is included. 1. SIGNIFICANT FIGURES
Generating Random Variables and Stochastic Processes
Monte Carlo Simulation: IEOR E4703 c 2010 by Martin Haugh Generating Random Variables and Stochastic Processes In these lecture notes we describe the principal methods that are used to generate random
Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment 2-3, Probability and Statistics, March 2015. Due:-March 25, 2015.
Department of Mathematics, Indian Institute of Technology, Kharagpur Assignment -3, Probability and Statistics, March 05. Due:-March 5, 05.. Show that the function 0 for x < x+ F (x) = 4 for x < for x
Time Series Analysis
Time Series Analysis Autoregressive, MA and ARMA processes Andrés M. Alonso Carolina García-Martos Universidad Carlos III de Madrid Universidad Politécnica de Madrid June July, 212 Alonso and García-Martos
Kinetic Theory of Gases
Kinetic Theory of Gases Physics 1425 Lecture 31 Michael Fowler, UVa Bernoulli s Picture Daniel Bernoulli, in 1738, was the first to understand air pressure in terms of molecules he visualized them shooting
Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091)
Monte Carlo and Empirical Methods for Stochastic Inference (MASM11/FMS091) Magnus Wiktorsson Centre for Mathematical Sciences Lund University, Sweden Lecture 5 Sequential Monte Carlo methods I February
Chapter 4 Lecture Notes
Chapter 4 Lecture Notes Random Variables October 27, 2015 1 Section 4.1 Random Variables A random variable is typically a real-valued function defined on the sample space of some experiment. For instance,
Evaluating the Area of a Circle and the Volume of a Sphere by Using Monte Carlo Simulation. Abd Al -Kareem I. Sheet * E.mail: kareem59y@yahoo.
Iraqi Journal of Statistical Science (14) 008 p.p. [48-6] Evaluating the Area of a Circle and the Volume of a Sphere by Using Monte Carlo Simulation Abd Al -Kareem I. Sheet * E.mail: [email protected]
Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation
Pricing Barrier Option Using Finite Difference Method and MonteCarlo Simulation Yoon W. Kwon CIMS 1, Math. Finance Suzanne A. Lewis CIMS, Math. Finance May 9, 000 1 Courant Institue of Mathematical Science,
Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay
Information Theory and Coding Prof. S. N. Merchant Department of Electrical Engineering Indian Institute of Technology, Bombay Lecture - 17 Shannon-Fano-Elias Coding and Introduction to Arithmetic Coding
Continued Fractions and the Euclidean Algorithm
Continued Fractions and the Euclidean Algorithm Lecture notes prepared for MATH 326, Spring 997 Department of Mathematics and Statistics University at Albany William F Hammond Table of Contents Introduction
TEACHING SIMULATION WITH SPREADSHEETS
TEACHING SIMULATION WITH SPREADSHEETS Jelena Pecherska and Yuri Merkuryev Deptartment of Modelling and Simulation Riga Technical University 1, Kalku Street, LV-1658 Riga, Latvia E-mail: [email protected],
Topic 3b: Kinetic Theory
Topic 3b: Kinetic Theory What is temperature? We have developed some statistical language to simplify describing measurements on physical systems. When we measure the temperature of a system, what underlying
Unified Lecture # 4 Vectors
Fall 2005 Unified Lecture # 4 Vectors These notes were written by J. Peraire as a review of vectors for Dynamics 16.07. They have been adapted for Unified Engineering by R. Radovitzky. References [1] Feynmann,
Lecture 3: Models of Solutions
Materials Science & Metallurgy Master of Philosophy, Materials Modelling, Course MP4, Thermodynamics and Phase Diagrams, H. K. D. H. Bhadeshia Lecture 3: Models of Solutions List of Symbols Symbol G M
9.07 Introduction to Statistical Methods Homework 4. Name:
1. Estimating the population standard deviation and variance. Homework #2 contained a problem (#4) on estimating the population standard deviation. In that problem, you showed that the method of estimating
MATH 132: CALCULUS II SYLLABUS
MATH 32: CALCULUS II SYLLABUS Prerequisites: Successful completion of Math 3 (or its equivalent elsewhere). Math 27 is normally not a sufficient prerequisite for Math 32. Required Text: Calculus: Early
CONDITIONAL, PARTIAL AND RANK CORRELATION FOR THE ELLIPTICAL COPULA; DEPENDENCE MODELLING IN UNCERTAINTY ANALYSIS
CONDITIONAL, PARTIAL AND RANK CORRELATION FOR THE ELLIPTICAL COPULA; DEPENDENCE MODELLING IN UNCERTAINTY ANALYSIS D. Kurowicka, R.M. Cooke Delft University of Technology, Mekelweg 4, 68CD Delft, Netherlands
MATH10212 Linear Algebra. Systems of Linear Equations. Definition. An n-dimensional vector is a row or a column of n numbers (or letters): a 1.
MATH10212 Linear Algebra Textbook: D. Poole, Linear Algebra: A Modern Introduction. Thompson, 2006. ISBN 0-534-40596-7. Systems of Linear Equations Definition. An n-dimensional vector is a row or a column
Chapter One Introduction to Programming
Chapter One Introduction to Programming 1-1 Algorithm and Flowchart Algorithm is a step-by-step procedure for calculation. More precisely, algorithm is an effective method expressed as a finite list of
Study Designs. Simon Day, PhD Johns Hopkins University
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike License. Your use of this material constitutes acceptance of that license and the conditions of use of materials on this
In the situations that we will encounter, we may generally calculate the probability of an event
What does it mean for something to be random? An event is called random if the process which produces the outcome is sufficiently complicated that we are unable to predict the precise result and are instead
Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem.
Solve addition and subtraction word problems, and add and subtract within 10, e.g., by using objects or drawings to represent the problem. Solve word problems that call for addition of three whole numbers
