Scatter Plot Calculator

Explore relationships between machine learning variables, fit trendlines, detect outliers, compare groups, calculate statistics, and export clear interactive scatter plots instantly online with confidence.

Scatter Plot Results

Relationship interpretation
Regression equation
Selected points
0
Use box or lasso selection.
Warnings and notes

Observation Table

1. Data Input

Enter data manually or upload a CSV file. The first row may contain headers.

Columns can include X, Y, Group, Label, Size, Color, Predicted, Split, and Confidence.

2. Column Mapping and Cleaning

3. Plot and Point Options

10 pixels
0.80

4. Axis and Chart Appearance

5. Trendline and Regression Options

0.50
Percent beyond observed X range.

6. Transformations and Outlier Analysis

7. Reference Lines and Regions

8. Output and Export Preferences

Formula Used

Pearson correlation:

r = Σ[(xᵢ − x̄)(yᵢ − ȳ)] ÷ √(Σ(xᵢ − x̄)² × Σ(yᵢ − ȳ)²)

Linear regression:

ŷ = b₀ + b₁x

b₁ = Σ[(xᵢ − x̄)(yᵢ − ȳ)] ÷ Σ(xᵢ − x̄)²

b₀ = ȳ − b₁x̄

Coefficient of determination:

R² = 1 − Σ(yᵢ − ŷᵢ)² ÷ Σ(yᵢ − ȳ)²

How to Use

  1. Paste data or upload a CSV file.
  2. Select the X and Y columns.
  3. Choose groups, labels, sizes, or predictions.
  4. Configure trendlines, transformations, and outlier rules.
  5. Customize axes and chart appearance.
  6. Select Create Scatter Plot.
  7. Inspect points, statistics, and warnings.
  8. Export the graph, table, or report.

Example Data

XYGroupLabelSizePredictedSplit
1.01.4ASample 181.3Train
4.04.3BSample 4164.0Train
7.06.7CSample 7147.2Validation
10.010.2CSample 10269.8Test

Understanding Scatter Plots

A scatter plot displays paired numeric observations. Each point represents one data record. Patterns reveal relationships between two variables.

Upward patterns suggest positive association. Downward patterns suggest negative association. Curved patterns may require nonlinear models.

Outliers can strongly affect correlation. Groups can hide different local patterns. Correlation alone never proves direct causation.

Machine learning teams use scatter plots often. They inspect predictions, residuals, clusters, and feature relationships. Clear labels support reliable model diagnosis.

Frequently Asked Questions

What does a scatter plot show?

It shows relationships between two numeric variables. Every marker represents one observation. Visible patterns support exploratory analysis.

What does a positive correlation mean?

Both variables generally increase together. Stronger patterns produce larger positive coefficients. Causation still requires separate evidence.

What does a negative correlation mean?

One variable generally decreases as another increases. The coefficient approaches negative one. Outliers may change the result.

When should I use Spearman correlation?

Use Spearman for monotonic relationships. It works with ranks instead. It handles nonlinear ordering better.

Why can R² be misleading?

R² measures explained variation only. It cannot confirm model correctness. Residual inspection remains important.

How are outliers detected?

The calculator supports several methods. IQR and Z-scores inspect distributions. Residual methods inspect regression influence.

Can I compare machine learning splits?

Yes, map a split column. Train, validation, and test points separate. This exposes distribution differences.

Can I create a bubble chart?

Yes, map a size column. Bubble area represents another variable. Keep size values positive.

Does correlation prove causation?

No, correlation only measures association. Confounders may create apparent relationships. Experimental evidence supports causal conclusions.

Related Calculators

Bubble ChartPair PlotScatterplot MatrixCorrelation HeatmapHexbin Plot2D Density PlotJoint PlotCategorical Scatter PlotParallel Coordinates PlotAndrews Curves

Important Note: All the Calculators listed in this site are for educational purpose only and we do not guarentee the accuracy of results. Please do consult with other sources as well.