Probability Flashcards

1
Q

p(E) = ?

A

|E|/|S|

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

p(E | F)

A

p(E n F) / p(F)

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

P(!E) = ?

A

1 - p(E)

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

Independence of E and F

A

p(E n F) = p(E) * p(F)

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

Independence of p(E | F) = ?

A

p(E)

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

Bays Thereon p(F | E) = ?

A

( p(E | F) * p(F) ) / ( ( p(E | F) * p(F) + p(E | !F) * p(!F) )

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

Probability of k successes out of n trials
p = probability of success
q = probability of failure

A

C(n,k)(p^k)(q^n-k)

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

p(E1 u E2)

A

p(E1) + p(E2) - p(E1 n E2)

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

probability 5 card poker hand has ace of hearts

A

1/52 + 1/52 + 1/52 + 1/52 + 1/52 = 5/52

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

probability 5 card poker hand does not have queen of hearts

A

1 - (1/52 + 1/52 + 1/52 + 1/52 + 1/52) = 47/52

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

probability 5 card poker hand contains 2D, 3S, 6H 10C, KH

A

1/C(52,5)

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

probability that five card poker hand contains at least 1 ace

A

1-(C(48,5)/C(52,5))

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

probability that a five card hand contains exactly 1 ace

A

(4/52 * 48/51 * 47/50 * 46/49 * 45/48) * 5

possibility of picking ace and 4 non ace cards then * 5 to account for all locations of ace

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

What is the probability of five card poker hand containing two different pairs and a 5th card of a different type

A

C(13,2)C(4,2)C(4,2)*C(44,1) / C(52/2)

choose 2 types * pick2 of the 4 for both types, then choose extra card then divide by possible hands

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

What is the probability of a five card poker hand contains a straight

A

(C(10,1) * C(4,1)^5) / C(52,5)

choose starting suit, then choose 1 of each necessary cards out of 4 suits, then divide by all possible cards

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

Find the probability that a randomly generated bit string of length 10 does not contain any 0 bits

A

c(10,0) * ((1/2)^10)

17
Q

prove if E and F are independent are !E and F independent

A
F=SnF=Fn(Eu!E)
= (FnE)u(Fn!E) 
p(F) = p(FnE) + p(Fn!E)
p(F) - p(FnE) = p(Fn!E)
p(F) - p(F)p(E) = p(Fn!E)
p(F)(1-p(E) = p(Fn!E)
P(F)p(!E) = p(Fn!E)
18
Q

Expected number of hads when fair coin flipped 10 times

A

1/2 * 10 = 5

19
Q

Expected number of heads when coins is biased and heads comes up .6

A

.6*10 = 6

20
Q

Suppose a fair coin is flipped until it either comes up tails twice or is flipped 6 times, what is the expected number of flips

A

2p(N=2) + 3p(N=3) + 4p(N+4) + 5p(N=5) + 6*(N=6)

3.75

21
Q

Planar Graph

A

No edges cross

22
Q

Euler’s Formula

A

regions = edges - vertices + 2

23
Q

If a connected planar simple graph with v>=3

A

e<= 3v - 6

24
Q

If connected planar simple graph v>=3 and no circuits of length 3

A

e <=2v-4

25
Q

What cannot exist in a planar graph

A

a subgraph of K3,3 or K5

26
Q

How many different ways are there to arrange the letters of the word Thanksgiving

A

12!/(2!2!2!)

27
Q

How many different ways are there to arrange the letters of the word Thanksgiving that start with T

A

11!/(2!2!2!)

28
Q

How many different ways are there to arrange the letters of the word Thanksgiving that contain the word HAT

A

10!/(2!2!2!)

29
Q

How many different ways are there to arrange the letters of the word Thanksgiving where the two Gs are next to each other

A

12!/(2!2!2!) - 11!(2!2!)

all possible ways - ways where GG is next to each other

30
Q

How many different ways are there to arrange the letters of the word Thanksgiving where vowels are in alphabetical order

A

9!/(2!2!) * C(12,3)

31
Q

How many different functions are there from a 5 element set to a 6 element set

A

6^5

32
Q

How many different functions are there from a 5 element set to a 6 element set are 1-1

A

65432

33
Q

How many different functions are there from a 5 element set to a 6 element set are onto

A

Impossible since 5 elements in first set and 6 in second

34
Q

How many different relations are there from a 5 element set to a 6 element set

A

2^30