Understanding the relationship between two variables is a fundamental aspect of statistical analysis. Scatter diagrams (or scatter plots) are visual representations that show how one variable is affected by another, allowing us to observe patterns and possibly predict future trends. This section focuses on creating scatter diagrams and determining the type of correlation between two variables, such as height and weight, to see if there’s a positive correlation.
![Scatter Plots and Correlation Examples](https://tutorchase-resources-platform-client-production.vercel.app/_next/image?url=https%3A%2F%2Ftutorchase-production.s3.eu-west-2.amazonaws.com%2Fab3a6217-b0f2-44f1-acfb-40a9f9fe7ded-file.png&w=1920&q=75)
Introduction to Scatter Diagrams
Scatter diagrams plot pairs of numerical data, with one variable on each axis, to look for a relationship between them. When plotting data points on this type of graph, a pattern may emerge, indicating a correlation between the variables.
- Positive Correlation: As one variable increases, the other also increases.
- Negative Correlation: As one variable increases, the other decreases.
- No Correlation: There is no apparent relationship between the variables.
![Types of Correlation](https://tutorchase-resources-platform-client-production.vercel.app/_next/image?url=https%3A%2F%2Ftutorchase-production.s3.eu-west-2.amazonaws.com%2Fc771dae4-8646-4dfe-a977-f48c519b33bc-file.png&w=1200&q=75)
Plotting a Scatter Diagram
Step 1: Collect Data
Gather data on two variables you wish to compare. For example, you might collect data on the heights and weights of a group of people.
Step 2: Draw the Axes
Draw two perpendicular lines to represent the axes. Label the horizontal axis for one variable (e.g., height) and the vertical axis for the other (e.g., weight).
Step 3: Plot the Data Points
For each pair of values, plot a point on the graph corresponding to the height and weight of an individual.
Step 4: Observe the Pattern
Look at the plotted points to determine if there is a pattern suggesting a correlation.
Understanding Correlation
- Strong Correlation: The points lie close to a straight line.
- Weak Correlation: The points are more spread out from a straight line.
- No Correlation: The points are very scattered, with no discernible pattern.
Example: Height and Weight Correlation
Let's consider a set of data representing the heights (in metres) and weights (in kilograms) of a group of individuals:
![Table of Value for Height and Weight](https://tutorchase-resources-platform-client-production.vercel.app/_next/image?url=https%3A%2F%2Ftutorchase-production.s3.eu-west-2.amazonaws.com%2F1991f58d-4ac7-4f57-a978-f860d07f31f4-file.png&w=828&q=75)
Plotting the Data
By plotting these points on a scatter diagram, we can visually inspect the relationship between height and weight.
![Height vs. Weight Correlation](https://tutorchase-resources-platform-client-production.vercel.app/_next/image?url=https%3A%2F%2Ftutorchase-production.s3.eu-west-2.amazonaws.com%2F5ab06997-99c9-4d62-a462-ec9e034ebb16-file.png&w=1200&q=75)
Observing Correlation
The plotted points are likely to show an upward trend, indicating a positive correlation between height and weight: as height increases, weight tends to increase as well.
Correlation Coefficient
The correlation coefficient, typically denoted as (r), quantifies the degree of correlation between two variables, ranging from -1 to 1.
- : Perfect positive correlation
- : Perfect negative correlation
- : No correlation
Calculating the Correlation Coefficient
The correlation coefficient, , helps quantify the strength and direction of a linear relationship between two variables.
Formula for :
Where:
- is the number of pairs,
- and are the individual scores,
- denotes the sum over all pairs.
Calculation:
1. List all (height) and (weight) pairs.
2. Calculate , , , , and .
Given our dataset, let's perform these calculations to find .
Let's start by calculating the sums and sums of squares needed for the formula.
After calculating the necessary components, we find:
- (total height)
- (total weight)
- (sum of the product of heights and weights)
- (sum of squared heights)
- (sum of squared weights)
Using these values in our correlation coefficient formula gives us:
This result, , indicates a very strong positive correlation between height and weight in our dataset. A correlation coefficient close to 1 signifies that as height increases, weight also increases in a linear manner.