Predict California Home Prices
Guided regression project · 20 steps · Linear regression · random forest
About
Build and compare two regression models end-to-end in your browser. No install needed.
Data
Loaded from scikit-learn via fetch_california_housing. Target is median house value in $100k units.
Task
Complete TODOs top-to-bottom. Use hints first. Switch to Sample solution only when stuck.
Sign in to run cells and save progress. Log in or sign up.
Step 1: Imports
Step 2: Load sklearn dataset
Step 3: Shape
Step 4: Head
Step 5: Summary stats
Step 6: Target histogram
Step 7: Target cap
Step 8: Scatter (MedInc)
Step 9: Scatter (AveRooms)
Step 10: Scatter (HouseAge)
Step 11: Correlations
Step 12: Train/test split
Step 13: Fit linear model
Step 14: Linear RMSE
Step 15: Linear actual vs predicted
Step 16: Linear residuals
Step 17: Fit random forest
Step 18: Compare RMSE
Step 19: RF actual vs predicted
Step 20: RF feature importance