We were asked to calculate the 90% confidence interval for a given dataset using bootci function. This was my line in Matlab
Pbci = bootci(2000,{@mean,Pb},'alpha',.1)%90 confidence interval
Is this the correct way?
Next we were asked to use the bootstrap technique to estimate the 90% confidence interval for the probability that the mean of Pb exceeds the MCL (i.e., 50ppm). Would i use Pbci = bootci(2000,{@mean,Pb},'weights',) for this? If so what do i put as my constraints for the weights part?
Best Answer