← Learn AI
C_000345 · mathematical foundations · foundation

Scatterplots and Relationships

Plotting two variables against each other to reveal association, nonlinearity, clustering and outliers before any correlation coefficient is computed.

Step 1 of 4

In words

What it is, why it matters, and what it is like.

Why am I learning this?

Before you can make any prediction about how two things in the real world relate, you must see if they move together. A scatterplot is your first tool for this job. It shows you clearly whether larger houses cost more, whether a sensor reading predicts a machine failure, or whether customers who buy one item tend to buy another. If you skip this step, you risk fitting a straight line to data that actually curves, or declaring a relationship exists when it is just caused by one unusual data point. Seeing the shape of the data visually prevents you from trusting numbers that hide complex patterns.

The idea, in plain terms

Imagine you have two lists of numbers, each number paired with its partner: for each house, its size in square feet and its price in lakhs. You want to know if bigger houses cost more. You could look at the two lists side by side, but with fifty pairs your eyes blur. Instead, you mark a dot on a page for each pair: the left-right position is size, and the up-down position is price. With all fifty dots down, patterns jump out. If the dots slant upward from left to right, bigger houses do tend to cost more — that is an association. If the dots form a loose cloud with no slant, size tells you little about price. If the dots curve, like a smile, then a straight-line summary would mislead you. A scatterplot is your naked-eye view of a relationship before any number tries to summarise it. The key habit: always plot first, even when you plan to compute a single number later to describe the strength of that link. The plot shows you what that number hides.

An analogy

Picture yourself as a detective entering a room where the floor is a giant grid: the left edge is labelled in years of experience, and the bottom edge in salary. Each person in the company places a coin on the grid at the point matching their experience and salary. You stand back and look at the pattern of coins. Do they form a rising diagonal (more experience, more salary)? Do they cluster into two separate blobs (one group well paid, another poorly)? Is there a single coin far from everyone else (an unusual value, maybe the CEO, maybe an error)? That is exactly what a scatterplot does — it turns a table of numbers into a pattern of dots you can read with your eyes. The analogy works until you try to scale it: a real dataset has hundreds or thousands of points, and dots overlap. You need to add transparency or use small random jitter so you can see the density underneath. Also, the grid has no units — you must label axes carefully, or a squashed or stretched scale will make a slope look steeper or shallower than it is. The detective's eye is the point, not the coordinates.

Definition

A scatterplot is a graph that shows each observation as a dot positioned by two variables — one on the horizontal axis, one on the vertical — so that patterns of association, curvature, clustering, and unusual values are visible at a glance.

Where this sits

You have not yet studied statistics formally, but this topic connects directly to two neighbours in your library. A scatterplot is the visual companion to Summary Numbers: while an average and a measure of spread summarise one variable, a scatterplot reveals how two variables move together. When you later study the strength of links between variables, you will see they turn the scatterplot's shape into a single number — and you will learn why that number can be misleading (see Anscombe's quartet, a famous set of datasets with identical summary numbers but different visual shapes). When you move to fitting lines, the scatterplot is the first check you draw to see whether a straight line is even appropriate. In short, every branch of Statistical Inference — from testing ideas to complex forecasting methods — assumes you have looked at the data first.

Signal from the Frontier

Get the next essay on mind, machine, and meaning

Essays at the intersection of AI, philosophy, and Indian governance. No promotional content.

We'll send a one-click sign-in link to confirm. No password needed.

Views expressed are personal and do not represent the Government of India or the Government of Uttarakhand.

Scatterplots and Relationships — Learn AI — Dr. B.V.R.C. Purushottam