Whether the person voted for Trump is the dependent variable, and each of the other questions are independent variables. The correlation coefficient can then be computed comparing the column of each dependent variable with the Trump column. What this data tells us is that being blue collar is a perfect predictor of voting for Trump -- the correlation coefficient is 1. The next best predictive factor would be whether the voter was a Republican, where they match 6 out of 7 times. Then comes gender and West Virginia residence. Assuming that the data sample was large enough to be statistically significant, we could build a model to predict whether other voters would vote for Trump by asking the same questions and computing a score using the formula: | Whether the person voted for Trump is the dependent variable, and each of the other questions are independent variables. The correlation coefficient can then be computed comparing the column of each dependent variable with the Trump column. What this data tells us is that being blue collar is a perfect predictor of voting for Trump -- the correlation coefficient is 1. The next best predictive factor would be whether the voter was a Republican, where they match 6 out of 7 times. Then comes gender and West Virginia residence. Assuming that the data sample was large enough to be statistically significant, we could build a model to predict whether other voters would vote for Trump by asking the same questions and computing a score using the formula: |