Question: SOLVE IN RSTUDIO Question 2 . a - What is the height of the triangle at its peak, such that it is a valid probability
SOLVE IN RSTUDIO
Question a What is the height of the triangle at its peak, such that it is a valid probability distribution? Save your answer in the variable height
Question b Create a function areatotheleft, which takes a single variable x and calculates the area to the left, returning a value between and The basic setup of the function is defined in the provided code. Note that you will need to use a slightly different equation if x is less than or greater than
Question c Create a function areatotheright, which takes a single variable x and calculates the area to the right, returning a value between and The skeleton of the function is defined in the provided code. You can attempt to copy the setup used in the previous function, but students may find it easier to utilize areatotheleft already defined.
Question d Create a function areabetween, which takes two numeric variables x and x and calculates the area between them, returning a value between and You can assume that x x The skeleton of the function is defined in the code, and again students
may find it easiest to utilize the previously defined functions areatotheleft andor areatotheright
Question e If we generate a random number utilizing this distribution, what is the probability that we get a number less than or greater than Save your answer in the variable qe
Question f If we generate a random number utilizing this distribution, what is the probability that we get a number between and Save your answer in the variable qf
Question g If we generate a random number utilizing this distribution, but we discard any value greater than what is the probability that we get a value greater than Save your answer in the variable qg
Question h If we generate two random numbers utilizing this distribution, what is the probability that one of the numbers is greater than and one is less than Save your answer in the variable qh
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
