Skip to content

This Repo is dedicated to investigate the prediction power of public sentiment on FANG companies extracted from Economics Subreddit and New York times by comparing the prediction accuracy of different machine learning methods.

Notifications You must be signed in to change notification settings

danielle707/Quantitative-Trading-with-Sentiment-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FANG

FANG Stocks Prediction and Quantitative Trading using Sentiment Analysis

This project aims to investigate the prediction power of public sentiment on FANG, i.e Facebook, Amazon, Netflix and Google, extracted from Economics Subreddit and New York times by comparing the prediction accuracy of different machine learning methods.

We conclude that simpler models, such as linear regression and random forest better predict (63.16% accuracy) on stock return's growth trend using sentiment, largely due to high correlations between sentiment effects and stock prices.

License

RESULT:

ASSUMPTION:

DATA:

MODEL:


Table of Contents


Data Source

Sorted New York Times Data nytimes_data Stock Price from Nov 26th 2018 to Nov 11th 2019:

Emotional Analysis with NRC emotion lexicon: counting 8 emotions and 2 sentiments

def return_emotions(stock_df):
count = 0
columns = ['anticipation', 'sadness', 'joy', 'negative', 'trust', 'positive', 'surprise', 'disgust', 'anger', 'fear']
emotions = pd.concat([pd.DataFrame(emotion_analyzer(i), columns=columns) 
for i in stock_df['lead_paragraph']], ignore_index=True)
return emotions

New York Times Headline Daily Sentiment Daily nytimes_fb_sent

Exploratory Daily Sentiment Data Analysis

Daily Sentiemnt

Contributors

Danielle (zw2631) Mary Shao
Danielle Mary

License

License

About

This Repo is dedicated to investigate the prediction power of public sentiment on FANG companies extracted from Economics Subreddit and New York times by comparing the prediction accuracy of different machine learning methods.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published