Products & Services Solutions Academia Support User Community Company

Learn more about Statistics Toolbox   

Uniform Distribution (Continuous)

Definition

The uniform cdf is

Background

The uniform distribution (also called rectangular) has a constant pdf between its two parameters a (the minimum) and b (the maximum). The standard uniform distribution (a = 0 and b = 1) is a special case of the beta distribution, obtained by setting both of its parameters to 1.

The uniform distribution is appropriate for representing the distribution of round-off errors in values tabulated to a particular number of decimal places.

Parameters

The sample minimum and maximum are the MLEs of a and b respectively.

Example

The example illustrates the inversion method for generating normal random numbers using rand and norminv. Note that the MATLAB function, randn, does not use inversion since it is not efficient for this case.

u = rand(1000,1);
x = norminv(u,0,1);
hist(x)

See Also

Continuous Distributions (Data)

  


Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2009- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS