Question: 3. Write a function in R to compute the following: (30 pts) a. Find an empirical cumulative distribution of a given array of length n

3. Write a function in R to compute the following: (30 pts) a. Find an empirical cumulative distribution of a given array of length n at all the data points. b. Plot the empirical cumulative distribution function. The empirical cumulative distribution function is dened as Fit) = n'1 ?=1I{X; st}: where I is an indicator function which takes one if the condition satises otherwise zero, and t is one of the X values (XI-J = 1,2, \".11)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
