Probability Flashcards

1
Q
  1. Bobo the amoeba has a 25%, 25%, and 50% chance of producing 0, 1, or 2 o spring, respectively. Each of Bobo’s descendants also have the same probabilities. What is the probability that Bobo’s lineage dies out?
A

p=1/4+1/4p+1/2p^2 => p=1/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q
  1. In any 15-minute interval, there is a 20% probability that you will see at least one shooting star. What is the proba- bility that you see at least one shooting star in the period of an hour?
A

1-(0.8)^4. Or, we can use Poisson processes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q
  1. How can you get a fair coin toss if someone hands you a coin that is weighted to come up heads more often than tails?
A

Flip twice and if HT then H, TH then T.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q
  1. You have an 50-50 mixture of two normal distributions with the same standard deviation. How far apart do the means need to be in order for this distribution to be bimodal?
A

more than two standard deviations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q
  1. Given draws from a normal distribution with known parameters, how can you simulate draws from a uniform distribution?
A

plug in the value to the CDF of the same random variable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
  1. A certain couple tells you that they have two children, at least one of which is a girl. What is the probability that they have two girls?
A

1/3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q
  1. You have a group of couples that decide to have children until they have their first girl, after which they stop having children. What is the expected gender ratio of the children that are born? What is the expected number of children each couple will have?
A

gender ratio is 1:1. Expected number of children is 2. let X be the number of children until getting a female (happens with prob 1/2). this follows a geometric distribution with probability 1/2

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q
  1. How many ways can you split 12 people into 3 teams of 4?
A

the outcome follows a multinomial distribution with n=12 and k=3. but the classes are indistinguishable

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q
  1. Your hash function assigns each object to a number between 1:10, each with equal probability. With 10 objects, what is the probability of a hash collision? What is the expected number of hash collisions? What is the expected number of hashes that are unused.
A

the probability of a hash collision: 1-(10!/10^10)
the expected number of hash collisions: 1-10(9/10)^10
the expected number of hashes that are unused: 10
(9/10)^10

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q
  1. You call 2 UberX’s and 3 Lyfts. If the time that each takes to reach you is IID, what is the probability that all the Lyfts arrive first? What is the probability that all the UberX’s arrive first?
A

Lyfts arrive first: 2!*3!/5!

Ubers arrive first: same

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q
  1. I write a program should print out all the numbers from 1 to 300, but prints out Fizz instead if the number is divisible by 3, Buzz instead if the number is divisible by 5, and FizzBuzz if the number is divisible by 3 and 5. What is the total number of numbers that is either Fizzed, Buzzed, or FizzBuzzed?
A

100+60-20=140

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
  1. On a dating site, users can select 5 out of 24 adjectives to describe themselves. A match is declared between two users if they match on at least 4 adjectives. If Alice and Bob randomly pick adjectives, what is the probability that they form a match?
A

24C5(1+5(24-5))/24C524C5 = 4/1771

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q
  1. A lazy high school senior types up application and envelopes to n different colleges, but puts the applications randomly into the envelopes. What is the expected number of applications that went to the right college?
A

1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q
  1. Let’s say you have a very tall father. On average, what would you expect the height of his son to be? Taller, equal, or shorter? What if you had a very short father?
A

Shorter. Regression to the mean

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q
  1. Let’s say we play a game where I keep flipping a coin until I get heads. If the first time I get heads is on the nth coin, then I pay you 2n-1 dollars. How much would you pay me to play this game?
A

less than $3

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q
  1. You have two coins, one of which is fair and comes up heads with a probability 1/2, and the other which is biased and comes up heads with probability 3/4. You randomly pick coin and flip it twice, and get heads both times. What is the probability that you picked the fair coin?
A

4/13

17
Q
  1. What is a P-Value ?
A

https://en.wikipedia.org/wiki/P-value