Home prices in California in 1990 from the California Census.

housing

Format

A data frame with 20460 rows and 10 variables.

The variables are as follows:

longitude

longitude

latitude

latitude

housing_median_age

Median age of houses in the area

total_rooms

Total # of rooms in the house

total_bedrooms

Total # of bedrooms in the house

population

population of area

households

# of households in the area

median_income

Median income of area in ten-thousands

median_house_value

Median House Value of area

ocean_proximity

Distance from Ocean

Source

The data was obtained from Kaggle California Housing Data 1990.

Examples

summary(housing)
#> longitude latitude housing_median_age total_rooms #> Min. :-124.3 Min. :32.54 Min. : 1.00 Min. : 2 #> 1st Qu.:-121.8 1st Qu.:33.93 1st Qu.:18.00 1st Qu.: 1448 #> Median :-118.5 Median :34.26 Median :29.00 Median : 2127 #> Mean :-119.6 Mean :35.63 Mean :28.64 Mean : 2636 #> 3rd Qu.:-118.0 3rd Qu.:37.71 3rd Qu.:37.00 3rd Qu.: 3148 #> Max. :-114.3 Max. :41.95 Max. :52.00 Max. :39320 #> #> total_bedrooms population households median_income #> Min. : 1.0 Min. : 3 Min. : 1.0 Min. : 0.4999 #> 1st Qu.: 296.0 1st Qu.: 787 1st Qu.: 280.0 1st Qu.: 2.5634 #> Median : 435.0 Median : 1166 Median : 409.0 Median : 3.5348 #> Mean : 537.9 Mean : 1425 Mean : 499.5 Mean : 3.8707 #> 3rd Qu.: 647.0 3rd Qu.: 1725 3rd Qu.: 605.0 3rd Qu.: 4.7432 #> Max. :6445.0 Max. :35682 Max. :6082.0 Max. :15.0001 #> NA's :207 #> median_house_value ocean_proximity #> Min. : 14999 Length:20640 #> 1st Qu.:119600 Class :character #> Median :179700 Mode :character #> Mean :206856 #> 3rd Qu.:264725 #> Max. :500001 #>
table(housing$ocean_proximity)
#> #> <1H OCEAN INLAND ISLAND NEAR BAY NEAR OCEAN #> 9136 6551 5 2290 2658
sum(is.na(housing$total_bedrooms))
#> [1] 207