{
  "x402Version": 2,
  "id": 33873,
  "slug": "33873",
  "resource": "https://x402.agentindex.world/stats/correlation",
  "description": "Pearson correlation coefficient between two equal-length numeric series.",
  "type": "http",
  "serviceName": "stats-correlation",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xb3F32bdfe8D07825BC0D7387295aB1D7559BA69d",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "pearson_r": {
            "title": "Pearson R",
            "type": "number"
          }
        },
        "required": [
          "pearson_r"
        ],
        "title": "CorrelationOutput",
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "x": [
              1,
              2,
              3,
              4,
              5
            ],
            "y": [
              2,
              4,
              6,
              8,
              10
            ]
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "pearson_r": 1
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "x": {
                    "items": {
                      "type": "number"
                    },
                    "minItems": 2,
                    "title": "X",
                    "type": "array"
                  },
                  "y": {
                    "items": {
                      "type": "number"
                    },
                    "minItems": 2,
                    "title": "Y",
                    "type": "array"
                  }
                },
                "required": [
                  "x",
                  "y"
                ],
                "title": "CorrelationInput",
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "pearson_r": {
                    "title": "Pearson R",
                    "type": "number"
                  }
                },
                "required": [
                  "pearson_r"
                ],
                "title": "CorrelationOutput",
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "statistics",
    "correlation",
    "pearson",
    "data analysis",
    "bazaar"
  ],
  "sourceHost": "x402.agentindex.world",
  "lastUpdated": "2026-10-08T06:08:19.545Z",
  "quality": {
    "calls30d": 3,
    "uniquePayers30d": 3,
    "lastCalledAt": "2026-10-08T06:08:19.342Z"
  },
  "metadata": {
    "serviceName": "stats-correlation",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "body": {
              "x": [
                1,
                2,
                3,
                4,
                5
              ],
              "y": [
                2,
                4,
                6,
                8,
                10
              ]
            },
            "bodyType": "json",
            "method": "POST",
            "type": "http"
          },
          "output": {
            "example": {
              "pearson_r": 1
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "body": {
                  "properties": {
                    "x": {
                      "items": {
                        "type": "number"
                      },
                      "minItems": 2,
                      "title": "X",
                      "type": "array"
                    },
                    "y": {
                      "items": {
                        "type": "number"
                      },
                      "minItems": 2,
                      "title": "Y",
                      "type": "array"
                    }
                  },
                  "required": [
                    "x",
                    "y"
                  ],
                  "title": "CorrelationInput",
                  "type": "object"
                },
                "bodyType": {
                  "enum": [
                    "json",
                    "form-data",
                    "text"
                  ],
                  "type": "string"
                },
                "method": {
                  "enum": [
                    "POST",
                    "PUT",
                    "PATCH"
                  ],
                  "type": "string"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method",
                "bodyType",
                "body"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "pearson_r": {
                      "title": "Pearson R",
                      "type": "number"
                    }
                  },
                  "required": [
                    "pearson_r"
                  ],
                  "title": "CorrelationOutput",
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "x402.agentindex.world",
    "manifest_name": "x402.agentindex.world",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "pearson_r": 0
    },
    "type": "string"
  }
}