Simulation and Probability

Slides:



Advertisements
Similar presentations
Stats for Engineers Lecture 5
Advertisements

Random Variables ECE460 Spring, 2012.
Chapter 6 Sampling and Sampling Distributions
Probability Distributions CSLU 2850.Lo1 Spring 2008 Cameron McInally Fordham University May contain work from the Creative Commons.
Statistics review of basic probability and statistics.
1 Methods of Experimental Particle Physics Alexei Safonov Lecture #21.
Central Limit Theorem.
Review of Basic Probability and Statistics
Test 2 Stock Option Pricing
Probability Densities
Simulation Modeling and Analysis
Discrete Event Simulation How to generate RV according to a specified distribution? geometric Poisson etc. Example of a DEVS: repair problem.
Descriptive statistics Experiment  Data  Sample Statistics Experiment  Data  Sample Statistics Sample mean Sample mean Sample variance Sample variance.
Probability and Statistics Review
CHAPTER 6 Statistical Analysis of Experimental Data
Probability Distributions Random Variables: Finite and Continuous Distribution Functions Expected value April 3 – 10, 2003.
3-1 Introduction Experiment Random Random experiment.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 6-1 Chapter 6 The Normal Distribution and Other Continuous Distributions.
Lecture 6: Descriptive Statistics: Probability, Distribution, Univariate Data.
Some standard univariate probability distributions
Discrete and Continuous Distributions G. V. Narayanan.
Lecture II-2: Probability Review
Continuous Probability Distribution  A continuous random variables (RV) has infinitely many possible outcomes  Probability is conveyed for a range of.
Engineering Probability and Statistics
Prof. SankarReview of Random Process1 Probability Sample Space (S) –Collection of all possible outcomes of a random experiment Sample Point –Each outcome.
Physics 114: Lecture 15 Probability Tests & Linear Fitting Dale E. Gary NJIT Physics Department.
Short Resume of Statistical Terms Fall 2013 By Yaohang Li, Ph.D.
All of Statistics Chapter 5: Convergence of Random Variables Nick Schafer.
Probability theory 2 Tron Anders Moger September 13th 2006.
Chapter 5 Statistical Models in Simulation
Statistics Galton’s Heights of Hypothetical Men (1869)
TELECOMMUNICATIONS Dr. Hugh Blanton ENTC 4307/ENTC 5307.
Random Variables & Probability Distributions Outcomes of experiments are, in part, random E.g. Let X 7 be the gender of the 7 th randomly selected student.
Continuous Probability Distributions  Continuous Random Variable  A random variable whose space (set of possible values) is an entire interval of numbers.
Modeling and Simulation CS 313
Statistics for Engineer Week II and Week III: Random Variables and Probability Distribution.
Statistics for Data Miners: Part I (continued) S.T. Balke.
Continuous Probability Distributions Continuous random variable –Values from interval of numbers –Absence of gaps Continuous probability distribution –Distribution.
Theory of Probability Statistics for Business and Economics.
Probability Distributions. Essential Question: What is a probability distribution and how is it displayed?
Engineering Probability and Statistics Dr. Leonore Findsen Department of Statistics.
1 Statistical Distribution Fitting Dr. Jason Merrick.
OPIM 5103-Lecture #3 Jose M. Cruz Assistant Professor.
Random Variables. A random variable X is a real valued function defined on the sample space, X : S  R. The set { s  S : X ( s )  [ a, b ] is an event}.
CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Michael Baron. Probability and Statistics for Computer Scientists,
Lab 3b: Distribution of the mean
Week11 Parameter, Statistic and Random Samples A parameter is a number that describes the population. It is a fixed number, but in practice we do not know.
Lecture 2 Review Probabilities Probability Distributions Normal probability distributions Sampling distributions and estimation.
Sampling Distributions. Sampling Distribution Is the Theoretical probability distribution of a sample statistic Is the Theoretical probability distribution.
One Random Variable Random Process.
Probability Distributions
Probability Refresher COMP5416 Advanced Network Technologies.
Random Variable The outcome of an experiment need not be a number, for example, the outcome when a coin is tossed can be 'heads' or 'tails'. However, we.
CY1B2 Statistics1 (ii) Poisson distribution The Poisson distribution resembles the binomial distribution if the probability of an accident is very small.
Lec. 08 – Discrete (and Continuous) Probability Distributions.
Computer simulation Sep. 9, QUIZ 2 Determine whether the following experiments have discrete or continuous out comes A fair die is tossed and the.
Sampling and estimation Petter Mostad
Chapter 20 Statistical Considerations Lecture Slides The McGraw-Hill Companies © 2012.
Chapter 6: Continuous Probability Distributions A visual comparison.
6 vector RVs. 6-1: probability distribution A radio transmitter sends a signal to a receiver using three paths. Let X1, X2, and X3 be the signals that.
Introductory Statistics and Data Analysis
Physics 114: Lecture 13 Probability Tests & Linear Fitting
Modeling and Simulation CS 313
Chapter 7: Sampling Distributions
Probability Review for Financial Engineers
Sampling Distributions
III. More Discrete Probability Distributions
Chapter 3 : Random Variables
M248: Analyzing data Block A UNIT A3 Modeling Variation.
1/2555 สมศักดิ์ ศิวดำรงพงศ์
Presentation transcript:

