hypothesis_test
Read-onlyIdempotent
Perform z-tests, t-tests, or chi-squared tests to obtain test statistics, p-values, and rejection decisions at a chosen significance level.
Instructions
Perform statistical hypothesis tests: z-test, t-test, or chi-squared test. Returns test statistic, p-value, and rejection decision.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tail | No | Tail type (default two) | |
| test | Yes | Type of test | |
| alpha | No | Significance level (default 0.05) | |
| expected | No | Expected frequencies (for chi2) | |
| observed | No | Observed frequencies (for chi2) | |
| sample_std | No | Sample standard deviation (for t-test) | |
| sample_mean | No | Sample mean (for z/t tests) | |
| sample_size | No | Sample size (for z/t tests) | |
| population_std | No | Population standard deviation (for z-test) | |
| population_mean | No | Population mean / null hypothesis value |