Fit a best-fit line to your data and measure how strong the relationship is
Regression is one of the most widely used tools in statistics, science, and business. Given two variables — like hours studied and exam grade — regression finds the line (or curve) that best describes how one changes as the other changes.
This tool loads a sample dataset of 30 students with Hours studied, Grade earned, and Subject. Click Link Data to scatter-plot the data and fit a regression line. The slope, intercept, and R² (R-squared) — the fraction of variance explained by the model — are computed locally in your browser.
Paste your own two-column CSV any time to analyze your own data.