ProfileLikelihood - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

All Products    Maple    MapleSim


Statistics

  

ProfileLikelihood

  

plot a profile of the likelihood function

 

Calling Sequence

Parameters

Description

Options

Examples

Calling Sequence

ProfileLikelihood(R, V, options, plotoptions)

ProfileLikelihood['interactive'](R, V)

Parameters

R

-

algebraic; a random variable or distribution

V

-

data sample

options

-

(optional) equation(s) of the form option=value where option is one of bounds, deviations, ignore, params, range, weights; specify options for the ProfileLikelihood command

plotoptions

-

options to be passed to the plots[display] command

Description

• 

The ProfileLikelihood command plots a profile of the Likelihood command.

• 

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

• 

The second parameter V is a data sample (given as e.g. a Vector) used to calculate the likelihood function.

• 

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.

• 

bounds=none or range

  

If this option specifies a range, then ProfileLikelihood attempts to calculate the maximum likelihood estimate within the given bounds. Otherwise the command attempts to calculate the maximum likelihood estimate over the entire real line (default).  Note that this option only applies if a range is not specified with the 'range' option.

• 

deviations=realcons

  

This option specifies the radius of the region plotted around the maximum likelihood estimate, given option range=deduce.  This option is 3 by default.

• 

ignore=truefalse

  

This option is used to specify how to handle non-numeric data. If ignore is set to true all non-numeric items in R are ignored.

• 

params=list(name=realcons)

  

This option specifies any additional indeterminates in the likelihood expression that should be evaluated prior to plotting.  The likelihood profile requires that there is only one indeterminate in the expression, so this provides a mechanism to specify the values of missing parameters.

• 

range=deduce or range

  

If this option is set to deduce (default), ProfileLikelihood attempts to calculate the maximum likelihood estimate and plot the likelihood function in an interval around it.  Otherwise, this parameter can specify a range to plot the likelihood profile on.

• 

weights=rtable

  

Vector of weights (one-dimensional rtable). If weights are given, the likelihood function is scaled so each data point has the given weight. Note that the weights provided must have type realcons and the results are floating-point, even if the problem is specified with exact values. Both the data array and the weights array must have the same number of elements.

Examples

withStatistics:

Plot the profile of the likelihood function of a Pareto distribution.  These are the commands to create the plot from the Plotting Guide.

SSampleBetaDistribution1.5,2.6,100

S0.09562537057819760.1621676933379560.2696077416378250.3850591033414570.7079951962401290.1145123034888610.4124498476197350.2012415780285580.4880559602919350.2112659912236060.5505139935585060.1702678409002380.1323802867847200.6285272973281940.2558545601603610.3091321755031260.09334007581879140.4231403322596070.3166020697785460.3647391698377350.1394227010088630.01014885318645580.2548171589081300.2825282228304030.1455566022662440.1359869588803000.3843177632565090.2459065052422010.3798195350247070.1973063052910850.2560500372215060.4199010264337640.05807024133170290.2654349623934390.4827714021956180.7601137232994800.6209846161447360.8411387615801290.4516071186582400.4289345542593400.5643466612910760.4724354760471110.4734162670523650.4719924739972220.6953361713276210.1547541988997140.9612784339939820.4372931418376540.1406098592603350.6772072955050580.2753555789325910.1572714874655500.2661113834145100.7245512707094470.3923547349237610.4415725363333730.2512036084493920.6003019464584020.2889369829510330.5832935454219500.6523839139895890.8051248489015940.5237194245787090.2282357241960910.5824447921976640.2859264621671580.2985898801260510.03115710294208020.3105277891843570.6508854718166700.6846544800120200.4593785331710320.7321902470131980.2720321196559730.2732808059726070.7566892227693080.6182201403994760.6036783462366860.3446348716579450.08642394754363070.2852041558921830.3858485033055480.5009295291210870.6999082446814170.4210683635609470.3061912542508860.3366926203735390.08804190754700530.4533021766898780.4339556665088380.2691434464986760.005277569100247710.4966779480631790.4894279945490260.1138793807058260.2511261426758740.3827194147024280.8454793997095720.1816947442507110.276513710151909

(1)

RRandomVariableBetaDistribution1.5,ω

R_R0

(2)

ProfileLikelihoodR,S,thickness=3

ProfileLikelihoodR,S,thickness=3,color=Red,axis=gridlines=linestyle=dot

See Also

Statistics

Statistics/Computation

Statistics[Estimation][Likelihood]