Skip to content

different best fit parameters found using chi statistics #15

@poonh

Description

@poonh

I fit my data with single beta model, using chi statistics, and I find the best fitting rc varies greatly on the binsize(the maximum I used is 30 arcsecs). Sometimes even negative values for rc are found. When I test with simulated data, I find the smaller the binsize, the more accurate the fitting parameters are. I find the problem lies in models.py. In the program,

def BetaModel(x, beta, rc, norm, bkg)

The input x is the mid point of each bin. If the binsize is small enough, the change in each bin is very close to linear, and it is ok to use the mid point as the average. But as the binsize gets large, the change inside each bin is less linear. That's why the best-fit parameters found differ a lot with different binsize.
I changed the input x to the Profile object, and retrieve the relevant parameters in the BetaModel function so that "out" is calculated in exactly the same way as it is in SBProfile. It takes a lot longer, around 1 hour for XMM Newton data with a 900*900 pixel image.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions