Probability Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

(S,P)

A

The sample space S of all elementary events x E S ; also called outcomes of experiment
A probability distribution P assigns a real number P(x) to every elementary event x E S such that ; Should all add up to one AND should not exceed one or go below zero

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

Event

A

Event is a subset of the sample space S -> probability is sum of the probabilities of each one.

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

Probability Distribution - uniform

A

A probability distribution is uniform if all outcomes are equally likely -> P(x) = 1/|S| to represent this (cardinality).

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

Heads and Tails:

A

S = {H, T}
P(H) = P(T) = 1/2

S = {HH, HT, TH, TT}
P(HH) = P(HT) = P(TH) = P(TT) = 1/4

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

Dice: (roll n amount of times)

A

S = {1,2,3,4,5,6}
P(S) = for every x in S : P(x) = 1/6

S = {1,…,6} -> {1,…,6}^n
P(x) = 1/(6^2), since S has 6^n elements

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

P(E) (dice):

A

Number of sequences containing 6 / 6^3 if E was rolling at least one 6 in three turns.

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

¬E = P without E

A

Then P(¬E) = 1 = P(E)

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

Probability that at least one bit in a randomly generated sequence of 10 bits is 0.

A

If x exists in S, P(x) = (1/2)^10 = 1/(2^10) then
P(E) = 1 - 1/(2^10)

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

P(R u C)

A

= P(R) + P(C) - P(R n C)
= 8/30 + 9/30 - 2/30 = 1/2

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

P(A u B u C)

A

-> P(A) + P(B) + P(C)
- P(A n B) - P(A n C) - P(B n C)
+ P(A n B n C)

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

S’ is a subset of S

A

S contains BB, GB, BG and GG, but let’s say it contains only 3 values, BB, GB, and BG
GG is not in S’
Then to find out the probability of BB, you do the probability of BB / probability of S’

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

Probability that it is red considering it is circular

A

-> P(R|C)
P(R|C) -> P(R n C) / P(C) = 2/30 divided by 9/30 = 2/30 * 30/9 = 2/9

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

P = {Red | Red, Green}

A

Not independent because it is certified that red exists (red = 1) because of both.

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

Conditional Probability

A

The probability of an event occurring considering another event has already occurred.
P(A|B) for example.
You can then write P(A|B) = P(A n B) / P(B) since we do not need to include B due to it already happening.

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

Rewrite P(A|B) = P(A n B) / P(B)

A

P(A n B) = P(A|B) * P(B)
P(B) = P(A n B) / P(A|B)

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

Probability of getting a king then a queen from a deck?
Multiplication Rule

A

P(K n Q) = P(K) * P(Q|K) = 0.6%

17
Q

Independent

A

P(A n B) = P(A) * P(B)
Neither effect each other.
If we apply this to the king and queen question, it would result in 4/52 * 4/52, not 4/51.

P(F,G) = P(F) * P(G) since they do not directly effect each other (like choosing a queen then a king would do from a pack of cards ; toothache and weather is another example).

18
Q

Bayes’ Theorem

A

If P(A) > 0 then:
P(B|A) = P(A|B) * P(B) / P(A)

Rewritten as:
P(B|A) = P(A|B) * P(B) / P (A|B ) ×P (B ) + P (A|¬B ) ×P (¬B )
Denominator = P(A|B^2) + P(A|¬B^2)
B’s cancel out
P(A) + P(A) = P(A)

19
Q

Random Variable

A

The result from a random experiment.
S = {car,train,dog,cat}
F(car) = 1, F(train) = 1, F(dog) = 2, F(cat) = 2
(F = 1) denotes {s exists in S | F(s) = 1} = {car, train}

20
Q

S = {1,2,3,4,5,6}^2 = for two dice rolls
What is the probability for a and b to equal 12?

A

P(ab) = 1/36 for every ab which exists in S
F(ab) = a + b
r = 12 (arbitrarily chosen)
P(F = r) = P(ab | F(a|b) = r)

21
Q

¬(F = r)

A

{s | F(s) != r}
P(Die != 1) = P¬(Die = 1) = 5/6

22
Q

Probability Distribution For Random Variable

A

Gives the probabilities of all the possible values of the random variable

23
Q

Joint Probability Distribution

A

The probability distribution for two things combined, like the chances of a toothache and if the weather is sunny.

24
Q

Bold P

A

Conditional Distribution

25
Q

Conditional Distribution

A

P(F|G) = P(F = r| G = s)
Using Product Rule
P(F = r1,G = s1) = P(F = r1|G = s1)P(G=s1)
P(F = r2,G = s2) = P(F = r2|G = s2)P(G=s2)

26
Q

Probability Inference

A

P(Q|E1 = e1,…,En = en)
Conditional all the way to n.
Way of saying conditional queries can be joint.

27
Q

Probability Inference Example
P(Cavity|Toothache=1)

A

P(Cavity = 1|Toochache = 1)
P(Cavity = 0|Toochache = 1)
P(Cavity = 1|Toochache = 1) = P(Cavity = 1|Toochache = 1) / P(Toothache = 1) = 0.12/0.2
P(Cavity = 0|Toochache = 1) = P(Cavity = 0|Toochache = 1) / P(Toothache = 1) = 0.08 / 0.2
0.2 = normalization constant
(0,6,0.4)

28
Q

Conditional Independence

A

G, F are conditionally independent if
P(G, F|H1,…,Hn) = P(G|H1,…,Hn) * P(F|H1,…,Hn)

Let’s say we have two independent variables, weather and dentistry variables.
P (Weather = sunny, Toothache = r1, Catch = r2, Cavity = r3)
= P (Weather = sunny)P (Toothache = r1,Catch = r2,Cavity = r3)

29
Q

Belief Networks

A

Way of representing independence.

30
Q

Full Joint Probability Distribution with BN

A

P(Background, Works_Hard, Answers, Grade) -> P(Background) * P(Works_Hard) * P(Answers|Background|Works_Hard) * P(Grades|Answers)

31
Q

Expected Value

A

The value you are expected to get back depending on random variables.

32
Q

Suppose you roll a fair die, what is the expected value?

A

Random Variable F with values {1,2,3,4,5,6}
P(F=x) = 1/6 for all x in {1,2,3,4,5,6}
E(F) = 1 * P(F = 1) + 2 * P(F = 2) … = 3(1/2) = 3.5

33
Q

Distributive Law

A

2 (3 + 1) = (2 * 3) + (2 * 1)