Chapter 2 - Basic Probability: 10% Defective 90% OK
Chapter 2 - Basic Probability: 10% Defective 90% OK
10% defective
90% OK
Defective
Non-defective
P(defective) = 0.1
P(non-defective) = 0.9
Non-def.
Machine 1 produces 0.6 (60%) of the items Machine 2 produces 0.4 (40%) of the items 0.2 (20%) of the items are Defective 0.8 (80%) of the items are Non-defective
Total Probability: combine all possible events for a particular outcome Machine 1 Defect. Non-def. Machine 2
0.1
0.1
0.2
0.5
0.6
0.3
0.4
0.8
1.0
Law of total probability: P(defective) = P(defective & machine 1) + P(defective & machine 2)
0.1 0.3
0.2 0.8
0.4
1.0
Conditional probability: Given the item is from Machine 1 ... 1/6 defective
Machine 2
0.1 0.3
0.4
0.2 0.8
1.0
Machine 2
0.1 0.3
0.4
0.2 0.8
1.0
P(machine 1 | defective) =
Machine 2
0.1 0.5
0.2 0.8
1.0
0.6
P(non-defective | machine 2) =
Compound Events: combination of two or more simple events Machine 1 Defect. Machine 2
0.1 0.5
Non-def.
0.6
10
Machine 1 Defect.
Non-def.
Machine 2
0.1 0.3
0.4
0.2 0.8
1.0
Ingredients: Taking Machine first, P( Machine 1) = 0.6 Then, given Machine 1, P( Defective | machine 1)= 1/6
11
Compound Events: Probabilities P( Machine 1 & Defective) = P( Machine 1) P(Defective | Machine 1) = 0.6 1/6 = 0.1
12
Example:
13
Example:
Any
364 365
363 365
362 365
356 365
14
Example:
356 365
= P(none share a birthday) = 0.883 1 0.883 = 0.117 P(at least 2 share a birthday) = ??
15
Example:
No. of People
10
20 30 40 50 60
0.117
0.411 0.706 0.891 0.970 0.994
16
P( three cars in a row of same brand) = ?? = P(2nd car same) P(3rd car same | 2nd car same) = 0.6 0.9 = 0.54
17
Example: Suppose 65% of people have a mobile phone, 25% have cable TV and 20% have both. What percentage have either? Phone Yes No Yes Cable No Total 0.65
Total
18
Example: Suppose 65% of people have a mobile phone, 25% have cable TV and 20% have both. What percentage have either? Phone Yes No Yes Cable No Total 0.65 Total 0.25
19
Example: Suppose 65% of people have a mobile phone, 25% have cable TV and 20% have both. What percentage have either? Phone Yes No 0.20 Total 0.25
0.65
20
Example: Suppose 65% of people have a mobile phone, 25% have cable TV and 20% have both. What percentage have either?
Phone Yes No
0.05
0.30 0.35
21
Example: 75% of your customers are satisfied with the service and 60% are aged 50 years or more. One third of the customers who are satisfied are aged less than 50 years.
Satisfied Yes No
50 + Yes No Total 0.75
Total
22
Example: 75% of your customers are satisfied with the service and 60% are aged 50 years or more. One third of the customers who are satisfied are aged less than 50 years. Satisfied Yes No 50 + Yes No Total Total 0.60
0.75
23
Example: 75% of your customers are satisfied with the service and 60% are aged 50 years or more. One third of the customers who are satisfied are aged less than 50 years. Satisfied Yes No 50 + Yes No Total 0.25 Total 0.60
0.75
24
Example: 75% of your customers are satisfied with the service and 60% are aged 50 years or more. One third of the customers who are satisfied are aged less than 50 years. Satisfied Yes No 0.50 0.10 0.15 0.25 Total 0.60 0.40 1.00
50 +
0.75
25
Example: A technical process has an 80% chance of succeeding if carried out by company A, but only a 60% chance if carried out by B. Company A is used 90% of the time. What is the probability overall that the process succeeds? Succeeds Yes No Total 0.9 0.1 1.0
A CompanyB Total
26
Example: A technical process has an 80% chance of succeeding if carried out by company A, but only a 60% chance if carried out by B. Company A is used 90% of the time. What is the probability overall that the process succeeds? Succeeds Yes No Total 0.9 0.1 1.0
A CompanyB Total
27
Example: A technical process has an 80% chance of succeeding if carried out by company A, but only a 60% chance if carried out by B. Company A is used 90% of the time. What is the probability overall that the process succeeds? Succeeds Yes No 0.72 0.18 0.04 Total 0.9 0.1 1.0
28
Example: A technical process has an 80% chance of succeeding if carried out by company A, but only a 60% chance if carried out by B. Company A is used 90% of the time. What is the probability overall that the process succeeds? Succeeds Yes No 0.72 0.18 Total 0.9 0.1
0.04
0.22
1.0
29
Mutually exclusive events - when 2 or more events cannot both (all) occur. Examples:
30
<$20,000
$20,000-$40,000
>$40,000
Probs:
6/15
5/15
4/15
31
(Statistical) Independence When occurrence of one outcome does NOT alter the chance of another.
32
(Statistical) Independence When occurrence of one outcome does NOT alter the chance of another. Toss a Head with a coin Last toss was a Tail
33
(Statistical) Independence When occurrence of one outcome does NOT alter the chance of another. Person votes Yes in a referendum Persons sister votes Yes in the referendum
34
Most data analysis requires that each observation in the data is INDEPENDENT of the others. Examples: Collect a sample of income data Survey questions at shopping centres Defective/non-defective items from a process Independent events: probability rules If A and B are independent events:
35
Example
P(fail)
0.01
0.03
0.02
0.06
36
Example
A
0.01
0.03
0.02
0.06
P(no failure) = P(A no fail) P(system failure in any year) ? no fail) P(C no fail) = P(B P(D no fail) = (1-0.01) (1-0.03) (1-0.02) (1-0.06) = 0.885