Image transcription text3. Write a function in R to co

Image transcription text3. Write a function in R to compute the following: (30 pts) a. Find an empirical cumulative distribution of a givenarray of length n at all the data points. b. Plot the empirical cumulative distribution function. The empiricalcumulative distribution function is de?ned as Fit) = n’1 ?=1I{X; st}: where I is an indicator function … Show more… Show more MathStatistics and Probability STAT 5392