Skip to main content

covar_samp

Sample covariance

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:covar_samp(?foo, ?bar) AS ?covar_samp)
{
    [
        :col-aggregations-foo ?foo ;
        :col-aggregations-bar ?bar
    ]
}

Try the query

Table 1. Results

covar_samp

-362.43333