Prepare your dataset
Collect paired observations for Y and X, clean outliers, and ensure numeric columns.
New: AI Infographics — turn data and ideas into shareable graphics from one prompt. Try it now
Fit a straight line, compute slope and intercept, and understand the strength of the relationship between two variables without leaving your browser.
Sign in to sync your workspaces, export visuals, and collaborate with teammates using the full vizGPT platform.

Import a CSV or edit values directly. The first column is treated as X and the second as Y.
Enter paired X and Y values, paste from a spreadsheet, or import a CSV to get started.
No values yet
Add at least two rows of paired X and Y numbers to run the regression.
Choose a demo dataset or analyze your own CSV. Click calculate to update the metrics and visualization.
Study Hours vs Exam Score
Ten students recorded how many hours they studied for an exam and the score they achieved. The relationship is close to linear and shows a clear positive trend.
Slope
8.30303
Intercept
46.563636
R²
0.9901
Pearson r
0.995
Data points
10
Mean X
3.75
Mean Y
77.7
Regression equation
ŷ = 8.30303x + 46.563636
Standard error of estimate: 1.3326
Upload CSV files up to 10MB. Extra columns beyond the first two are ignored during calculation.
Residuals highlight the difference between actual values and the fitted regression line. Large positive residuals mean the model underestimates the observed value, while negative residuals indicate an overestimate.
| Study Hours | Exam Score | Predicted Y | Residual |
|---|---|---|---|
| 1.5 | 58 | 59.0182 | -1.018 |
| 2 | 63 | 63.1697 | -0.17 |
| 2.5 | 67 | 67.3212 | -0.321 |
| 3 | 71 | 71.4727 | -0.473 |
| 3.5 | 76 | 75.6242 | 0.376 |
| 4 | 82 | 79.7758 | 2.224 |
| 4.5 | 86 | 83.9273 | 2.073 |
| 5 | 88 | 88.0788 | -0.079 |
| 5.5 | 91 | 92.2303 | -1.23 |
| 6 | 95 | 96.3818 | -1.382 |
Linear regression fits the best possible straight line through paired observations by minimizing squared residuals.
Collect paired observations for Y and X, clean outliers, and ensure numeric columns.
Paste values, upload CSV, or use a demo dataset to start quickly.
Compute slope, intercept, R², and residuals, then inspect charts for model fit.
Go beyond slope and intercept using residual diagnostics and chart overlays.
If data curves or fans out, consider transformations or alternative models.
Standardization can improve numerical stability and interpretability.
High R² still allows prediction error—report residual insights and outliers.
Apply linear regression across education, marketing, and operations.
Relate study behavior to exam outcomes to identify support opportunities.
Compare ad budget with lead volume to find efficient spend levels.
Map input resources to output for better scheduling and waste reduction.
Learn how to prepare data and interpret common regression outputs.
Yes. Upload CSV up to 10MB; the first two columns are used for regression.
Slope is change in Y per unit X; intercept is expected Y when X is zero.
It depends on context. Higher is better, but always validate with residuals.
Build a full decision-making toolkit with additional vizGPT resources.
Calculator
Compare cable bills against streaming services and estimate monthly or yearly savings.
Calculator
Compute semester GPA and update your cumulative CGPA with credit-weighted grades.
Share it with others in one click.