Question

Use either R or Excel for the following. Provide the formulas or code that you are...

Use either R or Excel for the following. Provide the formulas or code that you are using. Let x1 be a random variable that is N(100, 225). Let x2 be a random variable that is U(50,150) and let x3 be a random variable that is U(500,1500). Set Y = (X1)(X2)/ (X3) a) Use R to create 500 random numbers of each type (X1, X2, X3 and Y).

b) Estimate P(0.1 < Y < 0.25)

c) Estimate E(Y) and the Standard deviation of Y based on the random numbers.

d) Based on the simulation, what is the maximum value of Y

e) Create a histogram for Y.

Homework Answers

Answer #1

Here is the R code:

Histogram of Y:

------------------------------------

DEAR STUDENT,

IF YOU HAVE ANY QUERY ASK ME IN THE COMMENT BOX,I AM HERE TO HELPS YOU.PLEASE GIVE ME POSITIVE RATINGS

*****************THANK YOU***************

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
R Code Directions: All work has to be your own, you may not work in groups....
R Code Directions: All work has to be your own, you may not work in groups. Show all work. Submit your solutions in a pdf document on Moodle. Include your R code (which must be commented and properly indented) in the pdf file. Name this pdf file ‘your last name’-HW5.pdf. Also submit one text file with your R code, which must be commented and properly indented. You may only use ‘runif’ to generate random numbers; other random number generating functions...
R Code Directions: All work has to be your own, you may not work in groups....
R Code Directions: All work has to be your own, you may not work in groups. Show all work. Submit your solutions in a pdf document on Moodle. Include your R code (which must be commented and properly indented) in the pdf file. Name this pdf file ‘your last name’-HW5.pdf. Also submit one text file with your R code, which must be commented and properly indented. You may only use ‘runif’ to generate random numbers; other random number generating functions...
Which of the following statements is true. Select one: a. The expected value of a discrete...
Which of the following statements is true. Select one: a. The expected value of a discrete random variable is the outcome that is most likely to occur. b. If the true model is Y = β1 + β2 X1 + β3 X2 + u, but you estimate Y = β1 + β2 X1 + u, your estimate of β2 will always be biased. c. In an OLS regression, if we change the dependent variable from Earnings to log(Earnings), the R-squared...
use R software Let X be a non-negative random variable with μ = E[X] < ∞....
use R software Let X be a non-negative random variable with μ = E[X] < ∞. For a random sample x1, …, xn from the distribution of X, the Gini ratio is defined by G=12n2μn∑j=1n∑i=1|xi−xj|.G=12n2μ∑j=1n∑i=1n|xi−xj|. The Gini ratio is applied in economics to measure inequality in income distribution (see, e.g., [168]). Note that G can be written in terms of the order statistics x(i) as G=1n2μn∑i=1(2i−n−1)x(i).G=1n2μ∑i=1n(2i−n−1)x(i). If the mean is unknown, let ˆGG^ be the statistic G with μ replaced...
Use the programming language R to code the following project.. * Make sure you turn in...
Use the programming language R to code the following project.. * Make sure you turn in your code and answers from each question. (not the raw data). 1. Generate 1000 random samples of size 40 from the normal distribution with mean µ = 3 and standard deviation σ = 2. Compute 95% the confidence interval of 1000 samples and find the rate of confidence interval contains the true mean. What did you learn from this simulation study? 2. For each...
Use R code to answer question. There is 2 parts to the question, the first being...
Use R code to answer question. There is 2 parts to the question, the first being straight forward and the second using a monte carlo method. Question: Let U and V both follow Uniform(0,1) distributions. Find two methods to simulate the distribution of U+V. The first method should directly simulate the distribution using uniforms, and the second should use a Monte Carlo method. Hint: --First: call two random uniforms and add. Second: --Generate uniform between 0 and 2 (x), then...
PLEASE USE EXCEL TO FIND THE ANSWERS! Or if you don't have access to excel please...
PLEASE USE EXCEL TO FIND THE ANSWERS! Or if you don't have access to excel please tell me how you would find the answers in excel THANK YOU SO MUCH! A study of a hypertension drug’s effectiveness is being conducted. It is considered that the probability that 0 patients of 4 will be brought under control is 0.006, 1 out of 4 brought under control is 0.078, 2 of 4 is 0.261, 3 of 4 is 0.415, and all 4...
7. Answer the following questions true or false and provide an explanation. • If you think...
7. Answer the following questions true or false and provide an explanation. • If you think the statement is true, refer to a definition or theorem. • If false, give a counter-example to show that the statement is not true for all cases. (a) Let A be a 3 × 4 matrix. If A has a pivot on every row then the equation Ax = b has a unique solution for all b in R^3 . (b) If the augmented...
Write an R code that does the following: (a) Generate n samples x from a random...
Write an R code that does the following: (a) Generate n samples x from a random variable X that has a uniform density on [0,3]. Now generate samples of Y using the equation: y = α/(x + β). For starters, set α = 1, β = 1 The R code: x=runif(n=1000, min = 0, max = 3) x y=1/x+1 y Please answer the following: b) Use plot(x,y) to check if you got the right curve. c) How does the correlation...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL...
Instructions: You are not required to use R markdown for the lab assignment. Please include ALL R commands you used to reach your answers in a word or pdf document. Also, report everything you are asked to do so Problem 2 : Answer the following questions: 1. First run alphas <- seq(0.1, 1, by = 0.1) and nalphas <- - rev(alphas). Based on what you have seen, describe how functions seq and rev work. Then run qnorm(c(nalphas, alphas)) and report...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT