Lecture (7) Random Variables and Distribution Functions.

Slides:



Advertisements
Similar presentations
DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS
Advertisements

© 2004 Prentice-Hall, Inc.Chap 5-1 Basic Business Statistics (9 th Edition) Chapter 5 Some Important Discrete Probability Distributions.
Chapter 5 Some Important Discrete Probability Distributions
Chapter 5 Discrete Random Variables and Probability Distributions
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
Basic Business Statistics, 11e © 2009 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
© 2003 Prentice-Hall, Inc.Chap 5-1 Basic Business Statistics (9 th Edition) Chapter 5 Some Important Discrete Probability Distributions.
ฟังก์ชั่นการแจกแจงความน่าจะเป็น แบบไม่ต่อเนื่อง Discrete Probability Distributions.
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Statistics for Managers Using Microsoft Excel, 5e © 2008 Pearson Prentice-Hall, Inc.Chap 5-1 Statistics for Managers Using Microsoft® Excel 5th Edition.
Introduction to Probability
Review of Basic Probability and Statistics
Chapter 4 Discrete Random Variables and Probability Distributions
1 1 Slide 2009 University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) Chapter 5: Probability Distributions: Discrete Probability Distributions.
1 Random Variables and Discrete probability Distributions Chapter 7.
Introduction to Probability and Statistics
Discrete Random Variables and Probability Distributions
Probability Distributions Finite Random Variables.
Probability Distributions
Statistics for Managers Using Microsoft Excel, 4e © 2004 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Statistics.
Probability and Probability Distributions
Copyright © 2014 by McGraw-Hill Higher Education. All rights reserved.
C4: DISCRETE RANDOM VARIABLES CIS 2033 based on Dekking et al. A Modern Introduction to Probability and Statistics Longin Jan Latecki.
Chapter 5 Discrete Probability Distributions
Chap 5-1 Copyright ©2012 Pearson Education, Inc. publishing as Prentice Hall Chap 5-1 Chapter 5 Discrete Probability Distributions Basic Business Statistics.
Keller: Stats for Mgmt & Econ, 7th Ed
Statistics for Managers Using Microsoft® Excel 5th Edition
Binomial Probability Distribution.
1 Random Variables and Discrete probability Distributions SESSION 2.
Chapter 21 Random Variables Discrete: Bernoulli, Binomial, Geometric, Poisson Continuous: Uniform, Exponential, Gamma, Normal Expectation & Variance, Joint.
Problem A newly married couple plans to have four children and would like to have three girls and a boy. What are the chances (probability) their desire.
McGraw-Hill/IrwinCopyright © 2009 by The McGraw-Hill Companies, Inc. All Rights Reserved. Chapter 4 and 5 Probability and Discrete Random Variables.
Chap 5-1 Copyright ©2013 Pearson Education, Inc. publishing as Prentice Hall Chapter 5 Discrete Probability Distributions Business Statistics: A First.
Chapter 5 Discrete Random Variables and Probability Distributions ©
Probability Distribution
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
1 Random Variables and Discrete probability Distributions Chapter 7.
Chapter 4 Probability Distributions
Theory of Probability Statistics for Business and Economics.
Sullivan – Fundamentals of Statistics – 2 nd Edition – Chapter 11 Section 1 – Slide 1 of 34 Chapter 11 Section 1 Random Variables.
Random Variables and Discrete probability Distributions
Ch.4 DISCRETE PROBABILITY DISTRIBUTION Prepared by: M.S Nurzaman, S.E, MIDEc. ( deden )‏
OPIM 5103-Lecture #3 Jose M. Cruz Assistant Professor.
Basic Business Statistics, 10e © 2006 Prentice-Hall, Inc.. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Basic Business Statistics.
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}.
BINOMIALDISTRIBUTION AND ITS APPLICATION. Binomial Distribution  The binomial probability density function –f(x) = n C x p x q n-x for x=0,1,2,3…,n for.
SESSION 31 & 32 Last Update 14 th April 2011 Discrete Probability Distributions.
Random Variables And Discrete Probability Distributions
Chapter 7 Random Variables and Discrete Probability Distributions Sir Naseer Shahzada.
1 Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution.
1 Since everything is a reflection of our minds, everything can be changed by our minds.
Copyright ©2011 Pearson Education, Inc. publishing as Prentice Hall 5-1 Business Statistics: A Decision-Making Approach 8 th Edition Chapter 5 Discrete.
Lesson 6 - R Discrete Probability Distributions Review.
1 1 Slide University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) University of Minnesota-Duluth, Econ-2030 (Dr. Tadesse) Chapter 5: Probability Distributions:
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.
Business Statistics: A Decision-Making Approach, 7e © 2008 Prentice-Hall, Inc. Chap 5-1 Business Statistics: A Decision-Making Approach 7 th Edition Chapter.
Copyright © 2011 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin Chapter 5 Discrete Random Variables.
Business Statistics, A First Course (4e) © 2006 Prentice-Hall, Inc. Chap 5-1 Chapter 5 Some Important Discrete Probability Distributions Business Statistics,
Chap 5-1 Chapter 5 Discrete Random Variables and Probability Distributions Statistics for Business and Economics 6 th Edition.
Random Variables Lecture Lecturer : FATEN AL-HUSSAIN.
Chapter 4 Discrete Random Variables and Probability Distributions
Probability Distributions  A variable (A, B, x, y, etc.) can take any of a specified set of values.  When the value of a variable is the outcome of a.
Chapter Five The Binomial Probability Distribution and Related Topics
Discrete Random Variables
Binomial Distribution
Chapter 5 Some Important Discrete Probability Distributions
Random Variables Binomial Distributions
Lecture 11: Binomial and Poisson Distributions
Introduction to Probability and Statistics
Discrete Random Variables and Probability Distributions
Presentation transcript:

Lecture (7) Random Variables and Distribution Functions

Random Variables Parameter that cannot be predicted with certainty Outcome of a random or uncertain process - flipping a coin or picking out a card from deck Can be discrete or continuous Data are usually discrete or quantized Usually easier to apply continuous distribution to discrete data that has been organized into bins

A random variable is discrete if it can assume a countable number of values. A random variable is continuous if it can assume an uncountable number of values /2 1/4 1/16 Continuous random variable After the first value is defined the second value, and any value thereafter are known. Therefore, the number of values is countable After the first value is defined, any number can be the next one Discrete random variable Therefore, the number of values is uncountable Discrete and Continuous Random Variables

A probability distribution of X provides the probability of each possible value of the random variable. If P X (x) is the probability that x is the value of the random variable, we know that and that where the summation is over all values that X takes on. This is because these values of X are mutually exclusive and one of them must occur. Probability distribution

The sum of numbers showing on two true dices. X Total PX(x)PX(x) Examples Probability distribution

The probability distribution can be also presented by a graph. And by a mathematical function:

Graphical Representation of pdf and cdf

Examples of Discrete Probability Distributions Uniform Discrete Distribution Bernoulli Distribution Binomial Distribution Poisson Distribution

Uniform Distribution (Discrete Case) Example: throwing a die. All 6 faces of a die: X123456Total PX(x)PX(x)1/6 1

Bernoulli Distribution The random variable X that takes the values 0 or 1 with probability 1-p and q respectively, i.e. is called a Bernoulli Variable. Example: throwing the coin.

Bernoulli Example Probability distribution Values probability 01/4 =.25 12/4 =.50 21/4 =.25 Event: Toss 2 Coins. Count # Tails. T T TT

The Binomial Distribution The binomial experiment can result in only one of two possible outcomes. Typical cases where the binomial experiment applies: –A coin flipped results in heads or tails –An election candidate wins or loses –An employee is male or female

Binomial Distribution: B(n,p) Consider a random sequence of n Bernoulli trials, each with: Probability of success = p Probability of failure = q= 1-p we evaluate the number of r success in the n trials by the number of combinations. An outcome of the experiment like, Example: throwing the coin several times (n times).

