Simulation Examples in EXCEL Montana Going Green 2010.

Slides:



Advertisements
Similar presentations
Copyright © 2010, 2007, 2004 Pearson Education, Inc. Chapter 11 Understanding Randomness.
Advertisements

Counters Discussion D8.3.
Shift Registers Module M11.1 Section 7.3.
Registers and Counters. Register Register is built with gates, but has memory. The only type of flip-flop required in this class – the D flip-flop – Has.
Chapter 13 – Boot Strap Method. Boot Strapping It is a computer simulation to generate random numbers from a sample. In Excel, it can simulate 5000 different.
Simulation Operations -- Prof. Juran.
Chapter 6: What Do You Expect? Helpful Links:
Lec 18 Nov 12 Probability – definitions and simulation.
Understanding Randomness
DATAPATHS 3) Shifters. 4) Comparators 5) Counters.
Descriptive statistics Experiment  Data  Sample Statistics Sample mean Sample variance Normalize sample variance by N-1 Standard deviation goes as square-root.
Ring Counter Discussion 11.3 Example 32.
Arbitrary Waveform Discussion 12.2 Example 34. Recall Divide-by-8 Counter Use q2, q1, q0 as inputs to a combinational circuit to produce an arbitrary.
An Introduction to Algorithmic Information Theory Nuri Taşdemir
Slide 5- 1 Copyright © 2010 Pearson Education, Inc. Active Learning Lecture Slides For use with Classroom Response Systems Business Statistics First Edition.
Simple Random Sample How to make sure your sample is good... or hopefully good... maybe...
CORE 1 Patterns in Chance. Daily Starter Begin Handout.
Monte Carlo SIMULATION with EXCEL Montana Going Green Workshop October 2010.
 1  Outline  stages and topics in simulation  generation of random variates.
Binomial Distributions Calculating the Probability of Success.
1 Bernoulli trial and binomial distribution Bernoulli trialBinomial distribution x (# H) 01 P(x)P(x)P(x)P(x)(1 – p)p ?
Branching and Conditions CSIS 1595: Fundamentals of Programming and Problem Solving 1.
Probability Distributions. Essential Question: What is a probability distribution and how is it displayed?
Math 15 – Elementary Statistics Sections 7.1 – 7.3 Probability – Who are the Frequentists?
Slide 11-1 Copyright © 2004 Pearson Education, Inc.
Section Copyright © 2014, 2012, 2010 Pearson Education, Inc. Lecture Slides Elementary Statistics Twelfth Edition and the Triola Statistics Series.
Created by Tom Wegleitner, Centreville, Virginia Section 3-6 Probabilities Through Simulations.
Simulation is the process of studying the behavior of a real system by using a model that replicates the behavior of the system under different scenarios.
Chapter 11 Understanding Randomness. What is Randomness? Some things that are random: Rolling dice Shuffling cards Lotteries Bingo Flipping a coin.
Math – What is a Function? 1. 2 input output function.
Simulating Probabilistic Behaviour
5.1 Probability in our Daily Lives.  Which of these list is a “random” list of results when flipping a fair coin 10 times?  A) T H T H T H T H T H 
5.1 Randomness  The Language of Probability  Thinking about Randomness  The Uses of Probability 1.
Introduction to the Essentials of Excel COMP 066.
Understanding Randomness.  Many phenomena in the world are random: ◦ Nobody can guess the outcome before it happens. ◦ When we want things to be fair,
1 BA 555 Practical Business Analysis Linear Programming (LP) Sensitivity Analysis Simulation Agenda.
Objective  Find the experimental probability that an event will occur.
Components are existing in ONE of TWO STATES: 1 WORKING STATE with probability R 0 FAILURE STATE with probability F R+F = 1 RELIABLEFAILURE F R Selecting.
Copyright © 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Slide
MAT 4830 Mathematical Modeling 04 Monte Carlo Integrations
Computer Science I: Understand how to evaluate expressions with DIV and MOD Random Numbers Reading random code Writing random code Odds/evens/…
16-3 The Binomial Probability Theorem. Let’s roll a die 3 times Look at the probability of getting a 6 or NOT getting a 6. Let’s make a tree diagram.
1 Chapter 11 Understanding Randomness. 2 Why Be Random? What is it about chance outcomes being random that makes random selection seem fair? Two things:
Experiments, Outcomes and Events. Experiment Describes a process that generates a set of data – Tossing of a Coin – Launching of a Missile and observing.
MATH 2311 Section 3.2. Bernoulli Trials A Bernoulli Trial is a random experiment with the following features: 1.The outcome can be classified as either.
Given a set of data points as input Randomly assign each point to one of the k clusters Repeat until convergence – Calculate model of each of the k clusters.
How likely are you to have earned a “A” on the test?
Descriptive Statistics Experiment Simulations Confidence Intervals Sampling Distribution Simulations Main Menu.
FIGURE 5.1 Block diagram of sequential circuit
Lecture 5 – Improved Monte Carlo methods in finance: lab
شاخصهای عملکردی بیمارستان
The Normal Approximation to the Binomial Distribution
Statistics 1: Elementary Statistics
MATH 2311 Section 3.2.
مدل زنجیره ای در برنامه های سلامت
فرق بین خوب وعالی فقط اندکی تلاش بیشتر است
Assignment 1.
Function Notation Transformations.
Function Notation “f of x” Input = x Output = f(x) = y.
Statistics 1: Elementary Statistics
Pancake Sorting Input: Stack of pancakes, each of different sizes
Create an input-output table from the following rule or scenario
Exponential and Logarithmic Forms
Counter Integrated Circuits (I.C.s)
MATH 2311 Section 3.2.
Investigation 2 Experimental and Theoretical Probability
Probability of TWO EVENTS
Bell Work: Machine Lab What is the equation to find Input Work? (look at note guide from yesterday) Calculate the input work for your ramp in trial 1.
Arithmatic Logic Unit (ALU). ALU Input Data :  A0-A3  B0-B3 Output Data :  F0 – F3.
Presentation transcript:

