(Solved): Do in matlab please This exercise has two parts. First, consider a random variable X which is unifor ...
Do in matlab please
This exercise has two parts. First, consider a random variable X which is uniform distributed with parameters d1? and d2?. Write a function called myunifcdf that accepts as input the parameters d1 and d2, and x (a specific value of the random variable X ). Construct the function so that it finds and returns P[X?x]. To do this, you can do the following: - First, find the height of the density function and call it h. - Then use geometry, that is, the area of a rectangle, to find the probabilities. Your function should account for the fact that the specific x can be any where on the number line. a) Less than $392 ? b) More than $407 ? c) Between $394 and $412 ? Assign them to the variables a,b, and c. Do not use the built-in function unifcdf.