10 GEOMETRIC DISTRIBUTION EXAMPLES:



Similar documents
UNIT I: RANDOM VARIABLES PART- A -TWO MARKS

Lecture 8. Confidence intervals and the central limit theorem

Math 431 An Introduction to Probability. Final Exam Solutions

Decision Making Under Uncertainty. Professor Peter Cramton Economics 300

BINOMIAL DISTRIBUTION

WORKED EXAMPLES 1 TOTAL PROBABILITY AND BAYES THEOREM

Chapter 15 Binomial Distribution Properties

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

Example: 1. You have observed that the number of hits to your web site follow a Poisson distribution at a rate of 2 per day.

5. Continuous Random Variables

Lecture 10: Depicting Sampling Distributions of a Sample Proportion

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

Practice Problems for Homework #6. Normal distribution and Central Limit Theorem.

Probability Distributions

MAS108 Probability I

Thursday, October 18, 2001 Page: 1 STAT 305. Solutions

Chapter 4 - Lecture 1 Probability Density Functions and Cumul. Distribution Functions

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

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

The Binomial Probability Distribution

ECE302 Spring 2006 HW4 Solutions February 6,

STATISTICAL QUALITY CONTROL (SQC)

Chapter 5. Random variables

Practice Problems #4

STAT 319 Probability and Statistics For Engineers PROBABILITY. Engineering College, Hail University, Saudi Arabia

STAT x 0 < x < 1

Random variables P(X = 3) = P(X = 3) = 1 8, P(X = 1) = P(X = 1) = 3 8.

Random variables, probability distributions, binomial random variable

MASSACHUSETTS INSTITUTE OF TECHNOLOGY 6.436J/15.085J Fall 2008 Lecture 5 9/17/2008 RANDOM VARIABLES

PROBABILITY AND SAMPLING DISTRIBUTIONS

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

The normal approximation to the binomial

Definition and Calculus of Probability

Stats on the TI 83 and TI 84 Calculator

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

V. RANDOM VARIABLES, PROBABILITY DISTRIBUTIONS, EXPECTED VALUE

Statistics 100A Homework 3 Solutions

2. Discrete random variables

AP Statistics 7!3! 6!

Solutions: Problems for Chapter 3. Solutions: Problems for Chapter 3

sample median Sample quartiles sample deciles sample quantiles sample percentiles Exercise 1 five number summary # Create and view a sorted

Section 5-3 Binomial Probability Distributions

Notes on Continuous Random Variables

ECE302 Spring 2006 HW3 Solutions February 2,

Probability and Random Variables. Generation of random variables (r.v.)

>

M 1313 Review Test 4 1

Chapter 4 Lecture Notes

Tenth Problem Assignment

Homework 8 Solutions

Resource Provisioning and Network Traffic

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

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

LECTURE 16. Readings: Section 5.1. Lecture outline. Random processes Definition of the Bernoulli process Basic properties of the Bernoulli process

The normal approximation to the binomial

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

The Normal Distribution. Alan T. Arnholt Department of Mathematical Sciences Appalachian State University

2 Binomial, Poisson, Normal Distribution

Math 151. Rumbos Spring Solutions to Assignment #22

Chapter 9 Monté Carlo Simulation

Experimental Design. Power and Sample Size Determination. Proportions. Proportions. Confidence Interval for p. The Binomial Test

The Binomial Distribution

Department of Civil Engineering-I.I.T. Delhi CEL 899: Environmental Risk Assessment Statistics and Probability Example Part 1

Section 1.3 P 1 = 1 2. = P n = 1 P 3 = Continuing in this fashion, it should seem reasonable that, for any n = 1, 2, 3,..., =

Random Variables. Chapter 2. Random Variables 1

Aggregate Loss Models

Discrete Math in Computer Science Homework 7 Solutions (Max Points: 80)

Negative Binomial. Paul Johnson and Andrea Vieux. June 10, 2013

CONTINGENCY (CROSS- TABULATION) TABLES

Some special discrete probability distributions

Graphics in R. Biostatistics 615/815

ECON1003: Analysis of Economic Data Fall 2003 Answers to Quiz #2 11:40a.m. 12:25p.m. (45 minutes) Tuesday, October 28, 2003

Sample Questions for Mastery #5

Statistics 100A Homework 4 Solutions

Probability Generating Functions

Topic 8. Chi Square Tests

Section 5 Part 2. Probability Distributions for Discrete Random Variables

Normal Distribution as an Approximation to the Binomial Distribution

Binomial Distribution Problems. Binomial Distribution SOLUTIONS. Poisson Distribution Problems

Parallel System This is a system that will fail only if they all fail.

ST 371 (IV): Discrete Random Variables

Stat 515 Midterm Examination II April 6, 2010 (9:30 a.m. - 10:45 a.m.)

Section 6.2 Definition of Probability

Lesson 20. Probability and Cumulative Distribution Functions

Probability for Computer Scientists

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 )

Binomial Distribution n = 20, p = 0.3

arxiv: v1 [math.pr] 5 Dec 2011

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

Solved Problems. Chapter Probability review

Chapter 4: Probability and Counting Rules

M/M/1 and M/M/m Queueing Systems

1 Gambler s Ruin Problem

Kevin James. MTHSC 412 Section 2.4 Prime Factors and Greatest Comm

Manual for SOA Exam MLC.

Chapter 5. Discrete Probability Distributions

Unit 4 The Bernoulli and Binomial Distributions

Each function call carries out a single task associated with drawing the graph.

Ex. 2.1 (Davide Basilio Bartolini)

STATISTICS HIGHER SECONDARY - SECOND YEAR. Untouchability is a sin Untouchability is a crime Untouchability is inhuman

Transcription:

10 GEOMETRIC DISTRIBUTION EXAMPLES: 1. Terminals on an on-line computer system are attached to a communication line to the central computer system. The probability that any terminal is ready to transmit is 0.95. Let X = number of terminals polled until the first ready terminal is located. 2. Toss a coin repeatedly. Let X = number of tosses to first head 3. It is known that 20% of products on a production line are defective. Products are inspected until first defective is encountered. Let X = number of inspections to obtain first defective 4. One percent of bits transmitted through a digital transmission are received in error. Bits are transmitted until the first error. Let X denote the number of bits transmitted until the first error.

GEOMETRIC DISTRIBUTION Conditions: 1. An experiment consists of repeating trials until first success. 2. Each trial has two possible outcomes; (a) A success with probability p (b) A failure with probability q = 1 p. 3. Repeated trials are independent. X = number of trials to first success X is a GEOMETRIC RANDOM VARIABLE. PDF: P(X = x) = q x 1 p; x = 1, 2, 3, CDF: P(X x) = P(X = 1) + P(X = 2) P(X = x) = p + qp + q 2 p + q x 1 p = p[1 q x ]/(1 q) = 1 q x

Example: Products produced by a machine has a 3% defective rate. What is the probability that the first defective occurs in the fifth item inspected? P(X = 5) = P(1st 4 non-defective )P( 5th defective) = ( 0.97 4) (0.03) In R >dgeom (x= 4, prob =.03) [1] 0.02655878 The convention in R is to record X as the number of failures that occur before the first success. What is the probability that the first defective occurs in the first five inspections? P(X 5) = 1 P(First 5 non-defective) = 1 0.97 5 > pgeom(4,.03) [1] 0.1412660

Geometric pdfs First Ready Terminal, p =.95 First Head, p =.5 P(X=x) 0.0 0.4 0.8 P(X=x) 0.0 0.2 0.4 1 2 3 4 5 2 4 6 8 10 First Defective, p =.2 First Bit in Error, p =.01 P(X=x) 0.00 0.10 0.20 5 10 15 20 P(X=x) 0.000 0.004 0.008 0 100 200 300 400