Simulation Examples in EXCEL Montana Going Green 2010

Example 1 Flip of a fair coin

Algorithm Inputs: Number of trials (flips), N Output: P(H), P(T) Step 1: Set Counter H and T at 0. Step 2: For I = 1 to N (number of flips) do Step 3: Generate a random number, x i, between [0,1] Step 4: If 0 < x i <.5, then H=H+1, else T=T+1 Step 5: Calculate P(H) = H/N and P(T)=T/N Output P(H) and P(T) Stop

Go to EXCEL

Example 2 Area under a nonnegative curve such as y=x 3 from [0,2].

Algorithm

Lets go to EXCEL

Example 3 Buffon Needle Experiment In mathematics, Buffon's needle problem is a question first posed in the 18th century by Georges-Louis Leclerc, Comte de Buffon:mathematicsGeorges-Louis Leclerc, Comte de Buffon –Suppose we have a floor made of parallel strips of wood, each the same width, and we drop a needle onto the floor. What is the probability that the needle will lie across a line between two strips?floorparallelwoodneedle probability Buffon's needle was the earliest problem in geometric probability to be solved; it can be solved using integral geometry. The solution, in the case where the needle is not greater than the width of the strips, can be used to design a Monte Carlo method for approximating the number π.geometric probabilityintegral geometryMonte Carlo methodπ

Needle Experiment

Process If you allow the needle to be equal to the distance between parallel lines then Pi=2 * number of tosses/# crossing lines

Go to EXCEL

Fun Game Monty Hall Here is the typical scenario. Monty has the grand prize behind one of three doors. The contestant picks a different door. Monty choose the a different door (not yours and not the grand prize). Do you stay with your pick or switch to the other door? This question became a big discussion with in Parade Magazine.

The problem was originally posed in a letter by Steve Selvin to the American Statistician in A well-known statement of the problem was published in Marilyn vos Savant's "Ask Marilyn" column in Parade magazine in 1990:American StatisticianMarilyn vos SavantParade Suppose you're on a game show, and you're given the choice of three doors: Behind one door is a car; behind the others, goats. You pick a door, say No. 1, and the host, who knows what's behind the doors, opens another door, say No. 3, which has a goat. He then says to you, "Do you want to pick door No. 2?" Is it to your advantage to switch your choice? Whitaker/vos Savant 1990

Throughout the many years of Let's Make A Deal's popularity, mathematicians have been fascinated with the possibilities presented by the "Three Doors"... and a mathematical urban legend has developed surrounding "The Monty Hall Problem." The CBS drama series NUMB3RS featured the Monty Hall Problem in the final episode of its season. The show's mathematician offered his own, very definite solution to the problem involving hidden cars and goats. The 2008 movie 21 opens with an M.I.T. math professor (played by Kevin Spacey) using the Monty Hall Problem to explain mathematical theories to his students. His lecture also includes the popular "goats and cars behind three doors" example favored by many versions of the Problem

Lets go to EXCEL

Other problems Service with a smile: A small service department has one server. Customers arrive according to the distribution in Table 1. The server can handle the customers according to the distribution in Table 2. You want to use a simulation to estimate the busy time of the server, the average length of the queue, the average waiting time of customers, and the average number of customers present. Use a simulation with one hundred events.

Tables for Problem