Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please complete this problem in RStudio and submit a knitted PDF document created from an R Markdown source. 1 ECDFs Generate 1 0 0 observations

Please complete this problem in RStudio and submit a knitted PDF document created from an R Markdown
source.
1 ECDFs
Generate 100 observations from a N(0,1) distribution using the rnorm() function. Repeat this process 1000
times, and generate the y values of an ECDF for each, saving the results as a data.frame or matrix object (so
each ECDF vector is a column or row in the storage object).
Compute the ECDFs at a resolution of x=0.01 over the range xin[-4,4]; that is, for
xin{-4.00,-3.99,-3.98,cdots,3.98,3.99,4.00}.
Once the ECDFs are computed, find the point-wise mean (hat()) and standard deviation (hat()) across the ECDFs by
x value, i.e., work across the columns (if the ECDFs are stored by row) or rows (if the ECDFs are stored by
column) of the storage object.
Conclude by making a plot. On a single set of axes (one plot!), display 10 randomly (you should include the
code to randomly select the ten!) selected ECDFs from the set of 1000. Display them using a light colour (e.g.,
grey85), then put the mean ECDF (above) hat() overtop in black, along with two additional lines at hat()+-2*hat() in
red. Label this plot neatly.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Concepts

Authors: David Kroenke

4th Edition

0136086535, 9780136086536

More Books

Students also viewed these Databases questions

Question

Identify the components of risk management.

Answered: 1 week ago