plot the density of a random variable - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : Statistics : Statistics/DensityPlot

Statistics[DensityPlot] - plot the density of a random variable

Calling Sequence

DensityPlot(X, options, plotoptions)

DensityPlot['interactive'](X)

Parameters

X

-

random variable or distribution

options

-

(optional) equation(s) of the form range=value; specify options for generating the density plot

plotoptions

-

options to be passed to the plots[display] command

Description

• 

The DensityPlot command plots the density of the specified random variable. By default, the range is taken between the 1st and the 99th percentiles of the underlying distribution.

• 

The first parameter can be a distribution (see Statistics[Distribution]), a random variable, or an algebraic expression involving random variables (see Statistics[RandomVariable]).

• 

It must be possible to evaluate the PDF (for continuous distributions) or the ProbabilityFunction (for discrete distributions) to numeric constants.

• 

If the ['interactive'] option is used, then a dialog box appears that allows for customized creation of the plot.

Options

  

The options argument can contain one or more of the options shown below. All unrecognized options will be passed to the plots[display] command. See plot[options] for details.

• 

range=deduce or range

  

By default this is deduce.  This option is used to bound the horizontal real range on which the density is plotted.

Examples

withStatistics:

X:=RandomVariableNormal0,1

X:=_R

(1)

Y:=RandomVariableNormal0,1

Y:=_R0

(2)

DensityPlotX,range=2..2

DensityPlotXY,range=2..2,color=Niagara Red

DensityPlotGeometricDistribution13

See Also

plots[densityplot], Statistics, Statistics[Computation]


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam