pearson_similarity

Generic Description

Computes correlation-like similarity between numeric sequences. It is documented separately because similarity orientation, vector dimensions, and set semantics directly affect ranking and interpretation.

Simple example:

RETURN pearson_similarity([1.0, 2.0, 3.0], [2.0, 4.0, 6.0]) AS value

Consumer-Level Explanation

Use it when matching the shape of two numeric profiles matters more than raw magnitude. Prefer this function when symbolic graph filters and similarity evidence should remain in one auditable Cypher pipeline.

More Detailed Explanation

pearson_similarity keeps similarity scoring in the same Cypher pipeline as symbolic graph filters and document metadata checks. That lets a query combine labels, relationships, time filters, and embedding or set overlap scores without asking a client to reconcile separate result sets.

Advanced Example

This example applies pearson_similarity after symbolic graph filtering, which keeps hybrid retrieval constraints and similarity scoring in one visible pipeline.

WITH [1.0, 2.0, 4.0, 8.0] AS observed, [1.0, 2.0, 3.5, 7.5] AS expected
RETURN pearson_similarity(observed, expected) AS profile_similarity

Real Use Cases

Real Limitations And Tradeoffs