Chandra X-Ray Observatory
Skip to the navigation links
Last modified: December 2013

Jump to: Description · Example · Bugs · See Also

AHELP for CIAO 4.9 Sherpa v1


Context: statistics


Chi-square statistic with constant variance computed from the counts data.


The chi2constvar statistic was named CHI PARENT or CHI CVAR in CIAO 3.4.

In some applications, analysts have seen fit to assume that the variance is constant for each bin. For this choice of statistic, the variance is assumed to be the mean number of counts, or

sigma(i)^2 = (1/N) * (sum)_(j=1)^N N(j,S) + [A(S)/A(B)]^2 N(j,B) ,

where N is the number of on-source (and off-source) bins included in the fit. The background term appears only if a background region is specified and background subtraction is done. The help file on the chi-square statistic has more information, including definitions of the additional quantities in the equation: "ahelp chisquare" .


sherpa> set_stat("chi2constvar")
sherpa> show_stat()
Statistic: Chi2ConstVar

Set the fitting statistic and then confirm the new value.


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

See Also

cash, chi2datavar, chi2gehrels, chi2modvar, chi2xspecvar, chisquare, cstat, get_prior, leastsq, list_priors, set_prior, set_sampler, set_stat, wstat

Last modified: December 2013
Smithsonian Institute Smithsonian Institute

The Chandra X-Ray Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA.   Email: Smithsonian Institution, Copyright © 1998-2017. All rights reserved.