Identifying Heteroskedastic Outcomes
An easy way to identify whether the variability of a dependent variable is unequal across the range of values in an independent variable is to examine these relationships in a scatter plot. The R Workspace contains plots for income's relationship with three different predictors: Education, Age, and City Population. You can see each plot by clicking the "Next Plot" and "Previous Plot" buttons below the plot. Within the plots, each dot represents an observation from our sample. Using these plots, determine the independent variable with which income is most heteroskedastic.
This exercise is part of the course
Causal Inference with R - Experiments
Exercise instructions
Education,Age,City Population
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
#Relationship between Age and Income
plot(Sample$Age,Sample$Income)
#Relationship between Education and Income
plot(Sample$Education,Sample$Income)
#Relationship between City Population and Income
plot(Sample$City_Population,Sample$Income)