Skip to main content

correlation

A statistical measure that shows how closely related are two sets of values. The specific correlation provided is the Pearson correlation coefficient.

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

Try the query

Table 1. Results

correlation

-0.7285