Giter Site home page Giter Site logo

ellislam / how-headlines-change-the-way-we-think Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.21 MB

Evaluated the performance of classification and regression methods of predicting the market change.

Jupyter Notebook 100.00%
machine-learning data-visualization random-forest-regression random-forest-classifier sklearn python feature-selection feature-engineering sentiment-scores

how-headlines-change-the-way-we-think's Introduction

How Headlines Change the Way We Think

Introduction

Headlines are vital in both capturing readers’ attention and in influencing their online reading experience of news. In fact, approximately six in ten people limit their reading to headlines only, without clicking on a link to the full article. Furthermore, there are many online spaces where headlines are the only visible part of the news article, for example, news feeds and social media.

Recently online news and social media data have been widely used in the financial market. Quants and modelers believe that these unstructured and non-traditional data should shed extra light on the prediction of the market.

Both classification and regression methods to predict the market change were applied. Finally, which method is better in terms of performance of signal-based trading was evaluated.

Dataset

In this project, historical news headlines from Reddit WorldNews Channel will be applied. All headlines are ranked by reddit users' votes, and only the top 25 headlines are considered for a single date. (Range: 2008-06-08 to 2016-07-01)

For stock data, Dow Jones Industrial Average (DJIA) is used to "prove the concept". (Range: 2008-08-08 to 2016-07-01).

Library Used

import pandas as pd
import numpy as np
import seaborn as sn
import matplotlib.pyplot as plt
%matplotlib inline
import statsmodels.api as smf
from scipy.stats import chi2_contingency
from textblob import TextBlob
from sklearn.ensemble import RandomForestRegressor
from sklearn.ensemble import RandomForestClassifier
from sklearn.metrics import roc_curve, auc, roc_auc_score

Technologies

This project is created with:

  • Jupyter Notebook 6.0.3

how-headlines-change-the-way-we-think's People

Contributors

ellislam avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.