Question: Clustering statistic using R Download stock data for the past 1 year from finance.yahoo.com using pdfetch package. tickers = c(MSFT,AAPL,GOOG,FB,TXN,NFLX,DELL,HP,AMZN,WMT,JPM,BAC,AXP,GS,JNJ,MRK) Use the k clustering model

Clustering statistic using R

Download stock data for the past 1 year from finance.yahoo.com using pdfetch package.

tickers = c("MSFT","AAPL","GOOG","FB","TXN","NFLX","DELL","HP","AMZN","WMT","JPM","BAC","AXP","GS","JNJ","MRK") Use the k clustering model to identify the stock clustering pattern. First use price and volume as features to do the clustering. Then compute the average returns and standard deviation of returns for each stock. Use mean returns and std of returns a features to do the clustering analysis. do it your own way. I just need the code to study and do my hw

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Finance Questions!