There are several continuous random variables which occur routinely, generally used in situations where there is a continuum of possible outcomes – a collection of possible outcomes requiring at least an interval of
Rectangular (or Uniform) Random Variables
Situations where a measured quantity is known to be in a certain interval
Example: Position of a Vehicle
The position of a car at a given moment along a stretch of road marked with mile markers from
The main descriptors of a uniform random variable are determined below.
Mean of a Uniform Random Variable
The mean of the uniform random density
Variance of a Uniform Random Variable
The variance of the uniform random density
The moment generating function of a uniform random variable can be explicitly computed, and used to obtain the above values.
The Moment Generating Function of a Uniform Random Variable
Let
Exponential Random Variables
Exponential random variables arise when considering how long it will take for an event to occur – the first person to enter a supermarket check-out line, for example. Or the failure of a piece of equipment. Or the radioactive decay of a particle. Their density functions are given by
The main descriptors of exponential random variables are determined below.
Mean of Exponential Random Variables
The mean of the exponential random density
Variance of Exponential Random Variables
The variance of the exponential random density
Example: The average waiting time for calls at a help line is five minutes. What is the probability that a call will arrive in the next three minutes? What is the probability that no calls will arrive in the next eight minutes?
With
Computing Probabilities for Exponential Random Variables with Spreadsheets
Computations of density and distribution functions for exponential random variables are easily performed within spreadsheets. The important thing to remember is that EXP means the exponential function, so a new term must be used. This is EXPONDIST. Thus we have “=EXPONDIST(
This can be seen in the following spreadsheet. A value of
Click here to open a copy of this so you can experiment with it. You will need to be signed in to a Google account.
Normal Random Variables
Normal random variables are an important class of continuous random variables whose value will become apparent shortly. Consider the continuous random variable
The distribution
For these to truly be random variables, we need that the associated densities are non-negative and have integrals
A derivation, and several consequences, of the fact that
First we show why the integral has the value claimed.
To this end, let
Now, let
Finally, make a further change of variable
The main descriptors of a normal random variable are determined below. We will see that
The mean of is .
Here we first notice that the mean of a standard normal variable is computed by
To compute the mean of non-standard normal variable
The standard deviation of is .
Here we first notice that the mean of a standard normal variable is computed by
Example: The moment generating function of is .
To see this, we first determine the moment generating function of
To this end,
What follows is a selection of probability computations with normal random variables. These should be examined as they are standard and will be used later without hesitation.
Computations with Normal Densities
Computations with a Standard Normal Variable
For a standard normal variable

Since the function
![]() |
![]() |
![]() |
Area 1 | Area 2 | Area 3 |
Area 1 = Area 2 = 1 – Area 3
We can use these to compute
![]() |
![]() |
![]() |
Area 4 | Area 5 | Area 6 |
Area 4 = 1 – Area 5 = 2 ⋅ Area 6
The first of these computations is obtained in spreadsheets using a command such as “=NORMSDIST( )” . The others usually require the type of arithmetic indicated above. in the following spreadsheet we you see in cells B1 and B2 two randomly generated decimal value between
Click here to open a copy of this so you can experiment with it. You will need to be signed in to a Google account.
Computations with Other Normal Variables
Computations with non-standard normal variables, similar to those for standard normal variables, are
produced with linear change of variable. Noting that with the change of variable
Just as for standard normal variables there are spreadsheet commands to determine values of the
cumulative distribution, so too do such exist for other normal variables. Typically a command
such as “=NORMDIST( )” exists in a spreadsheet. This command returns either the density or
distribution function for a prescribed normal variable, as per request. It requires that one enter the mean and standard deviation of the normal variable, and choose the output. In the
following spreadsheet you will see in cell B1 a randomly generated number between
Click here to open a copy of this so you can experiment with it. You will need to be signed in to a Google account.
Two other classes of continuous random variables are included. These will also be important in later discussions, although nowhere near as important as normal random variables. The introductions below are brief at best, and such random variables will be discussed later as necessary.
The class
The
![]() |
![]() |
densities | distributions |
The mean of
Student’s distributions
Student’s
graphs of Student’s
var fcnJs, negText, test, riemann, left, right, brd, slider1, tid;
function graph(){
//
‘);
fcnJS = “1/Math.sqrt(2*Math.PI)*Math.pow(Math.E, (-1/2*Math.pow(x,2)))”;
negTest = new Function(‘x’, ‘return ‘+fcnJS+’;’);
// test = function(x){
// return -1*negTest(x);
// }
test = new Function(‘x’, ‘return -1*(‘+fcnJS+’);’);
// riemann = function(x){
// return 0.99*(eval(fcnJS));
// }
riemann = new Function(‘x’, ‘return Math.max((‘+fcnJS+’)-0.006, 0.000001);’);
left = -5;
right = 5;
Tdist = new Function(‘x’, ‘return jStat.studentt.pdf(x, slider1.Value()/100);’);
maxYValuept = (JXG.Math.Numerics.fminbr(negTest, [left, right]) );
minYValuept = (JXG.Math.Numerics.fminbr(test, [left, right]));
console.log(minYValuept + ” ~~~~ ” + maxYValuept);
maxYValue = Math.max(negTest(maxYValuept), negTest(left), negTest(right), negTest(minYValuept));
minYValue = Math.min(negTest(minYValuept), negTest(left), negTest(right), negTest(minYValuept));
minV = 0 – Math.abs(minYValue – Math.abs(0.3*maxYValue));
console.log(minYValue + ” ~~~~ ” + maxYValue);
//brd = JXG.JSXGraph.initBoard(‘graph’,{boundingbox:[(1.1*0-0.1*right), (1.1*maxYValue – 0.1*0), (1.1*right – 0.1*0), (1.3*0 – 0.3*maxYValue)], showCopyright:false, axis:true, copyRight:false});
brd = JXG.JSXGraph.initBoard(‘graph’,{boundingbox:[(-5.2), (1.1*maxYValue – 0.1*0), (5.2), (1.3*0 – 0.3*maxYValue)], showCopyright:false, axis:true, copyRight:false});
jsxFcn = brd.create(‘functiongraph’, [negTest, left, right], {strokeWidth:3});
//slider1 = brd.createElement(‘slider’, [[-4,(1.15*0 – 0.15*maxYValue)],[4,(1.15*0 – 0.15*maxYValue)],[left*100, (left*100+right*100)/2, right*100]],{withTicks:true,withLabel:false});
slider1 = brd.createElement(‘slider’, [[-4,(1.15*0 – 0.15*maxYValue)],[4,(1.15*0 – 0.15*maxYValue)],[100, 100, 2500]],{withTicks:true,withLabel:false,snapWidth:100});
//riemannFill = brd.create(‘riemannsum’,[riemann, 100, ‘trapezoidal’, left, function(){return slider1.Value()/100;}],
//riemannFill = brd.create(‘riemannsum’,[riemann, 100, ‘lower’, left, function(){return slider1.Value()/100;}],
// {strokeColor:’pink’, strokeWidth:1, fillColor:’pink’, highlightFillColor:’pink’, highlightFillOpacity:0.4});
jsxFcn2 = brd.create(‘functiongraph’, [Tdist, left, right], {strokeWidth:3, strokeColor:”red”});
tid = setInterval(function(){
MathJaxRefresh(“aValue”);
}, 1000);
}
JXG.Curve.prototype.highlight = function(){
//overrides highlighting of circles
}
document.ready=graph;
The means of these are all