I learned in stats class how to do a standard Pearson correlation. I have a data set that I now want to analyze that adds another element and I am not sure what to do.
I have baseball stats that includes three pieces of data for a set of baseball games:
1. Number of Home Runs hit
2. Wind speed
3. Wind direction.
I want to see if a strong wind blowing to the outfield makes a difference in how many home runs are hit. The problem is that sometimes the wind only blows 1 mph. Sometimes 20 mph. I also have a bit more detailed direction data such as N, NNE, NE, ENE, E, etc. So it isn't just "wind blowing out" or "wind blowing in". It is reasonable to assume that there are more home runs hit when the wind is blowing out to N than when it is blowing to ENE.
Where do I start?