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...
-
Repeat Exercise 15.27, but with average retail units sold per dealer as the independent variable and with the 95% interval estimates assuming a dealer group for which the average number of retail...
-
Describe the process for telling QuickBooks Accountant you want to manage payroll manually.
-
La Salle Exploration Company reported these figures for 2008 and 2007: Compute rate of return on total assets and rate of return on common stockholders' equity for 2008. Do these rates of return...
-
Assume that you are purchasing an investment and have decided to invest in a company in the digital phone business. You have narrowed the choice to Digital Plus Corp. and Red Zone, Inc. and have...
-
What is cost accounting and managerial accounting? what is the difference?
-
Four pesticides used in dormant California orchards are chlorpyrifos, diazinon, methidathion, and parathion. Environmental Science & Technology (Oct. 1993) reported the number of applications of...
-
Part A (16 marks) Presented below are three independent situations. 1. On December 15, 2020, Harmony sold 300 shares of Bob Company stock for $125 per share, less a $450 brokerage fee. Before the...
-
What are basic differences between Exploratory move and Pattern move?
-
Why Evolutionary Multio-bjective Optimization is superior to conventional multi-objective optimization?
-
What is a unimodal function? What are the different methods for optimizing the unimodal function?
-
A linear programming problem with $n$ decision variables and $m$ constraints can be considered as an $n$-stage dynamic programming problem with $m$ state variables-Justify this statement with proper...
-
What do you mean by utopia point? What is the significance of that point?
-
a. Current earnings and profits (E&P) of $25,000; accumulated E&P of $24,000. (Do not round intermediary calculations. Only round the amount you input in the cell to the nearest dollar. Complete all...
-
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.
-
Examples of random variables used in this chapter included (a) the sex of the next person you meet, (b) the number of times a wireless network fails, (c) the time it takes to commute to school, (d)...
-
An econometrics class has 80 students, and the mean student weight is \(145 \mathrm{lb}\). A random sample of 4 students is selected from the class, and their average weight is calculated. Will the...
-
Suppose that \(Y_{1}, \ldots, Y_{n}\) are i.i.d. random variables with a \(N(1,4)\) distribution. Sketch the probability density of \(\bar{Y}\) when \(n=2\). Repeat this for \(n=10\) and \(n=100\)....
Study smarter with the SolutionInn App