{
  "x402Version": 2,
  "id": 72458,
  "slug": "saylorinnovations-api-stats-t-test",
  "resource": "https://saylorinnovations.com/api/stats/t-test",
  "description": "T-test from raw samples - Welch two-sample or one-sample, t, degrees of freedom, p-value, confidence interval, Cohen d and a significance verdict",
  "type": "http",
  "serviceName": "Saylor Innovations Data Desk",
  "mimeType": "application/json",
  "resourceType": "API",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:137",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "eip155:42161",
      "payTo": "0xA2A8dF0f7CaaBEa4e120a2568118f141569fc8aa",
      "asset": "0xaf88d065e77c8cC2239327C5EDb3A432268e5831",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB",
      "amount": "10000",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    },
    {
      "scheme": "exact",
      "network": "solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp",
      "payTo": "7LSjfrJf8fNsB8VA9u7N3WEn25smQLpob3SvyUvXacy7",
      "asset": "So11111111111111111111111111111111111111112",
      "amount": "95830",
      "amountUsd": 0.01,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "type": "object",
    "properties": {
      "test": {
        "type": "string",
        "description": "Test performed"
      },
      "difference": {
        "type": "number",
        "description": "Difference between the means, or mean minus the hypothesised value"
      },
      "t": {
        "type": "number",
        "description": "Title of the guide"
      },
      "df": {
        "type": "number",
        "description": "Degrees of freedom"
      },
      "p_value": {
        "type": "number",
        "description": "P value"
      },
      "significant": {
        "type": "boolean",
        "description": "True when the p-value is below alpha"
      },
      "confidence": {
        "type": "number",
        "description": "Confidence level in percent"
      },
      "interval": {
        "type": "array",
        "description": "Interval between data points"
      },
      "cohens_d": {
        "type": [
          "number",
          "null"
        ],
        "description": "Cohens d"
      },
      "effect_size_label": {
        "type": "string",
        "description": "Effect size label"
      },
      "source": {
        "type": "string",
        "description": "Data source the values come from"
      },
      "alpha": {
        "description": "Significance threshold",
        "type": [
          "number",
          "null"
        ]
      },
      "mean_a": {
        "type": [
          "number",
          "null"
        ],
        "description": "Mean a"
      },
      "mean_b": {
        "type": [
          "number",
          "null"
        ],
        "description": "Mean b"
      },
      "n_a": {
        "type": [
          "number",
          "null"
        ],
        "description": "Number of a"
      },
      "n_b": {
        "type": [
          "number",
          "null"
        ],
        "description": "Number of b"
      },
      "sd_a": {
        "type": [
          "number",
          "null"
        ],
        "description": "Sd a"
      },
      "sd_b": {
        "type": [
          "number",
          "null"
        ],
        "description": "Sd b"
      }
    },
    "required": [
      "test",
      "t",
      "p_value"
    ]
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "type": "http",
          "method": "GET",
          "queryParams": {
            "a": "5.1,4.9,5.6,5.8,6.0,5.5",
            "b": "4.2,4.8,4.5,4.9,5.0,4.4"
          }
        },
        "output": {
          "type": "json",
          "example": {
            "test": "Welch two-sample t-test",
            "mean_a": 5.4833333,
            "mean_b": 4.6333333,
            "n_a": 6,
            "n_b": 6,
            "sd_a": 0.41673333,
            "sd_b": 0.31411251,
            "cohens_d": 2.3034751,
            "difference": 0.85,
            "t": 3.9897359,
            "df": 9.29503,
            "p_value": 0.00296132,
            "significant": true,
            "alpha": 0.05,
            "confidence": 95,
            "interval": [
              0.3703767,
              1.3296233
            ],
            "effect_size_label": "large",
            "source": "Student t distribution via the regularized incomplete beta function"
          }
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "type": "object",
        "properties": {
          "input": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "http"
              },
              "method": {
                "type": "string",
                "enum": [
                  "GET"
                ]
              },
              "queryParams": {
                "type": "object",
                "properties": {
                  "a": {
                    "type": "string",
                    "description": "Comma-separated sample, 2-500 numbers"
                  },
                  "b": {
                    "type": "string",
                    "description": "optional second sample for a Welch two-sample test"
                  }
                },
                "required": [
                  "a"
                ]
              }
            },
            "required": [
              "type",
              "method"
            ],
            "additionalProperties": false
          },
          "output": {
            "type": "object",
            "properties": {
              "type": {
                "type": "string",
                "const": "json"
              },
              "example": {
                "type": "object",
                "properties": {
                  "test": {
                    "type": "string",
                    "description": "Test performed"
                  },
                  "difference": {
                    "type": "number",
                    "description": "Difference between the means, or mean minus the hypothesised value"
                  },
                  "t": {
                    "type": "number",
                    "description": "Title of the guide"
                  },
                  "df": {
                    "type": "number",
                    "description": "Degrees of freedom"
                  },
                  "p_value": {
                    "type": "number",
                    "description": "P value"
                  },
                  "significant": {
                    "type": "boolean",
                    "description": "True when the p-value is below alpha"
                  },
                  "confidence": {
                    "type": "number",
                    "description": "Confidence level in percent"
                  },
                  "interval": {
                    "type": "array",
                    "description": "Interval between data points"
                  },
                  "cohens_d": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Cohens d"
                  },
                  "effect_size_label": {
                    "type": "string",
                    "description": "Effect size label"
                  },
                  "source": {
                    "type": "string",
                    "description": "Data source the values come from"
                  },
                  "alpha": {
                    "description": "Significance threshold",
                    "type": [
                      "number",
                      "null"
                    ]
                  },
                  "mean_a": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Mean a"
                  },
                  "mean_b": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Mean b"
                  },
                  "n_a": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Number of a"
                  },
                  "n_b": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Number of b"
                  },
                  "sd_a": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Sd a"
                  },
                  "sd_b": {
                    "type": [
                      "number",
                      "null"
                    ],
                    "description": "Sd b"
                  }
                },
                "required": [
                  "test",
                  "t",
                  "p_value"
                ]
              }
            },
            "required": [
              "type"
            ]
          }
        },
        "required": [
          "input"
        ]
      }
    }
  },
  "tags": [
    "is the difference between two",
    "welch t test from two lists",
    "one sample t test against a mean",
    "p value for an a/b experiment",
    "cohens d effect size"
  ],
  "sourceHost": "saylorinnovations.com",
  "lastUpdated": "2026-10-26T22:14:01.948Z",
  "quality": {},
  "metadata": {
    "serviceName": "Saylor Innovations Data Desk",
    "method": "GET",
    "mimeType": "application/json",
    "inputSchema": {
      "type": "object",
      "properties": {
        "a": {
          "type": "string",
          "description": "Comma-separated sample, 2-500 numbers"
        },
        "b": {
          "type": "string",
          "description": "optional second sample for a Welch two-sample test"
        }
      },
      "required": [
        "a"
      ]
    },
    "exampleResponse": {
      "test": "Welch two-sample t-test",
      "mean_a": 5.4833333,
      "mean_b": 4.6333333,
      "n_a": 6,
      "n_b": 6,
      "sd_a": 0.41673333,
      "sd_b": 0.31411251,
      "cohens_d": 2.3034751,
      "difference": 0.85,
      "t": 3.9897359,
      "df": 9.29503,
      "p_value": 0.00296132,
      "significant": true,
      "alpha": 0.05,
      "confidence": 95,
      "interval": [
        0.3703767,
        1.3296233
      ],
      "effect_size_label": "large",
      "source": "Student t distribution via the regularized incomplete beta function"
    },
    "parameterLocation": "query",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "type": "http",
            "method": "GET",
            "queryParams": {
              "a": "5.1,4.9,5.6,5.8,6.0,5.5",
              "b": "4.2,4.8,4.5,4.9,5.0,4.4"
            }
          },
          "output": {
            "type": "json",
            "example": {
              "test": "Welch two-sample t-test",
              "mean_a": 5.4833333,
              "mean_b": 4.6333333,
              "n_a": 6,
              "n_b": 6,
              "sd_a": 0.41673333,
              "sd_b": 0.31411251,
              "cohens_d": 2.3034751,
              "difference": 0.85,
              "t": 3.9897359,
              "df": 9.29503,
              "p_value": 0.00296132,
              "significant": true,
              "alpha": 0.05,
              "confidence": 95,
              "interval": [
                0.3703767,
                1.3296233
              ],
              "effect_size_label": "large",
              "source": "Student t distribution via the regularized incomplete beta function"
            }
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "input": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "http"
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "GET"
                  ]
                },
                "queryParams": {
                  "type": "object",
                  "properties": {
                    "a": {
                      "type": "string",
                      "description": "Comma-separated sample, 2-500 numbers"
                    },
                    "b": {
                      "type": "string",
                      "description": "optional second sample for a Welch two-sample test"
                    }
                  },
                  "required": [
                    "a"
                  ]
                }
              },
              "required": [
                "type",
                "method"
              ],
              "additionalProperties": false
            },
            "output": {
              "type": "object",
              "properties": {
                "type": {
                  "type": "string",
                  "const": "json"
                },
                "example": {
                  "type": "object",
                  "properties": {
                    "test": {
                      "type": "string",
                      "description": "Test performed"
                    },
                    "difference": {
                      "type": "number",
                      "description": "Difference between the means, or mean minus the hypothesised value"
                    },
                    "t": {
                      "type": "number",
                      "description": "Title of the guide"
                    },
                    "df": {
                      "type": "number",
                      "description": "Degrees of freedom"
                    },
                    "p_value": {
                      "type": "number",
                      "description": "P value"
                    },
                    "significant": {
                      "type": "boolean",
                      "description": "True when the p-value is below alpha"
                    },
                    "confidence": {
                      "type": "number",
                      "description": "Confidence level in percent"
                    },
                    "interval": {
                      "type": "array",
                      "description": "Interval between data points"
                    },
                    "cohens_d": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Cohens d"
                    },
                    "effect_size_label": {
                      "type": "string",
                      "description": "Effect size label"
                    },
                    "source": {
                      "type": "string",
                      "description": "Data source the values come from"
                    },
                    "alpha": {
                      "description": "Significance threshold",
                      "type": [
                        "number",
                        "null"
                      ]
                    },
                    "mean_a": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Mean a"
                    },
                    "mean_b": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Mean b"
                    },
                    "n_a": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Number of a"
                    },
                    "n_b": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Number of b"
                    },
                    "sd_a": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sd a"
                    },
                    "sd_b": {
                      "type": [
                        "number",
                        "null"
                      ],
                      "description": "Sd b"
                    }
                  },
                  "required": [
                    "test",
                    "t",
                    "p_value"
                  ]
                }
              },
              "required": [
                "type"
              ]
            }
          },
          "required": [
            "input"
          ]
        }
      }
    },
    "examples": [
      {
        "label": "Unpaid discovery call",
        "method": "GET",
        "url": "https://saylorinnovations.com/api/stats/t-test?a=5.1,4.9,5.6,5.8,6.0,5.5&b=4.2,4.8,4.5,4.9,5.0,4.4",
        "expectedStatus": 402
      }
    ],
    "cacheTtlSeconds": 0,
    "capabilities": [],
    "noAccountRequired": true,
    "noApiKeyRequired": true,
    "sideEffects": "Paid calls settle the advertised payment; see the provider contract for execution behavior.",
    "payment": {
      "protocol": "x402",
      "settlement": "direct-to-provider"
    },
    "provider": {
      "name": "Saylor Innovations",
      "host": "saylorinnovations.com",
      "manifestUrl": "https://saylorinnovations.com/.well-known/x402.json"
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": true,
  "featured": false,
  "provider": {
    "host": "saylorinnovations.com",
    "manifest_name": "Saylor Innovations Knowledge Base",
    "source": "submitted",
    "source_manifest_url": "https://saylorinnovations.com/.well-known/x402.json",
    "submitted_at": "2026-10-26T05:52:02.113Z"
  },
  "exampleResponse": {
    "test": "string",
    "difference": 0,
    "t": 0,
    "df": 0,
    "p_value": 0,
    "significant": true,
    "confidence": 0,
    "interval": [
      "value"
    ],
    "cohens_d": 0,
    "effect_size_label": "string",
    "source": "string",
    "alpha": 0,
    "mean_a": 0,
    "mean_b": 0,
    "n_a": 0,
    "n_b": 0,
    "sd_a": 0,
    "sd_b": 0
  }
}