Professional Documents
Culture Documents
Learning goals
Why go beyond a basic box-plot? What are fences? How is box-plot with fences constructed? How does one interpret such a plot? What are the gains and limitations?
4 Source: http://en.wikipedia.org/wiki/Boxplot
Also, only 3 out of a million or 0.003% observations are expected to be present outside the interval
(Q1 3(Q3 Q1 ), Q3 + 3(Q3 Q1 ))
5
Outlier
Comparison of data
10
11
12
There is an unusual observation in the Box-plot of scores of First semester exam, with a value of about 18. We know that the GPA is out of 10. Thus this is an outlier!
13
14
R-codes
Plot Boxplot (of single variable) Boxplot (of all the variables in a dataset) Boxplot (of k distinct variables from a dataset) Boxplot with means (can be drawn for one or many variables at the same time) R-code boxplot(variable name) boxplot(name of data as input in R) boxplot(dataname$variable 1 name, dataname$variable 2 name,, dataname$variable k name) boxplot(variable specification) points(y=colMeans(variables specification),x=1:(total number of variables in a box-plot))
15
Thank you