Docsity

Lecture 5: Probability Distribution, Moments, Variance, Covariance, and Correlation with N, Lecture notes of Mathematical Modeling and Simulation

Partial preview of the text

Download Lecture 5: Probability Distribution, Moments, Variance, Covariance, and Correlation with N and more Lecture notes Mathematical Modeling and Simulation in PDF only on Docsity!

6/23/2012 Lecture 5:^ Nasir M Mirza^1

Monte Carlo Simulation

Room A-114, Department of Physics & Applied Mathematics, Pakistan Institute of Engineering & Applied Sciences, P.O. Nilore, Islamabad email: [email protected]

Dr. Nasir M Mirza

Lecture Five:

Probability Distribution function

6/23/2012 Lecture 5:^ Nasir M Mirza^2

Moments & Variance

The Central Moments

The Central moments of x are defined as

The second central moment has a particular meaning:

This is also called variance of x.

n i

n

p x x

g x x x ( )

2 2

2 2

( )^2 ( )^2

x x

p x x

x x p x x

i

i i

i

i i

i

2 2

var{ x }  x  x 

The standard deviation of x is    var{ x }

6/23/2012 Lecture 5:^ Nasir M Mirza^4

Covariance & Correlation

The covariance is a measure of the independence of two random variables x and y: cov{ x , y }  xy  x  y

Zero covariance does not imply independence of random variables. Another quantity related to covariance is the correlation coefficient:

It is equal to zero when x and y are independent. Also,

var{ }

cov{ , }^22

x

x x x x

var{ }var{ }

cov{ , } ( , ) x y

x yx y

Its value is in between -1 and +1. Monte Carlo calculations try to take advantage of the negative correlation as a measure of reducing the variance.

6/23/2012 Lecture 5:^ Nasir M Mirza^5

Consider two events E0 and E1 that are mutually exclusive and exhaustive:

Binomial Probability Distribution Function

( 0 } 0 , 0.

{ 1 } , 1 .,  

  P E x

P E p x

The expected values for the real number x and its square are

( ).

( ) 1 ( 1 ) 0 , E x^2 p

E x p p p

     

The variance of x is

Suppose there are N independent samples of these events And each has either 0 or 1 outcome. Then probability of x Successes out of N is

( 1 ).

var{ } 2

2 2

p p p p

x x x    

  

x N x x P { Xx } N^ C p ( 1  p ) 

x  Np

The variance of x is var{^ x }^  np (^1  p )

The average or mean of x is

Binomial pdf:

6/23/2012 Lecture 5:^ Nasir M Mirza^7

The Poisson Distribution

A random variable x is said to follow Poisson distribution, when

Where, l is a parameter of this distribution. It is easy to find that

x l

This distribution is fundamental in the theory of probability and

stochastic processes. It is of great use in applications such as

radioactive decay, queuing service systems and similar systems.

 l

l

var{ x }

, 0 , 1 , 2 , 3 , , !

( ) {  } ^ n   n

t P X x e

n l t^ l