Question: I'm trying to get a start on coding in R. I need to code the following Graphical representation to come up with the answer. The
I'm trying to get a start on coding in R. I need to code the following Graphical representation to come up with the answer.
The following generative DAG models a real-world car wash where every car receives the pre-wash and wash services, but only a percentage of the cars gets the Rain X service (please note this percentage MAY change on each attempt of the question - BE CAREFUL!).
Write R code using runif() and causact::rbern()to follow the above generative recipe that will generate 4000 draws (i.e. realizations) of the "C" random variable representing the processing time of an individual car.Of the 4,000 draws you have generated,what percentage of the draws have a car processing time GREATER than 6 minutes?Enter your percentage as a decimal with three significant digits (e.g. enter 0.342 for 34.2%).Since there is some randomness in your result, a range of answers are being accepted.

\f
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
