The T.DIST.2T function in Google Sheets is an essential statistical tool used to calculate the two-tailed Student’s t-distribution for a given value of x. This function is particularly valuable when analyzing data sets that follow the t-distribution, often utilized in hypothesis testing to determine the probability of observing a statistic as extreme as a given value under certain assumptions.
Syntax
T.DIST.2T(x, degrees_freedom)
- x: The value at which to evaluate the function, representing the t-statistic.
- degrees_freedom: The number of degrees of freedom associated with the t-distribution, often determined by the sample size minus one.
Example #1
T.DIST.2T(2.5, 10)
This function evaluates the two-tailed t-distribution at a t-value of 2.5 with 10 degrees of freedom, providing a result of approximately 0.03, indicating a 3% chance of observing such an extreme t-value.
Example #2
T.DIST.2T(1.2, 15)
In this instance, the function assesses the t-distribution at a t-value of 1.2 with 15 degrees of freedom. The result is about 0.23, suggesting a 23% probability of encountering this or a more extreme value.
Example #3
T.DIST.2T(0.5, 5)
This call checks the two-tailed t-distribution at a t-value of 0.5 with 5 degrees of freedom and yields a result of roughly 0.63, indicating a 63% chance of seeing this value or one even further from the mean.
Error handling
- NUM!: This error occurs when the degrees of freedom are not a positive integer. Ensure that the second argument is a valid positive number.
- VALUE!: This error indicates an issue with the argument types; verify that both parameters are numeric values.
- DIV/0!: This error may arise if degrees of freedom equal zero. Check the input values to make sure they are appropriate.