I'm doing a research project and want to test for correlation between different data sets.
For example, I want to test if there is a correlation between median house prices and homeless population in the US by year. Here is some made up data for the problem:
Year 2000 , House price $260,000, homeless pop 330,000
2005 - 270,000 - 315,000
2010 - 285,000 - 320,000
2015 - 330,000 - 340,000
2020 - 400,000 - 370,000
I want to then get (r) to measure the correlation between these two data sets and compare that strength of correlation to other data sets (for example, median house price and rates of domestic violence in the US)
Thank you for the help!