In this exercise you will learn to visualize the pairwise relationships between a set of quantitative variables. To this end, you will make your own note of 8.1 Correlation plots from Data Visualization with R.
“Living Area” and “Bathrooms” both have a strong positive correlation with home price.
None of the factors have strong correlations with wage; All of the correlations are below 0.6.
A strong association does not mean causation. In this case, home price rises with more bedrooms and bathrooms based on the correlation.
A strong association does not mean causation in regards to the wage as well.
The “Age”.
Within the context we can conclude that there may not be a confounding variable in regards to wage correlation.
None of the factors have strong negative correlations with the home price because none of the negative correlations exceed -0.6 or greater.
None of the factors have strong negative correlations with the wage because none of the negative correlations exceed -0.6 or greater.
Any factors with either positive or negative correlations below 0.4 and above -0.4 will have a weak correlation with home price. Examples could include lot size, fireplaces or age.
“Experience” has the weakest correlation with wage.
Based on the correlation coefficient, you would not be sure that there is no relation at all. In order to check, you would need to create a scatter plot to visualize the data.
Looking at the number of experience with wage, there seems to be little relation between the two variables. They seem not to ne related, but there is no way to know for sure. You could check with data visualization, such as a scatter plot.
Hint: The CPS85 data set is from the mosaicData package. Explain wage instead of home price.
Hint: Use message, echo and results in the chunk options. Refer to the RMarkdown Reference Guide.