Section 5 Part 2. Probability Distributions for Discrete Random Variables



Similar documents
Chapter 3: DISCRETE RANDOM VARIABLES AND PROBABILITY DISTRIBUTIONS. Part 3: Discrete Uniform Distribution Binomial Distribution

The Binomial Probability Distribution

Chapter 4 Lecture Notes

The normal approximation to the binomial

Chapter 4. Probability and Probability Distributions

STT315 Chapter 4 Random Variables & Probability Distributions KM. Chapter 4.5, 6, 8 Probability Distributions for Continuous Random Variables

Characteristics of Binomial Distributions

You flip a fair coin four times, what is the probability that you obtain three heads.

Binomial random variables

REPEATED TRIALS. The probability of winning those k chosen times and losing the other times is then p k q n k.

Unit 4 The Bernoulli and Binomial Distributions

EMPIRICAL FREQUENCY DISTRIBUTION

Chapter 5. Random variables

MBA 611 STATISTICS AND QUANTITATIVE METHODS

DETERMINE whether the conditions for a binomial setting are met. COMPUTE and INTERPRET probabilities involving binomial random variables

Sample Questions for Mastery #5

An Introduction to Basic Statistics and Probability

2. Discrete random variables

ST 371 (IV): Discrete Random Variables

Probability Distribution for Discrete Random Variables

BINOMIAL DISTRIBUTION

Normal Distribution as an Approximation to the Binomial Distribution

Binomial Distribution n = 20, p = 0.3

UNIT I: RANDOM VARIABLES PART- A -TWO MARKS

Probability Distributions

Lecture 3: Continuous distributions, expected value & mean, variance, the normal distribution

Chapter 4. Probability Distributions

Lecture 5 : The Poisson Distribution

Chapter 1: Looking at Data Section 1.1: Displaying Distributions with Graphs

WHERE DOES THE 10% CONDITION COME FROM?

Binomial random variables (Review)

Question: What is the probability that a five-card poker hand contains a flush, that is, five cards of the same suit?

Chapter What is the probability that a card chosen from an ordinary deck of 52 cards is an ace? Ans: 4/52.

Joint Exam 1/P Sample Exam 1

2 Binomial, Poisson, Normal Distribution

Chapter 5 - Practice Problems 1

4. Continuous Random Variables, the Pareto and Normal Distributions

Review of Random Variables

Coins, Presidents, and Justices: Normal Distributions and z-scores

Ch5: Discrete Probability Distributions Section 5-1: Probability Distribution

The normal approximation to the binomial

Probability and Statistics Prof. Dr. Somesh Kumar Department of Mathematics Indian Institute of Technology, Kharagpur

Probability Calculator

Binomial Probability Distribution

STAT 315: HOW TO CHOOSE A DISTRIBUTION FOR A RANDOM VARIABLE

Normal distribution. ) 2 /2σ. 2π σ

Descriptive Statistics. Purpose of descriptive statistics Frequency distributions Measures of central tendency Measures of dispersion

Math 370/408, Spring 2008 Prof. A.J. Hildebrand. Actuarial Exam Practice Problem Set 2 Solutions

MAT 155. Key Concept. September 27, S5.5_3 Poisson Probability Distributions. Chapter 5 Probability Distributions

Pr(X = x) = f(x) = λe λx

Chapter 5. Discrete Probability Distributions

Exploratory Data Analysis

M 1313 Review Test 4 1

Probability and Statistics Vocabulary List (Definitions for Middle School Teachers)

THE BINOMIAL DISTRIBUTION & PROBABILITY

AP Statistics 7!3! 6!

Notes on Continuous Random Variables

For a partition B 1,..., B n, where B i B j = for i. A = (A B 1 ) (A B 2 ),..., (A B n ) and thus. P (A) = P (A B i ) = P (A B i )P (B i )

Statistics I for QBIC. Contents and Objectives. Chapters 1 7. Revised: August 2013

Chi-square test Fisher s Exact test

Topic 8. Chi Square Tests

Mean = (sum of the values / the number of the value) if probabilities are equal

Stats on the TI 83 and TI 84 Calculator

