Multiple linear regression using gradient descent: A case study on Thailand car sales
Date
Journal Title
Journal ISSN
Volume Title
Publisher
Abstract
Severe fluctuations in Thailand car sales had enormous impacts on the automobile and related industries. A reliable forecasting model is needed to accurately forecast the car sales for the next production batch. Using ten-year car sales data, this research proposes a machine learning approach using gradient descent (GD) to fitting multiple linear regression for Thailand car sales forecasts. The resulted forecasting accuracy is then compared with that of a normal equation method (NE) as well as that obtained from a statistical package (SP). First, two independent variables (2IVs): Thailand’s Gross Domestic Product and the 12-month Loan Rate are used in the proposed models. Then, dummy seasonal variables (Season) are added to the regression equations. Finally, dummy event flag variables (Event) are added. Totally, five sets of experiments are conducted. The experiment results show that NE produces the same regression equations as SP. Both GD and NE methods yield exactly the same results for 2IVs, but GD yields slightly less prediction accuracy than NE’s in Season and Event experiments. This research concludes that gradient descent has comparable forecasting accuracy to those from other methods. Nevertheless, when the regression contains dummy variables, caution is recommended.
