LECTURE 14 SIMULATION AND MODELING Md. Tanvir Al Amin, Lecturer, Dept. of CSE, BUET CSE 411.

Slides:



Advertisements
Similar presentations
Special random variables Chapter 5 Some discrete or continuous probability distributions.
Advertisements

Chapter 3 Some Special Distributions Math 6203 Fall 2009 Instructor: Ayona Chatterjee.
MOMENT GENERATING FUNCTION AND STATISTICAL DISTRIBUTIONS
Why this can be happen to me?. Can you think, who’ll be the faster catch the fish??
Discrete Uniform Distribution
2 Discrete Random Variable. Independence (module 1) A and B are independent iff the knowledge that B has occurred does not change the probability that.
Acknowledgement: Thanks to Professor Pagano
Important Random Variables Binomial: S X = { 0,1,2,..., n} Geometric: S X = { 0,1,2,... } Poisson: S X = { 0,1,2,... }
Flipping an unfair coin three times Consider the unfair coin with P(H) = 1/3 and P(T) = 2/3. If we flip this coin three times, the sample space S is the.
Probability Distributions
TDC 369 / TDC 432 April 2, 2003 Greg Brewster. Topics Math Review Probability –Distributions –Random Variables –Expected Values.
1 Review of Probability Theory [Source: Stanford University]
Bernoulli Distribution
Today Today: Finish Chapter 3, begin Chapter 4 Reading: –Have done –Please start reading Chapter 4 –Suggested problems: 3.24, 4.2, 4.8, 4.10, 4.33,
A random variable that has the following pmf is said to be a binomial random variable with parameters n, p The Binomial random variable.
2. Random variables  Introduction  Distribution of a random variable  Distribution function properties  Discrete random variables  Point mass  Discrete.
CSE 221: Probabilistic Analysis of Computer Systems Topics covered: Special discrete distributions Sec
Class notes for ISE 201 San Jose State University
Review of important distributions Another randomized algorithm
Discrete and Continuous Distributions G. V. Narayanan.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Discrete Random Variables Chapter 4.
Section 15.8 The Binomial Distribution. A binomial distribution is a discrete distribution defined by two parameters: The number of trials, n The probability.
CPSC 531: Probability Review1 CPSC 531:Distributions Instructor: Anirban Mahanti Office: ICT Class Location: TRB 101.
Winter 2006EE384x1 Review of Probability Theory Review Session 1 EE384X.
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.
Random Variables and Stochastic Processes –
The Negative Binomial Distribution An experiment is called a negative binomial experiment if it satisfies the following conditions: 1.The experiment of.
CPSC 531: Probability Review1 CPSC 531:Probability & Statistics: Review II Instructor: Anirban Mahanti Office: ICT 745
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}.
Copyright © 2010 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
JMB Chapter 5 Part 1 EGR Spring 2011 Slide 1 Known Probability Distributions  Engineers frequently work with data that can be modeled as one of.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 5 Discrete Random Variables.
Math 4030 – 4a Discrete Distributions
Week 21 Conditional Probability Idea – have performed a chance experiment but don’t know the outcome (ω), but have some partial information (event A) about.
Math b (Discrete) Random Variables, Binomial Distribution.
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.
IE 300, Fall 2012 Richard Sowers IESE. 8/30/2012 Goals: Rules of Probability Counting Equally likely Some examples.
Topic 3 - Discrete distributions Basics of discrete distributions - pages Mean and variance of a discrete distribution - pages ,
Some Common Discrete Random Variables. Binomial Random Variables.
Chapter 4-5 DeGroot & Schervish. Conditional Expectation/Mean Let X and Y be random variables such that the mean of Y exists and is finite. The conditional.
4.3 More Discrete Probability Distributions NOTES Coach Bridges.
Random Variables Example:
Probability Distributions, Discrete Random Variables
DISCRETE PROBABILITY MODELS
Chapter 4. Random Variables - 3
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
PROBABILITY AND STATISTICS WEEK 5 Onur Doğan. The Binomial Probability Distribution There are many experiments that conform either exactly or approximately.
Engineering Probability and Statistics - SE-205 -Chap 3 By S. O. Duffuaa.
2.2 Discrete Random Variables 2.2 Discrete random variables Definition 2.2 –P27 Definition 2.3 –P27.
Fractiles Given a probability distribution F(x) and a number p, we define a p-fractile x p by the following formulas.
3. Random Variables (Fig.3.1)
Math 4030 – 4a More Discrete Distributions
Random variables (r.v.) Random variable
Engineering Probability and Statistics - SE-205 -Chap 3
STATISTICS AND PROBABILITY IN CIVIL ENGINEERING
Hypergeometric Distribution
Discrete Random Variables
The Bernoulli distribution
PROBABILITY AND STATISTICS
Probability Review for Financial Engineers
Some Discrete Probability Distributions
STATISTICAL MODELS.
Discrete Variables Classes
3. Random Variables Let (, F, P) be a probability model for an experiment, and X a function that maps every to a unique point.
Chapter 3 : Random Variables
Bernoulli Trials Two Possible Outcomes Trials are independent.
Each Distribution for Random Variables Has:
Presentation transcript:

