regression_fit
Fits a linear regression (y = mx + b) to x/y data points and returns the slope, intercept, and R-squared value for trend analysis.
Instructions
Fit a linear regression (y = mx + b) to x/y data points, returns slope, intercept, R-squared.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| x | Yes | Array of x values (numbers). | |
| y | Yes | Array of y values (numbers). |