# 9.1.1 - Scatterplots

If the interest is to investigate the relationship between two quantitative variables, one valuable tool is the scatterplot.

Scatterplot
A graphical representation of two quantitative variables where the explanatory variable is on the x-axis and the response variable is on the y-axis.

When we look at the scatterplot, keep in mind the following questions:

1. What is the direction of the relationship?
2. Is the relationship linear or nonlinear?
3. Is the relationship weak, moderate, or strong?
4. Are there any outliers or extreme values?

We describe the direction of the relationship as positive or negative. A positive relationship means that as the value of the explanatory variable increases, the value of the response variable increases, in general. A negative relationship implies that as the value of the explanatory variable increases, the value of the response variable tends to decrease.

## Example 9-1: Student height and weight (Scatterplots) Section

Suppose we took a sample from students at a large university and asked them about their height and weight. The data can be found here university_ht_wt.txt.

The first three observations are:

Height (inches)

Weight (pounds)

72

200

68

165

69

160

We let $$X$$ denote the height and $$Y$$ denote the weight of the student. The observations are then considered as coordinates $$(x,y)$$. For example, student 1 has coordinate (72,200). These coordinates are plotted on the x-y plane.

We can use Minitab to create the scatterplot.

#### Minitab: Scatterplots

We can create our scatterplot in Minitab following these steps.

1. Choose Graph > Scatterplot > Simple
2. Choose OK
##### Scatterplot of Weight vs Height The scatterplot shows that, in general, as height increases, weight increases. We say “in general” because it is not always the case. For example, the observation with a height of 66 inches and a weight of 200 pounds does not seem to follow the trend of the data.

The two variables seem to have a positive relationship. As the height increases, weight tends to increase as well. The relationship does not seem to be perfectly linear, i.e., the points do not fall on a straight line, but it does seem to follow a straight line moderately, with some variability.

## Try it! Section

An elementary school teacher gives her students two spelling tests a year. Each test contains 24 words, and the score is the number of words spelled correctly. The teacher is interested in the relationship between the score on the first test and the score on the second test. Using the scatterplot, comment on the relationship between the two variables. There seems to be a weak positive linear relationship between the two test scores.

In the next section, we will introduce correlation. Correlation is a measure that gives us an idea of the strength and direction of the linear relationship between two quantitative variables.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9176275,"math_prob":0.9806765,"size":2792,"snap":"2023-40-2023-50","text_gpt3_token_len":586,"char_repetition_ratio":0.17360115,"word_repetition_ratio":0.048034936,"special_character_ratio":0.21418338,"punctuation_ratio":0.11545988,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9966242,"pos_list":[0,1,2,3,4],"im_url_duplicate_count":[null,10,null,10,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-09-21T16:11:05Z\",\"WARC-Record-ID\":\"<urn:uuid:c217c742-b07c-46ed-ab19-bc2e6a04a81e>\",\"Content-Length\":\"72604\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:581da6d4-746e-43d2-b6ef-619780f76948>\",\"WARC-Concurrent-To\":\"<urn:uuid:a347ce66-0f44-40e2-a62b-6b4afc0c15b1>\",\"WARC-IP-Address\":\"128.118.15.226\",\"WARC-Target-URI\":\"https://online.stat.psu.edu/stat500/lesson/9/9.1/9.1.1\",\"WARC-Payload-Digest\":\"sha1:DIVDAN7SC7B76SVCL3XH66WSOTV47LA3\",\"WARC-Block-Digest\":\"sha1:6KP4Y6XH53VSLMEPJPDJ3F2UD724UREC\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-40/CC-MAIN-2023-40_segments_1695233506028.36_warc_CC-MAIN-20230921141907-20230921171907-00605.warc.gz\"}"}