ST314 Analysis 1
ST314 Analysis 1
ST314 Analysis 1
Topics:
Grading:
• Points are listed next to each question and should total 20 points overall.
• View feedback in Gradescope.
• Late assignments are not graded, but we will drop the two lowest data analysis scores.
Deadlines:
Instructions:
Allowances:
Random Variable 1. A manufacturer of copper wire knows the number of flaws on a certain type of wire has a
discrete probability distribution with an average of 3 flaw per millimeter. What type of distribution is appropriate
to model this random variable?
Random Variable 2. A study on Occupational Outlook reported that 7% of all plumbers employed in the industry
are women. Suppose a random sample of 12 plumbers was obtained, the random variable X is the number of
plumbers that are women from the sample. Each plumber in the sample is identified as either a woman or not a
woman. Whether an individual identifies as a woman is independent among those sampled.
Part 2: (4 points) Powerball is a game played with the Oregon Lottery. Every Wednesday and Saturday at 7:59
PM PT, Powerball numbers are drawn from two sets of numbers. Five white balls are drawn from one set of 69
numbered balls. One red power ball is drawn from a second set of 26 numbered balls. You only win the jackpot
when you match all 5 numbers AND the Powerball. You also win lower amounts when you match the
Powerball, three or more white balls, or a combination of white balls and the Powerball.
Disclaimer: This activity is designed to encourage you, as the consumer, to be aware of probability and how it
might affect you in a practical way. The purpose is not to speak for or against the Oregon Lottery. Cheers!
Instructions:
1. Download the script, Lottery.R from the Data Analysis 1 page in Canvas. Open the script in R. Comments
are written after the “pound sign” or “hashtag”, #. Read this to gather information on commands.
2. Choose 5 numbers from 1 – 69. The numbers are your white balls.
3. Choose your Powerball number from 1 – 26.
5 64 1 25
( )( ) ( )( ) 1
𝑃(𝐽𝑎𝑐𝑘𝑝𝑜𝑡) = 𝑃(5 𝑜𝑓 5 ∩ 𝑃𝐵) = 5 0 × 1 0 =
69 26 292201338
( ) ( )
5 1
a. (1 point) What do we know about the events “All 5 of 5” and “PB” that allows us to multiply these events to
find their intersection?
b. (2 points) Use the above equation as a guide to find the expression for the exact probability of winning
$50000, which comes from matching 4 out of the 5 white balls and the Powerball. Show the expression.
Then solve. 𝑃(4 𝑜𝑓 5 ∩ 𝑃𝐵) =
c. (3 points) Use the above equation as a guide to find the expression for the probability of not winning. Which
comes from matching none of the white balls nor the Powerball, matching 1 white ball but not the
Powerball, OR matching 2 white balls but not the Powerball. Show the expression. Then solve.
Part 4: (6 points) Are you still dreaming big? Perhaps you feel a little
disheartened. In all fairness, the Oregon Lottery website does list all
the odds of winning. See to the right or see link under “Did I win?”
(Ignore Power Play). Consider X to be the amount in money won. X is
discrete random variable. From the odds displayed on the website, we
can construct the probability mass function for X. Curiously, not in the
list, is the odds of losing.
a. (1 point) Simplify the probability mass function values below.
Round them to 9 decimal places.
b. (1 point) Use the complement to find P(X = $0) the chance of
losing. How does this compare to your calculated probability from
Part 3? How does it compare to the number of times use lost in the
simulation of Part 2?
c. (0.5 points) Compare your calculate probability for winning $50000, to the odds provided by the Oregon
Lottery. Are they the same?
d. (2 points) Use the pmf to solve for E(X). Note: When I wrote this the Jackpot was worth $25,000,000.
e. (1 point) The net profit, per ticket, for the Oregon Lottery is the random variable Y, a linear combination of
X. Given Y = $2 – X, what is the expected net profit, per ticket, for the Oregon Lottery? E(Y) =
f. (0.5 points) To guarantee a Jackpot, 292201338 unique tickets need to be sold. Suppose this were to happen
during this round of Powerball. After all winnings are paid (including the Jackpot), what can the Oregon
Lottery expect to profit in this round of Powerball?