Pop Quiz March 9th

Erin Dane

2022-03-14

WestRox <- read.table("/Users/erindane/Desktop/westRoxbury.csv", header=TRUE, stringsAsFactors=TRUE, sep=",", na.strings="NA", dec=".", strip.white=TRUE)
with(WestRox, hist(TOTAL.VALUE, groups=REMODEL, scale="frequency", breaks="Sturges", col="darkgray"))

#These histograms display the difference fequencies of total home value at never remodeled, old remodel and new remodel. From these graphs we can see that it is more common for houses to never be modelded at any price. We do see that no many houses that have been remolded sell in the 200-300 bucket range. This shows a slight increase in the lowest price paid for homes. 
with(WestRox, hist(TOTAL.VALUE, scale="frequency", breaks="Sturges", col="darkgray"))

#in this histogram we can see that the values of homes are right skewed. The highest requency being houses in the 300-400 bucket. followed by the 400-500 bucket. 
boxplot(TOTAL.VALUE~REMODEL, data=WestRox, id=list(method="y"))

#From this grouped box plot we can clearly see that the average value increases of the house has an old renovation and increases futher for a new renovation. 
boxplot(WestRox$ROOMS)

#From this boxplot of the number of rooms in the house we can draw a few conclusions. The first is that the median number of rooms it about 7 with an upper quartile range of 8 and a lower quartile range of 6. Giving the IRQ a value of 2 which is low. Meaning most houses fall within this small range. The max value is about 11 rooms and the min value is about 2.
boxplot(GROSS.AREA~REMODEL, data=WestRox, id=list(method="y"))

#In this set of boxplots we can see that the median area increases if the house has been renovated recently. This could either be because larger house would indicate that the home owner would have more money to renovate thier home or that renovation are done to make the houses larger. 
with(WestRox, hist(BEDROOMS, scale="frequency", breaks="Sturges", col="darkgray"))

#from this histogram we can see that the number of rooms is right skewed. This is simply based on frequency and it is uncommon to have a house with more than 4 or 5 bedrooms. Houses with 3 bedroom appear the most frequenctly.