Data Science Center

Twelve labs, thirty-plus interactive experiments, a project studio that analyses your files locally, a dataset library, learning paths and a specialised assistant.

41interactive experiments

Data Science Center

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

  1. Open the housing sample
  2. Inspect outliers and skew
  3. Apply a log transform if needed
  4. Train a regression on 70% and test on 30%
  5. 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

  1. 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)
  2. 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)