6 - Probability and Bayes Theorem Flashcards

1
Q

Consider r and b as boxes.

r has 6 o and 2 a
b has 1 o and 3 a

P(B=r) = 4/10
P(B=b) = 6/10

Notice that it is not 50/50

Why is it not 50/50?

A

Models must account for biases that are given

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Consider r and b as boxes.

r has 6 o and 2 a
b has 1 o and 3 a

What is the probability of picking an a from r or b?

A

r would be 1/4
b would be 3/4

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Consider r and b as boxes.

r has 6 o and 2 a
b has 1 o and 3 a

Given that we picked an o, what is the probability of the box being b?

A

Hard to answer

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Consider X and Y are random variables.

X can take any values xi where i =1…M

Y can take any yj where j = 1,….L

Consider a total N trials, how could you represent it?

A

Create a grid where rows are Y (or X) and columns are X (or Y).

Each slot in the grid nij means X=xi and Y = yj

Ci would be the number of times X is xi
Rj would be times Y takes yi

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Joint Probability of X=xi and Y=yj

A

(nij)/N where N is the number of trials

P(X=xi,Y=yj) = (nij)/N

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Probability of X=xi, irrespective of Y

A

p(X=xi) = (ci)/N where N is number of trials

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Sum Rule (from X, Y and N)

Probabilities not gradients

A

p(X) = sum(j=1->Y)(p(X,Y))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Marginal Probability

A

P(X=xi)

(and maybe p(Y=yj)?)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Probability of Y=yj, irrespective of X

A

p(Y=yj) = (rj)/N where N is the number of trials.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Conditional Probability.

ie X=xi given that Y=yj
Give both the P notation and grid notation

A

p(X=xi|Y=yj)

From the grid = (nij)/(rj)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

product rule

A

p(X,Y)

p(Y|X)p(X) or p(X|Y)p(Y)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Bayes Theorem (not expanded)

A

p(Y|X) = (p(X|Y)p(Y))/p(X)
p(X|Y) = (p(Y|X)p(X))/p(Y)

(product rule rewritten)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Bayes Theorem Expanded

A

p(Y|X) = p(X|Y)p(Y)/(sum(1->Y)(p(X|Y)p(Y)))

p(X|Y) = p(Y|X)p(X)/(sum(1->X)(p(Y|X)p(X))) ????

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Prior Probability

A

If a red box is 4/10 probability and the blue is 6/10

The prior probability favours the blue

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Posterior Probability

If a red box is 4/10 probability and the blue is 6/10
but the red box has more oranges and an orange is selected then…

A

the posterior probability favours the red box

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

X and Y are independent if

A

P(x,Y) = p(X)*p(Y)

17
Q

Test is 99% effective in detection. 1% false positive rate.

If 0.1% of pop has disease what is the prob that positive test means disease?

A

9%
D = person has the disease
E = pos test
Dc = person does not have

P(D|E) = p(E|D)p(D)/p(E) = p(E|D)p(D)/(p(E|D)p(D)+p(E|Dc)p(Dc)) = 0.09 BECAUSE the disease is not common.