astropy / astropy/specutils

Fit_continuum fitting method is not robust to noise

Open
#707 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
204
Forks
134
Avg merge
12h 55m
Merged PRs (30d)
1

Description

Using fitting.fit_continuum to fit a simple linear continuum to two continuum windows gives significantly different slopes for two different realizations of the noise. The chi^2 (by-eye) value sometimes appears to be unacceptable. Here are two examples for different realizations of the noise, in the following continuum windows:
fitwindows1=[(5125.*u.AA, 5175.*u.AA),(5225.*u.AA, 5275.*u.AA)]

![fit_continuum_2noise_realizations](https://user-images.githubusercontent.com/44263689/89561123-0dab4700-d7e6-11ea-925f-0e67889caef4.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the issue with fitting.fit_continuum and the supplied fitwindows1 values, using multiple noise realizations. Compare the resulting slopes and by-eye chi^2 values; done means the fitting behavior is acceptably consistent across those realizations.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.