JOURNAL ARTICLE

Tesla stock prediction with SVM, decision tree and random forest

Jianliang Wang

Year: 2025 Journal:   Highlights in Business Economics and Management Vol: 50 Pages: 342-346

Abstract

Stock price prediction is a critical task in financial markets, as it helps traders and investors make informed decisions. This paper compares 3 popular machine learning techniques, which are Support Vector Machines (SVM), Decision Trees, and Random Forests, in predicting stock movements. This paper will evaluate and compare the performance of these models for predicting Tesla's stock price movements by using historical stock data. The 20-day Simple Moving Average (SMA20) is used as a key technical indicator which is combined with the basic stock features such as Open, High, Low, and Volume. The results demonstrate that the SVM model achieved the highest accuracy and recall even when only using the SMA20. However, the SVM model provided a better balance between precision (51.5078%) and recall (93.6404%), achieving the highest F1 score which is 66.4591%. The three models have different focuses and advantages, which also lead to the difference between the test values. In this prediction, the SVM model performs the best, compared to the other two models. With the results of the test, the SVM model is perfect for recognizing price increases in a short time with a balance between precision and recall.

Keywords:
Random forest Decision tree Support vector machine Artificial intelligence Machine learning Computer science Stock (firearms) Forestry Geography

Metrics

0
Cited By
0.00
FWCI (Field Weighted Citation Impact)
14
Refs
0.12
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Stock Market Forecasting Methods
Social Sciences →  Decision Sciences →  Management Science and Operations Research
Forecasting Techniques and Applications
Social Sciences →  Decision Sciences →  Management Science and Operations Research
Energy Load and Power Forecasting
Physical Sciences →  Engineering →  Electrical and Electronic Engineering
© 2026 ScienceGate Book Chapters — All rights reserved.