Simulation and Probability David Cooper Summer 2014

Simulation As you create code to help analyze data and retrieve real numbers from input response, you may be asked about the accuracy of your analysis Most experimental results are indirect methods at getting to the underlying physical phenomenon controlling the system While you can compare your collected results to theoretical results everything is still grounded by the accuracy of the theoretical answer Knowing how to simulate experimental data allows for the true answer to be known, which makes testing the accuracy much easier

Variability In the real world very few things are measurable as constants. Most have some degree of variability to them For many of the events that we study we have some idea of the variability of the system When creating a model system for testing you first start with the true values and then add variability from different probability distributions to account for the various experimental parameters that affect real signals There will often be more than one source of variability in a system that you will need to account for

Probability Distribution Function Probability Distribution Functions or pdfs display the probability that a random variable will occur at a specific value The total sum or integrand of the entire distribution will always equal to 1 To create a probability distribution for a given set of data you can histogram the data along the variable that you want to measure the probability. Fitting the histogram to the desired pdf will allow you to extract the parameters for that type of distribution

Cumulative Distribution Function The Cumulative Distribution Function is the integrated pdf and shows the probability of a random variable being equal to or less than a specific value While less intuitive than the pdf the cdf offers some advantages for data analysis Because the cdf is an accumulative function there is no need to histogram a data set before fitting avoiding the error that binning the data can cause Instead simply sort the data from low to high incrementing by 1/n at each point creates a curve to which the cdf can be fit to

Discrete vs Continuous Probability distributions can be broadly categorized into two types Discrete distributions describe processes whose members can only obtain certain values but not those in between Examples of discrete probabilities would be the result of coin toss or the number of photons emitted Continuous distributions refer to processes that come from the full range of values Example of continuous probabilities would be the arrival time of a photon

Common Distributions: Uniform The most basic distribution is the uniform distribution which sets all probabilities of possible values equal to each other Uniform variables can either be discrete or continuous In MATLAB the command for calling the pdf and cdf of a uniform distribution are unidpdf(), unidcdf(), unifpdf(), and unifcdf() >> unidcdf(x,N) >> unifpdf(x,a,b) PDF CDF

Common Distributions: Normal Perhaps the most common distribution is the normal or gaussian distribution The normal distribution distribution functions can be called with the normpdf() and normcdf() functions >> normcdf(x,mu, sigma) >> normpdf(x) PDF CDF

Common Distributions: Binomial The binomial distribution is used for processes that have a success or fail probability and is useful for determining the total probable number of successes The MATLAB call for the pdf and cdf for the binomial distributions are >> binocdf(x,N,p) >> binopdf(x,N,p) PDF CDF

Common Distributions: Poisson The Poisson distribution is a common distribution for signal response from electronic sensors The MATLAB call for the pdf and cdf for the binomial distributions are >> poisscdf(x,lambda) >> poisspdf(x,lambda) PDF CDF

Common Distributions: Exponential The exponential distribution helps determine the time to the next event in a Poisson process The MATLAB function calls for the pdf and cdf of the exponential distributions are >> expcdf(x,lambda) >> exppdf(x,lambda) PDF CDF

Central Limit Theorem The main reason that the normal distribution is so common is because of the tendency for data distributions to approach it The Central Limit theorem states that any well defined random variable can be approximated with the normal distribution given a large enough sample size This works because as you take the mean or sum of a random distribution and plot the occurrence of that descriptor for a well defined independent distribution the overall distribution of that descriptor will be a normal distribution This is incredibly useful for data analysis as it will let almost any process that has enough data points collected be able to be represented by a normal distribution

Building the Model As we have used before MATLAB has prebuilt functions that can mimic randomness For all of the described functions replacing cdf or pdf with rnd will generate a random variable with the input distribution The easiest way to generate a model that contains multiple variabilities would be to create randomized vectors of the same length and add them together