analysis_linear_regression
Fits a least-squares linear regression to paired x and y data, returning slope, intercept, correlation, R-squared, and the equation for trend analysis.
Instructions
Fit y = slope·x + intercept by least squares. Returns slope, intercept, r, r_squared and the equation string.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | ||
| y | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |