Will dApps stand the test of time?

Before we can ascertain whether dApps will stand the test of time, let’s first understand the technology behind it. We cannot truly know if dApps can stand the test of time without understanding its…

Smartphone

独家优惠奖金 100% 高达 1 BTC + 180 免费旋转




Univariate Forecasting for the Volatility of the Stock Data using Deep Learning

Yesterday we saw how the volatility of the Tesla Inc Stock can be predicted using a basic regression approach.(Link). In this article, will go one step ahead to see how the volatility can be predicted as a time series method for a period of time using Deep Learning Model(LSTM) approach.

Time series forecasting is a method to predict the future using the previous values, whereas in yesterdays regression approach the model will not use any previous days volatility values to predict the target variable. Is it confusing? Will try to understand based on a simple example. Say you have a data of tesla’s stock volatility for a period of time and volatility is predicted using particular day’s start and end price alone, then it is called as regression approach. Where as in time series analysis the volatility of a particular day is predicted using previous n days of volatility values.

First and foremost important step in time series forecasting is preparation of data. Before starting we have to ask few questions about the data.

Volatility
Stability Result

Since the p-values is less than 5%, the data is stationary, means the volatility is not dependent on trend/time.

Here we are going to predict the volatility using last 10 days of data. So our input feature will be (N,10).

Oh Yeah!! LSTM was better that regression model for this data. The model is able is capture the trend. Fine tuning the model will lead to better result.

May be adding more features will also improve the prediction accuracy. Will try to convert the same data to multivariate tomorrow and see what happens there. Cant wait to see the difference.

Clap and Share if you find this useful :-)

Add a comment

Related posts:

HOW TO BUILD A SOCIAL MEDIA APP 2019

From a business perspective, the niche of social media is one of the most promising markets. Of course, this segment is densely occupied with dominant players, but the rapid development of technology…

Why Black Cats Are Unlucky

Black cats have long been viewed under a lens of suspicion and superstition, a negative connotation tied to the colour’s symbolic affiliation with death, grief and evil. From the 13th to 17th…

Giselas familj

En av dom ledande personerna att organisera agentnätverket ”Rote Drei” i Schweiz före kriget var en person som gick under täcknamnet ”Vera”, en officer i den Sovjetiska militära…