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
-
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...
-
Briefly describe the Glass-Steagall Act. Then explain how the related regulations have changed.
-
A rower wants to row her kayak across a channel that is 1400 ft wide and land at a point 800 ft upstream from her starting point. She can row (in still water) at 7 ft/s and the current in the channel...
-
1. Working in small groups, complete the Pay Raise Worksheet. 2. After the class reconvenes, group spokespersons present group findings. Pay Raise Worksheet April Knepper is the new supervisor of an...
-
Balance sheet data for the Dover Hot Tub Company on December 31, the end of the fiscal year, are shown at the top of the following page. Prepare a comparative balance sheet for 2008 and 2007, stating...
-
About a year and a half ago, your parents purchased some appliances at a major retailer, taking advantage of a "no payments and no interest offer. Under the agreement, for 18 months no interest would...
-
The Crazy Turkey Company produces two types of turkey cut for sale. Each cut consists of white meat and dark meat. Table 1 Cuts for sale Cut price per pound % white meat Demanad 1 $5 70% or more 1000...
-
Jane wants to buy a perpetuity bond that pays her $2,000 per month in perpetuity. The first payment is made in the day of purchase. The present worth of the bond future payments is $202,000. What is...
-
Bob purchased a promissory note on January 1st, 2009 which agreed to pay simple interest in the amount 8.0% per year. The note will mature and be paid on April 1st, 2009, 90 days later. Bob sells the...
-
A company was distributing 5$ of dividend per share till this year. The board decided to decrease the dividend per share to 3.5$ for the current quarter only. This information is leaked to the public...
-
Ten years ago, Fatima Farhoudi purchased 5,000 shares of Sallcik Inc. at $2 per share. If the market value of each share is now $22, what is the capital gain that she will realize if she sells her...
-
inflation is starting to rise, and George Soros wants to invest in an asset that will maintain its purchasing power. He puts his attention to gold and sees the spot price is $1,825 per ounce. The...
-
Algorithm complexity nlogn and Algorithm complexity 2^n Which one is better & why?
-
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. Find the Laplace transform of the given function. Use Table 2.2 when applicable. b. Confirm the result of (a) in MATLAB. \(t^{2} \sin \left(\frac{1}{2} t ight)\) TABLE 2.2 Laplace Transform Pairs...
-
a. Express the signal in terms of unit-step functions. b. Find the Laplace transform of the expression in (a) by using the shift on \(t\)-axis. \(g(t)\) in Figure 2.16 FIGURE 2.16 Signal in Problem...
-
a. Express the signal in terms of unit-step functions. b. Find the Laplace transform of the expression in (a) by using the shift on \(t\)-axis. \(g(t)\) in Figure 2.15 FIGURE 2.15 Signal in Problem...
Study smarter with the SolutionInn App