one_sample_t_test
Test if a sample's mean differs from a hypothesized value (mu0) using a one-sample t-test. Provides t-statistic, p-value, confidence interval, and assumption checks.
Instructions
Test whether a sample's mean differs from a hypothesized value mu0. Returns the t-statistic, degrees of freedom, two-tailed p-value, a confidence interval for the mean, and any assumption warnings.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"data": "<data>",
"mu0": "<mu0>"
},
"name": "one_sample_t_test"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mu0 | Yes | the hypothesized population mean to test the sample against | |
| data | Yes | the sample; one number per observation | |
| alpha | No | significance level for the test (and any confidence interval); default 0.05 |