linear_regression
Fit a linear model y = mx + b to data points, calculating slope, intercept, and R² for statistical analysis.
Instructions
Perform linear regression to fit y = mx + b and return slope, intercept, and R² (Domain: statistics, Category: general)
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xs | Yes | ||
| ys | Yes |