To Notes

IT 403 -- Oct 19, 2016

Review Exercises

  1. How do you compute the expected value of a random variable?
    Ans: Compute the weighted average of the outcomes, weighted by the probability of each outcome:
          E(x) = x1 p1 + ... + xn pn
  2. Intuitively, what does the expected value mean.
    Ans: The long run average of the outcomes of the random variable over a very large number of trys.
  3. What is the expected value of a Bernoulli random variable?
          E(x) = x1 p1 + x2 p2 = 0(1 - p) + 1p = p
  4. What is the theoretical standard deviation of a Bernoulli random variable?
    Ans: If x is a Bernoulli random variable,
          Var(x) = (x1 - E(x))2 P(x1) + ... + (xk - E(x))2 P(xk)
                   = (0 - p)2 (1 - p) + (1 - p)2 p = p(1 - p)(p + 1 - p) = p(1 - p)
    Then
               σx = √Var(x) = √p(1 - p)
  5. State the Multiplication Rule for probabilities.
  6. When flipping a fair coin, what is the probability of
    1. getting at exactly 5 heads in a row?
      Ans: (1/2)6 = 1/64. The sequence must be HHHHHT
    2. getting at least 5 heads in a row?
      Ans: (1/2)5 = 1/32. The sequence must be HHHHH; we don't care what the next outcome is.
    3. obtaining the sequence THTTH?
      Ans: (1/2)5 = 1/32
  7. Some 18th century dice games:
    1. Roll a die 4 times. What is the probability of getting at least one ace (1)?
      Ans: 1 - (1 - 1/6)4 = 0.5177 = 51.8%
    2. Roll a pair of dice 24 times. What is the probability of obtaining snakeeyes (pair of aces at least once)?
      Ans: 1 - (1 - 1 / 36)24 = 0.4914 = 49.1%
    Blaise Pascal (1623 - 1662) was the first to apply the laws of probability to gambling.
  8. The expected value of a random variable x is 15. What is the expected sum of 100 outcomes of x?
    Ans: E(S) = nE(x) = 100(15) = 1,500.
  9. The theoretical SD of a random variable is 3. What is the theoretical standard error of the sum of 100 independent outcomes of x?
    Ans: σS = √n σx = √100 3 = 30.
  10. An American roulette wheel contains 38 pockets: 18 red pockets, 18 black pockets, and two green pockets labeled 0 and 00. European roulette wheels have only one green pocket labeled 0. Here is an online European roulette game to see what it is like.
    If you bet on red or black, here are the payoff tables for an American roulette wheel:
    Bet on Red
    Outcome Payoff Probability
    Red +1 18/38 = 0.474
    Black -1 18/38 = 0.474
    Green -1 2/38 = 0.052

    Bet on Black
    Outcome Payoff Probability
    Red -1 18/38 = 0.474
    Black +1 18/38 = 0.474
    Green -1 2/38 = 0.052

    What is the expected payoff of playing on red? playing on black.
    Ans: Playing on red is E(x) = 1(0.474) + (-1)(0.474) + (-1)(0.052) = -0.052. You lose about 5 cents each time you play on red, same for black.
  11. The following boxes contain 6 tickets each. In which urns are letter independent from color. In other words, in which urns are the probabilities of the letters the same whether or not you know the color.


    Ans: In a and b, letter is independent of number. To show that letter and number are independent, you need to show that for each letter value L P(L) if you don't know the color = P(L) for a given color. For example, in Problem 8a, if you don't know the color, P(A) = P(B) = P(C) = 2/6 = 1/3. If you know the color is red, P(A) = P(B) = P(C) = 1/3. If you know the color is green, the probabilities are also 1/3.

    In Problem 8c, if you don't know the color, P(F) = 2/6 = 1/3. If you know that the color is green, P(F) = 2/3 = 2/3, so color and letter are not independent.

    To show that two events are not independent, it is enough to find one case where the probabilities are different; to show that two events are independent, you must show that the probabilities are the same for all choices of color and letter.

  12. Are these events independent?
    Person A lives at least 20 more years after February 21, 2011.
    Person B lives at least 20 more years after February 21, 2011.
    Ans: It is hard to know. If the people know each other, their lives and life choices can affect each other so A and B are probably not independent. If the people do not know each other, A and B may be independent, but they may also be related in unexpected ways.
  13. If the probability of getting struck by lightning in a year is 1/300,000, what is the probability of getting struck by lightning twice in a year?
    Ans: (1 /300,000)2 = 1 / 90,000,000,000.

  14. If the probability of getting a cold in a given week is 3%, what is the probability of getting at least one cold in a year?
    Ans: 1 - (1 - p)^n = 1 - (1 - 0.03)^52 = 0.7948 = 79%.
  15. Is it possible for two events to be both independent and mutually exclusive at the same time?

    Ans: If A and B are independent, P(A and B) = P(A) P(B). But if A and B are mutually exclusive, P(A and B) = 0. Thus P(A) P(B) = 0 and either P(A) = 0 or P(B) = 0.

  16. Estimate the probability that an amateur golfer that plays one round a week makes at least one hole in one on a certain par 3 hole in 50 years. The golfer hits the green 10% on that hole of the time, which has an area of about 4,000 square feet. The hole on a golf green has a radius of 4.25 inches.
    Ans: First estimate the probability of a hole in one in a single try. The area of the hole in square feet ipi*r2/144 = pi*4.252/144 =0.3757 ft2. If the area of the green is 4000 ft2, the probability of a hole in one is 0.1 * 0.3757 / 4000 = 9.3925 × 10-6. This the probability of getting at least one hole in one in 50 years is
          1 - (1 - 9.3925 × 10-6)(50 * 52) = 0.024 = 2.4%
  17. How many ways are there to arrange n objects? Ans: n!
  18. How many subsets are there of a set that contains n objects? Ans: 2n
  19. How many ways are there to choose k objects out of n objects. Ans: nCk = n! / [k! (n-k)!]

Collect Data for Project 6

Quiz 5

Factorials and Counting Combinations

The Binomial Formula

Project 4

Finding a Confidence Interval for a Proportion

Tests of Hypotheses for Proportions