For the following measurements
## 1 5 3 10 5 7 11 8 5 5 1 2 3
## n = 13
## x(5) = 3
## x(1) = minimum = 1
## x(n) = maximum = 11
## mean = 5.076923
## median = 5
## Q1 = 3
## Q3 = 7
## IQR = 4
## LF = -3
## UF = 13
## 0 outliers as all points lie between LF and UF
For new measurements
## 1 1 3 2 4 3 11 8 4 5
## n = 10
## x(5) = 3
## x(1) = minimum = 1
## x(n) = maximum = 11
## mean = 4.2
## median = 3.5
## Q1 = 2.25
## Q3 = 4.75
## IQR = 2.5
## LF = -1.5
## UF = 8.5
## 1 outlier
## range = 10
## variance = 9.955556
## sd = 3.155243
## second boxplot as both Q1 and Q3 require interpolation
This famous (Fisher’s or Anderson’s) iris data set gives the measurements in centimeters of the variables sepal length and width and petal length and width, respectively, for 10 flowers from each of 3 species of iris. The species are Iris setosa, versicolor, and virginica.
## Sepal.Length Sepal.Width Petal.Length Petal.Width Species
## 1 5.1 3.5 1.4 0.2 setosa
## 2 4.9 3.0 1.4 0.2 setosa
## 3 4.7 3.2 1.3 0.2 setosa
## 4 4.6 3.1 1.5 0.2 setosa
## 5 5.0 3.6 1.4 0.2 setosa
## 6 5.4 3.9 1.7 0.4 setosa
## 7 4.6 3.4 1.4 0.3 setosa
## 8 5.0 3.4 1.5 0.2 setosa
## 9 4.4 2.9 1.4 0.2 setosa
## 10 4.9 3.1 1.5 0.1 setosa
## flowers
## 10 observations
## 5 variables
## 1 categorical and 4 quantitative variables