𧩠Time Series Puzzle: Given the prices of the stock in the past, predict its value in the future
π Start Solving
π Explore Dataset
π΅πΌββοΈ What is The Timeseries Prediction Puzzle About?
Ability to predict the future can be really valuable. But since we donβt have Doc and his DeLorean time machine from Back to the Future, we have to use data science to predict the future.
In this puzzle, you will predict the value of a stock in the future.
πͺπΌ What Youβll Learn
In this puzzle, you will learn
- How to predict and forecast the future price of any series
- How to use the most famous Prophet method developed by Facebook
Letβs get started! π
β The Task
Your task is to use time-series prediction to find the future value of these synthetic stock prices. Given the prices of the stock in the past, predict its value in the future.
π©π½βπ» Explore Dataset
The dataset contains stock prices from 1985-01-29 to 2010-03-25 in train.csv and 2010-03-26 to 2013-06-21 in val.csv set, leaving out the weekend, i.e., Saturday and Sunday. You need to predict the stock prices from 2013-06-24 to 2021-01-13 on the weekdays.
The dataset contains the Training set and Validation set:
- Training Set: 6345 samples
- Validation Set: 817 samples
Training & Validation Set The training and validation set contains the dates and values in CSV format. The CSV file contains two columns.
date | value |
---|---|
1985-01-29 | 1552.519959 |
1985-01-30 | 1576.070007 |
1985-01-31 | 1561.440002 |
1985-02-01 | 1554.839935 |
- date - date for the stock market
- value - the value of the stock on the given date
π Dataset Files
The following files are available in the resources section:
- train.csv - (6345 samples) This training CSV file contains the date and the values.
- val.csv - (817 samples) This validation CSV file contains the date and the values.
- sample_submission.csv - (1905 samples) File used to evaluate the leaderboard score but does not have the values.
π¬ Let's Solve This Puzzle
The starter kit breaks down everything from downloading the dataset, loading the libraries, processing the data, creating, training, and testing the model.
Click here to access the basic starter kit. It contains in-depth instructions to:
- Download the necessary files
- Setup the AIcrowd-CLI environment that will help you submit directly via a notebook
- Downloading dataset & importing libraries
- Preprocessing the dataset
- Creating the model
- Setting the model
- Training the model
- Submitting the result
- Uploading the results
Make your first submission using the starter kit. π
π Evaluation Criteria
The Mean Squared Error Metric is used here to test the efficiency of your model.
π€« Hint to get started
Check out the open-source library Prophet, developed by Facebook and designed to automatically forecast univariate time series data. You can learn more about it here.
π Resource Circle
Learn about another state-of-the-art approach using LSTM here.
π―ββοΈ Get Help From Community
Hop over to the AIcrowd Blitz discord server to see ongoing discussions about this puzzle.
πββοΈ Subscription Queries
This is one of the many free Blitz puzzles you can access forever. To access more puzzles from various domains from the Blitz Library and receive a special new puzzle in your inbox every two weeks, you can subscribe to AIcrowd Blitz here.