stats(deprecated)/fit - Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : stats(deprecated)/fit

Overview of stats[fit] Subpackage

 

Calling Sequence

Description

List of stats[fit] Subpackage Commands

Examples

Calling Sequence

stats[fit][command](arguments)

command(arguments)

Description

• 

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

• 

The stats[fit] subpackage provides a tool for fitting curves to statistical data.

• 

Each command in the stats[fit] package can be accessed by using either the long form or the short form of the command name in the command calling sequence.

List of stats[fit] Subpackage Commands

• 

The following is a list of available commands.

leastmediansquare

leastsquare

 

  

To display the help page for a particular stats[fit] command, see Getting Help with a Command in a Package.

• 

Some commands either require or use parameters in addition to the data given as arguments. These parameters appear as an index to the command name. See below for some examples.

• 

If a particular call cannot be evaluated, for example trying to find the mode of a statistical list that contains a non-numerical entry, then the call is returned unevaluated. Information is provided in the variable `stats/lasterror` why a call was not evaluated. Also, this information is automatically given if infolevel[stats] has been set to a value greater than or equal to one, prior to the unsuccessful call.

Examples

Important: The stats package has been deprecated. Use the superseding package Statistics instead.

withstats:

this example uses the defaults to fit the data to the curve y=a*x+b

fit[leastsquare[x,y]]10,15,17,19,3,4,5,6

y=58179x79179

(1)

This is the same as

fit[leastsquare[x,y,y=ax+b,a,b]]10,15,17,19,3,4,5,6

y=58179x79179

(2)

One can also specify nonlinear curves -- as long as the unknown parameters appear linearly

fit[leastsquare[x,y,y=ax2+bx+c]]10,15,17,19,3,4,5,6

y=41713358x2758313358x+370546679

(3)

See Also

Statistics

Statistics,Fit

stats(deprecated)

 


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