IDEAS home Printed from https://ideas.repec.org/a/fst/rfsisf/v9y2024i17p143-156.html
   My bibliography  Save this article

Comparative analysis of regression models for stock price prediction: Linear, support vector, polynomial, and LASSO

Author

Listed:
  • Ștefan Rusu

    (University of Oradea, Oradea, Romania)

  • Marcel Ioan Boloș

    (University of Oradea, Oradea, Romania)

  • Marius Leordeanu

    (Polytechnic University of Bucharest, Bucharest, Romania; The Institute of Mathematics of the Romanian Academy, Bucharest, Romania)

Abstract

This paper investigates the performance of various regression-based machine learning techniques for short-term stock price prediction. Four regression algorithms – linear regression, support vector regression (SVR), polynomial regression and LASSO regression – were applied to Apple Inc’s historical price data for two-years ending on October 1st, 2024, to predict the next day’s closing stock price. Technical indicators such as moving average, relative strength index (RSI) and lag features were included in the regressions to improve prediction performance. Evaluation metrics such as Mean Absolute Error (MAE), Mean Squared Error (MSE), and R-squared (R²) were employed to assess the models’ performance. Results show that linear regression and LASSO regression were the most performant models, reaching R² values of more than 0.95, with minimal error values. While SVR yielded the poorest results when accounting for all metrics. Overall, the study highlights the predictive power of simpler regression models over more complex ones in stock price predictions and offers recommendations for model selection.

Suggested Citation

  • Ștefan Rusu & Marcel Ioan Boloș & Marius Leordeanu, 2024. "Comparative analysis of regression models for stock price prediction: Linear, support vector, polynomial, and LASSO," Journal of Financial Studies, Institute of Financial Studies, vol. 9(17), pages 143-156, November.
  • Handle: RePEc:fst:rfsisf:v:9:y:2024:i:17:p:143-156
    DOI: 10.55654/JFS.2024.9.17.09
    as

    Download full text from publisher

    File URL: https://revista.isfin.ro/wp-content/uploads/2024/11/9.-Rusu-S.-et..pdf
    Download Restriction: no

    File URL: https://revista.isfin.ro/2024/11/06/comparative-analysis-of-regression-models-for-stock-price-prediction-linear-support-vector-polynomial-and-lasso/
    Download Restriction: no

    File URL: https://libkey.io/10.55654/JFS.2024.9.17.09?utm_source=ideas
    LibKey link: if access is restricted and if your library uses this service, LibKey will redirect you to where you can use your library subscription to access this item
    ---><---

    More about this item

    Keywords

    ;
    ;
    ;
    ;
    ;
    ;
    ;
    ;

    JEL classification:

    • C32 - Mathematical and Quantitative Methods - - Multiple or Simultaneous Equation Models; Multiple Variables - - - Time-Series Models; Dynamic Quantile Regressions; Dynamic Treatment Effect Models; Diffusion Processes; State Space Models
    • C52 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Model Evaluation, Validation, and Selection
    • C53 - Mathematical and Quantitative Methods - - Econometric Modeling - - - Forecasting and Prediction Models; Simulation Methods
    • G10 - Financial Economics - - General Financial Markets - - - General (includes Measurement and Data)

    Statistics

    Access and download statistics

    Corrections

    All material on this site has been provided by the respective publishers and authors. You can help correct errors and omissions. When requesting a correction, please mention this item's handle: RePEc:fst:rfsisf:v:9:y:2024:i:17:p:143-156. See general information about how to correct material in RePEc.

    If you have authored this item and are not yet registered with RePEc, we encourage you to do it here. This allows to link your profile to this item. It also allows you to accept potential citations to this item that we are uncertain about.

    We have no bibliographic references for this item. You can help adding them by using this form .

    If you know of missing items citing this one, you can help us creating those links by adding the relevant references in the same way as above, for each refering item. If you are a registered author of this item, you may also want to check the "citations" tab in your RePEc Author Service profile, as there may be some citations waiting for confirmation.

    For technical questions regarding this item, or to correct its authors, title, abstract, bibliographic or download information, contact: Cosmin Catalin Olteanu (email available below). General contact details of provider: https://edirc.repec.org/data/isfinro.html .

    Please note that corrections may take a couple of weeks to filter through the various RePEc services.

    IDEAS is a RePEc service. RePEc uses bibliographic data supplied by the respective publishers.