Publication dateMar 9, 2022
Confidentiality public Public
Typing name : TASK.gws_stats.TTestOneSample Brick : gws_stats Test that the mean of a sample is equal to a given value
Calculate the T-test for the mean of ONE group of scores
This is a test for the null hypothesis that the expected value (mean) of a sample of independent observations a is equal to the given population mean, popmean.
- Input: a table containing the sample measurements, with the name of the samples.
- Output: a table listing the correlation coefficient, and its associated p-value for each pairwise comparison testing.
- Config Parameters:
preselected_column_names: List of columns to pre-select for pairwise comparisons. By default a maximum pre-defined number of columns are selected (see configuration).
expected_value: This value is compared against all the other columns means.
adjust_pvalue:
method: The correction method for p-value adjustment in multiple testing.
alpha: The FWER, family-wise error rate. Default is 0.05.
alternative_hypothesis: The alternative hypothesis chosen for the testing (two-sided, less or greater)
Example:
Let's say you have the following table.
| A |
B |
C |
| 1 |
5 |
3 |
| 2 |
6 |
8 |
| 3 |
7 |
5 |
| 4 |
8 |
4 |
This task performs comparisons of almost all the columns mean of the table agains an expected_value
(the first 500 columns are pre-selected by default).
The expected_value will be compared with the means of A, B, C, respectively
For more details, see https://docs.scipy.org/doc/scipy/reference/generated/scipy.stats.ttest_1samp.html
settings
Configuration
preselected_column_names
Optional
The names of column to pre-select for comparison. By default, the first 500 columns are used
Type : ListMaximum occurrences number : -1The name of the column(s) to pre-select
Type : stringSet True if it is a text pattern (regular expression), False otherwise
Type : boolThe expected value in null hypothesis
Type : float alternative_hypothesis
Optional
The alternative hypothesis chosen for the testing.
Type : stringDefault value : two-sided adjust_pvalue
Optional Advanced parameter
Adjust p-values for multiple tests
Type : ListMaximum occurrences number : 1 method
Optional Advanced parameter
The method used to adjust (correct) p-values
Type : stringDefault value : bonferroni alpha
Optional Advanced parameter
FWER, family-wise error rate
Type : floatDefault value : 0.05Technical bricks to reuse or customize
Have you developed a brick?
Share it to accelerate projects for the entire community.