Chap 01
Chap 01
Chapter 1
Experiments, Models, and
Probabilities
Chien-Kang Huang ( 黃乾綱 )
臺大工科海洋系
1
Before the Class
• Read the “A Message to Students from the Authors” in
Preface.
2
Outline
1.1 Set Theory
1.2 Applying Set Theory to Probability (1.1, 1.4)
1.3 Probability Axioms (1.2)
1.4 Some Consequences of the Axioms (1.2)
1.5 Conditional Probability (1.3)
1.6 Independence (1.5)
1.7 Sequential Experiments and Tree Diagrams (2.1)
1.8 Counting Method (2.2)
1.9 Independent Trials (2.3)
1.10 Reliability Problems
3
Getting Started with Probability
• The probability of an event is a number between 0 and 1.
– The proportion of times we expect a certain thing to happen.
4
Three purposes served by this book
• It introduces students to the logic of probability theory
• It helps students develop intuition into how the theory applies
to practical situations.
• It teaches students how to apply probability theory to solving
engineering problems.
5
Logic of the subject
• Definitions:
– Establish the logic of probability theory
• Axioms:
– facts that we accept without proof.
• Theorems:
– Consequences that follow logically from definitions and axioms
– Each theorem has a proof.
6
1.1 Set Theory
7
Terminologies and Symbols
• Terms:
– set, element, subset, universal set, null set (),
union, intersection, complement, differences,
mutually exclusive, collectively exhaustive.
• Symbols:
Symbols Usage
xA
cA
{} {all the students in this room}
| C = {x2 | x = 1, 2, 3, 4, 5}
… D ={x2 | x = 1, 2, 3, 4, 5, …}
CD
= A = B iff B A and A B
For any set A, A 8
Venn Diagram
AB
– http://en.wikipedia.org/wiki/If_and_only_if
9
Venn Diagram
AB AB
A
Ac
x A B x A B
x Ac x A
x A or x B x A and x B
Three operations
10
Venn Diagram
A–B A1 A2
A
A5
B
A4 A3
A B A BC
BC S B 11
Shorthands
• Shorthand for unions and intersections of n sets:
A A A
i 1
i 1 2 An
n
A A A
i 1
i 1 2 An
12
Theorem 1.1 De Morgan’s Law
13
Quiz 1.1
14
Quiz 1.1 Solution
15
1.1
16
Page 4
Terminologies
• Probability is a number that describe a set. The higher the
number, the more probability there is.
• The basic model is a repeatable experiment. An experiment
consists of a procedure and observations. There is
uncertainty in what will be observed.
• For the most part, we will analyze models of actual physical
experiments. We create models because real experiments
generally are too complicated to analyze.
• We often will use the word experiment to refer to the model of
an experiment.
17
Example 1.1 ~ 1.3
18
Definition 1.1, 1.2, 1.3
20
Example 1.5
21
Example 1.6
22
Example 1.7
23
Example 1.8
The set of events {G2, R2} is both mutually exclusive and collectively exhaustive.
However, {G2, R2} is not a sample space for the experiment because the
elements of the set do not completely describe the set of possible outcomes of
the experiment. The set {G2, R2} does not have the finest-grain property.
24
Example 1.9
25
Example 1.10
26
Theorem 1.7, Figure 1.1, Page 15
27
Example 1.14
Example 1.11
28
Quiz 1.2
29
Quiz 1.2 Solution
30
1.3 Probability Axioms
31
Definition 1.4
Definition 1.5
33
Theorem 1.4
Theorem 1.5
34
Comments on Notation
Notation Meaning
35
Example 1.12
36
Theorem 1.5
37
Example 1.13
38
Quiz 1.3
39
Quiz 1.3 Solution
40
1.4 Some Consequences of the
Axioms
41
Theorem 1.3
Theorem 1.7
42
Example 1.8
Theorem 1.8
43
Example 1.15
Example 1.14
44
Briefing in next page.
Example 1.14
• Model of telephone usage
– Time: long (l) > 3 mins, brief (b)
V D F
– Type: voice(v), data(d), fax(f) L 0.3 0.12 0.15
– Sample space S = {lv, bv, ld, bd, lf, bf} B 0.2 0.08 0.15
– Event symbol: L, B, V, D, F
45
Quiz 1.4
46
Quiz 1.4 Solution
47
Quiz 1.4 Solution (continued)
48
1.5 Conditional Probability
49
Prior Probability
• It is sometimes useful to interpret P[A] as our knowledge of
the occurrence of event A before an experiment takes place.
• Thus P[A] reflects our knowledge of the occurrence of A prior
to performing an experiment. Sometimes, we refer to P[A] as
the a priori probability, or the prior probability, of A.
50
Conditional Probability
• In many practical situations, it is not possible to find out the
precise outcome of an experiment. Rather than the outcome
si, itself, we obtain information that the outcome is in the set B.
• Conditional probability describes out knowledge of A when we
know that B has occurred but we still don’t know the precise
outcome.
• Notation: P[A|B] : “the probability of A given B”
51
Example 1.9
Example 1.15
52
Briefing in next page.
Example 1.15
• Testing two ICs come from the same silicon wafer.
• Observing: accepted (a), rejected (r)
• Sample space: S = {rr, ra, ar, aa}
• Event B = {first chip tested is rejected} = {rr, ra}
• Event A = {second chip tested is rejected} = {rr, ar}
53
Definition 1.5
Definition 1.6
54
Theorem 1.6
Theorem 1.9
55
Example 1.10
Example 1.16
Go to Example 1.15 56
Example 1.16 Solution
57
Example 1.17
58
Example 1.17 Solution
59
Example 1.11
Example 1.18
60
Example 1.18 Solution
61
Theorem 1.9
62
Example 1.16
Example 1.19
63
Briefing in next page.
Example 1.19
• Three machines B1, B2, and B3 for making 1k resistors.
– B1: 80% of resistors are within 50 of the nominal value.
3000 resistors per hour.
– B2: 90% of resistors are within 50 of the nominal value.
4000 resistors per hour.
– B3: 60% of resistors are within 50 of the nominal value.
3000 resistors per hour.
64
Example 1.19 Solution
65
Theorem 1.10
66
Example 1.17
Examples 1.20
67
Example 1.20 Solution
68
Quiz 1.3
Quiz 1.5
69
Quiz 1.5 Solution
70
1.6 Independence
71
Definition 1.6
72
Example 1.21
• R2 = {rrr, rrg, grr, grg}, R1 = {rgg, rgr, rrg, rrr}, R2 R1 = {rrg, rrr}
P[R2R1] = P[R2]P[R1] ?
73
Example 1.21 Solution
74
Example 1.19
Example 1.22
75
Briefing in next page.
Example 1.22
• ICs undergo two test
• Mechanical test (detect the spacing between pins)
• Electrical test (check the input/output relationship)
• We assume that electrical failures and mechanical failures
occur independently.
• Probability of mechanical failures = 0.05
• Probability of electrical failures = 0.2
• What is the probability model?
76
Example 2.2 Solution
77
Definition 1.7
Definition 1.8
78
Example 1.20
Example 1.23
79
Definition 1.8
Definition 1.9
80
Quiz 1.5
Quiz 1.6
81
Quiz 1.6 Solution
82
Quiz 1.6 Solution (continued)
83
2.1
84
Subexperiments and Tree Diagram
• Many experiments consist of a sequence of subexperiments.
Summation is 1
Conditional probability
85
Example 2.1
Example 1.24
86
Example 1.24
• For the resistors of Example 1.19
• A: a randomly chosen resistor is “within 50 of the nominal
value.”
• Two-step procedure for testing a resistor.
– First, identify which machine (B1, B2, or B3) produced the resistor.
– Second, we find out if the resistor is acceptable.
87
Example 2.2
Example 1.25
88
Example 1.25 Solution
89
Example 1.25 Solution (continued)
90
Example 1.26
91
Example 1.26 Solution
92
Example 1.27
93
Example 1.27 Solution
94
Quiz 2.1
Quiz 1.7
95
Quiz 1.7 Solution
96
2.2
97
Theorem 2.1
Definition 1.10 Fundamental Principle of
Counting
k
n
i 1 i outcomes.
98
Example 2.5
Example 1.28
99
Example 1.29
100
Example 1.30
101
Theorem 2.2
102
Sampling without Replacement
• Replace choosing objects from a collection is also called
sampling, and the chosen objects are know as a sample.
• Picking a subset of the collection of objects, each subset is
called k-combination.
n
• Notation: read as “n choose k”
k
n
n k k!
k
103
Theorem 2.3
Theorem 1.13
• Observation n k
n n! n
k
k! k!n k ! n k
104
Definition 2.1
105
Example 2.8
Example 1.31
106
Example 2.9
Example 1.32
107
Theorem 2.4, 2.5
Sampling with Replacement
Theorem 1.14, 1.15
108
Example 2.11, 2.12
109
Example 1.37
110
Example 2.14
Example 1.38
111
Theorem 2.6, 2.7
112
Theorem 1.17 Proof
113
Theorem 1.17
• For n repetitions of a subexperiment with sample space S =
{s0, …, sm-1}, the number of length n = n0 + … + nm-1
observation sequences with si appearing ni times is
n n!
n0 ,, nm 1 n0! n1! nm 1!
Proof
n n n0 n n0 n1 n n0 nm 2
M
n0 n1 n2 nm1
n! n n0 !
n n0 nm 2 !
n0! n n0 ! n1! n n0 n1 ! nm1! n n0 nm1 !
= 0! = 1
114
Definition 2.2
115
Quiz 2.2
Quiz 1.8
116
Quiz 1.8 Solution
117
2.3
118
Theorem 2.8, Example 2.16
Theorem 1.18
119
Example 1.39 Solution
120
Example 2.17
Example 1.40
121
Example 1.41
122
Example 1.41 Solution
123
Theorem 2.9
Theorem 1.19
124
Example 2.18
Example 1.42
125
Example 1.43
126
Quiz 2.3
Quiz 1.9
127
Quiz 1.9 Solution
128
1.10 Reliability Problems
129
Reliability Problem
• The operation consists of n components and each component
succeeds with probability p, independent of any other
component. Let Wi denote the event that component i
succeeds.
• Components in series
– The operation succeeds if all of its components succeed.
PW PW1W2 Wn p p p p n
• Components in parallel
– The operation succeeds if any of its components succeed.
P W c P W1cW2c Wnc 1 p
n
PW 1 P W c 1 1 p
n
130
Figure 1.3
p p p pn
PW 1 P W c 1 1 p
n
131
132
Example 1.44
133
Example 1.44 Solution
134
Quiz 1.10
135
Quiz 1.10 Solution
136