The Student's t-test compares the means of two samples (or treatments), even if they have a different numbers of replicates. It is used to determine if sets of data are significantly different from each other.
It compares the actual difference between two means in relation to the variation in the data (expressed as the standard deviation of the difference between the means). It allows a statement about the significance of the difference between the two means of the two samples, at a certain significance level (usually alpha=0.05).
The function returns a JSON object with the calculated t-value, the degrees of freedom, the p-value, and a statement if the difference is significant or not.
This is an aggregate function.
Example input sheet could be:
First, create a group using the GROUPBY function. In this example, the group is the Experiment column.
Next, use the GROUPTTEST function. The function arguments are:
- Sample ID column
- Value column
- Significance level constant (optional)
The function did the computations to get the t-value of 13 and looked up the tabulated t-value for 6 degrees of freedom. The t-value for p=0.05 is 2.45. Since 13 exceeds 2.45 the function returns "true" for significance.