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.
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 |