Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create plot routine for extractor feets.extractors.ext_stetson.StetsonJ #32

Open
leliel12 opened this issue Jan 21, 2020 · 0 comments
Open
Assignees
Labels
Milestone

Comments

@leliel12
Copy link
Contributor

Create plot routine for extractor StetsonJ.

Path: feets.extractors.ext_stetson.py

Features

  • StetsonJ

Extractor Documentation

These three features are based on the Welch/Stetson variability index I (Stetson, 1996) defined by the equation:

$$I = \sqrt{\frac{1}{n(n-1)}} \sum_{i=1}^n { (\frac{b_i-\hat{b}}{\sigma_{b,i}}) (\frac{v_i - \hat{v}}{\sigma_{v,i}})}$$

where :math:b_i and vi are the apparent magnitudes obtained for the candidate star in two observations closely spaced in time on some occasion i, σb, i and σv, i are the standard errors of those magnitudes, and hat{v} are the weighted mean magnitudes in the two filters, and n is the number of observation pairs.

Since a given frame pair may include data from two filters which did not have equal numbers of observations overall, the "relative error" is calculated as follows:

$$\delta = \sqrt{\frac{n}{n-1}} \frac{v-\hat{v}}{\sigma_v}$$

allowing all residuals to be compared on an equal basis.

StetsonJ

Stetson J is a robust version of the variability index. It is calculated based on two simultaneous light curves of a same star and is defined as:

$$J = \sum_{k=1}^n sgn(P_k) \sqrt{|P_k|}$$

with Pk = δikδjk

For a Gaussian magnitude distribution, J should take a value close to zero:

>>> fs = feets.FeatureSpace(only=['StetsonJ'])
>>> features, values = fs.extract(**lc_normal)
>>> dict(zip(features, values))
{'StetsonJ': 0.010765631555204736}

References

Warnings

The original FATS documentation says that the result of StetsonJ must be ~0 for gausian distribution but the result is ~-0.41

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants