Topic 3 - Discrete distributions

Similar documents
Random Variables Example:

Lecture 13. Poisson Distribution. Text: A Course in Probability by Weiss 5.5. STAT 225 Introduction to Probability Models February 16, 2014

A Probability Primer. A random walk down a probabilistic path leading to some stochastic thoughts on chance events and uncertain outcomes.

ELEG 3143 Probability & Stochastic Process Ch. 2 Discrete Random Variables

Discrete Distributions

Expectations. Definition Let X be a discrete rv with set of possible values D and pmf p(x). The expected value or mean value of X, denoted by E(X ) or

Chapter 3. Discrete Random Variables and Their Probability Distributions

Special Discrete RV s. Then X = the number of successes is a binomial RV. X ~ Bin(n,p).

Known probability distributions

Introduction to Probability and Statistics Slides 3 Chapter 3

STAT509: Discrete Random Variable

BINOMIAL DISTRIBUTION

Relationship between probability set function and random variable - 2 -

Discrete Distributions

Closed book and notes. 120 minutes. Cover page, five pages of exam. No calculators.

Discrete random variables and probability distributions

Topic 6 - Confidence intervals based on a single sample

A random variable is a quantity whose value is determined by the outcome of an experiment.

Common Discrete Distributions

MATH : EXAM 2 INFO/LOGISTICS/ADVICE

Chapter 3. Discrete Random Variables and Their Probability Distributions

Mathematical Statistics 1 Math A 6330

3.4. The Binomial Probability Distribution

Chapter 2: Discrete Distributions. 2.1 Random Variables of the Discrete Type

Bernoulli Trials, Binomial and Cumulative Distributions

Statistics for Economists. Lectures 3 & 4

PROBABILITY DISTRIBUTION

Topic 3: The Expectation of a Random Variable

Random Variables. Definition: A random variable (r.v.) X on the probability space (Ω, F, P) is a mapping

Outline PMF, CDF and PDF Mean, Variance and Percentiles Some Common Distributions. Week 5 Random Variables and Their Distributions

Suppose that you have three coins. Coin A is fair, coin B shows heads with probability 0.6 and coin C shows heads with probability 0.8.

STAT 430/510 Probability Lecture 12: Central Limit Theorem and Exponential Distribution

Distributions of Functions of Random Variables. 5.1 Functions of One Random Variable

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

Probability Theory and Simulation Methods. April 6th, Lecture 19: Special distributions

Chapter 3 Discrete Random Variables

Chapter 4: Continuous Random Variables and Probability Distributions

Chapter 3: Discrete Random Variable

To find the median, find the 40 th quartile and the 70 th quartile (which are easily found at y=1 and y=2, respectively). Then we interpolate:

Copyright c 2006 Jason Underdown Some rights reserved. choose notation. n distinct items divided into r distinct groups.

An-Najah National University Faculty of Engineering Industrial Engineering Department. Course : Quantitative Methods (65211)

Probability Theory and Statistics (EE/TE 3341) Homework 3 Solutions

Binomial and Poisson Probability Distributions

37.3. The Poisson Distribution. Introduction. Prerequisites. Learning Outcomes

Binomial random variable

Discrete Probability Distributions

Chapters 3.2 Discrete distributions

Things to remember when learning probability distributions:

Continuous-Valued Probability Review

Probability and Stochastic Processes: A Friendly Introduction for Electrical and Computer Engineers Roy D. Yates and David J.

JUST THE MATHS UNIT NUMBER PROBABILITY 7 (The Poisson distribution) A.J.Hobson

Exam 3, Math Fall 2016 October 19, 2016

Slides 8: Statistical Models in Simulation

STAT2201. Analysis of Engineering & Scientific Data. Unit 3

Random Variable And Probability Distribution. Is defined as a real valued function defined on the sample space S. We denote it as X, Y, Z,

System Simulation Part II: Mathematical and Statistical Models Chapter 5: Statistical Models

Guidelines for Solving Probability Problems

Lecture 3. Discrete Random Variables

Lecture 2: Repetition of probability theory and statistics

Probability Distributions

CMPSCI 240: Reasoning Under Uncertainty

Hypothesis Testing. ) the hypothesis that suggests no change from previous experience

3 Modeling Process Quality

Probability Distribution

Probability Distributions Columns (a) through (d)

Contents 1. Contents

Statistics for Engineers Lecture 2 Discrete Distributions

Discrete Random Variables

Fault-Tolerant Computer System Design ECE 60872/CS 590. Topic 2: Discrete Distributions

Discrete Probability Distributions

Chapter 3 Probability Distribution

Chapter Learning Objectives. Probability Distributions and Probability Density Functions. Continuous Random Variables

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Notes for Math 324, Part 19

STAT 430/510: Lecture 10

ANSWERS TO TEST NUMBER 3

Chapter 4a Probability Models

Introduction and Overview STAT 421, SP Course Instructor

S2 QUESTIONS TAKEN FROM JANUARY 2006, JANUARY 2007, JANUARY 2008, JANUARY 2009

II. The Binomial Distribution

ST 371 (V): Families of Discrete Distributions

Computer Science, Informatik 4 Communication and Distributed Systems. Simulation. Discrete-Event System Simulation. Dr.

Data, Estimation and Inference

MATH 2332 Simulating Probability Distributions

CS 1538: Introduction to Simulation Homework 1

2. In a clinical trial of certain new treatment, we may be interested in the proportion of patients cured.

Random Variable. Random Variables. Chapter 5 Slides. Maurice Geraghty Inferential Statistics and Probability a Holistic Approach

Poisson Processes and Poisson Distributions. Poisson Process - Deals with the number of occurrences per interval.

Basics on Probability. Jingrui He 09/11/2007

Week 6, 9/24/12-9/28/12, Notes: Bernoulli, Binomial, Hypergeometric, and Poisson Random Variables

1 Probability and Random Variables

Chapter 4. Probability-The Study of Randomness

Geometric Distribution The characteristics of a geometric experiment are: 1. There are one or more Bernoulli trials with all failures except the last

Analysis of Engineering and Scientific Data. Semester

Lecture 16. Lectures 1-15 Review

HYPERGEOMETRIC and NEGATIVE HYPERGEOMETIC DISTRIBUTIONS

Introduction to Statistics. By: Ewa Paszek

Definition: A random variable X is a real valued function that maps a sample space S into the space of real numbers R. X : S R

Probability, Random Processes and Inference

(Ch 3.4.1, 3.4.2, 4.1, 4.2, 4.3)

Transcription:

Topic 3 - Discrete distributions Basics of discrete distributions Mean and variance of a discrete distribution Binomial distribution Poisson distribution and process 1

A random variable is a function which maps each element in the sample space of a random process to a numerical value. A discrete random variable takes on a finite or countable number of values. We will identify the distribution of a discrete random variable X by its probability mass function (pmf), f X (x) = P(X = x). Requirements of a pmf: f(x) 0 for all possible x f( x) 1 all x 2

Cumulative Distribution Function The cumulative distribution function (cdf) is given by Fx ( ) PX ( x) ft ( ) An increasing function starting from a value of 0 and ending at a value of 1. all t x When we specify a pmf or cdf, we are in essence choosing a probability model for our random variable. 3

Reliability example Consider the series system with three independent components each with reliability p. p p p Let X i be 1 if the ith component works (S) and 0 if it fails (F). This is called a Bernoulli random variable. Let f Xi (x) = P(X i = x) be the pmf for X i. f Xi (1) = f Xi (0) = 4

Reliability example continued 3 Let X Xi be the number of comps. that work i 1 What is the pmf for X? Outcome X 1 X 2 X 3 X Probability SSS SSF SFS FSS FFF FFS FSF SFF x f X (x) 5

Reliability example continued Plot the pmf for X for p = 0.5. Plot the cdf for p = 0.5. 6

Reliability example continued What is the probability there are at most 2 working components if p = 0.5? What is the probability the device works if p = 0.5? (Remember, it s a series) 7

Mean of a discrete random variable X EX ( ), mean of Xor expected value of X Given an array of discrete outcomes, the summation of the individual outcomes times their respective probability of occurring. The weighted average outcome. xpx ( ( )) EhX ( ( )) hx ( ) f( x), expected value of hx ( ) all x the expected value of a function is the result of the function, given x, times the corresponding probability of that occurrence. The weighted average value of the function. 8

Variance of a discrete random variable 2 2 E[( X ) ], variance of X X X Show EX ( ) 2 2 2 X X 2 2 2 E[( X - ) ] E[ X 2 X ] x 2 2 = X px ( ) 2 XpX ( ) px ( ) 2 2 = EX ( ) (2 * ) ( *1) 2 2 = EX ( ) The "shortcut" formula 9

Reliability example continued What is the mean of X if p = 0.5? What is the variance of X if p = 0.5? x p(x) x * p(x) x^2 x^2 * p(x) 0 0.125 0.000 0 0.000 1 0.375 0.375 1 0.375 2 0.375 0.750 4 1.500 3 0.125 0.375 9 1.125 1.000 1.500 3.000 10

What s the mean and variance of X? 2 The mean of is an example of E(h(x)). X x p(x) x*p(x) x^2 (x^2)*p(x^2) 0 0.125 0.000 0 0.000 1 0.375 0.375 1 0.375 2 0.375 0.750 4 1.500 3 0.125 0.375 9 1.125 1.500 3.000 E(h(x)) = [x^2*p(x)] = 3 Var (x) =E(x^2) E(x)^2 = 3 1.5^2 = 0.75 Std dev (x) = 0.75^.5 = 0.86603 11

Binomial distribution Bernoulli trials: Each trial can result in one of two outcomes (S or F) Trials are independent The probability of success, P(S), is a constant p for all trials Suppose X counts the number of successes in n Bernoulli trials. The random variable X is said to have a Binomial distribution with parameters n and p. X ~ Binomial(n,p) The X from the reliability example falls into this category. 12

