regr_intercept
Calculates the linear regression coefficient for the intercept of the line of best fit for the x and y values where x and y are not unbound.
Returns: decimal
Table 1.
Parameter | Type | Description |
|---|---|---|
ys | decimal, double | the independent variable |
xs | decimal, double | the dependent variable |
Example
Query
PREFIX : <https://ddw-doccorp.linked.data.world/d/sparql-aggregation-sample-queries/>
PREFIX agg: <http://data.world/function/aggregate#>
SELECT (agg:regr_intercept(?foo, ?bar) AS ?regr_intercept)
{
[
:col-aggregations-foo ?foo ;
:col-aggregations-bar ?bar
]
}Table 1. Results
regr_intercept |
|---|
28.4836 |