Download as pdf or txt
Download as pdf or txt
You are on page 1of 2

Lab: Box

Data Set

Daily air quality measurements in New York, May to September 1973. A data frame with 153
observations on 6 variables.

[,1] Ozone numeric Ozone (ppb)


[,2] Solar.R numeric Solar R (lang)
[,3] Wind numeric Wind (mph)
[,4] Temp numeric Temperature (degrees F)
[,5] Month numeric Month (1--12)
[,6] Day numeric Day of month (1--31)

Variable

We will use variable “Month” for this lab. It is a categorical variable. Other variable is Temperature
it is quantitative variable.

Code Chuck

boxplot(airquality$Temp~airquality$Month, ylab='Temperature', main='Variation in


temperature by 5 months', xlab='Months')

Boxplot
Highest month

Month 8 (August) has the highest level for temperature. Median (50%) of August is approximately
81. August has maximum temperature approximately 100. Third quartile (75%) of August is
approximately 87 which is greater than all other 4 months.

Most variable month

Variability of a variable is determined by range and interquartile range. September (Month 9) is


most variable month because this month has range approximately 32 and Interquartile range
approximately 11 which is greater than all other months.

You might also like