GB-Probability Theory Flashcards
You pick a card from the deck and the dealer picks another one without replacement. If you have a larger number, you win. However if your number is smaller or equal to the dealer then the house wins. What is my probability of winning?
–> There are thirteen different cards 2 to Ace —> If I pick 2, my probability of winning is 0 —->If i pick, 3, my probability of winning is 4/51 —-> if i pick 4, my probability of winning is 8/51 —> My probability of winning: 1/13 (0/51 + 4/51 + 8/51 + 48/51) = (4 / (13 x 51)) (0 + 1 + …+ 12) –> 8/17
100 Passanger airline. nth person holds the ticket for the nth seat. 1st person is drunk and he will choose a seat randomly, if chooses xth seat, then the xth person can choose randomly. What is the probability that 100th person will end up on his seat?
- Start with only two people - there is 50% chance of one being in his seat
- Start with three people -
- 1 2 3
- 2 1 3
- 2 3 1
- 3 2 1
- 50% chance of # 3 getting his seat
- Start with 4 people:
- 1 2 3 4
- 2 1 3 4
- 2 3 1 4
- 2 3 4 1
- 2 4 3 1
- 3 2 1 4
- 3 2 4 1
- 4 2 3 1
- Once again 50%
What is the total number of hands in the game of poker?
- (52 5 ) - Combination sign
- 52! / (47!)(5!)
- = 2, 598,960
In combination, order does not matter.
What is the probability of getting four-of-a-kind in Poker? How many number o hands with four of-a-kind?
- First we can choose the value of the four cards - we have thirteen choices.
- Then we can choose the 5th card to be anything from the remaining 48 cards
- Total of 13 x 48 = 624
- Probability = 624/ 2,598,960
How many number of hands can have a full house? What is the porbabilty of full house?
- Full house is Three of a kind, followed by a pair
- (13 choose 1) (4 choose 3) (12 choose 2) (4 choose 2)
- 13 x 4 x 12 x 6 = 3744
- Probability of full house = 3744/ 2,598,960
How many possible outcomes are there for hands with two pairs in Poker? What is the probability/
- (13 choose 2) (4 chose 2)(4 choose 2)(48)
- 123552
- Probabily = 123552 / 2,598,960
There are now 11 pirates. They loot gold coins and store them in a vault. Still being a democratic bunch, they decide that only a majority-of them (>=6) together can open the safe. So they ask a locksmith to put a certain number of locks on the safe. To access the treasure, every lock needs to be opened. Each lock can have multiple keys - but each key can only open one lock. What is the smallest numbers of locks needed?
- Let’s randomly select 5 pirates from the 11-member group; there must be a lock that none of them has the key to.
- In other words - we must have a “special lock” to which none of the 5 selected pirates has a key and the other six pirates all have keys. Such 5-group pirates are randomly selected.
- Minimum number of locks = (11 choose 5)
- = 462 locks
- Each lock has six keys - which are given to unique 6-memeber subgroups. So each pirate must have (462 x 6) / 11 = 252 keys
Given N points drawn randomly on the circumference of a circle, what is the probability that they are all within a semicircle?
- Let’s start at one point and clockwise label the points as 1, 2,..N.
- The probability that remaining N-1 points from 2 to N are in clockwise semicircle starting at point 1 is 1/2^(N-1)
- Since there are N different starting points we can pick. The probability that N points randomly drawn on the circumference of a circle all are withing a semi-circle is
- N/(2^(N-1))
Job applications to 5 firms. Your 3-year old messes up which cover letter goes into which envelope. What is the probabiltiy that all five letters are mailed to the wrong firm?
- Classic example of Inclusion-Exclusion principle
- Ei is the Probability that at least one letter has the correct envelope
P( U Ei) = Sum 1 to 5 (P Ei) + sum P (E1 E2) + (-1)^6(P(E1 E2 E3..E5)
What is the probability of at least one letter has the correct envelope?
(1) Probability of 1 letter with correct envelope: 1/5 , there is (5 choose 1), hence it is 1
(2) Proabability of 2 letters with correcet envelopes: 1/5*1/4, (5 Choose 2), hence 1/2!
Similarilty for 3, 4 and 5. Probability of at least one letter with correct envelope = 1 - 1/2! + 1/3! - 1/4! + 1/5! = 19/30
Answer: probability of all letters are in the wrong envelope = 1 - 19/30 = 11/30
How many people do we need in a class to make the probability that two people have the same birthday more than 1/2?
- For one individual we have 365 possibilities,
- For n individuals we have 365^n possibilities
- We want to find the number of sequences that have no duplications of birthdays
- 365 x 364 x …x (365-n+1) (where n is the number of people in the room).
- (365 x 364 x ….x (365-n+1) / (365^n) < 1/2
- Smallest such number is 23. Since we care about the duplication (people having the same birthday).
Let x be an integer between 1 and 10^12. What is the probability that the cubic of x ends with 11?
- All integers can be expressed as x = a + 10b
- a is the last digit of x
- x^3 = (a+10b)^3 = a^3 + 30a^2b+ 300ab^2 + 1000b^3
- The unit digit of x^3 depends on a^3
- a must be one
- Tenth digit only depends on 30a^2b, since a = 1
- 30b = 10, 3b = 1,
- b must be 7 (7x3 = 21)
- Last two digits of x = 71
- Which has 1% probability for integers between 1 and 10^12
If you have an unfair coin, which may bias toward either heads or tails at an unknown probability, can you generate even odds using this coin?
- For an unfair coin, we can’t generate even odds usin only one toss.
- However we can look at two tosses:
- We can assign HT to winning and TH to losing
- Both have the same probability: P(HT) = P(TH)
Jason throws darts at a dartboard, aiming for the center. The second dart lands farther from the center than the first. If Jason throws a third dart aiming for the center, what is the probability that the third throw is farther from the center than the first? (assume Jason’s skillfulness is constant)
- Since there are 3 throws there are six possible outcomes. A being the best throw, and C being the worst throw
- ABC
- ACB
- BCA
- BAC
- CAB
- CBA
- Given the scenario - eliminate 4,5,6
- For 1,2,3 third throw is worst than the 1st throw
- From ABC, ACB and BCA, there is 2/3 probability that third throw is worst.
- If we have n+1 throws - the probability that (n+1)th throw is not best is
- (n/(n+1))
A manager annouces that the first person in line will get a free movie ticket if his birthday matches someone who has already bought a ticket. What position in the line will give you the largest change of getting the free ticket? (assume 365 days).
- Assume: You choose to be the nth person in line
- To get a free ticket, all (n-1) people need to have different birthday
- And your birthday needs to match one of those (n-1) birthday
- p(n) = p(first n-1 people have different birthday)*p(my birthaday is among those n-1 people)
- p(n) = (365x 364x …x 365-n+2)/(365^n-1) * (n-1)/365
- However we need to strike a balance, if we increase n, we increase the probability of matching our birthday but there is a probability that someone else’s birthday will match before ours does.
- P(n) > P(n-1), P(n) > P(n+1)
- P(n-1) = (365 * 364 * ..*(365-n-3))/365)*((n-2)/365))
- P(n) = (365*364*…*(365-(n-2))/365)*((n-1)/365)
- P(n+1) = (365*364*..(365-(n-2)*(365-(n-1)))/365)*(n/365))
You should be the 20th person.
We throw 3 dice one by one. What is the probabiltiy that we obtain 3 points in strictly increasing order?
- To have 3 points in strictly increasin order, three points must be different
- Conditioned on three different numbers, the probability of strictly increasing order is simply
- 1/3! = 1/6
- P = P(different numbers in all three throws) x p (increasing order|3 different numbers)
- = (1x(5/6)x(4/6))*(1/6) = 5/54