Modelling housing prices
عربيIntermediate
Problem
How do we predict a home's price from its size and age?
Goal
Build a regression model and evaluate it on test data.
Dataset
Housing (synthetic) Synthetic, generated in the browser
Work steps
- Open the housing sample
- Inspect outliers and skew
- Apply a log transform if needed
- Train a regression on 70% and test on 30%
- Compare with a baseline (the mean)
Statistical methods
- Linear regression
- RMSE and R²
- Train/test split
Challenges
- Non-linear relations
- Collinear variables
Discussion questions
- Does a high R² mean a good model?
- How do you detect overfitting?
Tools used
- Project Studio
- Regression Explorer experiment
Expected outcomes
A model that beats the baseline by an amount you measure. No result figures are published here.
No recorded results are shown here; your results come from running the project on the data.
Run this project in the Studio
References
- James, G., Witten, D., Hastie, T., & Tibshirani, R. (2021). An Introduction to Statistical Learning (2nd ed.). Springer DOI (bibliographic data entered by the editor, not machine-checked)
- Hastie, T., Tibshirani, R., & Friedman, J. (2009). The Elements of Statistical Learning (2nd ed.). Springer DOI (bibliographic data entered by the editor, not machine-checked)
