Introduction to Scatterplots

Complete guide to scatterplots: bivariate data visualization, correlation, trend analysis, and interpretation with 5 detailed exercises.

Exercise Solutions 1-3
1 Creating a Scatterplot
Exercise 1
Create a scatterplot for the following data showing the relationship between study hours and test scores: (2, 65), (3, 70), (4, 75), (5, 80), (6, 85), (7, 90), (8, 95). Describe the pattern.
Key Definitions:

Scatterplot: A graph showing the relationship between two quantitative variables by plotting points on a coordinate plane

Bivariate Data: Data consisting of two variables measured on the same individuals

Explanatory Variable (x): The variable that may explain or predict the other variable

Response Variable (y): The variable that responds to changes in the explanatory variable

Scatterplot Creation Method:
  1. Identify the explanatory variable (x-axis) and response variable (y-axis)
  2. Create a coordinate system with appropriate scales
  3. Plot each data point as coordinates (x, y)
  4. Analyze the overall pattern of the points
Step 1: Identify variables

Explanatory variable (x): Study hours

Response variable (y): Test scores

Step 2: Plot the points

Points: (2,65), (3,70), (4,75), (5,80), (6,85), (7,90), (8,95)

Step 3: Analyze the pattern

Points form an upward-sloping linear pattern

Pattern: Strong positive linear relationship
As study hours increase, test scores increase
Correlation appears strong and positive
Final Answer:

The scatterplot shows a strong positive linear relationship between study hours and test scores. As study hours increase from 2 to 8 hours, test scores consistently increase from 65 to 95. The points form a clear upward-sloping straight line, indicating a strong positive association between the two variables.

Applied Rules:

• Variable assignment: Explanatory on x-axis, response on y-axis

• Pattern analysis: Look for direction, form, and strength

• Linear relationship: Points form a straight-line pattern

2 Identifying Direction and Strength
Exercise 2
A scatterplot shows the relationship between temperature (°F) and ice cream sales. The points generally slope downward from left to right. What does this indicate about the direction and strength of the relationship?
Key Definitions:

Direction: Positive (upward slope) or negative (downward slope)

Strength: How closely the points follow a pattern (weak, moderate, strong)

Form: The shape of the relationship (linear, curved, clusters)

Pattern Analysis Method:
  1. Identify the direction (positive or negative)
  2. Assess the strength (how tightly points cluster)
  3. Determine the form (linear or non-linear)
  4. Look for outliers or unusual patterns
Step 1: Identify direction

Downward slope from left to right = negative relationship

Step 2: Assess strength

Depends on how closely points follow the downward pattern

Step 3: Interpret meaning

As temperature increases, ice cream sales decrease

Direction: Negative
Form: Linear (assumed)
Relationship: As temp increases, sales decrease
Final Answer:

The downward-sloping pattern indicates a negative relationship between temperature and ice cream sales. This means that as temperature increases, ice cream sales tend to decrease. This is contrary to the expected positive relationship, suggesting there might be an error in the data or an unusual situation (perhaps the data represents winter months where hot weather leads to more air conditioning costs, reducing spending on treats).

Applied Rules:

• Direction: Upward = positive, Downward = negative

• Strength: Closer clustering = stronger relationship

• Context: Always consider if the relationship makes sense

3 Analyzing Form and Outliers
Exercise 3
A scatterplot of age vs. reaction time shows most points following a curved pattern, but one point is far from the others. How would you describe the form and identify this unusual point?
Key Definitions:

Form: The overall shape of the relationship (linear, quadratic, exponential)

Outlier: A data point that falls far from the overall pattern

Curved Relationship: Non-linear pattern suggesting exponential or polynomial relationship

Form and Outlier Analysis:
  1. Identify the overall form of the relationship
  2. Look for points that deviate significantly from the pattern
  3. Consider if the outlier is valid or an error
  4. Assess how the outlier affects the relationship
Step 1: Identify the form

Most points follow a curved pattern, indicating non-linear relationship

Step 2: Identify the outlier

One point is far from the curved pattern

Step 3: Assess the outlier

Determine if it's a legitimate data point or an error

Form: Curved (non-linear)
Outlier: Present
Pattern: Age vs. reaction time typically curved
Final Answer:

The scatterplot shows a curved (non-linear) relationship between age and reaction time, which is typical as reaction time tends to be fast in young ages, slowest in older ages, with a gradual change. The outlier point is a data point that doesn't follow this curved pattern. It could represent an unusual individual or potentially an error in data collection. The outlier should be investigated to determine if it should be included in analysis.

Applied Rules:

• Form recognition: Look for linear, curved, or clustered patterns

• Outlier identification: Points that deviate significantly

• Outlier investigation: Determine validity before analysis

Exercise Solutions 4-5
4 Correlation Assessment
Exercise 4
A scatterplot shows a very tight linear pattern sloping upward. How would you describe the correlation coefficient? What values might it have?
Key Definitions:

Correlation Coefficient (r): A number between -1 and 1 measuring the strength and direction of a linear relationship

Strong Positive Correlation: r close to +1

Strong Negative Correlation: r close to -1

Correlation Interpretation:
  1. Identify the direction of the relationship
  2. Assess the strength based on point clustering
  3. Estimate the correlation coefficient value
  4. Interpret the meaning of the correlation
Step 1: Identify direction

Upward slope indicates positive correlation

Step 2: Assess strength

Very tight pattern indicates strong correlation

Step 3: Estimate correlation coefficient

Strong positive linear relationship: r ≈ 0.8 to 0.99

Direction: Positive
Strength: Strong
Correlation coefficient: r ≈ 0.8 to 0.99
Final Answer:

The correlation coefficient would be close to +1, likely between 0.8 and 0.99. A very tight linear pattern sloping upward indicates a strong positive linear relationship. The closer the points are to forming a perfect straight line, the closer the correlation coefficient is to +1. This suggests a very strong positive association between the two variables.

Applied Rules:

• Correlation range: -1 ≤ r ≤ 1

• Direction: Positive slope = positive r

• Strength: Tighter clustering = |r| closer to 1

5 Real-World Application
Exercise 5
A scatterplot of rainfall (inches) vs. crop yield (tons) shows a positive relationship that levels off after 30 inches of rain. How would you describe this relationship and what might it mean?
Key Definitions:

Non-linear Relationship: Relationship that doesn't follow a straight line

Diminishing Returns: Situation where additional input produces smaller increases in output

Threshold Effect: Point beyond which additional input has little effect

Real-World Pattern Analysis:
  1. Identify the overall pattern and any changes
  2. Consider the real-world context
  3. Interpret the meaning of the pattern
  4. Consider practical implications
Step 1: Identify the pattern

Positive relationship initially, then levels off after 30 inches

Step 2: Consider agricultural context

Plants need water but too much can be harmful

Step 3: Interpret the leveling off

Additional rain beyond 30 inches provides little benefit

Pattern: Positive then plateau
Threshold: ~30 inches
Meaning: Diminishing returns after threshold
Final Answer:

The scatterplot shows a positive relationship between rainfall and crop yield up to about 30 inches, after which the relationship levels off. This suggests that additional rainfall beyond 30 inches provides diminishing returns for crop yield. In agricultural terms, this could be because plants can only absorb a certain amount of water, and excessive rainfall may lead to waterlogging, nutrient leaching, or other problems that prevent further yield improvements.

Applied Rules:

• Context matters: Interpret patterns in real-world terms

• Non-linear relationships: Common in real-world phenomena

• Threshold effects: Many relationships have optimal ranges

Comprehensive Summary: Introduction to Scatterplots
r = \(\frac{\sum(x_i - \bar{x})(y_i - \bar{y})}{\sqrt{\sum(x_i - \bar{x})^2\sum(y_i - \bar{y})^2}}\)
Correlation Coefficient
r = 1
Perfect Positive
r = 0
No Linear
r = -1
Perfect Negative
r > 0.7
Strong
Key Pattern Characteristics:

Direction: Positive (upward) or Negative (downward)

Form: Linear, Curved, or Clustered

Strength: Weak, Moderate, or Strong

Outliers: Points that deviate significantly

Key Concepts:

Bivariate Data: Data that consists of two quantitative variables measured on the same individuals or objects. Scatterplots are the primary tool for visualizing bivariate data.

Association vs. Causation: Scatterplots show association between variables, but association does not imply causation. Other variables may influence the relationship.