MAS108 Probability I

Week 3&4: Z tables and the Sampling Distribution of X

ACMS Section 02 Elements of Statistics October 28, 2010 Midterm Examination II Answers

Binomial Random Variables

The sample space for a pair of die rolls is the set. The sample space for a random number between 0 and 1 is the interval [0, 1].

Descriptive Statistics

5/31/ Normal Distributions. Normal Distributions. Chapter 6. Distribution. The Normal Distribution. Outline. Objectives.

E3: PROBABILITY AND STATISTICS lecture notes

TEACHER NOTES MATH NSPIRED

Statistics 100A Homework 8 Solutions

Math 461 Fall 2006 Test 2 Solutions

ACMS Section 02 Elements of Statistics October 28, Midterm Examination II

Review for Test 2. Chapters 4, 5 and 6

Chapter 9 Monté Carlo Simulation

Math/Stats 342: Solutions to Homework

Homework 4 - KEY. Jeff Brenion. June 16, Note: Many problems can be solved in more than one way; we present only a single solution here.

Chicago Booth BUSINESS STATISTICS Final Exam Fall 2011

Random variables, probability distributions, binomial random variable

16. THE NORMAL APPROXIMATION TO THE BINOMIAL DISTRIBUTION

PROBABILITY AND SAMPLING DISTRIBUTIONS

Probability: Terminology and Examples Class 2, 18.05, Spring 2014 Jeremy Orloff and Jonathan Bloom

2WB05 Simulation Lecture 8: Generating random variables

1.1 Introduction, and Review of Probability Theory Random Variable, Range, Types of Random Variables CDF, PDF, Quantiles...

Normal Approximation. Contents. 1 Normal Approximation. 1.1 Introduction. Anthony Tanbakuchi Department of Mathematics Pima Community College

SOLUTIONS: 4.1 Probability Distributions and 4.2 Binomial Distributions

3.4. The Binomial Probability Distribution. Copyright Cengage Learning. All rights reserved.

Chi Square Tests. Chapter Introduction

Chapter 5: Normal Probability Distributions - Solutions

CA200 Quantitative Analysis for Business Decisions. File name: CA200_Section_04A_StatisticsIntroduction

Bowerman, O'Connell, Aitken Schermer, & Adcock, Business Statistics in Practice, Canadian edition

BASIC STATISTICAL METHODS FOR GENOMIC DATA ANALYSIS

STA 130 (Winter 2016): An Introduction to Statistical Reasoning and Data Science

Practice Problems #4

6.041/6.431 Spring 2008 Quiz 2 Wednesday, April 16, 7:30-9:30 PM. SOLUTIONS

Introduction to Statistics for Psychology. Quantitative Methods for Human Sciences

Lecture 6: Discrete & Continuous Probability and Random Variables

Exercise 1.12 (Pg )

Transcription:

Section 5 Part 2 Probability Distributions for Discrete Random Variables

Review and Overview So far we ve covered the following probability and probability distribution topics Probability rules Probability tables to describe the distributions of Nominal variables Probability density curves for continuous variables particularly the Normal Distribution Section 5 Part 2 covers two probability distributions for discrete random variables with particular focus on Binomial Distribution Poisson Distribution PubH 6414 Section 5 Part 2 2

Review: Probability Distributions Any characteristic that can be measured or categorized is called a variable. If the variable can assume a number of different values such that any particular outcome is determined by chance it is called a random variable. Every random variable has a corresponding probability distribution. The probability distribution applies the theory of probability to describe the behavior of the random variable. PubH 6414 Section 5 Part 2 3

Discrete Random Variable A discrete random variable X has a finite number of possible integer values. The probability distribution of X lists the values and their probabilities in a table Value of X x 1 x 2 x 3 x k Probability p 1 p 2 p 3 p k 1. Every probability p i is a number between 0 and 1. 2. The sum of the probabilities must be 1. PubH 6414 Section 5 Part 2 4

Distribution of number of people in a family (U.S. 2005 data) The probability distribution of number of people in a family is summarized in a pie chart. The sum of the probabilities 1.0 PubH 6414 Section 5 Part 2 5

