



























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!




























































































This is math 170E taught by Professor Nguyen. The formal name of the class is Introduction to Probability and Statistics 1: Probability. The textbook used for the class is Probability & Statistical Interference 10 th^ by Hogg, Tanis. We meet weekly on MWF from 10:00 – 10:50 and on Tue at the same time frame for discussion with our TA, Jason Snyder. You can also find other lecture notes at my github. Let me know through my email if you notice something mathematically wrong/concerning. Thank you!
1 Lec 1: Oct 2, 2020 5 1.1 Properties of Probability............................. 5
2 Lec 2: Oct 5, 2020 7 2.1 Method of Enumeration............................. 8
3 Lec 3: Oct 7, 2020 10 3.1 Conditional Probability............................. 10
4 Lec 4: Oct 9, 2020 13 4.1 Independent Events............................... 13
5 Lec 5: Oct 12, 2020 15 5.1 Independent Events (cont’d)........................... 15 5.2 Bayes’s Theorem................................. 16
6 Lec 6: Oct 14, 2020 18 6.1 Random Variables with Discrete Type..................... 19
7 Lec 7: Oct 16, 2020 22 7.1 Lec 6 (Cont’d).................................. 22 7.2 Expectation & Special Math Expectations................... 24
8 Lec 8: Oct 19, 2020 27 8.1 Info about 1st^ midterm.............................. 27 8.2 Lec 7 (Cont’d).................................. 27
Definition 1.1 (Outcome Space) — Consider the outcome of a random experiment, e.g. flipping a coin. The collection of all such outcomes, denoted by (^) ︸︷︷︸S ω in other advanced prob. textbook , is called the outcome space.
⋃n i=1 Ai^ =^ A^1 ∪^ A^2 ∪^...^ ∪^ An^ =^ S. Then^ {Ai}i=1...n are called exhaustive(fully comprehensive).
Example 1.2 1. Flip two coins in order. Denote H = head, T = tail.
S = {HH, HT, T H, T T } A = {HH} = {both coins are head}
A ⊆ S is an event.
B = {HT, T H}
B ⊆ S is another event. A ∩ B = ∅, they are disjoint.
S = {HH, HT, T T } A = {one head, one tail} A = {HT } , is an event.
Probability – A heuristic intro: Consider an experiment and repeat n times. Let N (A) = number of times A occurs. The ratio N^ ( nA )is called the relative frequency of A in n repetitions of the experiment.
n
As n → ∞, N (A) n
→ p ∈ [0, 1]
This p is called the prob. that event A occurs.
Theorem 1.5 1. Denote A′^ to be the complement of A in S, i.e.
A′^ ∪ A = S A′^ ∩ A = ∅
Then P (A′) = 1 − P (A)
Note: The pattern here is add the prob. of odd event(s) and substract the prob. of even events.(for prop (4) and (5) of theorem 1.5).
Proof. P (A′) = 1 − P (A) Since A′^ ∩ A = ∅ (by def of A′^ ). By property (c),
P (A︸ ︷︷ ︸′^ ∪ A S
1(by prop.(b))
Thus, P (A′) = 1 − P (A)
Cont’d of Lec 1 (2)
P (∅) = 1 − P (S) = 1 − 1 = 0
(3) P (A) ≤ P (B)
B \ A is the set s.t.
A ∪ (B \ A) = B A ∩ (B \ A) = ∅ something here
implying P (A) ≤ P (B) (4) P (A ∪ B) = P (A) + P (B) − P (A ∩ B) (5) Textbook Section 1.1.
Definition 2.1 (“Equally Likely”) — Suppose S = {e 1 ,... , em} where each ei is a possible outcome. Denote n(s) = number of outcomes = m. If each ei has the same prob. of occurring, then they are called equally likely. In particular,
P (ei) =
n(s)
m
Moreover, if A ⊆ S is an event s.t. n(A) = k. Then,
n(A) n(s)
k m
Example 2. Draw one card from a deck of 52 cards.
P (each card is drawn) =
A = {a king is drawn}, so n(A) = 4. Thus,
n(A) n(S)
Multiplication Principle: Suppose an experiment E 1 has n 1 outcomes
Permutation of size n:
Practice 1 : https://ccle.ucla.edu/pluginfile.php/3766550/mod_resource/content/ 1/Practice%201.pdf
Thus, the number of 3 digit numbers can be formed is 8^3 b) “3 distinct digit numbers” = “permutation of size 8 taken 3” Thus, total such numbers is 8 P 3 = 8!5! = 8 · 7 · 6 c) Considering subset where order is not taken into account Combination of size 8 taken 3. Thus, the answer is ( 8 3
d) 3 digit numbers and divisible by 5
Thus, the total of choices is 8 · 8 = 64. e) 4 element subsets of S that has one even digit.
3
Thus, total = E 1 · E 2 = 4 ·
3
e’) What if “at least one even digit” instead of “exactly one even”?
Definition 3.1 (Conditional Probability) — Let A, B ⊆ S be two events. The condi- tional prob. of A, given that B has occurred with P (B) > 0, is defined as
A B
S
A ∩ B
A ∩ B
B
A heuristic explanation: A ∩ B: “the portion in B that A occurs”
“area of A in B” “area of B”
Example 3. Suppose my family has two kids. Given that there is at least a boy, what is the prob. my family has two boys? S = {bb,bg,gb,gg} Now, let B = { at least a boy}. So we only look at the first three outcomes from S (B). Define A = { two boys} A ∩ B = {bb} Note A = A ∩ B since A ⊆ B. Thus,
1 4 3 4
Note: We can also consider the alternative outcome space without order as follows
(b, b) − −
, (b, g) − −
, (g, g) − −
Fact 3.1. P (A|B) satisfies basic properties of probability:
Cont’d (Practice)
A = {spade} B = {heart} C = {diamond} D = {club} P = (A ∩ B ∩ C ∩ D =? So,
= P (A)P (B|A)P (C|A ∩ B)P (D|A ∩ B ∩ C)
(from problem 2 in practice 2)
(13 diamond from 50 cards left)
Hence, P (A ∩ B ∩ C ∩ D) =
Example 4. Flip a fair coin twice
S = { HH, HT , TH, TT} A =
1 stH^
2 ndT
C ⊆ B “2 tails” =⇒ “2nd is T”. i.e., if C occurs then B must have occurred. Thus,
P (B|C) = 1
P (A|B) =
1 4 1 2 =
Thus, P (A|B) = P (A), i.e., B occurring does not impact the occurrence of A.
Note also that P (A ∩ B) P (B)
implying P (A ∩ B) = P (A)P (B)
Definition 4.2 (Independent Events) — Given two events A, B which are called independents iff P (A ∩ B) = P (A)P (B)
Theorem 4. The following are equivalent
Proof. Left as an excercise.
Theorem 4.4 1. If P (A) = 0 then A is independent with any event.
A, B′^ A′, B A′, B′
Proof. 1. Let B an arbitrary event, we need to show P (A ∩ B) = P (A)P (B). Since P (A) = 0, P (A)P (B) = 0. A ∩ B ⊆ A
Definition 5.1 (Mutually Independent Events) — A, B, C are called “mutually inde- pendent” if followings hold:
P (A ∩ B) = P (A)P (B) P (B ∩ C) = P (B)P (C) P (A ∩ C) = P (A)P (C)
P (A ∩ B ∩ C) = P (A)P (B)P (C)
Note:analogous defn holds for A 1 ,... , An,... in which any pairs, triple, quadruple and so on must satisfy the similarly multiplication rules. Usually, the term “mutually” is dropped but it is understood that “independence” means “mutually independence”.
Remark 5.2. In general, pairwise independence does not imply triple-wise independence.
Practice 5.1. 2 – Problem 5:
A = { 1 , 2 } , B = { 1 , 3 } , C = { 1 , 4 }
P (A) = 24 = P (B) = P (C)
A ∩ B = { 1 } = B ∩ C = A ∩ C
P (A ∩ B) = P (B ∩ C) = P (C ∩ A) =
Thus,
P (A ∩ B) =
Same for B, C and A, C – so pairwise independent. Triple: A ∩ B ∩ C = { 1 } P (A ∩ B ∩ C) = 14 ; on the other hand, P (A)P (B)P (C) = 121212 = 18. They are not equal! Therefore, A, B, C are not mutually independent.
Definition 5.3 (Partition of Outcome Space) — The events B 1 ,... , Bn (n may be finite or ∞ ) are called a partition of the outcome space S if followings hold
⋃i= n Bi^ =^ S then, P (B 1 ) +... + P (Bn) = P (S) = 1
Theorem 5.4 (Law of total Probability) Suppose B 1 ,... , Bn is a partition of S with P (Bi) > 0 for i = 1,... , n. If A is an event in S, then P (A) =
∑^ n
i=
P (A|Bi)P (Bi)
where P (Bi) is called the prior probability.
Proof. (sketch)
i⋃=
n
(A ∩ Bi))
∑^ n
i=
P (A ∩ Bi)
∑^ n
i=
P (A|Bi)P (Bi)
Practice 5.2. 3 – problem 1:
P (I) =. 35 P (II) =. 25 P (III) =. 4
A = { a spring is defective} , P (A) =? We know
P (A|I) =. 02 P (A|II) =. 01 P (A|III) =. 03
By law of total prob:
P (A) = P (A|I)P (I) + P (A|II)P (II) + P (A|III)P (III) = 0. 0215
Theorem 5.5 (Bayes’s Theorem) Suppose {Bi}i=1,...,n is a partition of S with P (Bi) > 0. If A with P (A) > 0, then for all i = 1,... , n P (Bi|A) =
P (A|Bi)P (Bi) ∑n k=1 P^ (A|Bk)P^ (Bk) where P (Bi|A) is called posterior probability.
By Bayes’ Theorem
Example 6. Flip a coin S = {H, T} Define X : S → R 4 7 → X(s) ∈ R s.t. X(H) = 0, X(T ) = 1
The function X is called a random variable (RV). Since S is discrete space, X is called a RV of discrete-type.
Definition 6.2 (Random Variable) — Given an outcome space S, a function X that assigns X(s) = x ∈ R for each s ∈ S is called a random variable. The space(range) of X is the collection of real numbers, denoted by Sx,
Sx = {x ∈ R : ∃s ∈ S, X(s) = x}
Sx is also called the “support” of X. When the outcome space S is discrete, then X is called a discrete random variable.
Example above: Sx = { 0 , 1 } Note: the space of X is denoted by S in the textbook. Here we will use Sx.
Remark 6.3. Under the above definition, for x ∈ Sx, P (X = x) = P ({s ∈ S : X(s) = x})
Example 6.
Roll a fair dice
S = { 1 , 2 ,... , 6 } X : S → R s 7 → X(s) = x Sx = { 1 , 2 ,... , 6 } (= S)
For each k ∈ Sx,
P (X = k) = P ({k}) =
Also,
∑
k∈Sx
P (X = k) =
k=
Definition 6.5 (Probability Mass Function) — The probability mass function (pmf) f (x) of a discrete random variable X is a function satisfying the followings:
x∈Sx f^ (x) = 1.
x∈A
f (x)
Note: if x /∈ Sx, then we assign f (x) = 0(P (X = x) = 0).
Example 6.6 (above)
the pmf of X is given by f (k) = 16 for k = 1,... , 6
A = { 1 , 2 , 3 } = “X < 4” A ⊆ Sx
P (X ∈ A) =
k∈A
f (k) =
k=