Question: Computer simulation Solve the question as soon as possible The cumulative distribution function (CDF), F(X) of a triangular distribution, f(x) with endpoints (0,2) is given

Computer simulation

Solve the question as soon as possible

Computer simulation Solve the question as soon as possible The cumulative distribution

The cumulative distribution function (CDF), F(X) of a triangular distribution, f(x) with endpoints (0,2) is given by F(X)=0Xf(x)dx=0,2X2,12(2X)2,1,X2 a. Obtain an equation for Xi,i=1,2, to generate random variates following the distribution f(x). You can use random variables Ri,i=1,2, that are uniformly distributed over 0 Ri1, i.e. RiU[0,1] [12 marks] b. Use the equation obtained in part b. to generate random variates Xi,i=1,2,3 for R1= 0.1,R2=0.5, and R3=0.9 [3 marks] c. Write a code snippet to generate Ri and Xi for simulation purposes. [15 marks] d. Obtain the probability density function f(x). [10 marks]

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!