**Graphing Relationships**

**Pre-Class Tasks**

So far we have dealt with data obtained from one variable (either categorical or quantitative) and learned how to describe the distribution of the variable using the appropriate visual displays and numerical measures. In this section, examining relationships, we will look at two variables at a time and, as the title suggests, explore the relationship between them using (as before) visual displays and numerical summaries.

While it is fundamentally important to know how to describe the distribution of a single variable, most studies (including yours) pose research questions that involve exploring the relationship between two variables.

Here are a few examples of such research questions with the two variables highlighted:

**Examples:**

- Is there a relationship between gender and test scores on a particular standardized test?

Other ways of phrasing the same research question:

- Is performance on the test related to gender?
- Is there a gender effect on test scores?
- Are there differences in test scores between males and females?

- Is there a relationship between the type of light a baby sleeps with (no light, night-light, lamp) and whether the child develops nearsightedness?
- Are the smoking habits of a person (yes, no) related to the person’s gender?
- How well can we predict a student’s freshman year GPA from his/her SAT score?

In most analyses involving two variables, each of the variables has a role. We distinguish between:

- the
*response*variable (also known as the dependent variable (DV), or outcome) - the
*explanatory*variable (also known as the independent variable (IV), or the predictor)

At this point, we will be asking you to **“impose” a causal model** on your research question, despite the fact that you will not be able to directly evaluate a causal relationship. This video defines the two types of variables you will be identifying and shows you how this decision will guide the kinds of graphing you do and the kind of statistical tests that you will ultimately use. Please watch the video below.

- R
- SAS
- Stata

**Pre-Class Quiz**

After reviewing the material above, take Quiz 6 in moodle. Please note that you have 2 attempts for this quiz and the higher grade prevails.

**During Class Tasks**

Mini-Assignment 4

Project Component G