Probability Distributions for Discrete Random Variables With a finite number of possible values the probability distributions for discrete random variables can be summarized in People in family 2 3 4 5 6 7+ Probability 0.42 0.228 0.209 0.092 0.032 0.018 Probability Distribution Probability 0.5 0.4 0.3 0.2 0.1 0 1 2 3 4 5 6 7 Number of people in family PubH 6414 Section 5 Part 2 6

Bernoulli trial Bernoulli trial The event (or trial) results in only one of two mutually exclusive outcomes success/failure Probability of success is known, P(success) π Examples: A single coin toss (heads or tails), P(heads) π 0.5 Survival of an individual after CABG surgery, P(survival) π 0.98 Pick an individual from the U.S. population, P(obese) π 0.31 PubH 6414 Section 5 Part 2 7

Binomial Distribution The binomial distribution describes the distribution of outcomes from a series of trials where each trial meets certain conditions. String together n independent Bernoulli trials. Examples: Toss a coin 10 times, X number of head, P(X 3 heads) Number of people who survive out of 1000 people after CABG surgery, X number of survivors. P(X 800 survived) A random sample of 300 from the U.S. population, X number in sample who are obese. P(X 200 are obese) PubH 6414 Section 5 Part 2 8

Binomial Distribution IF the following conditions are met Each trial has a binary outcome (One of the two outcomes is labeled a success ) The probability of success is known and constant over all trials The number of trials is specified The trials are independent. That is, the outcome from one trial doesn t affect the outcome of successive trials THEN The Binomial distribution describes the probability of X successes in n trials PubH 6414 Section 5 Part 2 9

Examples of Binomial distribution A classic example of the binomial distribution is the number of heads (X) in n coin tosses Does it meet the criteria? What is the range of X? PubH 6414 Section 5 Part 2 10

Practice Exercise For each coin toss the outcome is either Heads or Tails In a series of two coin tosses, what are the 4 possible combinations of outcomes? Calculate the probability of 0, 1, or 2 heads in 2 coin tosses Number of heads 0 1 2 Probability 0.25 0.50 0.25 PubH 6414 Section 5 Part 2 11

Parameters of Binomial Distribution The Notation for a binomial distribution is X ~ B (n, π) which is read as X is distributed binomial with n trials and probability of success in one trial equal to π PubH 6414 Section 5 Part 2 12

Formula for Binomial Distribution Using this formula, the probability distribution of a binomial random variable X can be calculated if n and π are known P( X ) n! π X ( 1 π ) X!( n X )! n X n! is called n factorial n(n-1)(n-2)...(1) Example: 5! 5*4*3*2*1 120 Note: 0! 1 π 0 1 PubH 6414 Section 5 Part 2 13

Another coin toss example What is the probability of X heads in 6 coin tosses? Success heads n 6 trials π 0.5 X number of heads in 6 tosses which can range from 0 to 6 X has a binomial distribution with n 6 and π 0.5 X ~ B (6, 0.5) PubH 6414 Section 5 Part 2 14

Binomial Calculation for X ~ B (6, 0.5) 0) ( 6) ( 1) ( 5) ( 2) ( 4) ( 0.3125 20*0.5 0.5 (1 0.5 3)! 3!(6 6! 3) ( 0.234 15*0.5 0.5 (1 0.5 2)! 2!(6 6! 2) ( 0.09375 6*0.5 0.5 (1 0.5 1)! 1!(6 6! 1) ( 0.0156 0.5 0.5 (1 0.5 0)! 0!(6 6! 0) ( 6 3 6 3 6 2 6 2 6 1 6 1 6 0 6 0 ) ) ) ) X P X P X P X P X P X P X P X P X P X P PubH 6414 Section 5 Part 2 15

X ~ B (6, 0.5) The binomial distribution for the number of heads in 6 coin tosses is summarized in the table # Heads 0 1 2 3 4 5 6 Probability 0.0156 0.094 0.234 0.3125 0.234 0.094 0.0156 This probability distribution is symmetric because the P(Heads) P(Tails) 0.5 PubH 6414 Section 5 Part 2 16

X ~ B(6, 0.5) For a small number of possible values, the binomial distribution can be plotted as a bar chart X ~B(6, 0.5) 0.35 0.3 Probability 0.25 0.2 0.15 0.1 0.05 0 0 1 2 3 4 5 6 Number of heads in 6 coin tosses PubH 6414 Section 5 Part 2 17

A clinical application If 5 year survival rate for a certain group of prostate cancer patients is known to be 0.80, what is the probability that X of 10 men with prostate cancer survive at least 5 years. 5 year survival is a binary outcome (Yes or No) Success is defined as survival for at least 5 years n number of trials 10 subjects π probability of success 0.80, assumed to be constant for all subjects X is the number of patients surviving at least 5 years. X can range from 0-10 X ~ B (10, 0.8) PubH 6414 Section 5 Part 2 18

Binomial Distribution for X~B(10, 0.8) Number of patients surviving 5 years Probability 0 < 0.0001 1 <0.0001 2 0.0001 3 0.0008 4 0.0055 5 0.0264 6 0.0881 7 0.2013 8 0.3020 9 0.2684 10 0.1074 The binomial distribution formula was used to calculate the probabilities that X of the 10 men would survive at least 5 years. Notice that this distribution is skewed towards the larger values. This is because the P(success) is > 0.5. PubH 6414 Section 5 Part 2 19

Plotting X~B(10,0.8) X ~ B(10,0.8) 0.35 0.3 Probability 0.25 0.2 0.15 0.1 0.05 0 0 1 2 3 4 5 6 7 8 9 10 Number of patients surviving 5 years out of 10 patients PubH 6414 Section 5 Part 2 20

Another clinical example In a sample of 8 patients with a heart attack, what is the probability that X will die if the probability of death from a heart attack 0.03. Assume that the probability of death is the same for all patients. Death from heart attack is a binary variable (Yes or No) Success in this case is defined as death from heart attack n number of trials 8 patients π 0.03 probability of success X number of deaths. X ranges from 0 8 X ~ B (8, 0.03) PubH 6414 Section 5 Part 2 21

Binomial Distribution for X~B(8, 0.03) Number of deaths from heart attack Probability 0 0.784 1 0.194 2 0.021 3 0.0013 4 < 0.001 5 <0.001 6 <0.001 7 <0.001 8 <0.001 The binomial distribution formula was used to calculate the probabilities that X of the 8 patents with a heart attack die Notice that this distribution is skewed towards the smaller values. This is because the P(death) is very small. PubH 6414 Section 5 Part 2 22

Plotting X ~ B(8, 0.03) X ~ B(8, 0.03) Probability 0.9 0.8 0.7 0.6 0.5 0.4 0.3 0.2 0.1 0 0 1 2 3 4 5 6 7 8 Number of deaths from heart attack out of 8 patients PubH 6414 Section 5 Part 2 23

Online Binomial Calculator The binomial distribution formula involves timeconsuming calculations for larger values of n. The following website will calculate the binomial probabilities if you provide n, π, and X www.stat.tamu.edu/~west/applets/binomialdemo.html PubH 6414 Section 5 Part 2 24

Binomial Calculations in R Two functions P(Xx) use >dbinom(x, n, π) P(X x) use >pbinom(x, n, π) PubH 6414 Section 5 Part 2 25

Normal Approximation of the Binomial Distribution When n π > 5 and n*(1-π) > 5, the binomial distribution can be approximated by a normal distribution. Most often in health research, the normal approximation to the binomial distribution is used because the sample sizes are large enough. If not, the exact binomial formula can be used PubH 6414 Section 5 Part 2 26

Mean and standard deviation of binomial distribution The mean of the binomial distribution n*π The mean is the expected value of X The variance of the binomial distribution n π(1-π) The standard deviation of the binomial distribution nπ ( 1 π ) The normal approximation to the binomial. X ~ PubH 6414 Section 5 Part 2 27

Normal Approximation to the Binomial Distribution Example Osteopenia is a decrease in bone mineral density that can be a precursor condition to osteoporosis The risk of osteoporosis for those with osteopenia varies depending on the age of the woman. Suppose you have a group of 100 women with osteopenia. The risk of having osteoporosis diagnosed in the following year 0.20 for these women. This is an example of a binomial distribution n 100 Success osteoporosis diagnosed in following year P(success) risk 0.20 PubH 6414 Section 5 Part 2 28

Normal Approximation for X~B(100, 0.20) X is distributed binomial with n100 and π 0.20 Is the Normal approximation to this binomial distribution appropriate? What are the mean and SD of this normal distribution? Mean Var Std dev. PubH 6414 Section 5 Part 2 29

Normal Approximation to Example Use the normal approximation to the binomial to find the probability that 10 or fewer women in this group of 100 are diagnosed with osteoporosis in the next year: X ~ N(20, 4) > pnorm(10,20,4) [1] 0.006209665 > pnorm(-2.5,0,1) [1] 0.006209665 PubH 6414 Section 5 Part 2 30

Normal Approximation Example What is the probability that between 10 and 20 women in this group of 100 are diagnosed with osteoporosis in the next year? X ~ N(20, 4) > pnorm(20,20,4) - pnorm(10,20,4) [1] 0.4937903 > pnorm(0,0,1) - pnorm(-2.5,0,1) [1] 0.4937903 PubH 6414 Section 5 Part 2 31

Normal Approximation Example What is the probability that 20 or more women will be diagnosed with osteoporosis in the next year? X ~ N(20, 4) > 1-pnorm(20,20,4) [1] 0.5 PubH 6414 Section 5 Part 2 32

Poisson Distribution Another probability distribution for discrete variables is the Poisson distribution Named for Simeon D. Poisson, 1781 1840, French mathematician The Poisson distribution is used to determine the probability of the number of events occurring over a specified time or space. Examples of events over space or time: -number of cells in a specified volume of fluid -number of calls/hour to a help line -number of emergency room beds filled/ 24 hours PubH 6414 Section 5 Part 2 33

Poisson Distribution Like the binomial distribution and the normal distribution, there are many Poisson distributions. Each Poisson distribution is specified by the average rate at which the event occurs. The rate is notated with λ λ lambda, Greek letter L There is only one parameter for the Poisson distribution PubH 6414 Section 5 Part 2 34

Poisson Distribution Formula The probability that there are exactly X occurrences in the specified space or time is equal to P( X ) λ x e λ X! PubH 6414 Section 5 Part 2 35

What Does it Look Like? Notice that as λ increases the distribution begins to resemble a normal distribution The horizontal axis is the index X. The function is defined only at integer values of X. The connecting lines are only guides for the eye and do not indicate continuity. Source: http://en.wikipedia.org/wiki/image:poisson_distribution_pmf.png PubH 6414 Section 5 Part 2 36

Normal Approximation of Poisson Distribution If λ is 10 or greater, the normal distribution is a reasonable approximation to the Poisson distribution The mean and variance for a Poisson distribution are the same and are both equal to λ The standard deviation of the Poisson distribution is the square root of λ PubH 6414 Section 5 Part 2 37

Poisson Distribution Example A large urban hospital has, on average, 80 emergency department admits every Monday What is the probability that there will be more than 100 emergency room admits on a Monday? λ is the rate of admits / day on Monday 80 Use the normal approximation since λ > 10 The normal approximation has mean 80 and SD 8.94 (the square root of 80 8.94) PubH 6414 Section 5 Part 2 38

Poisson Distribution Example What is the probability that there are > 100 admits to the ER on a Monday? This information could be used in determining staffing needs for the emergency department. > 1-ppois(100,80) [1] 0.01316885 > 1-pnorm(100,80,8.94) [1] 0.01263871 PubH 6414 Section 5 Part 2 39

Overview of Probability Distributions for Discrete Data For a limited number of discrete outcomes the probability distribution can be presented in a table or chart with the probability for each outcome identified. The Binomial distribution can be approximated by a normal distribution for large enough number of trials and probability. n* π > 5 and n*(1 π) > 5 The Poisson distribution can be approximated by a normal distribution for λ > 10. PubH 6414 Section 5 Part 2 40