DiscreteUniformDistribution

DiscreteUniformDistribution[{imin, imax}]
represents a discrete uniform distribution over the integers from to .

DiscreteUniformDistribution[{{imin, imax}, {jmin, jmax}, ...}]
represents a multivariate discrete uniform distribution over integers within the box .

DetailsDetails

ExamplesExamplesopen allclose all

Basic Examples (8)Basic Examples (8)

Probability density function of a univariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Cumulative distribution function of a univariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Mean and variance of a univariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Median of a univariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=

Probability density function of a bivariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Cumulative distribution function of a bivariate discrete uniform distribution:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Mean and variance of a bivariate case:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=

Covariance:

In[1]:=
Click for copyable input
Out[1]//MatrixForm=
New in 6 | Last modified in 8
New to Mathematica? Find your learning path »
Have a question? Ask support »