Plots and Random #s EXCEL Functions. Obtaining a Density Function l Create a column with a range of values of x containing a large portion of the density.

Slides:



Advertisements
Similar presentations
What is Chi-Square? Used to examine differences in the distributions of nominal data A mathematical comparison between expected frequencies and observed.
Advertisements

Obtaining Summary Statistics and Plots by Treatment Groups in EXCEL.
Managerial Decision Making and Problem Solving Computer Lab Notes 1.
Exercise session # 1 Random data generation Jan Matuska November, 2006 Labor Economics.
Chapter 18 If mathematical analysis is too difficult, we can try each possibility out on paper. That way we can find which alternative appears to work.
Slides 2c: Using Spreadsheets for Modeling - Excel Concepts (Updated 1/19/2005) There are several reasons for the popularity of spreadsheets: –Data are.
STROUD Worked examples and exercises are in the text PROGRAMME F4 GRAPHS.
Joint and marginal distribution functions For any two random variables X and Y defined on the same sample space, the joint c.d.f. is For an example, see.
Chapter 8 Random-Variate Generation
Chapter 8 Random-Variate Generation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Use of moment generating functions. Definition Let X denote a random variable with probability density function f(x) if continuous (probability mass function.
Review of Basic Probability and Statistics
Random-Variate Generation. Need for Random-Variates We, usually, model uncertainty and unpredictability with statistical distributions Thereby, in order.
Test 2 Stock Option Pricing
Simulation Modeling and Analysis
Probability Densities
Simulation Modeling and Analysis
Today Today: Chapter 5 Reading: –Chapter 5 (not 5.12) –Suggested problems: 5.1, 5.2, 5.3, 5.15, 5.25, 5.33, 5.38, 5.47, 5.53, 5.62.
1 Engineering Computation Part 6. 2 Probability density function.
MISC.. 2 Integration Formula for consumer surplus Income stream - revenue enters as a stream - take integral of income stream to get total revenue.
Brief Review –Forecasting for 3 weeks –Simulation Motivation for building simulation models Steps for developing simulation models Stochastic variables.
Probability and Statistics Review
BCOR 1020 Business Statistics
Analysis of Simulation Input.. Simulation Machine n Simulation can be considered as an Engine with input and output as follows: Simulation Engine Input.
Simulating Normal Random Variables Simulation can provide a great deal of information about the behavior of a random variable.
28-1 ©2006 Raj Jain Random Variate Generation.
Simulation Basic Concepts. NEED FOR SIMULATION Mathematical models we have studied thus far have “closed form” solutions –Obtained from formulas -- forecasting,
EGR 105 Foundations of Engineering I Session 3 Excel – Basics through Graphing Fall 2008.
Copyright (c) 2004 Brooks/Cole, a division of Thomson Learning, Inc. Chapter 4 Continuous Random Variables and Probability Distributions.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
ETM 607 – Random Number and Random Variates
Normal Distribution u Note: other distributions –hypergoemetric - sampling with replacement –beta –bimodal –VanGenuchten u Normal Probability Density Function.
Functions of Random Variables. Methods for determining the distribution of functions of Random Variables 1.Distribution function method 2.Moment generating.
MTH 161: Introduction To Statistics
Moment Generating Functions
Lecture 4 The Normal Distribution. Lecture Goals After completing this chapter, you should be able to:  Find probabilities using a normal distribution.
Functions of Random Variables. Methods for determining the distribution of functions of Random Variables 1.Distribution function method 2.Moment generating.
2 Input models provide the driving force for a simulation model. The quality of the output is no better than the quality of inputs. We will discuss the.
Use of moment generating functions 1.Using the moment generating functions of X, Y, Z, …determine the moment generating function of W = h(X, Y, Z, …).
1 SMU EMIS 7364 NTU TO-570-N Inferences About Process Quality Updated: 2/3/04 Statistical Quality Control Dr. Jerrell T. Stracener, SAE Fellow.
1 Exercise using Excel (see intro to Excel at end) 1. Using Excel’s rand() function, generate a column of 100 random numbers in the range -1 to +1. Plot.
Plotting in Microsoft Excel. 1) Enter your data into the Excel spreadsheet in table format. Your data should have column headers, row headers and data.
Copyright © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 6 Some Continuous Probability Distributions.
Crystal Ball: Risk Analysis  Risk analysis uses analytical decision models or Monte Carlo simulation models based on the probability distributions to.
Nuclear Decay Revisited. Enter the probability to decay in a time unit – approximately for Iodine 131 to decay in one day. Also make a row of day.
4-1 Continuous Random Variables 4-2 Probability Distributions and Probability Density Functions Figure 4-1 Density function of a loading on a long,
Week 1 Day 3 (2.1, 2.2, 2.3) Summarizing Data I. Step one You will need to determine the type of the variable to summarize, whether it is Qualitative.
EE 5345 Multiple Random Variables
Exam 2: Rules Section 2.1 Bring a cheat sheet. One page 2 sides. Bring a calculator. Bring your book to use the tables in the back.
Correlation Coefficient -used as a measure of correlation between 2 variables -the closer observed values are to the most probable values, the more definite.
Nuclear Decay Simulation CSC Nuclear decay CSC 1522.
Chapter 8 Random-Variate Generation Banks, Carson, Nelson & Nicol Discrete-Event System Simulation.
Chapter 5 CONTINUOUS RANDOM VARIABLES
Probability and Statistics Dr. Saeid Moloudzadeh Uniform Random Variable/ Normal Random Variable 1 Contents Descriptive Statistics Axioms.
Using Microsoft Excel! To find r and make a scatter plot!
ELEC 303, Koushanfar, Fall’09 ELEC 303 – Random Signals Lecture 8 – Continuous Random Variables: PDF and CDFs Farinaz Koushanfar ECE Dept., Rice University.
Gil McVean, Department of Statistics Thursday February 12 th 2009 Monte Carlo simulation.
Chapter 4 Continuous Random Variables and Probability Distributions  Probability Density Functions.2 - Cumulative Distribution Functions and E Expected.
Modeling and Simulation CS 313
Chapter 4 Continuous Random Variables and Probability Distributions
Lecture 9 The Normal Distribution
Normal Probabilities Find the probability P(x ≤ x0), where x is a normally distributed random variable Click Insert Function (fx) Select Statistical as.
Modeling and Simulation CS 313
Plots and Random #s EXCEL Functions.
Nuclear Decay Simulation
Nuclear Decay Revisited
Chapter 3 : Random Variables
Simulate Multiple Dice
Uniform Probability Distribution
Empirical Distributions
Presentation transcript:

Plots and Random #s EXCEL Functions

Obtaining a Density Function l Create a column with a range of values of x containing a large portion of the density l Create a column that evaluates f(x) at each value of x (Specific denities below) l Repeat previous step for multiple pdf’s l Highlight columns with x (left-hand column) and f(x) (right hand column(s)) l Chart Wizard  XY (Scatter)  Picture with Smooth curves/No points

Families of Densities Gamma(  ): f(x)=GAMMADIST(x, ,FALSE) Exponential (  =1 ) special case of Gamma Chi-Square (  n/2,  =2 ) special case of Gamma Normal(  2 ): f(x)=NORMDIST(x,  FALSE) l Other densities obtained by directly typing in f(x)

Example: Gamma(  ) Cell A1 =GAMMADIST(a1,2,2,False) Cell A1500 =GAMMADIST(a1500,2,2,False)

Example: Gamma(  )

Cumulative Distribution Function l Create a column with a range of values of x containing a large portion of the density l Create a column that evaluates F(x) at each value of x (Specific denities below) l Repeat previous step for multiple pdf’s l Highlight columns with x (left-hand column) and F(x) (right hand column(s)) l Chart Wizard  XY (Scatter)  Picture with Smooth curves/No points

Families of CDF’s Gamma(  ): F(x)=GAMMADIST(x, ,TRUE) Exponential (  =1 ) special case of Gamma Chi-Square (  n/2,  =2 ) special case of Gamma Normal(  2 ): F(x)=NORMDIST(x,  TRUE) Beta(  ): F(x)=BETADIST(x,  ) l Others obtained by directly entering cdf

Example - Gamma(  ) Cell A1 Cell A1500 =Gammadist(a1,2,2,True) =Gammadist(a1500,2,2,True)

Example - Gamma(  )

Selecting Pseudo-Random Variables l Select a sample size and density function In EXCEL, type: =RAND() Copy and Paste that cell to n-1 below it Highlight all n cells: COPY  PASTE SPECIAL  VALUES l This is a pseudo-random sample from a uniform(0,1) distribution l Obtain random sample from inverting cdf

Families of Distributions l Labelling your U(0,1) value as p Gamma(  ) X=GAMMAINV(p,  ) Normal(   ) X=NORMINV(p,  ) Beta(  ) X=BETAINV(p,  ) l Copy and Paste this function for all n p’s

Simulating Gamma(2,2) RVs In cell A1 type: =RAND() l Copy/Paste to cells A2:A10000 l Copy/Paste Special/Values cells A1:A10000 In cell B1 type: =GAMMAINV(A1,2,2) l Copy/Paste to cells B2:B10000 (May take a few seconds)

Example Gamma(2,2) 1st 10 p 1st 10 X Empirical Results Theoretical Values