π This project predicts median housing prices in New Jersey using time series forecasting techniques in R. It applies classical and decomposition-based models to uncover patterns and predict future values in the housing market.
- Objective: Forecast median home prices in New Jersey using historical trends
- Tools: R, RMarkdown
- Libraries:
fpp,fpp2,TTR,dplyr,ggplot2,forecast
- Source: Median listing prices dataset for all homes in NJ
- Format:
.csvfile, time-series indexed - Columns include: Region name, Date, Median Price
- Converted time columns to time-series format
- Handled missing values and removed noise
- Created visual exploratory plots (trends & seasonality)
π Models Implemented
-
Baseline Models:
- Naive Forecast
- Moving Average
- Simple Exponential Smoothing (SES)
-
Advanced Model:
- Holt-Winters Additive
- Decomposition Additive (Season-Trend)
| Model | RMSE | MAE | MAPE |
|---|---|---|---|
| Naive | 772.625 | 703.041 | 700.607 |
| Simple Exp Smoothing | 745.526 | 693.019 | 772.871 |
| Holt-Winters Additive | 611.131 | 520.891 | 514.702 |
β Holt-Winters Additive gave the lowest error rates, indicating superior performance in capturing both seasonality and trend.
- π Forecast shows upward housing trend in NJ over the next 2β3 years
- π§ͺ Holt-Winters model best captured the trend + seasonality
- π Residual diagnostics confirmed randomness β robust forecasting
# Clone the repo
git clone https://github.com/kumarritik24/NJ_Home_Price_Forecasting.git
# Open the .Rmd file in RStudio to run the code and generate output