I have two questions that I am to solve as practice. I am having difficulties with determining which probability function to use.
The firstquestion is:
Todd decides to keep buying a lottery ticket each week until he has 4 winners (of some prize). Suppose 30% of the tickets win some prize. Find the probability he will have to buy 10 tickets.
For this question, I should apply the Binomial distribution function. let X be the number of lottery tickets bought
X ~ $Binomial(10, 0.3)$
$P(x) = ((10) nCr (x))(0.3)^x(0.7)^(10-x)$
$P(4) = (10 nCr 4) * (0.3)^4*(0.7)^6=0.200$
However, the solution is 0.08.
The second question is:
An oil company runs a contest in which there are 500,000 tickets; a motorist receives one ticket with each fill-up of gasoline, and 500 of the tickets are winners. If a motorist has ten fill-ups during the contest, what is the probability that he or she wins at least one prize?
Here my random variable would the number of tickets received. I would use the Hypergeometeric distributive function because we have a finite set.
I attempted to solve the above question, but the solution is not what I am getting.
Here is my attempted solution:
let X be the number of tickets received through gas fill-ups
X ~ $Hypergometeric(500 000, 500, 10)$
$P(x) = (500 nCr x)(450000 nCr 10-x)/(500000 nCr 10)$, Where x is an element of [0,10]
Since the question explicitly asks for at least 1 ticket, so:
$P(X >= 1) = 1 - P(0) = 1 - [(500 nCr 0)(450000 nCr 10)/(500000 nCr 10)]= 0.651$
However, the answer is 0.010. I know I am doing something terribly wrong, but I am not too sure what it is.
I am also sorry for not properly using Latex.