next up previous contents
Next: Covariance and correlation Up: Analyzing the results Previous: Analyzing the results

Confidence intervals

Suppose we are not only interested in the sample mean, but also in some probability judgement of the accuracy of this mean. The usual way to do this is to construct a confidence interval for the value of the true mean. The following code shows how to take a (90%,95%,99%) confidence interval with the library

   analysis* a = new analysis(h1);    // h1 is the histogram to be analyzed
   a -> confidence("-percent 95");    // take 95% conf. int. of the mean

A Eliens
Tue Oct 31 09:27:21 MET 1995