# Saylor Innovations Data Desk – T-Test

> Saylor Innovations Data Desk – T-Test is a paid API for AI agents from saylorinnovations.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-12-02).

Runs a Welch two-sample or one-sample t-test on raw numeric samples, returning t-statistic, degrees of freedom, p-value, confidence interval, Cohen's d effect size, and a significance verdict

## Facts

- Endpoint: GET https://saylorinnovations.com/api/stats/t-test?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/saylor-innovations-data-desk-t-test-dfa6fe2d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_mUgzVniAMq3sxsSUXry7c

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability saylor-innovations-data-desk-t-test-dfa6fe2d
```

Example prompt: Run a Welch two-sample t-test on these two groups and tell me if the difference is statistically significant — group A: 23, 25, 28, 22, 27, 24 and group B: 30, 32, 29, 31, 33, 28.

## When to prefer this

Choose this endpoint when you have raw numeric samples and need a full t-test output including effect size (Cohen's d) and confidence interval in a single call, rather than computing statistics step by step. It supports both Welch two-sample (unequal variance) and one-sample tests, making it suitable for A/B testing, clinical comparisons, or quality control checks. Prefer this over general-purpose statistics libraries when you need a lightweight, pay-per-call API with no setup.

## Known failure modes

- Missing required sample A parameter returns an error
- Fewer than 2 values in sample A causes computation failure
- Non-numeric values in comma-separated list return a parsing error
- Sample too large (>500 numbers) may be rejected
- Identical samples with zero variance may produce undefined t-statistic or Inf degrees of freedom

## How this service works

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

## Output

A JSON object containing the test name, t-statistic, degrees of freedom, p-value, 95% confidence interval for the difference, Cohen's d effect size with a verbal label (small/medium/large), means and standard deviations for each sample, sample sizes, the significance threshold (alpha), and a boolean 'significant' verdict indicating whether the null hypothesis is rejected at alpha.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "a"
     ],
     "properties": {
      "a": {
       "type": "string",
       "description": "Comma-separated sample, 2-500 numbers"
      },
      "b": {
       "type": "string",
       "description": "optional second sample for a Welch two-sample test"
      },
      "mu": {
       "type": "string",
       "description": "hypothesised mean for a one-sample test when b is omitted"
      },
      "confidence": {
       "type": "string",
       "description": "optional percent, default 95"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "test",
      "t",
      "p_value"
     ],
     "properties": {
      "t": {
       "type": "number",
       "description": "Title of the guide"
      },
      "df": {
       "type": "number",
       "description": "Degrees of freedom"
      },
      "n_a": {
       "type": "integer",
       "description": "Number of a"
      },
      "n_b": {
       "type": "integer",
       "description": "Number of b"
      },
      "sd_a": {
       "type": "number",
       "description": "Sd a"
      },
      "sd_b": {
       "type": "number",
       "description": "Sd b"
      },
      "test": {
       "type": "string",
       "description": "Test performed"
      },
      "alpha": {
       "type": [
        "number",
        "null"
       ],
       "description": "Significance threshold"
      },
      "mean_a": {
       "type": "number",
       "description": "Mean a"
      },
      "mean_b": {
       "type": "number",
       "description": "Mean b"
      },
      "source": {
       "type": "string",
       "description": "Data source the values come from"
      },
      "p_value": {
       "type": "number",
       "description": "P value"
      },
      "cohens_d": {
       "type": [
        "number",
        "null"
       ],
       "description": "Co
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/saylor-innovations-data-desk-t-test-dfa6fe2d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from saylorinnovations.com](https://www.zero.xyz/host/saylorinnovations.com/llms.txt)
