-
Notifications
You must be signed in to change notification settings - Fork 13
Description
Create plot routine for extractor CAR.
Path: feets.extractors.ext_car.py
Features
-
CAR_mean
-
CAR_sigma
-
CAR_tau
Extractor Documentation
In order to model the irregular sampled times series we use CAR
(Brockwell and Davis, 2002), a continious time auto regressive model.
CAR process has three parameters, it provides a natural and consistent way of estimating a characteristic time scale and variance of light-curves. CAR process is described by the following stochastic differential equation:
where the mean value of the lightcurve X(t) is b**τ and the variance is
The likelihood function of a CAR model for a light-curve with observations x − {x1, …, xn} observed at times {t1, …, tn} with measurements error variances {δ12, …, δn2} is:
To find the optimal parameters we maximize the likelihood with respect to σC and τ and calculate b as the mean magnitude of the light-curve divided by τ.
>>> fs = feets.FeatureSpace(
... only=['CAR_sigma', 'CAR_tau','CAR_mean'])
>>> features, values = fs.extract(**lc_periodic)
>>> dict(zip(features, values))
{'CAR_mean': -9.230698873903961,
'CAR_sigma': -0.21928049298842511,
'CAR_tau': 0.64112037377348619}