Question: *Please make up an ECDF* Please complete this Target Concept in RStudio 1 Creating an ECDF Function Empirical Cumulative Distribution Functions (ECDFs) are approximations to
*Please make up an ECDF*
Please complete this Target Concept in RStudio 1 Creating an ECDF Function Empirical Cumulative Distribution Functions (ECDFs) are approximations to true Cumulative Distribution Functions. The function is defined as 1 n(x) = h (number of values 5x), n for n the sample size. In other words, count how many of the set of n values are less than or equal to a given value x, then that is the function evaluation at that x. Now, obviously to do this for all x is impossible, even on a computer, as there are infinite number of rs on the real line. So, instead, we compute ECDFs on a finite, discrete mesh of values, e.g., all multiples of 0.01 between 0 and 3. The range needs to be carefully chosen to cover all of the values in the sample, and the multiple needs to be chosen small enough to ensure the plot is useful and sensible. Implement your own function in R which creates an ECDF given an input dat, consisting of n real numeric values. That is, your function should resemble: my_ecdf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
