CSE 474 Simulation Modeling | MUSHFIQUR ROUF CSE474: Simulation and Modeling Chapter 4 Review of Basic Probability and Statistics Mushfiqur Rouf
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Why How to model a probabilistic system Validate a simulation model Choose an input probability distributions Generate random samples from these distributions Perform statistical Analyses of the simulation output data
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Experiment –A process whose outcome is not known with certainty –Throwing a die Sample Space, S –Set of all outcomes –{1, 2, 3, 4, 5, 6} Sample Point –Each outcome in a sample space
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Random Variable A function that assigns a real number to each point in sample space S. –If X = “number of heads” in an experiment of rolling a pair of dice. –Then X assigns 5 to {4, 1}, {3, 2}, {2, 3}, {1, 4} Discrete: if it can take countable number of different values Continuous: it can take any value
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Probability Distribution Function Or, cumulative distribution function F(x) of random Variable X –X: random variable name –x: value taken F(x) = P(X<=x) for –∞ < x < ∞ Properties –0 <= F(x) <= 1 –F(x) is nondecreasing – and
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Probability Distribution Function X can take values –x 1, x 2, …, x n, Probability mass function “probability that x equals to x i ” p(x i ) = P(X = x i )
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Probability Distribution Function 1/6 1/3 1/ x p(x) x 1 1/6 1/3 1/2 F(x) 1
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Continuous Random Variable X is a continuous random variable if probability density function f(x) is nonnegative
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Continuous Random Variable f(x) is not the probability that X=x X is more likely to fall in an interval I
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Continuous Random Variable Distribution function F(x) –Area under the curve f(x) f(x)f(x) x F(x) = P(X [- , x]) f(x)f(x) b P(X [a, b]) = F(b) – F(a) ax
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Uniform Random Variable 0 <= x <= 1 otherwise 1x0 1 f(x)f(x) 1x0 1 F(x)F(x) U[0,1]
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Joint Probability Mass Function p(x, y) = P(X = x, Y = y) X and Y are independent if p(x, y) = p x (x) p y (y) Calculate if X and Y are independent For x = 1, 2 and y = 2, 3, 4 otherwise
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Jointly Continuous Joint probability density function X and Y are independent if
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Mean or Expected Value E(cX)=cE(X)
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Median Smallest value of x such that F Xi (x) >= 0.5 median F(median) = 0.5 area = 0.5
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Variance μμ σ 2 large σ 2 small Calculate Mean and Variance of U[0,1]
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Standard Deviation σ i = √(σ i 2 ) Useful with Normal distribution
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Covariance Dependence between two random variables C ij = 0 means X i and X j are uncorrelated C ij > 0 means X i and X j are positively correlated C ij < 0 means X i and X j are negatively correlated
CSE 474 Simulation Modeling | MUSHFIQUR ROUF Correlation Covariance is not dimensionless, –makes interpretation troublesome