If we were to plot the two variables ‘HS Grad’ and ‘Illiteracy’ against each other, we get the following ggplot. The data suggests that there is a negative relationship between illiteracy rate and high school graduation ration. (Higher illiteracy rates tend to have lower high school graduation rates.)
What else is there? Another approach to determine the the relationship (or lack thereof) between variables is to find the R-Squared value–a number between 0-1, with 1 meaning a strong relationship–which indicates the proportion of the variance in the dependent variable that is predictable from the independent variable(s) in a linear regression model.
\[
R^2 = 1 - \frac{\sum(y_i - \hat{y}_i)^2}{\sum(y_i - \bar{y})^2}
\]
Applied to our data, we get that our R-squared value is 0.4318969, which indicates that, still, about 43% of the variation in high school graduation rate can be explained by the illiteracy rate, suggesting that addressing illiteracy rates may be an important step in improving high school graduation rates.