Calculating pdfs in R par (mfrow = c(2,2)) x<-0:4 plot(x+1, dgeom(x, prob =.95), xlab = "", ylab = "P(X=x)", type = "h", main = "First Ready Terminal, p =.95") x<-0:9 plot(x+1, dgeom(x, prob =.5), xlab = "", ylab = "P(X=x)", type = "h", main = "First Head, p =.5") x<- 0:19 plot(x+1, dgeom(x, prob =.2), xlab = "", ylab = "P(X=x)", type = "h", main = "First Defective, p =.2") x<- seq(0, 400, 50) plot(x+1, dgeom(x, prob =.01), xlab = "", ylab = "P(X=x)", type = "h", main = "First Bit in Error, p =.01")

First Ready Terminal, p =.95 First Head, p =.5 P(X<=x) 0.95 0.98 P(X<=x) 0.5 0.8 1 2 3 4 5 2 4 6 8 10 First Defective, p =.2 First Bit in Error, p =.01 P(X< =x) 0.2 0.6 1.0 P(X<=x) 0.0 0.4 0.8 5 10 15 20 0 100 300 Figure 1: Geometric cdfs

par (mfrow = c(2,2)) x<-0:4 plot(x+1, pgeom(x, prob =.95), xlab = "", ylab = "P(X<=x)", type = "s", main = "First Ready Terminal, p =.95") x<-0:9 plot(x+1, pgeom(x, prob =.5), xlab = "", ylab = "P(X<=x)", type = "s", main = "First Head, p =.5") x<-0:19 plot(x+1, pgeom(x, prob =.2), xlab = "", ylab = "P(X< =x)", type = "s", main = "First Defective, p =.2") x<- seq(0, 399) plot(x+1, pgeom(x, prob =.01), xlab = "", ylab = "P(X<=x)", type = "s", main = "First Bit in Error, p =.01")

The Quantile Function In Example 3, a production line which has a 20% defective rate, what is the minimum number of inspections, that would be necessary so that the probability of observing a defective is more that 75%? Choose k so that In R qgeom(.75,.2) [1] 6 P(X k).75. i.e. 6 failures before first success. or with 7 inspections, there is at least a 75% chance of obtaining the first defective.

Mean of geometric distribution: Example: If a production line has a 20% defective rate. What is the average number of inspections to obtain the first defective? E(X) = x=1 xq x 1 p = p = p xq x 1 x=1 x=1 dq x dq = p d x=1 q x dq d(q/(1 q) = p dq [(1 q) + q] = p (1 q) 2 = p p 2 = 1 p Average number of inspections to obtain the first defective: E(X) = 1.2 = 5

The Markov Property: If the probability of events happening in the future is independent of what went before, then the random variable is said to have the Markov property. Example: MARKOV PROPERTY = MEMORYLESS PROPERTY Products are inspected until first defective is found. X is a geometric random variable with parameter p. The first 10 trials have been found to be free of defectives. What is the probability that the first defective will occur in the 15th trial? Let E 1 be the event that first ten trials are free of defectives. Let E 2 be the event that that first defective will occur on the 15th trial. P(X = 15 X > 10) = P(E 2 E 1 ) = P(E 1 E 2 ) P(E 1 ) = = P(X = 15 X > 10) P(X > 10) P(X = 15) P(X > 10) = q14 p q 10 = q4 p = P(X = 5)

MARKOV PROPERTY Generally, the Markov property states: Proof: Let Then we may write But Now And Thus But Hence P(X = x + n X > n) = P(X = x) E 1 = {X > n} E 2 = {X = x + n} P(X = x + n X > n) = P(E 2 E 1 ) P(E 2 E 1 ) = P(E 1 E 2 ) P(E 1 ) P(E 1 E 2 ) = P(X = x + n) = q x+n 1 p P(E 1 ) = P(X > n) = q n P(E 2 E 1 ) = qx+n 1 p q n = q x 1 p P(X = x) = q x 1 p P(X = x + n (X > n) = P(X = x)

R Functions for the Geometric Distribution dgeom dgeom (x= 4, prob =.03) the probability of exactly 4 trials before first defective or exactly 5 trials to first defective pgeom pgeom (x= 4, prob =.03) the probability of up to 4 trials before first defective or up to 5 trials to first defective qgeom qgeom(.75,.2) returns the number of trials before first defective that has a probabilty of.75.