Question
From the web, download the daily stock price of Hong Kong Stock Exchange for one year(Note: You can download it from Yahoo Finance) (a) Plot
From the web, download the daily stock price of Hong Kong Stock Exchange for one year(Note: You can download it from Yahoo Finance)
(a) Plot out the daily prices, can you detect any trend?
(b) Construct the return series from these prices and plot the histogram of the return series. Does it look like a normal curve? What does the q-q normal plot on this set of data tell us?
Comment: I have tried using R-studio to complete the task. However, I am not really familiar with R-studio and as a result I may need to ask for some help in this question. R-studio codes written is as below:
library(readr)
df<-X0388_HK <- read_csv("C:/Users/user/Desktop/0388.HK.csv")
head(df)
install.packages("ggplot2")
library(ggplot2)
data(X0388_HK)
ggplot(data=df,aes(x=Date,y=Close) )+
geom_line()+
geom_point()
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started