LECTURE 14 SIMULATION AND MODELING Md. Tanvir Al Amin, Lecturer, Dept. of CSE, BUET CSE 411

Discrete Uniform Distribution  Uniform distribution inside a interval.  Say a random variable is equally likely to take value between i and j inclusive  What is the probability that X = x where  Mean  Variance

Discrete Uniform Distribution Probability MassProbability Distribution

Binomial Distribution  Number of successes in n independent Bernoulli trials with probability p of success in each trial  Relation between bernoulli and binomial :  Suppose a two-tailed experiment Pick a ball from the urn : Ball is either blue or red So two tailed test Pr { Blue } = 6/10 = 0.6 Pr { Red } = 4/10 = 0.4 This is a bernoulli trial

Binomial Distribution  Now suppose we have n such urns…  Pick a ball from urn 1, Pick a ball from urn 2, Pick a ball from urn 3…  All are independent events. Each of these parallel experiments have Pr{red}=0.4, and Pr{blue} = 0.6 Urn 1Urn 2Urn 3Urn 4Urn 5

Binomial Distribution  All are independent events. Each of these parallel experiments have Pr{red}=0.4, and Pr{blue} = 0.6  Does it mean, all of these experiments will have same outcome ?  NO !!!

One Experiment 2 red, 3 blue balls …

Another Experiment 4 red, 1 blue balls …

Binomial Distribution  What is the probability that outcome is 1 red ball ? i.e. (4 blue balls)  What is the probability that outcome is 3 red balls ? (and hence 2 blue balls)  Answer : Binomial Distribution…probability of x success in n independent two tailed tests ….

Binomial Dist. Mass function for various value of p n = 15n = 5 P = 0.9, 0.5, 0.2

Binomial Distribution Distribution

Binomial Distribution  Mean  Variance  If Y 1, Y 2, … Y n are independent bernoulli RV and Y is bin(n,p) then Y = Y 1 + Y 2 + …. Y n  If X 1, X 2 … X m are independent RV and X i ~ bin(n i,p) then X 1 + X 2 + … + X m ~ bin(t 1 +t 2 +…….t m, p)

Binomial Distribution  The bin(n,p) distribution is symmetric if and only if p=1/2  X~ bin(n, p) if and only if X ~ bin (n, 1-p)  The bin(1,p) and Bernoulli(p) distributions are same

Geometric Distribution  Number of failures before first success in a sequence of independent Bernoulli trials with probability p of success on each trial…  The probability distribution of the number X of Bernoulli trials needed to get one success…

Geometric Distribution  From previous example  Say blue ball = failure  Say red ball = success  Say we have infinite urns. Step 1 C = 0 Step 2 Take a new urn Step 3We pic one ball Step 4 If the ball is red, we are done … Print C Else If the ball is blue C = C + 1, goto step 2  Now, what is the probability that C will be 5 ?? Or 3 ?? Or 0 ??

Geometric Distribution  Probability of x failures  = x blue balls followed by 1 red ball  So x times failure (1-p) to the power x Followed by 1 success

Geometric Distribution  Mean  Variance  MLE :

Geometric Distribution  If X1, X2 … Xs are independent geom(p) random variables, then X1 + X2 + … + Xs has a negative binomial distribution with parameters s and p  The geometric distribution is the discrete analog of the exponential distribution, in the sense that it is the only discrete distribution with the memoryless property.  The geom(p) distribution is a special case of the negative binomial distribution (with s=1 and the same value for p)

Negative Binomial Distribution  Number of failures before the s-th success in a sequence of independent bernoulli trials with probability p of success on each trial.  Number of good items inspected before encountering the s-th defective item  Number of items in a batch of random size  Number of items demanded from an inventory

Negative Binomial Distribution  Mean :  Variance:

Negative Binomial Distribution

Poisson Distribution  Number of events that occur in an interval of time when the events are occuring at a constant rate  Number of items in a batch of random size  Number of items demanded from an inventory

Poisson Distribution  Mean :  Variance:  MLE :

Poisson Distribution  If Y1, Y2 …. be a sequence of non negative IID random variables and let  Then the distribution of the Yi‘  If and only if X ~ Poisson( λ)

Poisson Distribution  If X 1, X 2, ….X m are independent Random variables and Xi ~ Poisson ( λ i ),  Then  X 1 + X 2 + X 3 …. X m ~ Poisson ( λ 1 +λ 2 … +λ m )