ABSTRACT
Real estate pricing is influenced by complex, multidimensional factors including structural attributes, neighbourhood characteristics, geographic factors, and macroeconomic trends. Traditional hedonic pricing models often struggle to capture nonlinear relationships and high-dimensional interaction effects inherent in housing data. This report presents the design, implementation, and evaluation of a Machine Learning (ML) Based House Price Prediction System developed and tested on the Ames Housing dataset. A reproducible pipeline covering missing-value imputation, outlier treatment, logarithmic target transformation, feature engineering, and target encoding was implemented, and three regression paradigms - Ridge Regression, Random Forest, and XGBoost - were trained and comparatively evaluated using Mean Absolute Error (MAE), Root Mean Squared Error (RMSE), and the Coefficient of Determination (R²). The XGBoost Regressor achieved the best performance, with an R² of 0.943, an MAE of $11,820, and an RMSE of $17,450, outperforming both the Ridge baseline and the Random Forest ensemble. SHAP (SHapley Additive exPlanations) values were further applied to interpret the XGBoost model, revealing overall quality, total square footage, and neighbourhood location as the strongest price determinants. The study concludes that gradient boosting ensembles, combined with systematic preprocessing and explainable AI techniques, offer an accurate, transparent, and practical approach to automated house price prediction.
TABLE OF CONTENTS
DECLARATION..................................................................................................................... 2
CERTIFICATION.................................................................................................................. 3
APPROVAL
PAGE................................................................................................................ 4
ACKNOWLEDGEMENT...................................................................................................... 5
DEDICATION......................................................................................................................... 6
LIST
OF TABLES................................................................................................................... 9
LIST
OF FIGURES............................................................................................................... 10
LIST
OF ABBREVIATIONS............................................................................................... 11
LIST
OF SYMBOLS............................................................................................................. 12
ABSTRACT........................................................................................................................... 13
CHAPTER
ONE: INTRODUCTION................................................................................. 14
1.1
Background of the Study.............................................................................................. 14
1.2
Statement of the Problem.............................................................................................. 14
1.3
Research Questions....................................................................................................... 15
1.4
Aim and Objectives of the Study.................................................................................. 15
1.5
Scope and Limitations of the Study............................................................................... 16
1.6
Significance of the Study.............................................................................................. 16
1.7
Definition of Terms...................................................................................................... 16
CHAPTER
TWO: LITERATURE REVIEW................................................................... 18
2.1
Overview of Related Literature..................................................................................... 18
2.2
Conceptual Framework................................................................................................. 18
2.3
Theoretical Framework................................................................................................. 18
2.3.1
Evolution of Predictive Paradigms....................................................................... 19
2.3.2
Model Interpretability and Explainable AI........................................................... 19
2.4
Empirical Review (Related Studies).............................................................................. 20
2.5
Summary of the Literature Review................................................................................ 21
CHAPTER
THREE: INTRODUCTION............................................................................ 22
3.1
Provides the Introduction.............................................................................................. 22
3.2
Research Design............................................................................................................ 22
3.3
Research Frame............................................................................................................. 22
3.3.1
Data Collection.................................................................................................... 23
3.3.2
Data Preprocessing............................................................................................... 23
3.3.3
Model Selection................................................................................................... 24
3.3.4
Train Selection and Validation............................................................................. 25
3.3.5
Split...................................................................................................................... 25
3.3.6
Web-Based Demonstration Interface.................................................................... 25
CHAPTER
FOUR: RESULTS AND DISCUSSION........................................................ 26
4.1
Introduction.................................................................................................................. 26
4.2
Result............................................................................................................................ 26
4.3
Analysis of the Result................................................................................................... 27
4.4
Discussion..................................................................................................................... 27
4.5
Chapter Summary......................................................................................................... 28
CHAPTER
FIVE: SUMMARY, CONCLUSION AND RECOMMENDATION......... 29
5.1
Introduction.................................................................................................................. 29
5.2
Summary....................................................................................................................... 29
5.3
Conclusion.................................................................................................................... 29
5.4
Recommendations......................................................................................................... 30
5.5
Reference...................................................................................................................... 30
SYSTEM
SNAPSHOT.......................................................................................................... 32
APPENDIX
A: DATASET................................................................................................... 33
APPENDIX
B: SOURCE CODE......................................................................................... 35
CHAPTER ONE
INTRODUCTION
1.1 Background of the Study
The real estate market is a critical pillar of global economic stability
and wealth accumulation. Property valuation, which involves determining the
fair market price of a residential house, directly affects buyers, sellers,
mortgage lenders, real estate developers, and urban policymakers.
Traditionally, house price estimation has relied on manual property appraisals
and classic econometric approaches, such as hedonic pricing models. These
conventional techniques rely heavily on localised human expertise and simple
linear assumptions about how individual property features combine to determine
value.
However, real estate markets are inherently complex, dynamic, and
influenced by high-dimensional, nonlinear relationships. Property prices are
shaped by a diverse mix of structural attributes (for example, total square
footage, number of bedrooms, and age of the building), locational advantages
(for example, proximity to central business districts, transit hubs, and reputable
schools), and macroeconomic variables (for example, inflation and interest
rates). Conventional valuation models often struggle to process these complex
spatial and multivariable interactions simultaneously, frequently leading to
inconsistent or delayed assessments.
To address these limitations, modern automated valuation systems
increasingly rely on Machine Learning (ML). ML frameworks can automatically
learn nonlinear patterns, adapt to changing market trends, and analyse vast
historical transaction records without being constrained by the rigid
assumptions of classical regression. Implementing a machine learning-based
house price prediction system therefore offers a faster, more data-driven, and
more objective approach to real estate valuation than manual appraisal alone.
This report brings together the theoretical foundation, empirical literature,
and a concrete implementation methodology for such a system.
1.2 Statement of the Problem
Traditional house price appraisal methods suffer from several key
deficiencies, which this study identifies as follows:
1. Subjectivity
and Human Bias: Manual valuations rely heavily on an individual appraiser's
judgement, which can produce inconsistent valuations for similar properties in
the same locality.
2. Inability
to Capture Non-Linear Dynamics: Standard linear statistical models struggle to
represent complex interaction effects, such as how the value added by an extra
bedroom changes depending on neighbourhood density or overall house size.
3. Inadequate
Handling of Spatial and Big Data: Conventional approaches often fail to
efficiently process large datasets that contain spatial autocorrelation,
temporal price shifts, and high-cardinality categorical features such as
neighbourhood names or zip codes.
These deficiencies point to the need for an automated, scalable, and
sufficiently accurate computational pipeline that can process nonlinear,
spatially correlated property data and deliver reliable price predictions. This
is the gap that the machine learning-based system examined in this report is
designed to close.
1.3 Research Questions
In line with the problem identified above, this study seeks to answer the
following questions:
1. What
preprocessing and feature-engineering steps are required to prepare the Ames
Housing dataset for machine learning-based price prediction?
2. How
can Ridge Regression, Random Forest, and XGBoost models be developed and
trained to predict residential house prices?
3. Which
of the three models - Ridge Regression, Random Forest, or XGBoost - provides
the most accurate and interpretable house price predictions, based on MAE,
RMSE, and R²?
1.4 Aim and Objectives of the Study
The aim of this study is to design, implement, and evaluate a Machine
Learning-Based House Price Prediction System capable of accurately estimating
residential property prices from structural, locational, and temporal features.
The specific objectives, each corresponding directly to a research question
above, are to:
1. To
Design and implement a data preprocessing and feature-engineering pipeline -
handling missing values, outliers, and the encoding of structural and
locational variables - for the Ames Housing dataset.
2. To
Develop and Ridge Regression, Random Forest, and XGBoost, for predicting
residential house prices.
3. Evaluate
and compare the performance of the trained models using MAE, RMSE, and R², and
identify the model that gives the most accurate and interpretable prediction.
1.5 Scope and Limitations of the Study
This seminar report focuses on regression-based machine learning approaches
applied to residential real estate data. It covers the theoretical basis of
property valuation, data preprocessing, feature extraction, algorithm training,
and performance evaluation using standard regression metrics (R², MAE, and
RMSE). The system is developed and evaluated on the Ames Housing dataset, which
represents a single, well-documented United States housing market between 2006
and 2010.
The study is subject to the following limitations: (i) the findings are
based on a single benchmark dataset and may not generalise directly to housing
markets outside the United States or to periods of significant macroeconomic
disruption; (ii) explicit geographic coordinates and spatial-kriging hybrids
are discussed in the literature but not implemented in the modelling pipeline;
(iii) the system is developed and validated in an offline, notebook-based
environment (Google Colab) rather than deployed as a live production service;
and (iv) computational resources available within Google Colab constrain the scale
of hyperparameter search that can be performed.
1.6 Significance of the Study
This study provides technical and theoretical insights for several groups
of stakeholders:
4. Homebuyers
and Sellers: An objective, transparent benchmark price that helps prevent
overpaying or underpricing a property.
5. Financial
and Mortgage Institutions: Improved risk assessment through rapid, automated
collateral valuation for mortgage underwriting.
6. Real
Estate Developers and Urban Planners: Support in evaluating property trends and
identifying the key factors driving residential land value across urban
regions.
7. Researchers
and Data Scientists: A synthesis of contemporary regression paradigms,
feature-engineering strategies, and spatial hybrid methodologies to guide
further empirical work.
1.7 Definition of Terms
8. Machine
Learning (ML): A branch of artificial intelligence in which algorithms learn
patterns from data in order to make predictions or decisions without being
explicitly programmed for the task.
9. Regression
Analysis: A statistical technique used to model and estimate the relationship
between a dependent variable (e.g., house price) and one or more independent
variables.
10. Feature
Engineering: The process of creating, transforming, or selecting input
variables (features) to improve the performance of a machine learning model.
11. Overfitting:
A modelling error in which a model learns the noise in the training data rather
than the underlying pattern, resulting in poor performance on unseen data.
12. Hyperparameter:
A configuration value set before training (e.g., the number of trees in a
Random Forest) that governs the learning process rather than being learned from
the data.
13. Ensemble
Learning: A technique that combines the predictions of multiple models to
produce a more accurate and stable result than any single model.
14. Target
Encoding: A method of converting a categorical variable into a numeric value
based on the average of the target variable within each category.
15. Outlier: An
observation that lies an abnormal distance from other values in a dataset.
16. Cross-Validation:
A resampling technique used to evaluate a model's ability to generalise to
unseen data by partitioning the training data into multiple folds.
17. Explainable
AI (XAI): A set of techniques, such as SHAP, that make the predictions of
complex machine learning models interpretable to humans.
Login To Comment