Suppose you have entered the data in R as follows:
\(\verb| x \lt - c( 878, 871, 906, 933, 930, 852, 890, 861, 882, 888, 897, 899, 879, 888, 848 ) |\)
Then the sample mean, sample variance, sample median, and sample IQR are obtained as follows:
\(\verb|mean(x) |\)
\(\verb|var(x) |\)
\(\verb|median(x) |\)
\(\verb|IQR(x) |\)
You can obtain a boxplot by typing
\(\verb|boxplot( x, ylab = "Times between eruptions (in sec)", id.method="y") |\)
For the data as given, the sample mean is 886.8 sec, the variance is 602.029 min\({}^{2}\text{,}\) the median is 888 min and the IQR is 23.5 min (from R’s default type; it may be quite different if you used a different type.)