Question: Use the Boston data set in the MASS library, which contains census-tract-level housing values in the suburbs of Boston in 1973. Documentations for the dataset

Use the Boston data set in the MASS library, which contains census-tract-level housing values in the suburbs of Boston in 1973. Documentations for the dataset can be found by typing “Boston” in the help session after you import the package “MASS”.

  1. Plot a histogram of median owner-occupied housing value (medv) in the area.
  2. Calculate the mean, median, minimum, and maximum housing value in the Boston area
  3. Are our housing values adjacent to the Charles River (chas) higher on average? Explain.
  4. Plot the bivariate relationship between the property tax rate and the pupil-teacher ratio (ptratio). Are they correlated?
  5. Create an indicator variable showing whether the tract is above or below the median crime rate of the city (crim). What is the conditional variance of median housing values for tracts above the median crime rate? Below the median crime rate?
  6. If one wishes to explore the bivariate relationship between crime rate and housing value in a regression framework. Is the model homoskedastic? Explain.

Step by Step Solution

3.46 Rating (156 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Plot a histogram of median owneroccupied housing value medv in the area We can use the builtin function hist in R to plot a histogram of median owneroccupied housing values in the Boston area The foll... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Economics Questions!