FINAL TOOLBOX
01 // Chart StudioSCATTER

Scatter Plot for Regression Analysis — OLS Trendline, Slope & R² Solver

A regression scatter plot pairs bivariate observations $(x_i, y_i)$ with the analytical least-squares line $\hat{y} = mx + b$ that minimizes the sum of squared vertical residuals ($\min \sum (y_i - \hat{y}_i)^2$).

SUM / TOTAL220
MEAN (AVG)27.5
MEDIAN (P50)27.5
MIN10
MAX45
STD DEV (s)12.25
CHANGE % / CAGR+350.0% (+24.0%)
Regression Scatter PlotResponse Variable Y · Predictor Variable X · n = 8Predictor XResponse Y0926.218.952.428.878.538.7104.748.6OLS: y = 1.96x + 5.0 · R² = 0.999(10, 24.2)(15, 35.8)(20, 43.1)(25, 54.6)(30, 63.9)(35, 72.4)(40, 84)(45, 93.5)PREDICTOR VARIABLE XRESPONSE VARIABLE Y
Hover or tap any bar, point, or slice on the chart to see exact numbers.
Chart Data (8)

Tip: Paste Excel or Google Sheets rows (Ctrl+V / ⌘V) directly into any cell.

#Label
1
2
3
4
5
6
7
8
How Values Are Scaled

Covariance: S_xy = sum((x_i - x_bar)*(y_i - y_bar)). Variance: S_xx = sum((x_i - x_bar)^2). Slope: m = S_xy / S_xx. Pearson r = S_xy / sqrt(S_xx * S_yy). R^2 = r^2.

Was this tool helpful?

Chart Design & Use-Case Tips

  • 01Covariance: S_xy = sum((x_i - x_bar)*(y_i - y_bar)). Variance: S_xx = sum((x_i - x_bar)^2). Slope: m = S_xy / S_xx. Pearson r = S_xy / sqrt(S_xx * S_yy). R^2 = r^2.
  • 02Read the exact OLS slope (m), y-intercept (b), and R² goodness-of-fit badge rendered directly in the chart studio header.
  • 03Inspect whether points scatter randomly above and below the trendline (homoscedasticity) or curve systematically (indicating a polynomial or log relationship).
  • 04Paste experimental lab readings directly from CSV or Excel to generate publication-ready regression plots.

Frequently Asked Questions

How is the linear regression line calculated?+

The engine computes exact closed-form Ordinary Least Squares (OLS) estimators for slope m and intercept b across all active rows, plus the exact R² coefficient of determination.

What is the relationship between Pearson's r and R²?+

In simple linear regression, R² is the square of the Pearson correlation coefficient r (R² = r²), representing the fraction of variance in Y linearly explained by X.

Can I use decimal and negative coordinates?+

Yes, both X (Series A) and Y (Series B) accept floating-point decimals and negative values.