Use R to solve the following three problems. Submit one R. file with the code and...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Use R to solve the following three problems. Submit one R. file with the code and one pdf file. Only the submissions with both files will be graded. Make sure your R files are self-sufficient, i.e. they can run on any computer. Make sure to add lines to install and load any necessary packages etc. The pdf file should clearly answer the questions, include any relevant plots etc. 3. (3 points) (a) Generate an i.i.d. sample X N(1, 2) of size nx = 20 and an independent i.i.d. sample Y~ N(1,3) of size ny = 15. Using these samples, construct a 95% confidence interval for (E[X] - E[Y]). Store the values of the upper and lower bounds of the confidence interval. N (b) Repeat part (a) for M = 100 different samples. On the same graph, draw the upper bound and the lower bound against each repetition, i.e. on the z-axis you put the repetition number m from 1 to M, on the y-axis you put the upper and the lower bounds of your confidence interval. (c) In how many samples does the confidence interval not cover zero? Use R to solve the following three problems. Submit one R. file with the code and one pdf file. Only the submissions with both files will be graded. Make sure your R files are self-sufficient, i.e. they can run on any computer. Make sure to add lines to install and load any necessary packages etc. The pdf file should clearly answer the questions, include any relevant plots etc. 3. (3 points) (a) Generate an i.i.d. sample X N(1, 2) of size nx = 20 and an independent i.i.d. sample Y~ N(1,3) of size ny = 15. Using these samples, construct a 95% confidence interval for (E[X] - E[Y]). Store the values of the upper and lower bounds of the confidence interval. N (b) Repeat part (a) for M = 100 different samples. On the same graph, draw the upper bound and the lower bound against each repetition, i.e. on the z-axis you put the repetition number m from 1 to M, on the y-axis you put the upper and the lower bounds of your confidence interval. (c) In how many samples does the confidence interval not cover zero?
Expert Answer:
Related Book For
Posted Date:
Students also viewed these accounting questions
-
Use superposition to solve the following inhomogeneous ordinary differential equations: (a) u' + 2u = 1 + cos x (b) u" - 9u = x + sin x (c) 9u" - 18u' + 10u = 1 + ex cos x (d) u" + u' - 2u = sinh x,...
-
Use Newton's method for three steps to solve the following equations. Find and sketch the tangent line for the first step, then find the Newton's method discrete-time dynamical system to check your...
-
Use Newton's method for three steps to solve the following equations. Find and sketch the tangent line for the first step, then find the Newton's method discrete-time dynamical system to check your...
-
On 1st April, 2013 CTS Ltd. granted 10,000 shares to employees and directors under stock option scheme at 100 (face value 10 and market value 130). The vesting period was three years. The maximum...
-
What is the link between brand names and competitive advantage?
-
The Stam Corporation reports the following pretax accounting (and taxable) income items during 2007: Income from continuing operations ..........$90,000a Loss from operations of a discontinued...
-
Pileri Industries shipped goods to Consolidated Industries, Inc., via a common carrier. The goods were lost in transit. Pileri claimed that the sale was a shipment contract, thus putting the risk of...
-
The comparative balance sheet of Mills Engine Co. at December 31, 2013 and 2012, is as follows: The noncurrent asset, noncurrent liability, and stockholders equity accounts for 2010 are as follows:...
-
returns the number of rows that contain the integer parameter. For example, if the array (as created by the Write a method called findRows that takes a two-dimension array of integers and an int as...
-
Determine the internal normal force, shear force, and moment at points E and F of the compound beam. Point E is located just to the left of 800 N force. 1200 N 800 N 400 N/m 3. A |E B F -1.5 m--1 m-2...
-
8. Find the Thevenin equivalent circuits for the following circuit contained in the box. 4 V 9V +1 www 2kQ2 352 www 9. Find the Thevenin equivalent circuits for the following circuit contained in the...
-
Explain the effect of an increase in money supply towards investment and national income ( Keynes Transmission Mechanism ) . ?
-
Find an equation for the line tangent to the curve at the point defined by the given value of t. Also, find the value of at this point. dy dx x = 16 cost, y = 4 sint, t= - A Find dy dx dy dx A Find...
-
Discuss some of the measures that the government has implemented to control the costs of health care.?
-
Sales price $495,000 Interest Rate on 1st mortgage = 7% Interest Rate on HELOC 2nd mortgage = 8% 30 year fixed rate conventional Down Payment = 5% Taxes-$500 monthly Homeowners Insurance $150 monthly...
-
Discuss the forces that led to the rise in outpatient services.?
-
Based on analysis of the spectra, a molecule with the formula C9H10O3 C 9 H 10 O 3 has been determined to contain the following: a para-substituted benzene ring, an ethyl group, an alcohol group, and...
-
Using the information presented in Problem 13.4B, prepare a partial statement of cash flows for the current year, showing the computation of net cash flows from operating activities using the...
-
(a) Prove that the individual entries aij of a matrix A are bounded in absolute value by its matrix norm: |aij| (b) Prove that if the series converges, then the matrix series converges to some matrix...
-
Which of the following functions lies in the subspace spanned by the functions 1, x, sinx and sin2 x? (a) 3 - 5x (b) x2 + sin2 x (c) sinx -2cosx (d) cos2x (e) xsinx (f) ex
-
Write down a minimization principle, when possible, for each of the problems in Exercise 11.4.1.
-
Management is considering three alternatives to satisfy an urgent need. Each of the alternatives will completely satisfy the need, so no combinations have to be considered. The first costs, operating...
-
Consider the following cash flow profile and assume MARR is 10 percent/year and the finance rate is 4 percent/year. a. Determine the MIRR for this project. b. Is this project economically attractive?...
-
Consider the following cash flow profile and assume MARR is 10 percent/year and the finance rate is 4 percent/ year. a. Determine the MIRR for this project. b. Is this project economically...
Study smarter with the SolutionInn App