Math 362 - Computer Lab #7 - Spring 2003

Introduction to Probability Theory

Computer Lab 7: Random numbers


In this lab, we will see how to plot an approximation of the density function of a continuous random variable, given a large random sample for this random variable. We will also see how to generate random numbers according to a given continuous distribution.

  1. How to plot an approximation of the distribution of a continuous random variable
  2. Two views of the exponential random variable.

  3. How to generate random numbers according to a given continuous distribution
    Suppose we want to create random numbers according to a Pareto distribution function F(x) = 1 - (x/x0)a+1 supported on the interval [x0,¥). Here both x0 and a are positive. Let X be a random variable having this distribution.

Back to Math 362