请高手帮忙看看这两道题怎么做?无限感激?
1.Cauchy distribution. Draw 1000 sets of numbers from the Cauchy distribution. Do this for set
size 2, 5, 10 and 20. Compute the median of each set (be smart, use a matrix and apply()).
Study the distribution of the medians, for each set size.
2.In a formula for a density usually a numerical constant oc- curs, to make it a proper density, i.e. the integral is 1. In the standard normal density, \( \frac{1}{\sqrt{2\pi} } \exp\{ -\frac{x^2}{2}\} \) , it is the factor \( 1/\sqrt{2\pi} \) ?. Suppose I don't know or forget this "normalizing constant", how would that influence on acceptance-rejection sampling?