Project step: š Rebar Demand Forecasting Project Plan
1ļøā£ Data Cleaning & Manipulation ā (Completed)
-
Merged multiple datasets (
df_rebar,Ādf_cement,Ādf_real_estate,Ādf_infra). -
Handled missing values (
NaNĀ andĀNaT). -
Aligned timestamps and ensured proper date formatting.
-
Aggregated weekly rebar prices and ensured consistency.
2ļøā£ Exploratory Data Analysis (EDA) & Regression Analysis š (In Progress)
-
GeneratedĀ descriptive statisticsĀ for key variables.
-
CreatedĀ correlation heatmapsĀ to identify important relationships.
-
ConductedĀ multiple linear regressionĀ to analyze variable influence onĀ
rebar_demand. -
Evaluated regression model performance using R², MSE, and visualization.
3ļøā£ Feature Engineering ā (Next Step - Recommended Before Time Series Analysis)
-
Lag Features:Ā Add pastĀ
rebar_demandĀ values as new predictors. -
Rolling Window Features:Ā Compute moving averages for smoother trends.
-
Seasonality Encoding:Ā ApplyĀ Sin-Cos encodingĀ forĀ
monthĀ &Āweek_of_monthĀ to capture cyclic behavior. -
Interaction Terms (Optional):Ā Explore relationships between economic indicators and demand.
4ļøā£ Time Series Analysis š (Upcoming)
-
CheckĀ stationarityĀ using theĀ ADF test.
-
Identify seasonal patterns and trends.
-
PerformĀ time series decompositionĀ (Trend, Seasonal, Residuals).
-
VisualizeĀ historical demand trendsĀ and detect anomalies.
5ļøā£ Modeling & Forecasting š
-
Test different models for predictingĀ
rebar_demand:-
Facebook ProphetĀ (trend + seasonality modeling).
-
ARIMA/SARIMAĀ (statistical forecasting).
-
XGBoost / CatBoostĀ (machine learning-based predictions).
-
LSTM / GRUĀ (deep learning for long-term time series forecasting).
-
-
Tune hyperparameters for optimal model performance.
6ļøā£ Model Evaluation & Optimization š
-
Compare models using:
-
Root Mean Squared Error (RMSE)
-
Mean Absolute Percentage Error (MAPE)
-
Cross-validation scores
-
-
Select theĀ best modelĀ based on accuracy & generalization.
-
Fine-tune model parameters for better predictions.
Final Deliverables š
-
Cleaned datasetĀ with engineered features.
-
Exploratory Data Analysis (EDA) report.
-
Regression analysis resultsĀ (variable importance).
-
Time series analysis & forecasting models.
-
Model evaluation & comparison report.
š Next Steps:Ā ā CompleteĀ EDA & Regression AnalysisĀ š ImplementĀ Feature EngineeringĀ before moving to Time Series Analysis š Proceed toĀ Modeling & Forecasting
š Let me know if youād like to add any specific steps or focus on certain models!Ā šÆ