My Avatar

LanternD's Castle

An electronics enthusiast - survive technically

STT 861 Theory of Prob and STT I Lecture Note - 2

2017-09-13

Some of the basic probability and statistics concepts. joint probabilities, combinatories; conditional probabilities and independence and their examples; Bayes' rule.

Portal to all the other notes

Lecture 02 - Sept 13 2017

Recall: If A & B are 2 disjoint events, then P[AB]=P[A]+P[B], P[AB]=P[A]P[B].

If AB, then P[AB]=P[A]P[B]P[AB].

General formula (“inclusion-exclusion formula”)

P[A1A2...An]=J{1,2,...,n}(1)|J|1jJAj

Example 1

Weather data for 2 consecutive days in some month in some location. We aggregate this data and find: ‘R1 is rain on 1st day’, ‘R2 is rain on 2nd day’. P[R1]=0.6,P[R2]=0.5,P[R1R2C]=0.2. Find P[R1R2] and P[R1R2].

Answer:

P[(R1R2C)(R1R2)]=P[R1].

P[R1R2C]+P[R1R2]=P[R1]P[R1R2]=0.4

P[R1R2]=P[R1]+P[R2]P[R1R2]=0.6+0.50.4=0.7

Example to introduce the use of some combinatories

Form a jury with 6 people. We choose from a group with 8 men & 7 women. Find the prob that there are exactly 2 women in the selected jury.

Need an assumption about the relative prob. of people being picked: 6/15. Every one has equal chance of being picked.

P=({# of ways to pick exactly 2 women})/({# of ways to pick 6 out of 15})

(C72×C84)/C156

(tree idea)

(Nn)=N!n!(Nn)!

C156=5005

numerator=21×70=1470

P=1470/5005=0.2937


After the break.

Chapter 1.3 Conditional prob. & independence

Definition: A & B are independence events, if P[AB]=P[A]×P[B].

The definition comes from the definition of conditional prob.

Definition: Let A & B be two events. The conditional prob of B given A denoted by P[B|A], is P[AB]/P[A].

Note: if P[B|A]=P[B] (given information of A does not affect/influence the chance of B), then the definition is proven.

Example 2

P[disease]=0.006. Test: positive vs negative. P[positive|dissease]=0.98 (sensitivity). P[pos|nodisease]=0.01.

Q1: Find prob P[pos].

P[pos]=P[posdisease]+P[negnodisease]

P[pos|disease]=P[posdisease]/P[disease]

P[posdisease]=0.98×0.006

similarly, P[negno disease]=(10.99)×(10.006)

P[pos]=0.98×0.006+(10.99)×(10.006)=1.582%

Q2: Find P[dis|pos].

P[dis|pos]=P[dispos]/P[pos]=0.00588/0.01582=0.3717

The law of total probabilities:

Let A1,A2,,An be a partition of Ω. (Ai are all mutually incompatible, and Ai=Ω)

then for any BΩ, P[B]=iP[B|Ai]P[Ai].

Try to prove it at home.

Bayes’ rule

P[A|B]=P[AB]P[B|A]P[A]+P[B|AC]P[AC]=P[B|A]×P[A]/P[B]

denominator: from law of total prob when n=2, A1=A,A2=AC

General Bayes’ Rule:

For every fixed i:

P[Ai|B]=P[B|Ai]P[Ai]j=1nP[B|Aj]P[Aj]

Role of different pieces of information in the formula:

At home, relate disease example problem to Bayes’ rule.



Disqus Comment 0