Binomial pmf What is the probability of any outcome sequence from n Bernoulli trials that contains x successes and n-x failures? How many ways can we arrange the x successes and n-x failures? Combinations of n things taken k at a time Remember the number of ways we could come up with 2 successes out of the 3 trials in the reliability example? SSF, SFS or FSS n f ( x) P( X x) p (1 p) x 0,..., n x x n x 13

How the two components work together 14

Binomial properties The Binomial is valid (all probabilities sum to one and all are at least 0). 2 E( X ) u np and np(1 p) x x Example: Look at the reliability problem we did. Based on p=0.5, the mean was np or 3*.5 or 1.5. Based on p=0.5, the variance was npq or 3*.5*.5=0.75 Change values for p and the mean, variance and shape of the resulting distribution changes. In addition, some information on proofs for the Binomial are included in the Moment Generating Functions file under Topic 3. 15

Nurse employment case Contract requires 90% of records handled timely 32 of 36 sample records handled timely, she was fired! Can each sample record be considered as a Bernoulli trial? If the proportion of all records handled timely is 0.9, what is the probability that 32 or fewer would be handled timely in a sample of 36? Binomial calculator 16

Nurse employment case, calculations by hand P(X<=32)=1 P(X>=33) P(X>=33)=P(X=33)+P(X=34)+P(X=35)+P(X=36) 36 PX 33 36 PX 34 36 PX 35 36 36 0 PX ( 36) (.9 )(.1 ) (1)(0.0225284)(1) 0.02253 36 33 3 ( 33) (.9 )(.1 ) (7140)(0.0309031544)(0.0010) 0.22065 34 2 ( 34) (.9 )(.1 ) (630)(0.027812839)(0.01) 0.17522 35 1 ( 35) (.9 )(.1 ) (36)(0.025031555)(0.1) 0.09011 P(X<=32)=1 P(X>=33) = 1 0.22065 0.17522-0.09011 0.02253 = 0.49159 17

Horry county murder case 13% of the county is African American Only 22 of 295 summoned were African American Can a summoned juror be considered as a Bernoulli trial? If the prop. of African Americans in the jury pool is 0.13, what is the probability that 22 or fewer would be African American in a sample of 295? Binomial calculator 18

Horry county murder case by hand P( X 22 X Binomial(295,0.13)) PX ( 22) PX ( 21) PX ( 0) n x n x 295 PX ( 22) p(1 p) 0.13 (1 0.13) x 22 295! 22 273 (0.13) (0.87) 22!273! 22 295 22 PX ( 22) 0.00085541 PX ( 21) 0.00045965 PX ( 20) 0.00023490 PX ( 0) 1.4394e-18 summation = 0.00175346 19

Poisson distribution The Poisson distribution is used as a probability model for the number of events occurring in an interval where the expected number of events is proportional to the length of the interval. Examples # of computer breakdowns per week # of customers entering a business per hour # of telephone calls per hour # of imperfections in a foot long piece of wire # of bacteria in a culture of a certain area x e f( x) P( X x) x =0,1,... x! 20

Poisson properties The Poisson is a valid distribution (all probabilities are at least 0 and sum to 1. The mean and variance of the Poisson are both equal to An example of a Poisson process with calculations for lambda = 3 is contained in the file Nuts and Bolts Poisson in Topic 3. In addition, the Moment Generating Function proof of this for the mean are contained in the Moment Generating Functions file. 21

Poisson example My car breaks down once a week on average. Using a Poisson model, what is the probability the car will break down at least once in a week? What is the probability it breaks down more than 52 times in a year? Poisson calculator 22

Poisson calculation by hand Car breaks down 1 time per week on average. What s the probability that it breaks down at least once in a week? P(X>=1) = 1 P(X<1) = 1 P(X=0) 1 0 1 ( 0) 0.3679 PX 1 0.3679 = 0.6321 e 1 0! e Car breaks down 52 times per year. What s the probability that it breaks down more than 52 times in a year? There s no quick calculation to this type of problem, other than using a Stat package, like StatCrunch. 23

Additional Poisson by hand Assume that the average number of help calls on our computer site in a 10-minute period for a specific time of day is 4. We need to reboot our machine due to updates and will be down for 10 minutes. What s the probability that we have at most 1 phone call in that 10-minute period? P( X 1 X Poisson( 4)) PX ( 1) PX ( 0) PX ( 1) x 4 0 e e 4 4 PX ( 0) e 0.01832 x! 0! x 4 1 e e 4 PX ( 1) 0.07326 x! 1! PX ( 1) PX ( 0) PX ( 1) 0.01832 0.07326 0.09158 24

Other distributions Discrete uniform Finite number of identifiable outcomes, all with the same probability of occurrence. Examples Hypergeometric Sampling without replacement from a specified sized group, with a known number of successes. Not independent probabilities (changes from sample to sample). Negative Binomial Similar to a straight Binomial, but the number of trials stops when a certain number of successes is reached. If we believe p% of the population is a success, how many should we have to sample to obtain x successes? 25