Simple Linear Regression
Use this calculator to fit a simple linear regression model to the given data.
Simple Linear Regression | ||
---|---|---|
X (Independent Var) | Y (Dependent Var) | |
Enter Data (Separated by comma ,) | ||
Results | ||
Number of pairs of Obs. (n): | ||
Sample Mean: | ||
Sample SD : | ||
Covariance: | ||
Correlation: | ||
Regression Coefficients | ||
Regression equation | ||
Simple Linear Regression
Another method
$$ \begin{aligned} S_{xx}=\sum_{i=1}^n x_i^2- \frac{(\sum_i x_i)^2}{n} \end{aligned} $$
$$ \begin{aligned} S_{xy}=\sum_{i=1}^n x_iy_i- \frac{(\sum_i x_i)(\sum_i y_i)}{n} \end{aligned} $$
$$ \begin{aligned} b=\frac{S_{xy}}{S_{xx}} \end{aligned} $$
$$ \begin{aligned} a=\overline{y}-b \overline{x} \end{aligned} $$
Related Resources
Suggestions and comments will be appreciated.