# How to evaluate if year-over-year data is correlated and predictive

I'm working with data that is separated by year and classification and want to test if the data is correlated over each year. Essentially, I want to determine if the data is random each year or one year's data is correlated to the previous and possibly predictive of the future.

What statistical test is best for this?

For example: 1

Using this data, I would off-hand assume that there is correlation for users a & c. However, user b bounces between .4, .1 and .8 and thus would assume his yearly performances are fairly random.

Any and all help is appreciated! And let me know if any further clarification is helpful.

## migrated from stackoverflow.comJan 11 at 10:31

This question came from our site for professional and enthusiast programmers.

• You should plot the time series data first then check the pattern present in the graph. Use ggAcf() function, it will show you whether data is correlated or not. – Zeeshan Jan 11 at 5:43
• Plot an ACF plot for each user. – user2974951 Jan 11 at 10:34

H0: No serial correlation present