About Chandra Archive Proposer Instruments & Calibration Newsletters Data Analysis HelpDesk Calibration Database NASA Archives & Centers Chandra Science Links

Skip the navigation links
Last modified: December 2008

URL: http://cxc.harvard.edu/sherpa4.1/chi2datavar.py.html
AHELP for Sherpa 4.1

chi2datavar

Context: py.sherpa

Synopsis

Chi-square statistic with variance computed from the data.

Description

The chi2datavar statistic was named CHI DVAR in CIAO 3.4.

If the number of counts in each bin is large (> 5), then the shape of the Poisson distribution from which the counts are sampled tends asymptotically towards that of a Gaussian distribution, with variance

sigma(i)^2 = N(i,S) + [A(S)/A(B)]^2 N(i,B) .

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 shown in the equation: "ahelp chisquare" .

Example

sherpa> set_stat("chi2datavar")
sherpa> show_stat()
Statistic: Chi2DataVar

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.

Last modified: December 2008



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