The 1-sample t-test determines if the sample mean has the value specified in the null hypothesis.
Hypotheses:
The null hypothesis and alternative hypothesis can be written as:
: , and :
Procedure:
The test statstic is calculated as follows:
where is the sample mean,
is the sample standard deviation,
is the sample size, and
is the population mean.
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed
arrows point from an interface to procedures which implement that interface.
This could include the module procedures in a generic interface or the
implementation in a submodule of an interface in a parent module.
Module Procedures
public impure subroutine s_tst_ttest_1s(x, mu0, t, df, p, h1)