Math 362 - Computer Lab #8 - Fall 2002

Introduction to Probability Theory

Computer Lab 8: Random numbers


In this lab, we will see how to plot an approximation of the p.d.f. 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 p.d.f. of a continuous random variable
  2. How to generate random numbers according to a given continuous distribution
    Suppose we want to create random numbers according to a triangular density function, supported on the interval [-1,1].
  3. Reading Assignment: Section 3.8

The macro Random.MTB creates a random sample of size 100000 for X from a set of uniformly distributed random numbers, and uses the result to plot an approximation of the p.d.f. of X. You may try and modify this file at your convenience.
Back to Math 362