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 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 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...
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...
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...
Use R to do each of the following. Use R code instructions that are as general...
Use R to do each of the following. Use R code instructions that are as general as possible, and also as efficient as possible. Use the Quick-R website for help on finding commands. 1. Enter the following values into a data vector named Dat: 45.4 44.2 36.8 35.1 39.0 60.0 47.4 41.1 45.8 35.6 2. Calculate the difference between the 2nd and 7th entries of this vector using only reference indices. 3. Calculate the median of Dat. 4. Sort the...
Please show formulas in excel Do heavier cars really use more gasoline? Suppose a car is...
Please show formulas in excel Do heavier cars really use more gasoline? Suppose a car is chosen at random. Let x be the weight of the car (in hundreds of pounds), and let y be the miles per gallon (mpg). x 29 46 33 47 23 40 34 52 y 29 22 24 13 29 17 21 14 Complete parts (a) through (e), given Σx = 304, Σy = 169, Σx2 = 12,244, Σy2 = 3837, Σxy = 6045, and...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT