Define boxplot. boxplot synonyms, boxplot pronunciation, boxplot translation, English dictionary definition of boxplot. n a graphical representation of numerical data consisting of a rectangular box with lines extending from each end Collins English Dict
The usual (and original) definition of a box and whisker plot does include outliers (indeed, Tukey had two kinds of outlying points, which these days are often not distinguished). Specifically, the ends of the whiskers in the Tukey boxplot go at the nearest observations...
Note that b/c I copied directly from stat_boxplot, you have to access a few internal ggplot2 functions using :::. This includes a lot of stuff copied directly over from StatBoxplot, but the key area is in computing the stats directly from the qs argument: stats <- as.numeric(stats:...
If two distributions' variances are literally equal, that's pretty much all you have to say about that. If two distributions are exactly normal, again, there's a mathematical definition they'll both fit. If two distributions are not exactly normal or equal in variance, you shouldn't say ot...
# This returns a data frame with the outliers only find_outliers <- function(y, coef = 1.5) { qs <- c(0, 0.25, 0.5, 0.75, 1) stats <- as.numeric(quantile(y, qs)) iqr <- diff(stats[c(2, 4)]) outliers <- y < (stats[2] - coef * iqr) | y > (stats[4] + coef *...