Question 10 Write R code to generate a random sample of size 20 from a normal...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Question 10 Write R code to generate a random sample of size 20 from a normal distribution with mean of 100 and standard deviation of 4. Next, generate a variable y = 2 + x + , where represents noise on the data which is normally distributed with a mean of zero and a standard deviation of 1. You have just generated 20 pairs of data, with each element in y associated with the corresponding element in by adding a number 2 with some uncertainty due to noise. Plot the points and y superimposed on the same graph and draw lines showing their means, ensuring that you get all datapoints on the graph. Use the two-sample t test in R to test if the means of X and Y are significantly different at 5% level of significance. Also, use the matched pairs t test for the same hypothesis test and comment on the difference in the conclusions from the two tests. Which of the two tests is appropriate for this data? Explain. [4 marks] Question 10 Write R code to generate a random sample of size 20 from a normal distribution with mean of 100 and standard deviation of 4. Next, generate a variable y = 2 + x + , where represents noise on the data which is normally distributed with a mean of zero and a standard deviation of 1. You have just generated 20 pairs of data, with each element in y associated with the corresponding element in by adding a number 2 with some uncertainty due to noise. Plot the points and y superimposed on the same graph and draw lines showing their means, ensuring that you get all datapoints on the graph. Use the two-sample t test in R to test if the means of X and Y are significantly different at 5% level of significance. Also, use the matched pairs t test for the same hypothesis test and comment on the difference in the conclusions from the two tests. Which of the two tests is appropriate for this data? Explain. [4 marks]
Expert Answer:
Related Book For
Introduction To Statistics And Data Analysis
ISBN: 9780495118732
3rd Edition
Authors: Roxy Peck, Chris Olsen, Jay L. Devore
Posted Date:
Students also viewed these finance questions
-
Why would a sole proprietor want to form a legal entity, even though it is not required to do business?
-
Slyvia has an income of $600. She consumes only only food and clothes. The price of food is $10/kilo and the price of cloth is $12 per unit. In addition, she has 10 coupons with which she can...
-
Identify the process evaluation article that you chose and explain why you selected this example. Describe the purpose of the evaluation, the informants, the questions asked, and the results of the...
-
Consider the following reaction: 2 NO(g) 2 N(g) + O(g) part A: Express the rate of the reaction in terms of the change in concentration of each of the reactants and products. Part B: In the first...
-
We are going to find E ° for the reaction . (a) Write the Nernst equation for the half-reaction, using E from Appendix H. (b) Rearrange the Nernst equation to the form (c) The quantity (E°...
-
The balance sheets for Kinder Company showed the following information. Additional information concerning transactions and events during 2015 are presented below. Additional data: 1. Net income for...
-
What two types of internal control are there? What type of audit is performed in each area of internal control?
-
The manager of the Petroco Service Station wants to forecast the demand for unleaded gasoline next month so that the proper number of gallons can be ordered from the distributor. The owner has...
-
I need answer urgently for this question because I have Test now in 2 hour. I will give the best rate for you. Thank you Course: MAT421 Calculus I Give me the clear answer if you hand-written the...
-
Ziggy's Inc. is a retailer of highly specialized clothing that opened for business on May 1, 2014, in a leased store in a strip mall. A condensed income statement for Ziggy's Inc. for its year, ended...
-
4. Assume that Wynona's sales projections come from a normal distribution and the weighted average price of the mix of guitars sold by Nelson is $800 per guitar. Superimpose onto the graph created...
-
If the Williamses choose to rely on Social Security benefits in their retirement planning, how much earlier than age 67 can they retire?
-
Jonas is a 60% owner of Ard, an S corporation. At the beginning of the year, his stock basis is zero. Jonas' basis in a $103,600 loan made to Ard and evidenced by Ard's note has been reduced to $0 by...
-
Discuss the techniques that can be applied to obtain relevant and accurate cost estimates
-
By observing others - consciously understanding how communicationoccurs - you willthink about how you communicate and bemore aware of the messages you send. Go to "Interpersonal Communication Skills"...
-
If you want to have 60,000 in 8 years, how much do you need to deposit in the bank today if the account pays an interest rate of 9%? Formular: Present value- PV= FV* i/(1+i)n Future Value-FV= PV...
-
eBook Schedule of Cash Collections of Accounts Receivable OfficeMart Inc. has "cash and carry" customers and credit customers. OfficeMart estimates that 25% of monthly sales are to cash customers,...
-
The National Collegiate Athletic Association (NCAA) and the National Federation of State High School Associations (NFHS) set a new standard for non-wood baseball bats. Their goal was to ensure that...
-
The following data on degree of exposure to 242Cm alpha particles (x) and the percentage of exposed cells without aberrations (y) appeared in the paper Chromosome Aberrations Induced in Human...
-
Write a meaningful paragraph that includes the following six terms: hypotheses, P-value, reject H 0 , Type I error, statistical significance, practical significance. A meaningful paragraph is a...
-
Many people who quit smoking complain of weight gain. The results of an investigation of the relationship between smoking cessation and weight gain are given in the article Does Smoking Cessation...
-
a. The market capitalization of a firm with 100 percent stock equity is $10,000,000. Assume $8,000,000 of .10 debt is substituted for stock (the debt is given to the shareholders). The tax rate is...
-
a. Assume a one year investment of $10,000 returns $10,900 at time 1. What is the return on $1,000 of equity if $9,000 of .05 debt is used? Assume zero taxes. b. What is the IRR (after tax) on $1,000...
-
In deciding whether to drop its electronics product line, Amazon.com would consider a. the costs it could save by dropping the product line b. the revenues it would lose from dropping the product...
Study smarter with the SolutionInn App