Two programmers started working on their computer programs at 9:00 am. The first programmer will take a Uniform(1hr,4hrs) time to finish the program.The second programmer will need a gamma(5hrs,1hr) time. Which programmer has a better chance to finish before 11:00am?
We need to compute and for a variable and a variable and compare them.
For the Uniform distribution with density for
http://www.math.ntu.edu.tw/~hchen/teaching/StatInference/notes/lecture17.pdf
Gamma-Poisson relationship
There is a relationship between the gamma and Poisson distributions. If is a random variable, where is an integer, then for any
where
For the second programmer, use the Gamma-Poisson formula with a variable and a Poisson variable
from the Poisson distribution table with parameter 2.
Thus, the first programmer has a better chance to finish before 11:00 am.
Comments