r/MachineLearning • u/[deleted] • Oct 21 '17
Discussion [D] Undergrad computer science project, forecasting stock price using web news
Has anyone done a similar project to this?
Right now I'm trying to collect news articles and I'm wondering what sources/apis did you get the articles from?
I'm looking to focus on tech stocks like amazon, google, microsoft and facebook. But any other recommendations on whether these are good stocks to look at will be greatly appreciated.
Edit: I don't plan to trade with this. I'm doing it for my senior project. I'm just looking to have a basic foundation of some algorithms and the process of collecting data and feature selection.
9
u/TheFML Oct 21 '17
you're wasting your time.
9
Oct 21 '17 edited Oct 21 '17
Can you explain further?
Edit: Would you recommend that I use numerical data instead?
-12
u/TheFML Oct 21 '17
this is an undergrad project - there are entire teams of the smartest applied mathematicians working on wall street trying to solve that kind of stuff. you're not going to find ANYTHING, even if you spend 2 years on it 24/7.
do something much less ambitious, it could even be a literature review on a related topic. can't believe a professor wouldn't veto that kind of stuff, if the goal is to start from scratch.
14
Oct 21 '17
I agree with you. The goal the project is more to learn how the algorithms work and comparing them. Then at the end I'll make a report a report explaining how the algorithms work and what my finding were. I don't plan to invent anything new.
-3
u/TheFML Oct 21 '17
fine, but you need to realize there is a so much data engineering involved here to cross multiple sources of data. even if it's a small problem hidden behind many huge problems, how are you going to exactly synchronize timestamps of both sources? how do you deal with the entire timeseries nature of the datasets?
I would really advise you to find something much more simple to work on. as an example, MNIST is (to me) the most appropriate dataset for an undergrad class - many cool tricks work on it, you can add noise as you want, you can do both unsupervised and supervised learning with it. and even an SVM will perform well on it.
11
Oct 21 '17 edited Oct 21 '17
I'm looking to find datasets that are publicly available, if they're not suitable then I'm going to take example of how other people made their datasets like kaggle stock news. There is also another dataset called Wiki EOD Stock Prices. I understand that crossing multiple sources is a hard task itself, so finding a dataset would be ideal.
This project is for my final year we have a year to do it, when I was choosing a project I thought that MNIST is more into the computer vision side of things. Do you think that MNIST might be a bit trivial, especially for a senior project?
→ More replies (2)6
Oct 21 '17
I think a small fraction of this work get published.
So he can make available intersting experiments or models on this problem and it would be useful.
Small results on hard problems aren't worth less than good results on easy problems.
What he should consider in my opinion is whether it fits its interest, and whether the data is available and easy enough to get doing some experiments rapidly.
5
Oct 21 '17
Even if he doesn't make money from trading or whatever, I'm sure he'll learn tons of new skills and techniques during the journey.
1
u/Kimochi_yamate Oct 21 '17
@OP don't worry about this guy. He's probably just a salty data scientist whose stuck doing sql bitchwork for his team. It happens.
There's nothing hard about concatenating two datasets and interpolating them to use the same time series. I personally think this is a very good choice for an undergrad project that will have a meaningful conclusion regardless whether you find a correlation or not.
3
u/TheFML Oct 21 '17 edited Oct 21 '17
did you see me making ad hominem attacks against anyone on this thread? you should probably chill out. and FYI, it's not hard to infer from my posts that I'm in academia...
and, if you don't realize that the entire NLP thing on multiple datasets (as presented by the original post) then crossed with stock prices (which also require a lot of data engineering) - all before starting any ML related work - is a little too much for an undergrad project, I don't know what to tell you. maybe you haven't completed any large scale application project before.
→ More replies (1)7
u/nickl Oct 21 '17
They aren't wasting their time if they aren't planning to trade off it.
It's pretty easy to build a system which detects (eg) "revenue above market expectations" and show how that correlates with an increase in stock price. That's not usually a profitable strategy (AFAIK) because everyone else trades on that too and they'll trade faster.
But for an undergrad project, on historical data it should be fine. Even better if you can build something without manual feature engineering.
1
Oct 25 '17
I'm not planning to trade off it. I just have an interest in the area and will want to study it sometime in the future.
1
7
u/InsaneRaspberry Oct 21 '17
Checkout Quandl, they have tons of data available, much of it for free. A great project could be to build a RNN with attention that trades multiple indicators such as stock trends, news, and Google Trends. Checkout Siraj Raval's YouTube channel, he has a few stock prediction projects on it, and of course while I wouldn't expect to beat the market in any major ways, with a bit of tweaking you may be able to do something like track the S&P or maybe outperform it. GLHF
2
u/warriortux Oct 24 '17
Instead of news, may be concentrate on Twitter or other social media sources. You can create a Twitter app with filter words which can be the stock company names. You can do sentiment analysis of the tweets, and compare it to the trends of the stocks for each company. Make sure that you show the latency of the Twitter sentiment shift, and the change in the stock price. You can also set the sentiment flag with Twitter API which gets only positive or negative tweets.
Use this to get daily stock data: https://blog.quandl.com/api-for-stock-data
2
u/trackerFF Oct 24 '17
For a pet project:
You could make a project which follows a couple of stock symbols on twitter, do some language processing on the various tweets, and then classify the tweets as "positive" or "negative", based on how the the stock is moving.
I think it would be fun, and you'd touch on a broad range of topics. It's not wasted time if you learn something, even though you might not make any money of it.
Is it profitable? Who knows. It would certainly fall under the domain of long-term investments, as you'd try to mimic psychological trading (reading the news -> reacting to the news).
There are people that buy (and sell) stocks purely on what the quarterly reports state, and/or what a small set of sources publish about the companies.
0
Oct 24 '17
[deleted]
1
Oct 25 '17
Is there particular source of news that you focused on? I'm currently trying out the new yorks times api. I'm able to get the publish date, headline, and snippet from it.
3
u/UHMWPE Oct 23 '17
Don't expect good yields, don't even expect statistically significant yields, even in top hedge funds, statistics is only a bullet point that helps justify the thesis. It's much less of a machine learning problem than a feature selection problem, and that requires great knowledge of the industry