Skip to content

Analyze big tech company's (Amazon, Google, Apple and Microsoft) stock market and their correlation whether are affecting their price and daily returns or not (using data from 2013/4 to 2018)

Notifications You must be signed in to change notification settings

keiziapurba/Stock-Market-Time-Series-Analysis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 

Repository files navigation

Stock Market Time Series Analysis

Analyze big tech company's stock market and their correlation whether are affecting their price and daily returns or not (using data from 2013/4 to 2018).


Table of Content


Analyzing Closing Price of Stocks & Volume Trading

Visualization of big techs companies stock market time to time from 2013/2014 to 2018:

Screen Shot 2022-03-15 at 13 10 44

Overall, distribution of highest peak stock in each company:

  • Apple in 24 January 2014 with total volume: 266.8M
  • Google in 17 July 2015 with total volume: 11.2M
  • Microsoft in 19 July 2013 with total volume: 248.3M, followed by 23 August 2013 with total volume: 225.4M
  • Amazon in 30 January 2015 with total volume: 23.8 M

Screen Shot 2022-03-15 at 20 28 23

In 2017 we can take some points:

  • Apple have peak in 1 febuary with total volume: 112M and rest of the time Apple stock average at below 50M.
  • Google have peak in 27 october with total volume: 5.2M, followed by 24 July with total volume: 4.7M and the rest is performing average
  • In 27 October, Microsoft have a little peak with total volume: 71.1M, but overall the stock is performing average
  • For Amazon, the peak is in 27 October with total volume: 16.6M, in this year, Amazon have some peaks in February, June, July and November aswell

Analyzing Daily Returns

  • In this step, I analyze Amazon daily return percentage in 2015.

Screen Shot 2022-03-15 at 19 17 27

  • Based on the graph, we can see that Amazon have its peak and crash in August, 2015. Amazon stock at its highest peak in August, 24, 2015 with 8% daily return and crash happened the day after the peak, August 25, 2015 with -7% daily return.
  • There might some factors that affecting this, for example because of the government policies or maybe Apple launch new product.

Screen Shot 2022-03-15 at 19 26 29

  • We can see that Amazon have downward trends to its monthly mean of close feature, but after 2016 the main price starts increasing rapidly.

Multivariate Analysis

  • Amazon and Microsoft plot is very close to linear, which means if the Amazon price is increases or the closing price of Amazon and stocks increases, Microsoft stock closing price will be increases aswell.
  • Apple and Google plot dont have good correlation, because it's far from linear. It means that we can't find a very good relationship between closing price od apple and between closing price of google

Screen Shot 2022-03-15 at 19 47 33

Tech companies that have high correlation to each other are:

  • Amazon and Microsoft: 96%
  • Google and Microsoft: 91%
  • Apple and Microsoft: 90%
  • Amazon and Google: 89%
  • Amazon and Apple: 82%

Overall, the correlation between each tech companies are high, except correlation between Google and Apple: 64%, it's not necessarily bad but they have low correlation (>0.7: high correlation)

Screen Shot 2022-03-15 at 19 47 55

Value at Risk Analysis

  • In this step, we make new feature called change which is closing price minus opening price then divide it with closing price and convert it to percentage by times it with 100. Change feature is a change in each and every stock every year from 2014 to 2018 (in %).

Screen Shot 2022-03-15 at 20 53 18

Overall the change correlation between each companies are low, but Amazon and Microsoft have the highest correlation: 42%. It means if Amazon have high daily return, there is 42% probability that daily retuen in Microsoft is also high.

Screen Shot 2022-03-15 at 20 57 06

Then we check one of company distribution. Here I used apple change distribution and it shows that it have normal distribution:

Screen Shot 2022-03-15 at 20 59 02

  • After look at the distribution, we perform standarization. When we standardize a normal distribution, the mean becomes 0 and the standard deviation becomes 1. This allows us to easily calculate the probability of certain values occurring in your distribution, or to compare data sets with different means and standard deviations.
  • We can check the standarization using std()*3 to check 99.7% entire data, because the distribution is normal. After checking using std()*3 it shows that 99.7% chance that Apple daily return will lay in range between -3.5 and 3.5.
  • We can also check using quantile. I used quantile(0.1), which means 90%. The data shows that 90% of the time Apple worst daily lost will not exceed -1.4
  • Here are percentage daily return of each company after doing value risk analysis (value in %):

Screen Shot 2022-03-15 at 20 08 34

About

Analyze big tech company's (Amazon, Google, Apple and Microsoft) stock market and their correlation whether are affecting their price and daily returns or not (using data from 2013/4 to 2018)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published