Docsity

Math 170E – Intro to Probability, Study notes of Probability and Statistics

Toggle sidebar
bg1
Math 170E – Intro to Probability
University of California, Los Angeles
Duc Vu
Fall 2020
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!
Contents
1 Lec 1: Oct 2, 2020 5
1.1 Properties of Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2 Lec 2: Oct 5, 2020 7
2.1 MethodofEnumeration ............................. 8
3 Lec 3: Oct 7, 2020 10
3.1 Conditional Probability . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
4 Lec 4: Oct 9, 2020 13
4.1 IndependentEvents ............................... 13
5 Lec 5: Oct 12, 2020 15
5.1 Independent Events (cont’d) . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
5.2 Bayes’sTheorem ................................. 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 Lec6(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 Lec7(Cont’d) .................................. 27
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b
pf3c
pf3d
pf3e
pf3f
pf40
pf41
pf42
pf43
pf44
pf45
pf46
pf47
pf48
pf49
pf4a
pf4b
pf4c
pf4d
pf4e
pf4f
pf50
pf51
pf52
pf53
pf54
pf55
pf56
pf57
pf58
pf59
pf5a
pf5b
pf5c
pf5d
pf5e
pf5f
pf60
pf61
pf62
pf63

Partial preview of the text

Download Math 170E – Intro to Probability and more Study notes Probability and Statistics in PDF only on Docsity!

Math 170E – Intro to Probability

University of California, Los Angeles

Duc Vu

Fall 2020

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!

Contents

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

Duc Vu (Fall 2020) Contents

  • 9 Lec 9: Oct 21,
    • 9.1 Binomial Distribution
  • 10 Lec 10: Oct 23,
    • 10.1 Practice 6 Problem
    • 10.2 Hypergeometric Distribution
  • 11 Lec 11: Oct 26,
    • 11.1 Negative Binomial Distribution
    • 11.2 Poisson Distribution
  • 12 Lec 12: Oct 28,
    • 12.1 Lec 11 (Cont’d)
    • 12.2 Binomial Distribution Approximation by Poisson Distribution
    • 12.3 Random Variable of Continuous Type
  • 13 Lec 13: Oct 30,
    • 13.1 Random Variable of Continuous Type (Cont’d)
  • 14 Midterm 1: Nov 2,
  • 15 Lec 14: Nov 4,
    • 15.1 Exponential Distribution
    • 15.2 Poisson Process
    • 15.3 Gamma Distribution
  • 16 Lec 15: Nov 6,
    • 16.1 Chi – Squared Distribution
    • 16.2 Normal Distribution
  • 17 Lec 16: Nov 9,
    • 17.1 Random Variable of Mixed Type
    • 17.2 Weibull Distribution
  • 18 Veterans Day: Nov 11,
  • 19 Lec 17: Nov 13,
    • 19.1 Bivariate Distribution of Discrete Type
  • 20 Lec 18: Nov 16,
    • 20.1 Correlation Coefficient
    • 20.2 Conditional Distribution
  • 21 Lec 19: Nov 18,
    • 21.1 Lec 18 (Cont’d)
    • 21.2 Conditional Expectation as a Random Variable
  • 22 Lec 20: Nov 20,
    • 22.1 Continuous Bivariate Random Variable
  • 23 Lec 21: Nov 23, Duc Vu (Fall 2020) List of Definitions
    • 23.1 Lec 20 (Cont’d)
    • 23.2 Independence
    • 23.3 Conditional Expectation
  • 24 Lec 22: Nov 25,
    • 24.1 Lec 21 (Cont’d)
    • 24.2 Bivariate Normal Distribution
    • 24.3 Functions of One Dimension RV
  • 25 Lec 23: Nov 30,
    • 25.1 Lec 22 (Cont’d)
    • 25.2 Transformations of 2 Random Variables
  • 26 Lec 24: Dec 2,
    • 26.1 Change of Variable Techniques to find pdf
    • 26.2 Several Random Variables
  • 27 Lec 25: Dec 4,
    • 27.1 MGF Technique
  • 28 Lec 26: Dec 7,
    • 28.1 Random Functions Associated with Normal Distributions
  • 29 Lec 27: Dec 9,
    • 29.1 Central Limit Theorem
  • 30 Lec 28: Dec 11,
    • 30.1 Chebyshev’s Inequality & Convergence in Probability
    • 1.1 Outcome Space List of Definitions
    • 1.4 Probability
    • 2.1 “Equally Likely”
    • 2.3 Permutation of n objects
    • 2.4 Permutation/Combination of size n taken k
    • 3.1 Conditional Probability
    • 4.2 Independent Events
    • 5.1 Mutually Independent Events
    • 5.3 Partition of Outcome Space
    • 6.2 Random Variable
    • 6.5 Probability Mass Function
    • 6.7 Cumulative Distribution Function
    • 7.2 Mathematical Expectation
    • 7.5 Mean, Variance, & Standard Deviation
    • 8.1 Moment Generating Function
    • 8.5 nth Moment
    • 9.1 Bernoulli Trial
  • 9.3 Bernoulli Random Variable Duc Vu (Fall 2020) List of Definitions
  • 9.5 Binomial Distribution
  • 11.1 Negative Binomial Distribution
  • 11.3 Poisson Distribution
  • 13.1 Probability Density Function
  • 13.3 Percentile
  • 15.1 Exponential Distribution
  • 15.4 Poisson Process
  • 15.5 Gamma Distribution
  • 16.1 Chi – Squared Distribution
  • 16.2 Normal Distribution
  • 17.1 Weibull Distribution
  • 19.1 Joint pmf
  • 19.3 Marginal Pmf
  • 19.5 Independent for Multivariable
  • 19.8 Expectation for Multivarible
  • 20.1 Covariance – Correlation Coefficient
  • 20.4 Conditional pmf
  • 21.1 Conditional Expectation
  • 21.5 Conditional Expectation as a RV
  • 23.1 Independent Continuous Bivariate RV
  • 26.1 Independent and Identically Distributed Sequence
  • 28.1 Sample Mean & Sample Variance
  • 29.1 Converge in Distribution
  • 30.5 Convergence in Probability

§ 1 L e c 1 : O c t 2 , 2 0 2 0

§ 1. 1 P r o p e r t i e s o f P r o b a b i l i ty

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.

  • A subset A ⊆ S is called an event.
  • If A 1 , A 2 ,... ⊆ S satisfy Ai ∩ Aj = ∅, i 6 = j then they are called “disjoint” (mutually exclusive)
  • If A 1 , A 2 ,... , An ⊆ satisfy

⋃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.

  1. Flip 2 coins at once.

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 (A)

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)

  1. P (∅) = 0
  2. If A ≤ B then P (A) ≤ P (B)
  3. P (A ∪ B) = P (A) + P (B) − P (A ∩ B)
  4. P (A ∪ B ∪ C) = P (A) + P (B) + P (C) − P (A ∩ B) − P (B ∩ C) − P (A ∩ C) + P (A ∩ B ∩ C)

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

) = P (A′) + P (A)
P (S)

1(by prop.(b))

= P (A′) + P (A)

Thus, P (A′) = 1 − P (A)

§ 2 L e c 2 : O c t 5 , 2 0 2 0

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,

P (A) =

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,

P (A) =

n(A) n(S)

§ 2. 1 M e t h o d o f E nu m e r a t i o n

Multiplication Principle: Suppose an experiment E 1 has n 1 outcomes

  • For each outcome from E 1 , a 2nd^ experiment E 2 has n 2 outcomes. Then the composite E 1 E 2 has n 1 · n 2 outcomes.

Permutation of size n:

Practice 1 : https://ccle.ucla.edu/pluginfile.php/3766550/mod_resource/content/ 1/Practice%201.pdf

  1. Consider S = { 1 ,... , 8 } a) - E 1 = filling 1st^ pos =⇒ 8 choices. - Same for E 2 =⇒ 8 choices. - Likewise, E 3 has 8 choices.

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

  • E 1 = choose 5 for the 3rd^ pos, so 1 choice.
  • E 2 = 8 choices
  • E 3 = 8 choices

Thus, the total of choices is 8 · 8 = 64. e) 4 element subsets of S that has one even digit.

  • E 1 = choose one even digit from S, so 4 choices (2,4,6,8).
  • E 2 = choose 3 digits from { 1 , 3 , 5 , 7 } without order, so

3

Thus, total = E 1 · E 2 = 4 ·

3

e’) What if “at least one even digit” instead of “exactly one even”?

  1. Total = exactly “one even” + “two even” + “three even” + “four even”
  2. Total = “4-element subset” - “4-element subset with no even digit”

§ 3 L e c 3 : O c t 7 , 2 0 2 0

§ 3. 1 C o n d i t i o n a l P r o b a b i l i ty

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

P (A|B) =
P (A ∩ B)
P (B)

A B

S

A ∩ B

A ∩ B

B

A heuristic explanation: A ∩ B: “the portion in B that A occurs”

P (A|B) =

“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,

P (A|B) =
P (A ∩ B
P (B)

1 4 3 4

Note: We can also consider the alternative outcome space without order as follows

S =

(b, b) − −

, (b, g) − −

, (g, g) − −

Fact 3.1. P (A|B) satisfies basic properties of probability:

  • P (A|B) ≥ 0

§ 4 L e c 4 : O c t 9 , 2 0 2 0

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)

  • P (A) = (^1352)
  • P (B|A) =, now restricted to outcome space {51 cards in cluding 13 hearts} B|A = { dealing a heart}. Thus, P (B|A) =
  • Similarly, P (C|A ∩ B) =

(13 diamond from 50 cards left)

  • P (D|A ∩ B ∩ C) = 1349 (13 clubs from 49 cards left).

Hence, P (A ∩ B ∩ C ∩ D) =

§ 4. 1 I n d e p e n d e nt E ve nt s

Example 4. Flip a fair coin twice

S = { HH, HT , TH, TT} A =

1 stH^

B =

2 ndT

C = {TT}

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) =

P (A ∩ B)
P (B)

1 4 1 2 =

P (A) =

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)

= P (A|B) = P (A)

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

  • A, B are independent
  • P (A|B) = P (B), provided P (B) > 0
  • P (B|A) = P (B), provided P (A) > 0

Proof. Left as an excercise.

Theorem 4.4 1. If P (A) = 0 then A is independent with any event.

  1. If A and B are independent then so are the following pairs:

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:

  • pairwise independent

P (A ∩ B) = P (A)P (B) P (B ∩ C) = P (B)P (C) P (A ∩ C) = P (A)P (C)

  • “triple” wise independent, i.e.,

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) =

= P (A)P (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.

§ 5. 2 B aye s ’ s T h e o r e m

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

  • disjoint: Bi ∩ Bk = ∅, i 6 = k
  • exhausted:

⋃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)

P (A) = P (

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.

• P (A|BG) = 12

By Bayes’ Theorem

P (GG|A) =
P (A|GG)P (GG)
P (A|GG)P (GG) + P (A|BB)P (BB) + P (A|BG)P (BG) + P (A|GB)P (GB)

§ 6. 1 R a n d o m Va r i a b l e s w i t h D i s c r e t e Ty p e

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

X
H
T

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) =

∑^6

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:

  • f (x) > 0 , x ∈ Sx.

x∈Sx f^ (x) = 1.

  • If A ⊆ Sx, P (X ∈ A) =

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) =

∑^3

k=