Use the Boston data set in the MASS library, which contains census-tract-level housing values in the suburbs
Fantastic news! We've Found the answer you've been seeking!
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 can be found by typing “Boston” in the help session after you import the package “MASS”.
- Plot a histogram of median owner-occupied housing value (medv) in the area.
- Calculate the mean, median, minimum, and maximum housing value in the Boston area
- Are our housing values adjacent to the Charles River (chas) higher on average? Explain.
- Plot the bivariate relationship between the property tax rate and the pupil-teacher ratio (ptratio). Are they correlated?
- 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?
- If one wishes to explore the bivariate relationship between crime rate and housing value in a regression framework. Is the model homoskedastic? Explain.
Related Book For
Business Math
ISBN: 978-0133011203
10th edition
Authors: Cheryl Cleaves, Margie Hobbs, Jeffrey Noble
Posted Date: