Question

Question 6 [Avec R] Consider the following dataset that has a volatility measure for 30 stocks 0.5974090 5.7420023 9.5334667 2.0089723 38.6716167 3.9366327 27.7419840 5.6029157 3.5437040 0.8317833 1.6134417 18.1795990 32.8353140 1. 1497677 8.1007240 4.3894207 3.8839490 2.4667357 9.0249373 7.2506833 2.7767457 2.0062077 0.8373807 3.3444917 1.8748643 7.0183583 8.9134893 0.8701540 2.4200127 9.8454307 (a). Plot a histogram of the dataset and describe it (b). Fit a normal distribution. Use a QQ-plot to check if your fitted model is appropriate. (c). Another distribution to consider is the log-normal. This says that the logs of the observation follow a normal distribution. Fit a log-normal distribution and uses a QQ-plot to check if your fitted model is appropriate.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

### R command

Volatility=c(0.597409,3.9366327,0.8317833,8.100724,9.0249373,3.3444917,0.870154,
5.7420023,27.741984,1.6134417,4.3894207,7.2506833,1.8748643,2.4200127,9.5334667,
5.6029157,18.179599,3.883949,2.7767457,7.0183583,9.8454307,2.0089723,3.543704,
32.835314,2.4667357,2.0062077,8.9134893,38.6716167,1.1497677,0.8373807)

## a) Histogram
hist(Volatility)


## b) QQ plot for the original data.
qqnorm(Volatility)
qqline(Volatility)

## b) QQ plot for the log transformed data.
log_Volatility=log(Volatility)
qqnorm(log_Volatility)
qqline(log_Volatility)

a) Histogram of the Volatility data

Histogram of Volatility 20 30 40 0 10 Volatility

Comment: The histogram shows a half positive skewed distribution. Hence, the given data does not follow a normal distribution.

b)

Normal Q-Q Plot ƠN 2 0 2 Theoretical Quantiles

Data points at both the tails of the above QQ-plot dispersed from the straight line, Hence, the given dataset does not fit for normal distribution.

c)

Normal Q-Q Plot 2 0 2 Theoretical Quantiles

The log-transformed data fall near to the straight line from one trail to another tail. Hence, the log-transformed data is fit for the normal distribution.

Add a comment
Know the answer?
Add Answer to:
Question 6 [Avec R] Consider the following dataset that has a volatility measure for 30 stocks...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
  • Use R to solve. Question 5 [Avec R Consider the dataset "faithful_data.txt". It contains the times...

    Use R to solve. Question 5 [Avec R Consider the dataset "faithful_data.txt". It contains the times between eruptions for Old Faithful, a Geiser in Yellowstone national park (a). Plot a histogram of the dataset and describe it. (b). Fit a normal distribution. (c). Use a QQ-plot to check if your fitted model is appropriate

  • NOTE: PLEASE INCLUDE ALL THE R CODES ALONG WITH THE PLOTS Instructions: Questions labeled with (R)...

    NOTE: PLEASE INCLUDE ALL THE R CODES ALONG WITH THE PLOTS Instructions: Questions labeled with (R) require use of R. Please provide appropriate R commands and their output, along with sufficient explanation and interpretation of the output to demonstrate your understanding. All other questions should be completed without reference to any R commands or output. Make sure you give enough explanation so your tutor can follow your reasoning if you happen to make a mistake. Please also try to be...

  •                 &...

                       SOME DRAWBACKS OF BLACK-SCHOLES To provide one motivation for the development of ARCH models (next handout), we briefly discuss here some difficulties associated with the Black Scholes formula, which is widely used to calculate the price of an option. For example, consider a European call option for a stock. This is the right to buy a specific number of shares of a specific stock on a specific date in the future, at a specific price (the exercise price, also called...

  • Need help with stats true or false questions Decide (with short explanations) whether the following statements are true or false a) We consider the model y-Ao +A(z) +E. Let (-0.01, 1.5) be a 95% con...

    Need help with stats true or false questions Decide (with short explanations) whether the following statements are true or false a) We consider the model y-Ao +A(z) +E. Let (-0.01, 1.5) be a 95% confidence interval for A In this case, a t-test with significance level 1% rejects the null hypothesis Ho : A-0 against a two sided alternative. b) Complicated models with a lot of parameters are better for prediction then simple models with just a few parameters c)...

  • Q1 (30 points) Consider Problem 11.45, Page 637. Please note that for this problem the data...

    Q1 (30 points) Consider Problem 11.45, Page 637. Please note that for this problem the data will be entered in R as follows: #Enter data on x = Dose Level of Drug, and y = Potency of Drug (Problem 11.45, page 637) x<-c(2, 2, 2, 4, 4, 8, 8, 16, 16, 16, 32, 32, 64, 64, 64) y<-c(5, 7, 3, 10, 14, 15, 17, 20, 21, 19, 23, 29, 28, 31, 30) For this problem, answer the following questions. In...

  • Question 2: Hypothesis testing (30 pts) Consider the following simple linear regression model with E[G-0 and...

    Question 2: Hypothesis testing (30 pts) Consider the following simple linear regression model with E[G-0 and var(G)-σ2. The output of linear where €1, €2, . . . ,en regression from R takes the form are i.i.d. errors Cal1: lm(formula y ~ x + 1) Residuals: Min 1Q Median 3Q Max 2.0606-0.3287-0.1148 0.5902 1.2809 Coefficients: Estimate Std. Error t value Prlt (Intercept) 0.507932 0.340896 1.49 0.147 0.049656 0.003455 14.37 1.89e-14 Signif. codes: 0.0010.010.05 .'0.1''1 Residual standard error: 0.7911 on 28 degrees...

ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT