Homework 2

CHE 116: Numerical Methods and Statistics

Version 1.3 (1/19/2016)


1. Combiations and Permutations (8 Points)

  1. [1 point] How many ways can you rearrange the letters 'fodbar'?
  2. [1 point] How many ways can the 75 students in this class enter the classroom? How does that compare to the number of atoms in the universe $\left(10^{80}\right)$
  3. [1 point] A family may have up to 4 cars. On a street with 3 families, how many permutations of car ownership among the 3 familaies can their be?
  4. [1 point] You and your friends are playing a MOBA game and there are 100 characters you can use. You may only be one character. You play as a team of 5 characters with no repeated characters. How many character combinations can be on one team?
  5. [4 points] How many unqiue match-ups of 5 vs 5 teams can there be for this MOBA game? Hint: This will be a product of a few equations. Start by asking how many combinations of 10 there are and then think about splitting those up into 2 teams.

2. Two Dice (8 Points)

  1. What is the sample space size for 2 dice?
  2. [2 points] Is the sum of the 2 dice, $S(roll)$,an event, element of the sample space or random variable? What is $P(S = s)$?
  3. [2 points] What are the minimum and maximum values for $P(s)$ and $S$?
  4. [2 points] What is the expected value of $S$?
  5. You are playing the game craps, where on the first roll a sum of 2,3 and 12 results in an immediate loss. If you know that you lost after the first roll, what is the probability of the sum of dice? That is, what is $P(s\,|\, \textrm{loss})$? Show your work using the definition of a conditional distribution equation.

3. Playing the Lottery (13 Poitns)

To play the megamillions, you chose 5 unique numbers from 1 to 75 and then one number from 1 to 15 that can overlapp with the previous 5. The first 5 numbers are note replaced, meaning during the drawing there are no repeated numbers. Each ticket costs \$2. Consider the following:

  1. [2 points] What is the sample space size for the lottery?
  2. [1 point] What is the probability of winning the lottery (matching all numbers)?
  3. [2 points] What is the expected value (in dollars) of the lottery as a function of jackpot amount? How big should the jackpot be for the expected value of playing exceed the cost of a ticket?
  4. [2 points] Assume that each ticket costs \$2 and 50% goes to the jackpot (the other is kept for profit). How many people must be playing for the expected value to exceed the price of a ticket?
  5. [4 ponits] Given the answer from part 4, what is the probability that no one else wins? Answer symbolically and numerically.
  6. [2 points] Let's simplify (we'll revisit later) and assume that if someone else wins, you collect half the jackpot. What's the expected value now?

4. Countries & Career (8 Points)

You are a baby being carried in a stork to your parents. Your parents live in either:

  1. USA (u, 320)
  2. China (c, 1300)
  3. Germany (g, 80)

The probability of your birth location is proportional to the populations. As a baby, you are concerned with your career options, which are

  1. Rock star (r)
  2. Professor (p)
  3. Doctor (d)

Answer the following using $B$ as the random variable for birthplace and $J$ as the random variable for job. We have the following information:

$$P(J = r \,|\, B = c) = 0.05$$$$P(J = d \,|\, B = c) = 0.5$$$$P(J = r \,|\, B = u) = 0.8$$$$P(J = p\,|\, B = u) = 0.01$$$$P(J = p\,|\, B = g) = 0.75$$$$P(J = d \,|\, B = g) = 0.2$$
  1. [2 points] What is the probability that you will be a rockstar?
  2. [2 points] What is the probability that you will be a professor born in China?
  3. [1 point] You were born in Germany, what's the probability of becoming a rock star?
  4. [2 points] Consider the random variable $Z$, which indicates if you have a college degree (true for $J=d$ and $J=p$). What is $P(Z \,|\, B=g)$?
  5. [1 points] What is $P(B=u \,|\, Z)$?