To Notes

IT 223 -- May 15, 2024

Review Exercises

  1. What is a sample space?
    Answer: The sample space is the set of all possible outcomes for a statistical experiment.
  2. Which greek letter is used to represent the sample space?
    Answer: big omega: Ω
  3. What is an event?
    Answer: an event is a subspace of the sample space.
  4. What are the rules for probabilities?
    Answer: if P(e) is the probability of the event e,
    (a) 0 ≥ P(e)     (b) P(e) ≥ 1     (c) P(eC) = 1 - P(e)
  5. What are the three methods for obtaining probabilities?
    Answer: (a) a priori     (b) empirical      (c) subjective.
  6. What is a discrete random variable?
    Answer: a discrete random variable has only a finite number of outcomes.
  7. What is a Bernoulli random variable?
    Answer: a bernoulli random variable has only two possible outcomes 0 and 1 defined by this probablity table:
    Outcome Probability
           0       1 - p
           1          p

    p is called the probability of success.
  8. What is the expected value of a random variable?
    Answer: If
          x1, x2, ... , xn
    are the values of the random variable X and
          p1, p2, ... , pn
    are the corresponding probilities, the expected value of X is
          E(X) = x1 p1 + x2 p2 + ... + xn pn

Expected Value

The Multiplication Rule for Independent Events

The Addition Rule for Mutually Exclusive Events

The Standard Deviation of a Random Variable

Practice Problems

  1. Recall that the expected value for the Rainfall on a Tropical Island example is 1.1 inches. Here is the probability distribution:
       Rainfall       Probability  
    0 0.3
    1 0.4
    2 0.2
    3 0.1

    Compute the variance and standard deviation of this random variable.
    Ans: (0 - 1.1)2 0.3 + (1 - 1.1)2 0.4 + (2 - 1.1)2 0.2 + (3 - 1.1)2 0.1
    = 1.21 * 0.3 + 0.01 * 0.4 + 0.81 * 0.2 + 3.61 * 0.1 = 0.89
    The standard deviation is √0.89 = 0.943
  2. Compute the variance and standard deviation of a Bernoulli random variable.
    Ans: The expected value of a Bernoulli random variable is 0(1 - p) + 1p = p.

    Variance = (0 - p)2 (1-p) + (1 - p)2 p = p2(1-p) + (1 - 2p + p2)p
    = p2 - p3 + p - 2p2 + p3 = p - p2 = p(1 - p)
    The standard deviation is the square root of the variance = √p(1 - p)

  3. Use your result from Problem 2 to obtain the mean and standard deviation of the number of heads obtained in a single coin flip.
    Ans: E(x) = p = 0.5; σx = √p(1-p) = √0.5(1-0.5) = √0.25 = 0.5

Properties of Random Variables

  1. E(cx) = c E(x)
  2. E(x + y) = E(x) + E(y)
  3. E(x1 + ... + xn) = E(x1) + ... + E(xn)
  4. Var(x) = E(x2) - E(x)2
  5. Definition:   x and y are independent if E(xy) = E(x)E(y).
    If x and y are independent, Var(x + y) = Var(x) + Var(y)

Here are the derivations.

Practice Problem

  1. Compute the variance and SD of a Bernoulli random variable with the formula Var(x) = E(x2) - E(x)2.
         Var(x) = E(x2) - E(x)2 = (02 (1 - p) + ... + 12 p) - p2
                  = p - p2 = p(1 - p)
    This is the same result that we obtained earlier.

Sums of Random Variables

Practice Problems

  1. Compute the expected value and standard deviation of the random variable in Practice Problem 1 for 365 days.

    Ans: Recall that E(x) = 1.1 and σx = 0.943; E(S) = nE(x) = 365 × 1.1 = 401.5
    σS = σxn = 0.943√365 = 18.0

  2. Compute the expected value and standard deviation of a Bernoulli random variable (Practice Problem 2) for the sum of n trials.
    Ans: E(S) = nE(x) = np
    σS = σxn = √p(1-p)n = √np(1-p)
  3. Suppose that my true percentage of making a free throw is 70%. Out of 100 attempts, what is the expected value and standard deviation of the number of free throws made? Find a 95% confidence interval for the number of free throws made.
    Ans: E(S) = np = 100 × 0.7 = 70.
    Var(S) = np(1 - p) = 100 × 0.7 × (1 - 0.7) = 21.
    σS = √21 = 4.58.
    Answer: the 95% confidence interval for S is calculated like this:
    -2 ≤ zS ≤ 2
    -2 ≤ (S - E(S)) / σS ≤ 2
    -2 ≤ (50 - 70) / 4.58 ≤ 2
    -2 * 4.58 ≤ S - 70 ≤ 2 * 4.58 + 9.06 + 70
    -9.06 + 70 ≤ S ≤ 9.06 + 70
    60.94 ≤ S ≤ 79.06.
    This means that the 95% confidence interfal for S is [60.94, 79.06].