Answered step by step
Verified Expert Solution
Question
1 Approved Answer
CAP4830 HW3 Instructions: All the needed R code for this homework can be found in Module 14. Important: Do not copy someone's code. You may
CAP4830 HW3 Instructions: All the needed R code for this homework can be found in Module 14. Important: Do not copy someone's code. You may be randomly selected to explain your code. If you cannot explain your code, you will get a zero for the homework grade. If you are stuck please ask me. I will gladly help you. Remember the goal is to learn. Due Date: If you email me this homework, I will not except it. Do not wait until 11:58pm to upload it. If you are late and you email it to me stating, there was issues with canvas uploading it. I will not except it. Own your work and problems. Please complete the following steps: 0) Copy this header with your information lled-in on the top of your r-scri pt. #:==:========================================================================= # PROGRAMMER: Your name # PANTHER ID: Your panther ID # # CLASS: COP2210 # SECTION: Your class section: example U01 # SEMESTER: The current semester: example Spring 2021 # CLASSTIME: Your CAP-4830 course meeting time :example TIT H 9:00-10:15 am # CERTIFICATION: I understand FlU's academic policies, and I certify that this # work is my own and that none of it is the work of any other person. #============================================================================= 1) Create a data frame named inputs with the following column names (q1, q2, p, s) and each column has 2000 rows with the following data: q1 -> 2000 random variables that have a triangle distribution with A = 0, B = 1500 , C = 1200 (12 -> 2000 random variables that have a triangle distribution with A = 0, B = 3500 , C = 1000 p -> 2000 random variables that have a triangle distribution with A = 10, B = 17.50 , C = 12.50 s -> 2000 random variables that have an exponential distribution with it =10 2) Plot the histogram in a single window of each column of the inputs data frame. Hint use par(mfrow=c(4, 1)) 3) Create a data frame named outputs with a column name value that stores the output of the following model: f(q1. q2, p. S) = (2700 q1- 0:2) *p (ST) 4) Run a Monte Carlo Simulation 1000 ll mes of the model shown in #3, and store the results in the value column of the data frame outputs 5) Plot the histogram of outputs$value 6) Create the empirical CDF of outputs$value and plot this CDF
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started