Please wait while we prepare your calculator
Please wait while we prepare your calculator
Comprehensive bivariate regression and correlation suite. Calculate Ordinary Least Squares (OLS) line of best fit (y = mx + b), R² determination, Pearson r, Spearman rank ρ, and 2x2 covariance matrices with model extrapolation.
Comprehensive bivariate regression and correlation suite. Calculate Ordinary Least Squares (OLS) line of best fit (y = mx + b), R² determination, Pearson r, Spearman rank ρ, and 2x2 covariance matrices with model extrapolation.
Derive Ordinary Least Squares (OLS) slope coefficients, R² goodness-of-fit, Pearson & Spearman rank correlations, 2×2 covariance matrices, and calibrated value extrapolations.
Enter matching sequences of values separated by commas, spaces, or tabs. Both variables must have equal length.
Figure 1.0: Vector decomposition of squared vertical residuals, slope m, intercept b, and regression plane.
Figure 2.0: Structural relation between univariate marginal spreads and joint bivariate covariances.
Bivariate statistics studies the empirical relationship and joint variability between two quantitative random variables X and Y. From financial Capital Asset Pricing Models (CAPM Beta) and econometric trend forecasting to machine learning linear predictors, Ordinary Least Squares (OLS) regression and correlation analysis remain foundational workhorses of quantitative analysis.
The Gauss-Markov theorem states that under five fundamental classical assumptions, the Ordinary Least Squares estimator is the Best Linear Unbiased Estimator (BLUE)—meaning it achieves minimum variance among all possible unbiased linear estimators:
The objective of OLS is to find parameters m and b that minimize the sum of squared vertical residuals:
Taking partial derivatives with respect to m and b and setting them equal to zero produces the normal equations, yielding:
This demonstrates that the regression line always passes directly through the centroid of the data: (x̄, ȳ).
Total variation in the dependent variable (SST) decomposes into explained sum of squares (SSR) and residual error (SSE):
The Coefficient of Determination R² represents the fraction of total variance in Y explained by the linear model:
In simple bivariate regression, R² is exactly the square of the Pearson correlation coefficient r. An R² of 0.85 indicates that 85% of variation in Y is linearly attributable to X, with the remaining 15% relegated to unexplained random disturbance.
Measures the strength and direction of purely linear associations between continuous, normally distributed variables:
Highly sensitive to severe outliers, which can falsely inflate or collapse r.
A non-parametric metric that measures monotonic relationships (whether Y always increases when X increases, regardless of curvature):
Robust to non-linear exponential curves and extreme outliers because it operates on ranks rather than raw magnitudes.
Derive Ordinary Least Squares (OLS) slope coefficients, R² goodness-of-fit, Pearson & Spearman rank correlations, 2×2 covariance matrices, and calibrated value extrapolations.
Enter matching sequences of values separated by commas, spaces, or tabs. Both variables must have equal length.
Figure 1.0: Vector decomposition of squared vertical residuals, slope m, intercept b, and regression plane.
Figure 2.0: Structural relation between univariate marginal spreads and joint bivariate covariances.
Bivariate statistics studies the empirical relationship and joint variability between two quantitative random variables X and Y. From financial Capital Asset Pricing Models (CAPM Beta) and econometric trend forecasting to machine learning linear predictors, Ordinary Least Squares (OLS) regression and correlation analysis remain foundational workhorses of quantitative analysis.
The Gauss-Markov theorem states that under five fundamental classical assumptions, the Ordinary Least Squares estimator is the Best Linear Unbiased Estimator (BLUE)—meaning it achieves minimum variance among all possible unbiased linear estimators:
The objective of OLS is to find parameters m and b that minimize the sum of squared vertical residuals:
Taking partial derivatives with respect to m and b and setting them equal to zero produces the normal equations, yielding:
This demonstrates that the regression line always passes directly through the centroid of the data: (x̄, ȳ).
Total variation in the dependent variable (SST) decomposes into explained sum of squares (SSR) and residual error (SSE):
The Coefficient of Determination R² represents the fraction of total variance in Y explained by the linear model:
In simple bivariate regression, R² is exactly the square of the Pearson correlation coefficient r. An R² of 0.85 indicates that 85% of variation in Y is linearly attributable to X, with the remaining 15% relegated to unexplained random disturbance.
Measures the strength and direction of purely linear associations between continuous, normally distributed variables:
Highly sensitive to severe outliers, which can falsely inflate or collapse r.
A non-parametric metric that measures monotonic relationships (whether Y always increases when X increases, regardless of curvature):
Robust to non-linear exponential curves and extreme outliers because it operates on ranks rather than raw magnitudes.