How to deal with non random data in statistical analysis?

712 Views Asked by At

I have a set of monthly water quality data, and I want to use them in a few statistical analysis (such as finding distribution or using in copula models) which require random variables as input. I performed RUN TEST for randomness (runstest function in MATLAB) but the result showed that the data is not from a random data set. I tried removing seasonality from the data but it is still non random. Is there any way to transform or convert this data to a random data set so I acn use it in may analysis? Thank you

1

There are 1 best solutions below

2
On BEST ANSWER

You data $X$ are indexed by time $t$, so the runs test is a nonparametric test confirming autocorrelation in your data.

It may be there is a random component in your data, however, you may need to find an appropriate time-series model first. Also, removing seasonality may or may not have helped- it is important to know this is different from controlling for autocorrelation.