Docsity

Discrete Probability Distributions: Binomial, Poisson, and Hypergeometric, Slides of Data Analysis & Statistical Methods

Partial preview of the text

Download Discrete Probability Distributions: Binomial, Poisson, and Hypergeometric and more Slides Data Analysis & Statistical Methods in PDF only on Docsity!

5 – Discrete Probability

Distributions

EM 7: Engineering Data Analysis

Second Semester, 2019-

Pamantasan ng Lungsod ng Valenzuela

Lecture Outline

  • Binomial distribution and the Bernoulli process
  • Hypergeometric distribution
  • Negative binomial and geometric distributions
  • Poisson distribution and the Poisson process 2

Bernoulli Process The Bernoulli process must possess the following properties:

  1. The experiment consists of repeated trials.
  2. Each trial results in an outcome that may be classified as a success or a failure.
  3. The probability of success (p) remains constant from trial to trial.
  4. The repeated trials are independent. 4

Bernoulli Process Consider a set of Bernoulli trials where 3 items are selected at random from a manufacturing process, inspected and classified as defective and non- defective. A defective item is designated as a success (X). Since the items are selected independently, and assuming the process produces 25% defectives: 𝑃 𝑁𝐷𝑁 = 𝑃 𝑁 𝑃 𝐷 𝑃 𝑁 = 3 4 1 4 3 4 = 9 64 5 Outcome NNN NDN NND DNN NDD DND DDN DDD x 0 1 1 1 2 2 2 3 x 0 1 2 3 f(x) 27/64 27/64 9/64 1/

Binomial Distribution Example: note that when 𝑛 = 3 and 𝑝 = 1/4, the probability distribution of X, the number of defectives, may be written as 𝑏 𝑥; 3, 1 4 = 3 𝑥 1 4

3 4

where 𝑥 = 0 , 1 , 2 , 3. (^7) DEFINITION: A Bernoulli trial can result in a success with probability 𝑝 and a failure with probability 𝑞 = 1 − 𝑝. Then the probability distribution of the binomial random variable X, the number of successes in n independent trials is: 𝑏 𝑥; 𝑛, 𝑝 = 𝑛 𝑥 𝑝௫𝑞௡ି௫ where 𝑥 = 0,1,2, … , 𝑛.

Examples

  1. The probability that a certain kind of component will survive a shock test is 3/4. Find the probability that exactly 2 of the next 4 components tested will survive.
  2. The probability that a patient recovers from a rare disease is 0.40. If 15 people are known to have contracted the disease, what is the probability that (a) at least 10 survive, (b) from 3 to 8 survive, and (c) exactly 5 survive? 8
  3. x = 2; n = 4; q = ¾ (probability that it will not survive) = 27/
  4. (a) P(X>=10) = 1 – P(X<10) = 1 – b(x;15,0.4); x is from 0-9 = 0. (b) P(3<=X<=8) = b(x;15,0.40) x is from 3-8 = b(x;15,0.40) x is from 0-8 – b(x;15,0.4) x is from 0-2: 0. (c) P(X=5) = b(5;15,0.40)

Binomial Distribution Binomial distribution can be used to any industrial situations where an outcome of a process is dichotomous and the results of these process are independent, with the probability of success being constant from trial to trial. Since the probability distribution of any binomial random variable depends only on the values assumed by the parameters n, p, and q, it would seem reasonable to assume that the mean and variance of a binomial random variable would also depend on the values assigned by these parameters. 10

Binomial Distribution Proof for this theorem can be easily verified using formulations in mathematical expectations. 11 DEFINITION: The mean and variance of the binomial distribution 𝑏(𝑥; 𝑛, 𝑝) are: 𝜇 = 𝑛𝑝 𝜎ଶ^ = 𝑛𝑝𝑞

Examples From the previous situation, the notion that 30% of the wells are impure is merely a conjecture put forth by the water board. Suppose 10 wells are randomly selected and 6 are found to contain the impurity. What does this imply about the conjecture? 13 Solution: “If the conjecture is correct, it is likely that we would find 6 or more impure wells?”

ହ ௫ୀ଴ ଵ଴ ௫ୀ଴

Conclusion: It is unlikely (4.73% chance) that 6 or more wells

would be found impure if only 30% of all are impure. This casts

considerable doubt on the conjecture and suggests that the impurity

problem is much more severe.

Multinomial Distribution The binomial experiment becomes a multinomial experiment if we let each trial have more than two possible outcomes. However, it is assumed that the n trials need to be independent and should be divided to k groups. 14 DEFINITION: If a given trial can result in the k outcomes 𝐸ଵ, 𝐸ଶ, … , 𝐸௞ with probabilities 𝑝ଵ, 𝑝ଶ, … , 𝑝௞, then the probability distribution of the random variables 𝑋ଵ, 𝑋ଶ, … , 𝑋௞ representing the number of occurrences for 𝐸ଵ, 𝐸ଶ, … , 𝐸௞ in n independent trials, is, 𝑓 𝑥ଵ, 𝑥ଶ, … , 𝑥௞; 𝑝ଵ, 𝑝ଶ, … , 𝑝௞, 𝑛 =

ଶ

௞ ௫ೖ with ∑^ ௞ ௜ୀଵ 𝑥௜ = 𝑛and ∑^ ௞ ௜ୀଵ𝑝௜ = 1

Hypergeometric Distribution For binomial distribution, independence among trials are required, hence, sampling must be done with replacement. If independence among trials are not required, sampling must be done without replacement, we can use hypergeometric distribution.

  1. A random sample of size n is selected without replacement from N items.
  2. Of the N items, k may be classified as successes and N – k are classified as failures. 16

Hypergeometric Distribution The range of x can be determined from the definition. If k (number of successes) and N – k (number of failures) are larger than the sample size n, the range of hypergeometric random variable is 𝑥 = 0 , 1 , … , 𝑛. 17 DEFINITION: The probability distribution of the hypergeometric random variable X, the number of successes in a random sample of size n selected from N items of which k are labeled success and N – k labeled failure, is ℎ 𝑥; 𝑁, 𝑛, 𝑘 =

where max 0, 𝑛 − 𝑁 − 𝑘 ≤ 𝑥 ≤ min{𝑛, 𝑘}.

Hypergeometric Distribution Example: Suppose a sampling plan involves sampling of 10 items from a lot of 100 items in which 12 are defective. What is the probability that in a sample of 10, 3 of them are defective? 19 DEFINITION: The mean and variance of the hypergeometric distribution ℎ(𝑥; 𝑁, 𝑛, 𝑘) are: 𝜇 =

𝜎ଶ^ =

𝑁 − 1 ⋅^ 𝑛^ ⋅^

𝑁 1 −^

h(3;100,10,12) = (12 3)(88 7)/(100 10) = 0.

Multivariate Hypergeometric Distribution Example: A group of 10 individuals is used for a biological case study. The group contains 3 people with blood type O, 4 with blood type A, 3 with blood type B. What is the probability that a random sample of 5 will contain 1 person with blood type O, 2 people with blood type A, and 2 people with blood type B? 20 DEFINITION: If N items can be partitioned into k cells 𝐴ଵ, 𝐴ଶ, … , 𝐴௞ with 𝑎ଵ, 𝑎ଶ, … , 𝑎௞ elements, respectively, then the probability distribution of the random variables 𝑋ଵ, 𝑋ଶ, … , 𝑋௞, representing the number of elements selected from 𝐴ଵ, 𝐴ଶ, … , 𝐴௞ in a random sample of size n, is 𝑓 𝑥ଵ, 𝑥ଶ, … , 𝑥௞; 𝑎ଵ, 𝑎ଶ, … , 𝑎௞, 𝑁, 𝑛 =

With ∑ ௞ ௜ୀଵ 𝑥௜ = 𝑛and ∑ ௞ ௜ୀଵ𝑎௜ = 𝑁 f(1,2,2; 3,4,3,10,5) = (3 1)(4 2)(3 2)/(10 5) = 3/