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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f3db4ae21cc_41866f3db4a55b7c.jpg)
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
Get step-by-step solutions from verified subject matter experts
