This project aims to extend the use of the linear regression house valuation model to analyze housing data from Boston, Massachusetts, particularly around various attributes for the homes observed in the area and their prices using multiple algorithms.
This project will scope, analyze, prepare, and seek to explain the findings from the analysis.
Here are some questions that this project seeks to answer:
- Can an alternative cost minimization approach such as gradient descent be utilized to reduce training duration?
- How does this approach affect the mean squared error(MSE)?
As the scope of the real estate models continues to broaden, there is the realization that soon it will be necessary to work with enormous datasets — datasets containing hundreds of thousands of instances and hundreds or even thousands of features. The conventional closed-form solution of the normal equation will likely hinder training efficiency, potentially causing the training process to slow down to an unacceptable level. Therefore, an alternative cost minimization approach, like gradient descent, will be explored in hopes of reducing training time. Retraining the Boston regularized linear regression housing model will be the first step.
Data Sources:
- data/BostonHousing.csv
- StatLib Archive
- UC Irvine Machine Learning Repository
The objective is to explore the use of a different cost minimization method, such as gradient descent, to potentially reduce training duration.
The model aims to forecast the selling price of a house based on specific characteristics. This outcome falls under the category of regression. Although various algorithms can generate regression results, linear regression is straightforward, fairly simple to apply, and often yields satisfactory results in numerous situations.
The house's median value(Target) is the output (the dependent variable). The model determines (predicts) the price through multiple inputs (independent variables). This is an appropriate task for a regression model.
The same data used to train the regularized linear regression model will be employed. It is a CSV file containing more than 506 anonymized real estate transactions in Boston, Massachusetts.
Here are some questions that this project sought to answer:
-
Can an alternative cost minimization approach such as gradient descent be utilized to reduce training duration?
- Absolutely, utilizing a cost minimization strategy like gradient descent can help decrease training duration, in broad terms. The SGD model is likely to need less time for fitting, particularly when dealing with extensive datasets.
-
How does this approach affect the mean squared error(MSE)?
- By greatly decreasing the learning rate, the SGD model gets closer to the closed-form solution in terms of effectively reducing the error. Modifying the learning rate for the SGD model further will not lead to an error level that is lower than that of the closed-form solution, though. The core of a closed-form solution is that it determines the model that most successfully minimizes the cost function. While iterative methods can get near to the value, they cannot surpass it.