Chapter 5 Probability
Chapter 5 Probability
(Kebarangkalian)
EBB 341
random variables
probability
X1 , X 2 ,..., X n
Parameters
, 2
x1 , x2 ,..., xn
data inference Statistical procedure
Definition of probability
Probability:
P(A) = NA/N
P(A) = probability of event A NA = number of successful outcomes of event A N = total number of possible outcomes
Example:
A part is selected at random from container of 50 parts that are known have 10 noncomforming units. The part is returned to container. After 90 trials, 16 noncomforming unit were recorded. What is the probability based on known outcomes and on experimental outcomes?
Known outcomes: P(A) = NA/N = 10/50 = 0.200 Experimental outcomes: P(A) = NA/N = 16/90 = 0.178
Probability theorems
Probability is expressed as a number between 0 and 1. (Theorem 1) If P(A) is the probability that an event will occur, then the probability the event will not occur is 1.0 - P(A) or P(A) = 1.0 P(A). (Theorem 2)
If probability of finding and error on an income tax return is 0.04, what is the probability of finding an error-free or conforming return? P(A) = 1.0 P(A) = 1.0 -0.04 = 0.96
Probability theorems
For mutually exclusive events, the probability that either event A or B will occur is the sum of their respective probabilities P(A or B) = P(A) + P(B). (Theorem 3). When events A and B are not mutually exclusive events, the probability that either event A or event B will occur is P(A or B or both) = P(A) + P(B) - P(both).
(Theorem 4).
mutually exclusive means that accurrence of one event makes the other event impossible.
Supp lier
Total
50 125 75 250
3 6 2 11
53 131 77 261
TOTAL
What is the probability of selecting a nonconforming part from supplier X or a conforming part from supplier Z?
What is the probability that a randomly selected part will be from supplier X or a nonconforming unit? P(X or nc or both) = P(X) + P(nc) P(X and nc) = (53/261) + (11/261) (3/261) = 0.234
Probability theorems
If A and B are independent events, then the probability that both A and B will occur is
If A and B are dependent events, the probability that both A and B will occur is
What is probability that 2 randomly selected parts will be from X and Y? Assume that the first part is returned to the box before the second part is selected (called with replacement).
Assume that the first part was not returned to the box before the second part is selected. What is the probability?
Example:
Theorem 7 What is the probability of choosing both parts from Z?
Counting of events
Many probability problems, such as those where the evens are uniform probability distribution, can be solved using counting techniques. There are 3 counting techniques:
Simple
Simple multiplication
If event A can happen in any a ways and, after it has occurred, another event B can happen in b ways, the number of ways that both event can happen is ab. Example.: A witness to a hit and run accident remembered the first 3 digits of the licence plate out of 5 and noted the fact that the last 2 were numerals. How many owners of automobiles would the police have to investigate? ab = (10)(10) = 100 If last 2 were letters, how many would need to be investigate? ab = (26)(26) = 676
Permutations
A permutation is the number of arrangements that n objects can have when r of them are used. The permutations of the word cup are cup, cpu, upc, ucp, puc & pcu n ! n n = 3, and r = 3 P
r
For example:
(n r )!
n r
= number of permutations of n objects taken r of them (the symbol is sometimes written as nPr)
Example:
In the licence plate example, suppose the witness further remembers that the numerals were not the same
Combinations
If the way the objects are ordered in unimportant. cup has 6 permutations when 3 objects are taken 3 at a time. There is only one combinations, since the same 3 letters are in different order.
Formula
n! C r!(n r )!
n r
where
n r
Binomial - categorizes success and failure trials Poisson - quantifies the count of discrete events.
Hypergeometric
Occurs when the population is finite and random sample taken without replacement
The formula is constructed of 3 combinations (total combinations, nonconforming combinations, and conforming combinations):
C C P( d ) C
D d
N D nd N n
P(d) = prob of d nonconforming units in a sample of size n. N = number of units in the lot (population) n = number of unit in the sample. D = number nonconforming in the lot d = number nonconforming in the sample N-D = number of conforming units in the lot n-d = number of conforming units in the sample
N n
C dD
N D nd
Example
A lot of 9 thermostats located in a container has 3 nonconforming units. What is probability of drawing one nonconforming unit in a random sample of 4? Lot
Sample
nonconforming unit
conforming unit
N = 9, D = 3, n = 4 and d = 1
C C P( d ) C
D d
N D nd N n
Similarly, P(0) = 0.119, P(2) = 0.357, P(3) = 0.048. P(4) is impossible- only 3 nc units. The sum probability: P(T) = P(0) + P(1) + P(2) + P(3) = 0.119 + 0.476 + 0.357 + 0.048 = 1.000
Some solutions require an or less or or more probability. P(2 or less) = P(2) + P(1) + P(0) P(2 or more) = P(T) P(1 or less) = P(2) + P(3) +
Binomial
n(n 1) n 2 2 n ( p q) p np q p q ... q 2
n n n 1
This is applicable to the infinite number of items or have steady stream of items coming from a work center. The binomial is applied to problem that have attributes, such as conforming or nonconforming, success or failure, pass or fail. Binomial expansion:
p = prob. an event such as a nonconform q = 1-p = prob. nonevent such as conform n = number of trials or the sample size Since p = q, the distribution is symmetrical regardless of the value of n. When p q, the distribution is asymmetrical. In quality work p is the proportion or fraction nonconforming and usually less than 0.15.
P(d)= prob. of d nonconforming n = number of sample d = number nonconforming in sample po = proportion(fraction) nc in the population qo = proportion(fraction) conforming (1-po) in the population
Example
A random sample of 5 hinges is selected from steady stream of product, and proportion nc is 0.10. What is the probability of 1 nc in the sample? What is probability of 1 or less? What is probability of 2 or more? qo = 1-po = 1.00 - 0.10 = 0.90
Poisson
that involve observations per unit time (eg. count of car arriving at toll in 1 min interval). That involve observations per unit amount (eg. count nonconformities in 1000 m2 of cloth) .
Poisson
(npo ) npo P (c ) e c!
Poisson
Suppose that average count of cars that arrive a toll booth in a 1-min interval is 2, then calculations are:
(2)1 2 (2) 2 2 P(1) e 0.271 P(2) e 0.271 1! 2! (2) 4 2 (2) 5 2 P(4) e 0.090 P(5) e 0.036 4! 5! ( 2) 7 2 P (7 ) e 0.003 7!
Poisson
The probability of zero cars in any 1-min interval is 0.135. The probability of one cars in any 1-min interval is 0.271. The probability of two cars in any 1-min interval is 0.271. The probability of three cars in any 1-min interval is 0.180. The probability of four cars in any 1-min interval is 0.0.090. The probability of five cars in any 1-min interval is 0.036. .