2.1Scatterplots A scatterplot displays two quantitative variables for a set of data.
2 nd Test Score Final Exam Score
A response variable measures an outcome of a study. An explanatory variable explains or causes changes in the response variable. We usually use x for explanatory variable and y for response variable.
Example How does the fuel consumption of a car change as its speed increases? Speed (km/h)Fuel Used (liters/100 km) Speed (km/h)Fuel Used (liters/100 km)
The data seems to form to a quadratic equation (or just a curve). The strength of the relationship is quite strong.
MonthSales Year 1 Sales Year 2 January February March April May June July August September October November December371450
This form of the data appears to be linear. The direction appears to be positive association.
Two variables are positively associated (negatively associated) when above (below) average values of one tend to accompany above (below) average values of the other and vice versa. In other words, positively associated if data looks like it’s increasing and negatively associated if data looks like it’s decreasing. Data can also be neither.
Categorical Variables How do we add categorical data into a scatter plot? Here we treat codes as our codes as our categorical data. BTU/HrTempCodes
Both categorical variables have a negative association, and data appears to be linear.