All Projects → zhiaozhou → Chinese Stock Prediction Using Weibo Baidu News Sentiment

zhiaozhou / Chinese Stock Prediction Using Weibo Baidu News Sentiment

📈 A neural network regression model trained to predict the mean stock price percentage change everyday using financial factors like previous close price, actual previous close price, open price, market capitalization, total market value, price-to-earning ratio and price-to-book ratio, along with corresponding Sina Weibo and Baidu News sentiment scores.

Projects that are alternatives of or similar to Chinese Stock Prediction Using Weibo Baidu News Sentiment

Trainee
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Kepler.gl
Kepler.gl is a powerful open source geospatial analysis tool for large-scale data sets.
Stars: ✭ 8,231 (+23417.14%)
Mutual labels:  jupyter-notebook
Mlwpy code
Code from the Pearson Addison-Wesley book Machine Learning with Python for Everyone
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Restaurant success model
A model that predicts if a restaurant is going to fail within the next 4 years.
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Cs231n
Convolutional Neural Networks for Visual Recognition (kNN, softmax, etc)
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Misc
Machine Learning / Randomized Algorithm and more
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Minecraft Reinforcement Learning
Deep Recurrent Q-Learning vs Deep Q Learning on a simple Partially Observable Markov Decision Process with Minecraft
Stars: ✭ 33 (-5.71%)
Mutual labels:  jupyter-notebook
Nlpnotebook
一份不断完善的NLP学习笔记
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Welcome tutorials
Various tutorials given for welcoming new students at MILA.
Stars: ✭ 975 (+2685.71%)
Mutual labels:  jupyter-notebook
Presentations
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Teacher Student Training
This repository stores the files used for my summer internship's work on "teacher-student learning", an experimental method for training deep neural networks using a trained teacher model.
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Pandas basics
basic pandas tutorials
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Satellite imagery analysis
Implementation of different techniques to find insights from the satellite data using Python.
Stars: ✭ 31 (-11.43%)
Mutual labels:  jupyter-notebook
Learn Data Analysis W Python
Source code for 'Learn Data Analysis with Python; by A.J. Henley and Dave Wolf
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Graph Isomorphism Networks
A Tensorflow 2.0 implementation of Graph Isomorphism Networks.
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Neural Networks
All about Neural Networks!
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Pyannote Core
Advanced data structures for handling temporal segments with attached labels.
Stars: ✭ 34 (-2.86%)
Mutual labels:  jupyter-notebook
Drugs Recommendation Using Reviews
Analyzing the Drugs Descriptions, conditions, reviews and then recommending it using Deep Learning Models, for each Health Condition of a Patient.
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Stratx
stratx is a library for A Stratification Approach to Partial Dependence for Codependent Variables
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook
Healthcheck
Health Check ✔ is a Machine Learning Web Application made using Flask that can predict mainly three diseases i.e. Diabetes, Heart Disease, and Cancer.
Stars: ✭ 35 (+0%)
Mutual labels:  jupyter-notebook

Chinese Stock Prediction Using Weibo & Baidu News Sentiment

This is a research project for NYU CSCI-GA.3033-003-Realtime-and-Big-Data-Analytics. A neural network regression model is trained to predict the mean stock price percentage change everyday using financial factors like previous close price, actual previous close price, open price, market capitalization, total market value, price-to-earning ratio and price-to-book ratio, along with corresponding Sina Weibo and Baidu News sentiment scores. Additionally, a random forest model is also trained as a baseline model. Finally, the results are an RMSE of 0.002 and an RMSE of 0.0015 respectively which are similar.

Programe Design Diagram

Since this project is initiated as a big data management project so several big data tools are used here such as Hadoop Streaming, Spark and etc..

Data

Since the lack of time, only 200 stocks were chosen to be our training set stock list. And the time period is from 2018-01-01 till now.

  1. Sentiment Scores
    Sentiment analysis was performed on the tweets and news titles about the stocks of selected companies using Baidu NLP API which can directly output a sentiment score of a text string.

1.1. Weibos
Sina Weibo is just like Twitter which has its own API. However, to crawl weibos back to more than one month ago can be too expensive. So a crawler is written here using Python to manually scrap stock-related weibos. P.S., a neural network classifier was trained to address the verification code but it didn't succeed so the codes should be inputed manually during crawling.
1.2. Baidu News
Just like Sina Weibo, a crawler is written here using Python. 3. Stock Related Data
All dataset concerning financial factors and stock prices were downloaded from Uqer which is a quant backtesting platform in China.

Finally, a training set of 4564 samples was obtained with predictors: stock id, trade date,sentiment score sum, number of social media, sentiment score mean,weighted sentiment score sum(sentiment score*confidence level), weighted sentiment score mean, previous close price, actual previous close price, open price, market capitalization, total market value, price-to-earning ratio and price-to-book ratio.

Neural Network Architecture

A typical neural network regressor architecture is established here.

Result

For the random forest baseline model, a Root Mean Square Error(RMSE) of 0.0015 was obtained.

Additionally, for the neural network, an RMSE of 0.002 was achieved.

The two results were similar which can be due to the small size of the training set(4564 samples) because when the size of a training set is small, there can be few advantages of a neural network over a random forest.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].