Data Visualizationmedium
0:00.0
A scatter plot of employee salaries vs. years of experience shows a negative overall correlation (). However, when data points are color-coded by department, Department A shows a positive correlation () and Department B shows a positive correlation (). What mathematical condition in the data allows this Simpson's Paradox to occur?
A scatter plot of employee salaries vs. years of experience shows a negative overall correlation (). However, when data points are color-coded by department, Department A shows a positive correlation () and Department B shows a positive correlation (). What mathematical condition in the data allows this Simpson's Paradox to occur?