–There are n trials (n is finite and fixed). –Each trial can result in a success or a failure. –The probability p of success is the same for all the trials. –All the trials of the experiment are independent. Binomial Random Variable –The binomial random variable counts the number of successes in n trials of the binomial experiment. –By definition, this is a discrete random variable. Binomial Experiment

S1S1 S2S2 S2S2 F2F2 F1F1 F2F2 S3S3 S3S3 S3S3 S3S3 F3F3 F3F3 F3F3 F3F3 P(SSS)=p 3 P(SSF)=p 2 (1-p) P(SFS)=p(1-p)p P(SFF)=p(1-p) 2 P(FSS)=(1-p)p 2 P(FSF)=(1-p)p(1-p) P(FFS)=(1-p) 2 p P(FFF)=(1-p) 3 P(S 1 )=p P(S 2 |S 1 ) P(F 1 )=1-p P(F 2 |S 1 ) P(S 2 |F 1 ) P(F 2 |F 1 ) P(S 2 )=p P(F 2 )=1-p P(S 2 )=p P(F 2 )=1-p P(S 3 |S 2,S 1 ) P(F 3 |S 2,S 1 ) P(S 3 |F 2,S 1 ) P(F 3 |F 2,S 1 ) P(S 3 |S 2,F 1 ) P(S 3 |F 2,F 1 ) P(F 3 |F 2,F 1 ) P(F 3 |S 2,F 1 ) P(S 3 )=p P(F 3 )=1-p Since the outcome of each trial is independent of the previous outcomes, we can replace the conditional probabilities with the marginal probabilities. Since the outcome of each trial is independent of the previous outcomes, we can replace the conditional probabilities with the marginal probabilities. P(S 2 |S 1 Developing the Binomial Probability Distribution (n = 3)

P(SSS)=p 3 P(SSF)=p 2 (1-p) P(SFS)=p(1-p)p P(SFF)=p(1-p) 2 P(FSS)=(1-p)p 2 P(FSF)=(1-p)p(1-p) P(FFS)=(1-p) 2 p P(FFF)=(1-p) 3 Let X be the number of successes in three trials. Then, X = 3 X =2 X = 1 X = 0 P(X = 3) = p 3 P(X = 2) = 3p 2 (1-p) P(X = 1) = 3p(1-p) 2 P(X = 0) = (1- p) 3 This multiplier is calculated in the following formula SSS SS S SS Developing the Binomial Probability Distribution (n = 3)

Calculating the Binomial Probability In general, The binomial probability is calculated by:

Example –A student is registered in a statistics course and intends to rely on luck to pass the next quiz. –The quiz consists on 10 multiple choice questions with 5 possible choices for each question, only one of which is the correct answer. –The student will guess the answer to each question –Find the following probabilities The student gets no answer correct The student gets two answer correct? The student fails the quiz Calculating the Binomial Probability

Solution –Checking the conditions An answer can be either correct or incorrect. There is a fixed finite number of trials (n=10) Each answer is independent of the others. The probability p of a correct answer (.20) does not change from question to question. Calculating the Binomial Probability

Solution – Continued –Determining the binomial probabilities: Let X = the number of correct answers Calculating the Binomial Probability

= p(0) + p(1) + p(2) + p(3) + p(4) = =.9672 Solution – Continued –Determining the binomial probabilities: the student fails the test if the number of correct answers is less than 5, which means less than or equal to 4. Calculating the Binomial Probability This is called cumulative probability P(X  4 

E(X) =  = np V(X) =  2 = np(1-p) Example –If all the students in class intend to guess the answers to the quiz, what is the mean and the standard deviation of the quiz mark? Solution –m = np = 10(.2) = 2. –s = [np(1-p)] 1/2 = [10(.2)(.8)] 1/2 = Mean and Variance of Binomial Variable

Binomial Distribution B(n,p)

Chart 1 Chart 2

Chart 3 Chart 4

Chart 5 Chart 6

Chart 7 Chart 8

Chart 9

The Poisson experiment typically fits cases of rare events that occur over a fixed amount of time or within a specified region Typical cases –The number of errors a typist makes per page –The number of customers entering a service station per hour –The number of telephone calls received by a switchboard per hour. –The number of Rainy days in Jeddah within a year. Poisson Distribution

The number of successes (events) that occur in a certain time interval is independent of the number of successes that occur in another time interval. The probability of a success in a certain time interval is: the same for all time intervals of the same size, proportional to the length of the interval. The probability that two or more successes will occur in an interval approaches zero as the interval becomes smaller. Properties of the Poisson Experiment

The Poisson Random Variable –The Poisson variable indicates the number of successes that occur during a given time interval or in a specific region in a Poisson experiment Probability Distribution of the Poisson Random Variable. The Poisson Variable and Distribution

Poisson Distributions (Graphs)

Poisson Distributions (Graphs) Poisson probability distribution with  =2 Poisson probability distribution with  =5 Poisson probability distribution with  =

Poisson Distribution (Example 1) Example –The number of Typographical errors in new editions of textbooks is Poisson distributed with a mean of 1.5 per 100 pages. –100 pages of a new book are randomly selected. –What is the probability that there are no typos? Solution –P(X=0)= e -   x x! e !.2231==

Poisson Distribution (Example 2) Example –For a 400 page book calculate the following probabilities T here are no typos There are five or fewer typos Solution –P(X=0)= –P(X  5)=<use the formula to find p(0), p(1),…,p(5), then calculate p(0)+p(1)+…+p(5) =.4457 e -   x x! e ! == Important! A mean of 1.5 typos per100 pages, is equivalent to 6 typos per 400 pages.

The difference between Binomial and Poisson distributions. The parameter p and n in the Poisson distribution are dependent. The Binomial distribution is bounded by X=0, X=n with p(X=0)=(1-p)^n and p(X=n)=p^n The Poisson distribution is bounded by X=0 for p(X=0)=e^- The Poisson distribution only the occurrence of an event can be counted; the number of its non-occurrences cannot.

The bivariate (or joint) distribution is used when the relationship between two random variables is studied. The probability that X assumes the value x, and Y assumes the value y is denoted p(x,y) = P(X=x and Y = y) Discrete Bivariate Distributions

Bivariate Distributions

Example –X and Y are two variables. Let X and Y denote the runoff and the raifall, respectively. –The bivariate probability distribution is presented next. Bivariate Distributions

p(x,y) Bivariate Distributions X Y X=0X=2X=1 y=1 y=2 y= Example continued X Y

Marginal Probabilities Example- continued –Sum across rows and down columns X Y 0 1 2p(y) p(x) p(0,0) p(0,1) p(0,2) The marginal probability P(X=0) P(Y=1), the marginal probability.

Example - continued The sum is equal to 1.0 X Y 0 1 2p(y) p(x) Conditional Probability

Excel Application See Excel

Probability Calculation Probability: Numerical measure of the likelihood that an event will occur Some probabilities that can be calculated using Excel: –Binomial Probabilities –Poisson Probabilities –Hypergeometric Probabilities –Normal Probabilities –Exponential Probabilities

Binomial Probabilities Use BINOMDIST to compute binomial distribution probabilities and cumulative binomial probabilities Cell =BINOMDIST(number_s, trials, probability_s, cumulative) –Calculates the probability that a sequence of independent trials with two possible outcomes will have a given number of successes –Cumulative is either TRUE or FALSE

Poisson Probabilities Use POISSON to compute Poisson Probabilities Cell = POISSON (x, mean, cumulative) –Shows the probability of x occurrences of an event over a specified interval of time or space

Hypergeometric Probabilities Use HYPGEOMDIST to compute hypergeometric probabilities Cell =HYPGEOMDIST(sample_s, number_sample, population_s, number_pop) –Computes the probability of x successes (sample_s) in n trials (number_sample) when the trials are dependent –Similar to Binomial except trials are not independent – probability of success changes from trial to trial –Does not compute cumulative probabilities