I have this problem:
Each week the three gas stations near your home sell at a price per gallon of X1, X2 and X3, respectively, where Xi are IID uniform random variables on [3.80, 4.20]. You purchase gas at the station with the lowest price. Use simple Monte Carlo methods to estimate average price per gallon of gas that you will pay, with the estimation error no larger than $0.05.
Can someone post an R code for this kind of problem or tell me how to approach this ?
Aucun commentaire:
Enregistrer un commentaire