regr_sxy
Calculates the linear regression coefficient for the sum of x*y 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_sxy(?foo, ?bar) AS ?regr_sxy) { [ :col-aggregations-foo ?foo ; :col-aggregations-bar ?bar ] }
Table 1. Results
regr_sxy |
---|
1808.0 |