probability and stats Flashcards

1
Q

Explain P(A)P(B) in plain English

A

The probability of independent events A and B occurring.

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

Explain P(A and B) in plain English

A

The probability of events A and B occurring together.

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

And rule for independence:

P(A and B) = ?

A

P(A and B) = P(A)* P(B)

assumes A, B are independent events

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

And rule for dependence

P(A and B) = ?

A

P(A and B) = P(A) * P(B | A)
P(A and B) = P(B) * P(A | B)

assumes A, B are dependent events

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

Are independent events are mutually exclusive?

A

No! Common fallacy. Independent events are NOT mutually exclusive!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
Or rule (generalized to mutually exclusive and non-mutually exclusive events):
P(a or b) =
A

P(a) + P(b) - P(a and b)

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

Or rule for mutually exclusive events:

P(a or b) = ?

A

P(a or b) = P(a) + P(b)

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

What’s the definition of conditional probability?

A

P(A | B) = P(A and B) / P(B)

probability of A given that B occurred
(only valid when P(B) > 0)

P(B) is the total outcome space. You know B happened, so you’re in that space, hence it’s the denominator.

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

P(A | B) = 0.2

What is P(~A | B)?

A

P(~A | B) = 0.8

Realize that you’re summing over outcomes for A, not B!

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

Conditionalized version of Bayes theorem in the context of general background evidence E:

P(X | Y, E) = ?

A

P(X | Y, E) = P(X | E) * P(Y | X, E) / P(Y | E)

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

Conditionalized version of marginalization in the context of general background evidence E:

P(X | E) = ?

A

P(X | E) = sum over y of P(X, Y = y | E)

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

What does the following statement mean in plain english?

P(X | Y, E) = P(X|E)

A

X is conditionally independent of Y given E

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

What does the following statement mean in plain english?

P(Y | X, E) = P(Y | E)

A

X is conditionally independent of Y given E

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

What does the following statement mean in plain english?

P(X, Y | E) = P(X | E) P(Y | E)

A

X is conditionally independent of Y given E

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

Marginal independence: produce 2 other equivalent statements that imply each other:

P(X|Y) = P(X)

A

P(X|Y) = P(X)
P(Y|X) = P(Y)
P(X, Y) = P(X) P(Y)

All imply each other.

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

Conditional independence: produce 2 other equivalent statements that imply each other:

P(X|Y, E) = P(X | E)

A

P(X|Y, E) = P(X | E)
P(Y | X, E) = P(Y | E)
P(X, Y | E) = P(X | E) P(Y | E)

17
Q

what’s a synonym for disjoint?

A

mutually exclusive

18
Q

what’s a synonym for mutually exclusive?

A

disjoint

19
Q

what does it mean when A is disjoint from B?

A

A and B cannot happen at the same time

20
Q

How do you determine if events A and B are mutually exclusive?

A

P(A and B) = 0

21
Q

Can you have a events A, B that are independent and disjoint of each other?

A

If at least one of the events has zero probability, then the two events can be mutually exclusive and independent simultaneously. Let A be the empty set, for example, and let B be any event. Then they are mutually exclusive (because their intersection is empty) and they are independent (because the probability of their intersection is equal to the product of their individual probabilities, which is zero).

However, if both events have non-zero probability, then they cannot be mutually exclusive and independent simultaneously. “Mutually exclusive” implies that the intersection of the two events has zero probability, but the events themselves have non-zero probabilities, so the product of their probabilities cannot be zero.

22
Q

Can you have a events A, B that are independent and NOT disjoint of each other?

A

Yes, of course

23
Q

Apply conditionalized bayes rule (flip C and D):

P(C|A,B,D) = …

A

Background evidence = A, B

P(C | A,B,D) = P(D | C,A,B) * P(C | A, B) / P(D | A, B)

24
Q

What is a prior probability?

A

a probability w/o conditions

e.g. P(A)

25
Q

What is a posterior probability?

A

a probability w/ conditions

e.g. P(A | B)

26
Q

(B) —–> (A)

Which node is parent and which is child?

A

B causes A. A is the child; B is the parent.

(parent) —-> (child)

A parent ‘causes’ the child

27
Q

Does independence imply conditional independence? Are they the same concept?

A

No.

https://math.stackexchange.com/questions/22407/independence-and-conditional-independence-between-random-variables

28
Q

Define Unigram model Pu(S)

where S is a sequence of letters

A

Pu(S) = Product from l=1 to L of P1(character in sequence at l)

29
Q

Define bigram model Pb(S)

where S is a sequence of letters

A

Pb(S) = Pu(character at l=1) * (Product from l=2 to L of P(l | l-1))

30
Q

How do you calculate bigram probability P(l | l-1) aka P(letter | prev_letter) ?

A

= count(letter l-1 followed by l) / count(letter l-1 followed by any letter)

31
Q

S = “aabbaa”

Calculate bigram probability P(letter = a | prev letter = a)

A

Since S = “aabbaa”,

P(letter = a | prev letter = a) = count(a followed by a) / count(a followed by any letter) = 2/3

Notice the denominator is 3, not 4 even though there are 4 occurrences of a. The reason is because the ‘a’ in the last index of the sequence S is not followed by anything. We don’t count it.

In HW4 bigram programming example, Saul processed the dataset such that we had an end-of-sentence terminator to simplify our work for us (didn’t have to count for this effect).