sczesla / PyAstronomy

A collection of astronomy-related routines in Python
152 stars 35 forks source link

what's the rationale behind pointDistGESD? #59

Closed abhishekgrewal closed 1 year ago

abhishekgrewal commented 1 year ago

This function applies the generalized ESD test to the distances between adjacent data points, which are then requires to be distributed approximately normally.

Does that mean pointDistGESD is relaxes the requirement that data needs to be normally distributed? and it can be applied on a non-normal distribution? If yes, why?

sczesla commented 1 year ago

Hi there, yes and no. No, because it is the very same test. Yes, because it is applied to modified data. In particular, the differences between consecutive data points are used (x_(i+1) - x_i, differencing in time series parlance), which can help to stabilize the mean of the data by removing trends and other "slow" variation. Cheers