Solve the following using MATLAB:
Let X be uniformly distributed in the unit interval of [0,1]. Consider the random variable Y=g(X), where g(x)=1 if x£1/3, and g(x) = 2, if x> 1/3. Find the expected value of Y.
This question belongs to MATLAB software and discusses about application of MATLAB in mathematics to solve the probability distribution problems.
Answer is in MATLAB format
Download Full Solution
If you are here for the first time, you can request for a discount coupon, which can knock off upto 20% of the quoted price on any service.