Skip to content

NIFTY closing data was predicted by performing VADER analysis for news headline of the given day.

Notifications You must be signed in to change notification settings

shaktipanda1235/Predicting_NIFTY_using_news_headlines

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Inspiration

Through this project I wanted to explore how two wings of ML i.e. Sentiment Analysis and Time Series Forecasting go hand in hand. It can be seen as a hybrid model of NLP and TSF.

Steps

  • As one of the column is highly skewed and transforming them will make our model more ininterpretable, so instead of using Linear Regression various Non-linear Regressor are used to find best RMSE value.
  • Also while finding correlation heatmap, it was found that there was no strong correlation of variables with target variable, another resason to not go for Linear Regression.

image

  • A SARIMAX model was built for 'Closing Price' which is our target variable
  • The data from sentiment analysis is used as exogenous varibles to SARIMAX model.
  • The 'Time Varying Linear Regression' model gave the best result in terms of RMSE value.

image

  • Also prediction for next 30 days are done and plotted along with their confidence interval as predicting robust numbers can be misleading.

image

Conclusion

It was observe when there is an auto-corelation between the entries of data, it's better to go for TSF instead of traditional regressors.

About

NIFTY closing data was predicted by performing VADER analysis for news headline of the given day.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published