Question: Problem 7 [12 points]. Using the sampling procedure covered in class and python (or any other way you see fit), generate N samples for the

 Problem 7 [12 points]. Using the sampling procedure covered in class

Problem 7 [12 points]. Using the sampling procedure covered in class and python (or any other way you see fit), generate N samples for the cumulative distribution function sign(x) sign(z) is the sign of z, e.g., sign(-1.6) =-1, sign(53) 1, and sign(0-0. Discard any sample if Ixl 5. Plot a histogram of your data from-5 to 5 with 0.2 increments (i.e., you should have 50 bins). Do this for N = 50, 100, 200, and 500, You should submit four figures. Note that you can easily do histograms in python using matplotlib. (Hint: it can be slightly tricky to compute r from the CDF; but you don't really need to. Problem 7 [12 points]. Using the sampling procedure covered in class and python (or any other way you see fit), generate N samples for the cumulative distribution function sign(x) sign(z) is the sign of z, e.g., sign(-1.6) =-1, sign(53) 1, and sign(0-0. Discard any sample if Ixl 5. Plot a histogram of your data from-5 to 5 with 0.2 increments (i.e., you should have 50 bins). Do this for N = 50, 100, 200, and 500, You should submit four figures. Note that you can easily do histograms in python using matplotlib. (Hint: it can be slightly tricky to compute r from the CDF; but you don't really need to

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!