I am wanting to apply a changepoint detection method to a timeseries but an assumption is that the data points are independent from each other.
I was wondering if there is a way to check this when the data might be non-stationary? The reason I ask is that when I have done correlation plots or the Ljung-Box test on synthetic non-stationary timeseries, they show up sometimes as showing correlation even thought the samples are independent from each other.