Correlation Coefficient: A numerical measure ranging from -1 to +1 that quantifies the strength and direction of a linear relationship between two variables.

Core Methods and Procedures:
  1. Data Preparation: Identify explanatory and response variables
  2. Scatterplot Creation: Plot points on coordinate system
  3. Pattern Analysis: Assess direction, form, and strength
  4. Outlier Identification: Look for unusual points
  5. Interpretation: Explain relationship in context
Tip 1: Always plot your data before calculating correlations to see the pattern visually.
Tip 2: Look for the overall pattern first, then examine individual points for outliers.
Tip 3: Remember that correlation only measures linear relationships; curved relationships may have low correlation despite being strongly related.
Tip 4: Always consider the context when interpreting scatterplots; relationships should make sense in the real world.
Common errors: Assuming causation from correlation, ignoring outliers, forcing linear interpretations on non-linear data, misidentifying explanatory/response variables.
Memorization aids: "Direction up = positive", "Tight clustering = strong", "Correlation ≠ causation", "Look before you calculate".
Essential Rules:

• Correlation range: -1 ≤ r ≤ 1

• Direction: Positive slope = positive r, Negative slope = negative r

• Strength: |r| closer to 1 = stronger relationship

• Form: Correlation only measures linear relationships

Detailed Course Content: Introduction to Scatterplots
r = \(\frac{\text{Cov}(X,Y)}{s_X \cdot s_Y}\)
Correlation Formula
Perfect Pos
r = 1
All points on line
Strong Pos
r > 0.7
Tight clustering
Weak Pos
r < 0.3
Loose clustering
Detailed Definitions:

Residual: The difference between observed and predicted values in a scatterplot, used to assess how well a line fits the data.

Lurking Variables: Variables that are not included in the analysis but may influence the relationship between the two plotted variables.

Scatterplot Smoothing: Techniques like LOESS to reveal underlying patterns in noisy scatterplots.

Advanced Problem-Solving Techniques:
  1. Variable Identification: Correctly assign explanatory and response variables based on research question
  2. Scale Selection: Choose appropriate axis scales to clearly show patterns
  3. Pattern Recognition: Distinguish between linear and non-linear relationships
  4. Outlier Analysis: Determine if outliers are errors or meaningful data points
  5. Contextual Interpretation: Connect statistical patterns to real-world phenomena
Advanced Tip 1: Use different symbols or colors to represent categories within scatterplots when dealing with mixed data.
Advanced Tip 2: Consider transforming variables if the relationship appears curved but you want to use linear methods.
Advanced Tip 3: Always check for influential points that disproportionately affect the correlation coefficient.
Advanced Tip 4: Be cautious about extrapolation beyond the range of observed data in scatterplots.
Real-world applications: Economics (price-demand), medicine (dosage-response), psychology (treatment-outcome), business (advertising-sales), and scientific research across disciplines.
Foundation for inference: Scatterplots are the first step toward regression analysis and prediction modeling.

Questions & Answers

Question: Can a scatterplot show causation between two variables, or only correlation?

Answer: Scatterplots can only show correlation (association), not causation. A strong correlation between two variables doesn't prove that one causes the other. For example, ice cream sales and drowning incidents might be correlated, but eating ice cream doesn't cause drowning - both are related to hot weather. To establish causation, you need controlled experiments or additional evidence beyond observational data. Always remember: correlation does not imply causation.

Question: What's the difference between correlation and regression? Are they the same thing?

Answer: Correlation and regression are related but different concepts:

  • Correlation: Measures the strength and direction of the linear relationship between two variables (just a number, r)
  • Regression: Creates an equation that predicts one variable from another (a line of best fit)

You can think of correlation as describing how closely two variables move together, while regression gives you a formula to predict one variable from the other. Correlation comes first - you need to see a relationship before creating a predictive model.

Question: How do I know if a correlation coefficient is statistically significant?

Answer: The correlation coefficient alone doesn't tell you if the relationship is statistically significant. Significance depends on both the correlation coefficient and the sample size:

  • Small samples: Even strong correlations might not be significant
  • Large samples: Weak correlations might be significant

To determine significance, you need to perform a hypothesis test for the correlation coefficient, which considers both the r value and the sample size (n). For now, focus on interpreting the strength and direction of the relationship shown in your scatterplot.