Skip to content

Final assignment of DAPS. Data analysis for Microsoft stock price, MSFT annual income and GDP. Then use these three to predict future stock prices.

Notifications You must be signed in to change notification settings

Fanny-Yuan/DAPS_MSFT_stock_price_prediction

Repository files navigation

Microsoft stock price prediction

This the final assignment of the Data Acquisition and Processing Systems (DaPS) course ELEC0136 at UCL.

The objective of this assignment is to simulate a real-life data-science situation that can be approached using the process described in class: i) finding a source of data, ii) acquiring and storing it iii) cleaning and preprocessing it, iv) extracting meaningful visualisations, v) building a model for inference. You are also free to use any additional methods you find are well suited for the problem.

How to run

Environments and requirements are provided in this repo. Cleaned data is also provided. You can run the main function of the jupyter notebook directly.

Task 1: Data acquisition

Stock prices of Microsoft from April 2017 to April 2021 are acquired from the Internet. Two external data are collected to help predict the stock price: annual incomes of Microsoft and American GDP.

Task 2: Data storage

All data is stored as csv files.

Task 3: Data preprocessing

Data cleaning: Processing missing data and outliers

Data visualization: General trends of all three data can be shown in the diagrams.

Data transformation: Including data normalization.

Task 4: Data exploration

EDA and Hypothesis testing. Diagrams are provided.

Task 5: Data inference

Two models are built to predict stocks of May 2021 using data from April 2017 to April 2021:

Model using just previous stock prices

Model using stocks and two external data sources

Trained models have already been uploaded to github.

True values of stock prices of May are stored in 'MSFT_21May.csv'. Visualizations and evaluations of results are provided.

About

Final assignment of DAPS. Data analysis for Microsoft stock price, MSFT annual income and GDP. Then use these three to predict future stock prices.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published