To Lecture Notes

IT 223 -- 2/23/11

 

Review Questions

  1. What is the formula for the standard deviation ( σx ) for a Bernoulli random variable x?

    Ans: σx = √p(1 - p)

  2. For a dataset consisting of n independent outcomes of a Bernoulli random variable, what does the sum represent? what does the sample mean represent?

    Ans: The sum represents the number of sucesses (because success = 1 and failure = 0). The average is the proportion of successes = S / n.

  3. Suppose that E(x1) = 3, E(x2) = 7, and E(x3) = 2. Also suppose that Var(x1) = 1, Var(x3) = 4, and Var(x3) = 5. Evaluate:

    1. E(x1 + x2 + x3)

    2. E(57 x2)

    3. Var(x1 + x2 + x2), if x2, x2, and x2 are independent.

    Hint: See the Properties of Random Variables. Ans: a. 3+7+2 = 12;   b. 57*7 = 399;   c. 1+4+5 = 10.

  4. Use SPSS to simulate the following situations. Use the random number generator Rv.Binomial(n, p). Compute the number of successes S and the proportion of successes p^ in each case.

    1. 1,000 outcomes of a Bernouilli random variable with p = 0.5.

    2. 10,000 outcomes of a Bernouilli random variable with p = 0.7.

    3. 100,000 outcomes of a Bernouilli random variable with p = 0.9.

    A binomial random variable outputs the sum of n outcomes of a Bernouilli random variable with probability p.

    Directions: To do Part c, use this SPSS Syntax script to generate line numbers from 1 to 100,000. Then use Transform >> Compute Variable with Target variable = x and expression Rv.Bernoulli(0.9) to generate the random variables.

  5. 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.

 

Sums of Random Variables

 

Practice Problems

  1. Compute the expected value and standard deviation of a Bernoulli random variable for the sum of n trials.

    Ans: E(S) = nE(x) = np
    σS = σxn = √p(1-p)n = √np(1-p)

  2. Suppose that my true percentage of making free throws is 70%. Out of 100 attempts, what is the expected value and standard deviation of the number of free throws made?

    Ans: For a binomial random variable, S is the number of freethrows, E(S) = np = 100*0.7 = 70, SES = sqrt(n*p*(1-p)) = sqrt(100*0.7*(1-0.7)) = 4.58.

 

The Law of Averages

 

Factorials and Counting Combinations

 

Practice Problems

  1. What is the number of ways of choosing 2 out of 4 objects?

    Ans: 4C2 = 4! / (2!(4-2)!) = (4×3×2×1) / [(2×1)(2×1)] = (4×3) / (2×1) = 2×3 = 6

  2. What is the number of ways of choosing 3 out of 5 objects?

    Ans: 5C3 = 5! / (3!(5-3)!) = (5×4×3×2×1) / [(3×2×1)(2×1)] = (5×4) / (2×1) = 5×2 = 10

  3. What is the number of ways of choosing 6 out of 10 objects?

    Ans: 10C6 = 10! / (6!(10-4)!) = (10×9×8×7×6×5×4×3×2×1) / [(6×5×4×3×2×1) (4×3×2×1)] = (10×9×8×7) / (4×3×2×1) = 10×3×7, because 4 and 2 in the denominator cancel with 8 in the numerator, and 3 in the denominator cancels with 9 in the numerator, leaving 3. The answer is 210.

  4. What is the number of ways of choosing 13 out of 20 objects?

    Ans: 20C13 = (20×19×18×17×16×15×14) / (7×6×5×4×3×2×1) = (19×17×16×15, because 5 and 4 in the denominator cancel with 10 in the numerator, 6 and 3 in the denominator cancel with 18 in the numerator, 7 and 2 the denominator cancels with 14. The answer is 77,520.

 

The Binomial Distribution

 

Practice Problems

  1. When tossing a fair coin, what is the probability of obtaining

    1. 3 heads out of 5?

      Ans: 5C3 (0.5)^3 (1-0.5)^(5-3) = 10(0.125)(0.25) = 0.03125 = 3%.

    2. 7 heads out of 9?

      Ans: 9C7 (0.5)^7 (1-0.5)^(9-7) = 36 (0.001953125) = 0.0703125 = 7%.

    3. 10 heads out of 14?

      Ans: 14C10 (0.5)^10 (1-0.5)^(14-10) = 1001×0.0000061352 = 0.0611 = 6%.

    4. 10 or 11 heads out of 14?

      Ans: P(10 out of 14) + P(11 out of 14) = 0.0611 + 0.0222 = 0.0833

    5. 10 or more heads out of 14

      Ans: P(10 out of 14) + P(11 out of 14) + P(12 out of 14) + P(13 out of 14) + P(14 out of 14) = 0.0611 + 0.0222 + 0.00555 + 0.00085 + 0.0000610 = 0.089761.

  2. If your true probability of shooting freethrows for practice is 70%, what is the probability that you shoot 16, 17, or 18 for 20?

    Ans: P(16 for 20) + P(17 for 20) + P(18 for 20) = 0.1304 + 0.0716 + 0.0278 = 0.2298 = 23%.

  3. If your true probability of shooting freethrows in practice is 70%, what is your expected number of freethrows made out of 20? what is your standard deviation?

    Ans: E(S) = np = 10(0.7) = 7; σS = √np(1-p) = √20(0.7)(1-0.7) = 2.049

 

Project 4

 

The Central Limit Theorem