Skip to content

Forecasting future apartment prices in Barcelona using Linear, Lasso, and Ridge via Python

Notifications You must be signed in to change notification settings

nataliabeltranarg/Barcelona_Apartment_Price_Prediction

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Predictive Analysis of Barcelona Apartment Prices

Overview

This project focused on developing predictive models to understand the factors influencing property values in Barcelona. The goal is to forecast future prices, maximizing returns on real estate investments and facilitating informed market decisions.

Team Members

  • Natalia Beltrán
  • Guillem Mirabent Rubinat
  • Ed Monbiot

Project Goal

The project aims to create three models—Linear, Lasso, and Ridge—to analyze historical data, market trends, and key determinants that impact property values. The primary objective is to develop a robust predictive model capable of accurately estimating apartment prices, thereby aiding in crucial investment decisions.

Key Sections of the Notebook

  1. Goals & Criteria: Establishing the project objectives and success metrics.
  2. Loading Libraries & Data: Setting up the necessary libraries and importing data for analysis.
  3. Data Exploration: Investigating dataset characteristics and underlying patterns.
  4. Identifying Anomalies & Missing Data: Handling data integrity issues to ensure the quality of analysis.
  5. Data Pre-processing: Cleaning and transforming data for effective modeling.
  6. Linear Model: Implementing a linear regression model for initial price predictions.
  7. Hyperparameter Tuning & Cross-Validation: Optimizing model parameters for enhanced predictive performance.
  8. Lasso Model: Applying Lasso regression for feature selection and enhanced prediction accuracy.
  9. Ridge Model: Utilizing Ridge regression to investigate its impact on prediction results.
  10. Conclusion: Summarizing insights and outcomes from the analysis.

Technologies and Tools Used

  • Python for comprehensive data analysis and modeling.
  • Libraries including Pandas, NumPy, Scikit-learn for data manipulation, statistical modeling, and machine learning.
  • Advanced techniques in cross-validation and hyperparameter optimization.

Conclusion

  • The best model for predicting housing prices in Barcelona is our Ridge model with an MSE of 29165.372 and an alpha 0

Kaggle Competition

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 100.0%