The heights and weights of students tend to rise together, while the number of absentees tends to fall as attendance rises. Such connected movement of two variables is called correlation, and it is the first step in studying how two variables are related.

Meaning of Correlation

Correlation is the statistical relationship between two variables such that a change in one is accompanied by a change in the other. The two variables are measured on the same individuals, giving bivariate data, which is a set of pairs (x, y). Correlation tells us how closely the two variables move together, but it does not by itself show that one causes the other.

Definition: Correlation. A statistical measure of the extent and direction of the linear relationship between two variables.

Scatter Diagram

A scatter diagram is a graph in which each pair (x, y) is plotted as a point. The pattern of the points gives a quick picture of the relation. Points rising from left to right show a positive relation, and points falling show a negative relation. Points forming a shapeless cloud show no relation. A scatter diagram gives only a rough idea, but it should always be drawn before a coefficient is calculated, since it also reveals unusual points.

Types of Correlation

Correlation is positive when both variables increase or decrease together, as in the height and weight of persons. It is negative when one variable rises as the other falls, as in the price of a good and the quantity demanded. If there is no relation, the correlation is zero. Correlation is linear when the points lie near a straight line, and non-linear when they follow a curve. When it involves only two variables it is simple, and when more variables are involved it is multiple.

Table 2.1: Types of correlation

Type Movement of the variables Example
Positive Same direction Hours of study and marks
Negative Opposite directions Speed and time taken
Zero No pattern Shoe size and marks

Example 2.1: Reading a scatter diagram

Problem: The pairs (hours of study, marks) of five students are (2, 50), (4, 55), (6, 65), (8, 70) and (10, 85). State the type of correlation.

Solution:

  1. Plot the five points. As the hours increase from 2 to 10, the marks rise from 50 to 85.
  2. The points lie close to a rising straight line.

Result: The correlation is positive and approximately linear.

Common mistakes

  • Concluding that one variable causes the other because they are correlated.
  • Skipping the scatter diagram and calculating a coefficient for data that follow a curve.
  • Treating zero correlation as proof that the variables are unrelated. They may be related non-linearly.

Key takeaways

  • Correlation measures the extent and direction of a relation between two variables.
  • A scatter diagram plots each pair of values as a point.
  • Positive, negative and zero are the three main types.
  • Correlation does not prove causation.

Practice questions

  1. Define correlation.
  2. What type of correlation exists between the price and the quantity demanded of a good?
  3. What is a scatter diagram?

Answers to the practice questions

  1. A statistical measure of the extent and direction of the linear relationship between two variables.
  2. Negative correlation.
  3. A graph in which each pair of values of two variables is plotted as a point.

Sources

  • Official BCA syllabus Probability and Statistics, course code 26BCA403DS01, Unit II