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 2006

URL: http://cxc.harvard.edu/ciao3.4/chiprimini.html
Hardcopy (PDF): A4 | Letter
AHELP for CIAO 3.4 chiprimini Context: sherpa

Synopsis

Chi-square statistic with Primini variance function.

Description

The chi-square statistic is a biased estimator of model parameters (unlike the likelihood functions). In an attempt to remove this bias, Kearns, Primini, & Alexander (1995, ADASS IV, 331) use a scheme dubbed `Iterative Weighting' (IW; see Wheaton et al. 1995, ApJ 438, 322), in which

sigma(i)^2 = S[i,x(i),pS^(j-1)] + [A(N)/A(B)]^2 B_off[i,x(i),pB^(j-1)] ,

where j is the number of iterations that have been carried out in the fitting process, B_off is the background model amplitude in bin i of the off-source region, and pS^(j-1) and pB^(j-1) are the set of source and background model parameter values derived during the iteration previous to the current one.

In addition to reducing parameter estimate bias, it can be used even when the number of counts in each bin is small (< 5), although the user should proceed with caution.

Note on Background Subtraction

The background should not be subtracted from the data when this statistic is used. CHI PRIMINI underestimates the variance when fitting background-subtracted data.

See CHISQUARE for more information, including definitions of the quantities shown above.

Example

Specify the fitting statistic and then confirm it has been set.

sherpa> STATISTIC CHI PRIMINI 
WARNING: with CHI PRIMINI, displayed error bars will only be
         correct after a fit is performed with the current filter.
sherpa> SHOW STATISTIC
Statistic:           Chi-Squared Primini

Bugs

See the Sherpa bug pages online for an up-to-date listing of known bugs.

Hardcopy (PDF): A4 | Letter
Last modified: December 2006



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.