Last modified: December 2013

URL: https://cxc.cfa.harvard.edu/sherpa/ahelp/leastsq.html
Jump to: Description · Example · Bugs · See Also


AHELP for CIAO 4.16 Sherpa

leastsq

Context: statistics

Synopsis

Chi-square statistic with variance set to 1.

Description

The leastsq statistic is equivalent to chi2constvar ("ahelp chi2constvar"), except the variance is always set to 1.


Example

sherpa> set_stat("leastsq")
sherpa> show_stat()

Set the fitting statistic and then confirm the new value.


Bugs

See the bugs pages on the Sherpa website for an up-to-date listing of known bugs.

See Also

info
list_stats
statistics
cash, chi2constvar, chi2datavar, chi2gehrels, chi2modvar, chi2xspecvar, chisquare, cstat, get_prior, list_priors, set_prior, set_sampler, set_stat, wstat