Statistics
Paired (dependent) t-test API
Runs a paired-samples t-test on before/after measurements, returning t, df, two-tailed p-value, the CI of the mean difference and Cohen's dz effect size. Answers 'Is the change between paired measurements significant?', 'What is the t-statistic and p-value for matched pairs?'.
Price$0.06per request
MethodPOST
Route/v1/stats/paired-t-test
StatusLive
MIME typeapplication/json
Rate limit120/minute
Cache0s public
statisticst-testpaireddependentbefore-afterp-valueinferencehypothesis-test
API URL
Integration docshttps://x402.hexl.dev/v1/stats/paired-t-testExample request
{
"before": [
210,
205,
193,
182,
259,
239
],
"after": [
197,
195,
191,
174,
236,
226
]
}Example response
{
"t": 4.053217,
"df": 5,
"pValue": 0.009794,
"alpha": 0.05,
"meanDifference": 11.5,
"sdDifference": 6.94982,
"standardError": 2.837252,
"n": 6,
"ci": [
4.206611,
18.793389
],
"cohensDz": 1.654719,
"rejectNull": true,
"rating": "significant",
"interpretation": "Paired t(5)=4.053, p=0.0098; mean change 11.5; reject H0 (no change) at alpha=0.05."
}Input schema
{
"type": "object",
"required": [
"before",
"after"
],
"properties": {
"before": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
210,
205,
193,
182,
259,
239
]
]
},
"after": {
"type": "array",
"items": {
"type": "number"
},
"examples": [
[
197,
195,
191,
174,
236,
226
]
]
},
"alpha": {
"type": "number",
"examples": [
0.05
]
}
}
}Output schema
{
"type": "object",
"additionalProperties": true
}