MATH 351 Homework 08
Due by Monday 04/30/25 by midnight PT. Submit a Jupyter
notebook to the GitHub repository for Homework 08.
- Use inversion sampling to sample random numbers from the logistic distribution. The logistic distribution has cumulative distribution function You pick values for the parameters and . Confirm your answer in at least two different ways.
- Use inversion sampling to sample random numbers from the Pareto distribution. The Pareto distribution has cumulative distribution function for . You pick values for the parameter and . Confirm your answer in at least two different ways.
- Use the Metropolis Algorithm to sample random
numbers for the parameter from the
Rayleigh distribution based on a random sample of Rayleigh data .
The idea here is to learn about the value of by
approximating expectations of a distribution for based on a sample of data .
The Rayleigh distribution has probability density function
for and .
Here's some code to generate data from a Rayleigh
distribution for a specified value of ,
which you should choose.
import scipy.stats as st x = st.rayleigh(scale = 5).rvs(size = 501)