Question

In: Statistics and Probability

You may use R or any other software to calcuate the sample variances. Suppose that the...

You may use R or any other software to calcuate the sample variances. Suppose that the percentage changes in value per day on holdings of the stock of company ABC and DEF are normally distributed with unknown mean µabc, µdef and unknown variance σ2abc, σ2def. The following daily returns are observed over two business weeks (10 trading days): abc_pctchange <- c(2.82, 3.61, 5.66, -2.17, 2.40, -1.48, 3.55, 1.64, -0.16, 2.21)
def_pctchange <- c(1.83, 2.56, 3.55, -1.19, 0.40, -1.53, 2.44, 1.89, -0.54, 9.25) [the units are percentage points] 2.a) Produce a 95% confidence interval for the difference in mean return of the stock of company ABC and EDF, asuming that the variance are equal but unkown. (5 points) 2.b) Conduct a hypothesis test for the mean change in value stock ABC and DEF at a sgnificance level of 0.05, once again assuming that the variances are equal. State your hypothesis, calculate the p-value and state your conclusion. (5 points) 2.c)Did your confidence interval from a) contain the null hypothesis? Did your rejection region from c) contain the observed value of the test statistic? Are these two results contradictory? (5 points)a 2.d)Perform a F-test for the equality of variance based on the sample variances, can you reasonably assume that the variances are equal at a 0.05 significance level? (5 points)

Solutions

Expert Solution


abc_pctchange <- c(2.82, 3.61, 5.66, -2.17, 2.40, -1.48, 3.55, 1.64, -0.16, 2.21)
def_pctchange <- c(1.83, 2.56, 3.55, -1.19, 0.40, -1.53, 2.44, 1.89, -0.54, 9.25)

t.test(abc_pctchange,def_pctchange,var.equal = T)

        Two Sample t-test

data:  abc_pctchange and def_pctchange
t = -0.046474, df = 18, p-value = 0.9634
alternative hypothesis: true difference in means is not equal to 0
95 percent confidence interval:
 -2.679945  2.563945
sample estimates:
mean of x mean of y 
    1.808     1.866 


var.test(abc_pctchange,def_pctchange, alternative = "two.sided")

a)

95% confidence interval is (-2.679945 , 2.563945)

b)

Ho :

p-value = 0.9634

since p-value > alpha

we fail to reject the null hypothesis

c)

0 is present in confidence interval

hence we fail to reject the null hypothesis

d)

var.test(abc_pctchange,abc_pctchange, alternative = "two.sided")

        
F test to compare two variances

data:  abc_pctchange and def_pctchange
F = 0.61153, num df = 9, denom df = 9, p-value = 0.4752
alternative hypothesis: true ratio of variances is not equal to 1
95 percent confidence interval:
 0.1518963 2.4620306
sample estimates:
ratio of variances 
         0.6115336 

p-value = 0.4752 > alpha

hence we fail to reject the null hypothesis

we can reasonably assume that the variances are equal at a 0.05 significance level


Related Solutions

You may use Microsoft Excel or any other technology to complete the question as long as...
You may use Microsoft Excel or any other technology to complete the question as long as the explanation is clear and a screen shot is included. Please complete the following problems: 1. Eastman Publishing Company is considering publishing an electronic textbook on spreadsheet applications for business. The fixed cost of manuscript preparation, textbook design, and Web site construction is estimated to be $160,000. Variable processing costs are estimated to be $6 per book. The publisher plans to sell access to...
Screenshots from MySQL (or any other software you use) of all the tables after queries result...
Screenshots from MySQL (or any other software you use) of all the tables after queries result sorry no spam i will be reported no copy and paste i want complete answer with Screenshots no handwriting thanks for your efforts and time Using the info below, write a query SQL Using the info below to Normalize the Tables (in 3NF at least) . Using the info below toCreate the Normalized Tables and Populate them with at least 5 Rows . Using...
USE R software Suppose that we want to test H0 : F = G, where F...
USE R software Suppose that we want to test H0 : F = G, where F is the distribution of weight for the casein feed group and G is the distribution of weight for the sunflower feed group of the chickwts data. A test can be based on the two-sample Kolmogorov-Smirnov statistic chickwts weight feed 1 179 horsebean 2 160 horsebean 3 136 horsebean 4 227 horsebean 5 217 horsebean 6 168 horsebean 7 108 horsebean 8 124 horsebean 9...
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R...
THIS QUESTION REQUIRES THE USE OF R STUDIO. ANY ANSWERS GIVEN THAT ARE NOT IN R STUDIO CODE WILL NOT SUFFICE. SOLVING WITHOUT THE USE OF R STUDIO IS NOT ACCEPTABLE. The previous question was: Annual salaries for a large company are approximately normally distributed with a mean of 49000 dollars and a standard deviation of 2000 dollars. One manager claims that all of his direct reports are paid "above the 75th percentile" for the company. What is the minimum...
(a) Suppose n = 6 and the sample correlation coefficient is r = 0.888. Is r...
(a) Suppose n = 6 and the sample correlation coefficient is r = 0.888. Is r significant at the 1% level of significance (based on a two-tailed test)? (Round your answers to three decimal places.) t = critical t = Conclusion: Yes, the correlation coefficient ? is significantly different from 0 at the 0.01 level of significance. No, the correlation coefficient ? is not significantly different from 0 at the 0.01 level of significance.    (b) Suppose n = 10...
(a) Suppose n = 6 and the sample correlation coefficient is r = 0.882. Is r...
(a) Suppose n = 6 and the sample correlation coefficient is r = 0.882. Is r significant at the 1% level of significance (based on a two-tailed test)? (Round your answers to three decimal places.) t = critical t = Conclusion: Yes, the correlation coefficient ρ is significantly different from 0 at the 0.01 level of significance. No, the correlation coefficient ρ is not significantly different from 0 at the 0.01 level of significance.      (b) Suppose n = 10 and...
Discuss evidence of craters on Earth. you may discuss any other craters that we know of...
Discuss evidence of craters on Earth. you may discuss any other craters that we know of on Earth. You could also discuss the issue of craters on Earth in general.
You may need to use the appropriate technology to answer this question. To test for any...
You may need to use the appropriate technology to answer this question. To test for any significant difference in the number of hours between breakdowns for four machines, the following data were obtained. Machine 1 Machine 2 Machine 3 Machine 4 6.5 9.0 11.0 9.8 7.9 7.6 10.2 12.5 5.4 9.6 9.4 11.9 7.6 10.4 10.0 10.6 8.6 9.6 8.9 11.2 7.8 10.2 8.7 11.2 (a) At the α = 0.05 level of significance, what is the difference, if any,...
You may need to use the appropriate technology to answer this question. To test for any...
You may need to use the appropriate technology to answer this question. To test for any significant difference in the number of hours between breakdowns for four machines, the following data were obtained. Machine 1 Machine 2 Machine 3 Machine 4 6.6 8.8 10.8 9.9 7.8 7.3 10.1 12.9 5.3 9.3 9.5 12.1 7.5 10.0 10.2 10.7 8.5 9.3 9.1 11.4 7.5 9.9 8.5 11.4 (a) At the α = 0.05 level of significance, what is the difference, if any,...
Q3. Consider the matrix A . Use R statistical software to determine the eigenvalues and normalized...
Q3. Consider the matrix A . Use R statistical software to determine the eigenvalues and normalized eigenvectors of A, trace of A, determinant of A, and inverse of A. Also determine the eigenvalues and normalized eigenvectors of A-1. Your answer should include your R code (annotated with comments) and a hand-written or typed summary of the answers from the R output.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT