Scatter Plot

Make scatter plots from paired x and y values with correlation analysis, regression line, and residual plot. Free online data visualization and statistics tool.

Visualize data relationship

About This Calculator

This scatter plot maker lets you visualize the relationship between two numerical variables. Enter paired x and y data as comma-separated lists to generate an interactive scatter plot with the Pearson correlation coefficient (r), R-squared, and regression line equation. Scatter plots are essential tools in statistics, data science, and research for identifying trends, clusters, and outliers between variables. The regression line helps quantify and predict the relationship between the independent (x) and dependent (y) variables.

Methodology: The calculator computes the Pearson correlation coefficient using the formula r = cov(x,y) / (sx x sy), where cov is the sample covariance and sx, sy are the sample standard deviations. R-squared is the square of r, representing the proportion of variance in y explained by x. The regression line (y = mx + b) is fitted using ordinary least squares, minimizing the sum of squared vertical distances. Slope m = Sigma(xi - x̄)(yi - ȳ) / Sigma(xi - x̄)^2 and intercept b = ȳ - mx̄. The residuals tab displays vertical deviations of each point from the regression line, which helps assess model fit -- random scatter around zero indicates a good linear fit, while systematic patterns suggest a nonlinear relationship.

How to use: Enter your x and y values as comma-separated numbers in the input fields. Both lists must have the same number of values (minimum 2). Click Calculate to see the scatter plot with the regression line overlaid. The residuals tab shows vertical deviation of each point from the line, helping you assess the quality of the linear fit. For best results, use 10 or more data points to obtain reliable correlation estimates.

When to use scatter plots: Scatter plots are ideal for exploratory data analysis, regression diagnostics, and identifying correlations before applying formal statistical models. Students use them in mathematics and science classes to visualize experimental data. Data scientists rely on scatter plots to detect outliers, clusters, and nonlinear patterns that summary statistics alone cannot reveal. In business, scatter plots help analyze relationships between advertising spend and revenue, employee experience and productivity, or customer satisfaction and retention rates. In scientific research, they are fundamental for plotting experimental observations against controlled variables to establish empirical relationships.

Regional notes: This scatter plot calculator works with any numerical data worldwide using standard mathematical formulas that are independent of regional conventions. The comma-separated input format accepts decimal separators consistently, and the computed statistics (Pearson r, R-squared, regression coefficients) follow universally accepted statistical methods. Students and professionals across India, the United States, the United Kingdom, and all other countries can use the same data and obtain identical results -- only the number formatting in displayed values adapts to the user's locale.

Frequently Asked Questions

What is a scatter plot?

A scatter plot displays paired numerical data as points on a Cartesian plane. Each point represents one observation with its x and y coordinates. Scatter plots reveal relationships, trends, clusters, and outliers between two variables.

What does the correlation coefficient (r) tell me?

The Pearson correlation coefficient (r) measures the strength and direction of a linear relationship. Values range from -1 to +1. Positive r means y increases as x increases. Negative r means y decreases as x increases. Values near 0 indicate no linear relationship. The closer to +/-1, the stronger the relationship.

How do I enter data for a scatter plot?

Enter x and y values as comma-separated lists. Both lists must have the same number of values. For example: X: 1,2,3,4,5 and Y: 2,4,5,4,5. The calculator will plot each (x,y) pair and compute the correlation and regression line.

What is the regression line?

The regression line (line of best fit) is the straight line that minimizes the sum of squared vertical distances from all data points. It is expressed as y = mx + b, where m is the slope and b is the intercept. This line helps predict y values from x values.

What does R-squared mean?

R-squared is the square of the correlation coefficient and represents the proportion of variance in y that is explained by x. An R-squared of 0.75 means 75% of the variation in y can be explained by the linear relationship with x. Higher values indicate a better fit.

How many data points do I need for a scatter plot?

You need at least 2 paired data points to create a scatter plot, but more points (10 or more) provide more reliable correlation estimates. The calculator will work with any number of pairs from 2 to 100.

What are residuals in a scatter plot?

Residuals are the vertical differences between each observed y value and its predicted value on the regression line. A residual plot helps you check if the linear model is appropriate: random scatter around zero suggests a good fit, while patterns (curves, increasing spread) indicate the linear model may be inadequate.

What is the difference between correlation and causation?

Correlation measures how strongly two variables move together, but it does not imply causation. A high correlation (r near +1 or -1) means the variables are related, but a third unseen factor could be causing both to change. Always interpret correlation in context -- use controlled experiments to establish cause-and-effect relationships.