(Solved):
1. Design a rejection sampling algorithm for generating samples from a distribution with the follo ...
1. Design a rejection sampling algorithm for generating samples from a distribution with the following pdf: ?(x)=x3+45?x2+31?x+61?,0?x?1. Describe your rejection sampling algorithm. Implement your algorithm to generate 1000 (accepted) samples from this distribution. Based on the 1000 samples you generated, give an estimate of E(X2), where X follows distribution ?(x), and the standard error of your estimate. Attach your code and results.