Baselight

Stock TESLA

The “Tesla Stock Price Data (Last One Year)” dataset is a comprehensive

@kaggle.willianoliveiragibin_stock_tesla

About this Dataset

Stock TESLA

The “Tesla Stock Price Data (Last One Year)” dataset is a comprehensive collection of historical stock market information, focusing on Tesla Inc. (TSLA) for the past year. This dataset serves as a valuable resource for financial analysts, investors, researchers, and data enthusiasts who are interested in studying the trends, patterns, and performance of Tesla’s stock in the financial markets.It consists of 9 columns referring to date, high and low prices, open and closing value, volume, cumulative open and of course changing of price.At a first glance in order to better understand the data we should plot the time series of each attribute.The cumulative Open Interest(OI) is the total open contracts that are being held in a particular Future or Call or Put contracts on the Exchange.
We can see that the biggest drop of the stock happened in January of 2023 and after 5 to 6 months it regained its stock value round the summer of the same year with opening and closing price around 300.As a next step we are going to plot some more plots in order ro better understand the relation between our target column(change price) with every other attribute.
In order to interpret the results:

Linear Regression:

Mean Absolute Error (MAE): 6.28
This model, on average, predicts the “Price Change” within approximately 6.28 units of the true value.
Mean Squared Error (MSE): 52.97
MSE measures the average of squared differences, and this value suggests some variability in prediction errors.
Root Mean Squared Error (RMSE): 7.28
RMSE is the square root of MSE and is in the same units as the target variable. An RMSE of 7.28 indicates the typical prediction error.
R-squared (R2): 0.0868
R-squared represents the proportion of the variance in the target variable explained by the model. An R2 of 0.0868 suggests that the model explains only a small portion of the variance, indicating limited predictive power.
Decision Tree Regression:

Mean Absolute Error (MAE): 9.21
This model, on average, predicts the “Price Change” within approximately 9.21 units of the true value, which is higher than the Linear Regression model.
Mean Squared Error (MSE): 150.69
The MSE is relatively high, indicating larger prediction errors and more variability.
Root Mean Squared Error (RMSE): 12.28
RMSE of 12.28 is notably higher, suggesting that this model has larger prediction errors.
R-squared (R2): -1.598
The negative R-squared value indicates that the model performs worse than a horizontal line as a predictor, indicating a poor fit.
Random Forest Regression:

Mean Absolute Error (MAE): 6.99
This model, on average, predicts the “Price Change” within approximately 6.99 units of the true value, similar to Linear Regression.
Mean Squared Error (MSE): 62.79
MSE is lower than the Decision Tree model but higher than Linear Regression, suggesting intermediate prediction accuracy
Root Mean Squared Error (RMSE): 7.92
RMSE is also intermediate, indicating moderate prediction errors.
R-squared (R2): -0.0824
The negative R-squared suggests that the Random Forest model does not perform well and has limited predictive power.

Share link

Anyone who has the link will be able to view this.