When conducting statistical hypothesis testing on small sample sizes ($n < 30$) or when the true population standard deviation remains unknown, standard normal Z-distributions underestimate sampling error. Researchers and data analysts turn to Student’s t-distribution to model uncertainty. Google Sheets provides dedicated statistical functions—T.DIST, T.DIST.2T, T.DIST.RT, and T.INV—to evaluate cumulative distribution functions, calculate two-tailed p-values, and identify critical t-statistic thresholds without relying on printed textbook tables.
Understanding Student’s t-Distribution
The t-distribution resembles a standard normal bell curve but possesses heavier tails, providing higher probability to values far from the mean. As sample size and degrees of freedom ($df = n – 1$) increase, the t-distribution approaches the standard normal distribution. In two-sample or paired t-tests, calculating exact p-values determines whether observed mean differences between experiment groups reflect statistical significance or random variance.
Syntax and Parameters
1. T.DIST Function
Calculates the left-tailed cumulative Student’s t-distribution or probability density.
=T.DIST(x, degrees_freedom, cumulative)
x(Required): The t-score at which to evaluate the distribution.degrees_freedom(Required): An integer indicating degrees of freedom ($df ge 1$).cumulative(Required):TRUEfor cumulative distribution;FALSEfor probability density.
2. T.DIST.2T Function
Calculates the two-tailed probability for a Student’s t-distribution (standard two-tailed p-value).
=T.DIST.2T(x, degrees_freedom)
x(Required): Must be non-negative ($x ge 0$).degrees_freedom(Required): Degrees of freedom ($df ge 1$).
3. T.INV Function
Calculates the left-tailed inverse of the Student’s t-distribution (critical value cutoff).
=T.INV(probability, degrees_freedom)
probability(Required): Cumulative probability ($0 < p < 1$).degrees_freedom(Required): Degrees of freedom ($df ge 1$).
Step-by-Step Practical Implementation
Step 1: Calculating Left-Tailed Cumulative Probability with T.DIST
- Open Google Sheets and enter t-score
-1.85in cellA2. - Enter degrees of freedom
14in cellB2. - In cell
C2, enter the cumulative formula:=T.DIST(A2, B2, TRUE) - Press Enter. Google Sheets outputs
0.0428(4.28% cumulative probability in the left tail).
Step 2: Calculating Two-Tailed Hypothesis P-Values with T.DIST.2T
- Enter observed absolute t-statistic
2.15in cellA3and degrees of freedom18in cellB3. - In cell
C3, compute the two-tailed p-value:=T.DIST.2T(A3, B3) - Press Enter. The formula returns
0.0454. Because $p < 0.05$, the difference is statistically significant at the 95% confidence level.
Step 3: Calculating Critical T-Score Cutoffs with T.INV.2T
- To determine the two-tailed critical t-value for an alpha level of
0.05with20degrees of freedom: - In cell
C4, enter:=T.INV.2T(0.05, 20) - Press Enter. The formula returns
2.0860. Any experimental t-score exceeding $pm 2.0860$ rejects the null hypothesis.
Student’s t-Distribution Functions Comparison
| Function | Tail Direction | Input Range for x | Primary Output | Statistical Application |
|---|---|---|---|---|
T.DIST |
Left-tailed | All real numbers ($-infty < x < infty$) | Cumulative probability or density | One-tailed hypothesis testing (lower bound) |
T.DIST.RT |
Right-tailed | All real numbers | Upper tail probability ($P(X > x)$) | One-tailed hypothesis testing (upper bound) |
T.DIST.2T |
Two-tailed | $x ge 0$ strictly | Combined tail probability ($P(|X| > x)$) | Standard two-sample and paired t-test p-values |
T.INV |
Left-tailed | $0 < p < 1$ | Negative or positive critical t-value | One-sided confidence interval thresholds |
T.INV.2T |
Two-tailed | $0 < alpha < 1$ | Positive critical t-value cutoff | Constructing standard 95% and 99% confidence intervals |
Troubleshooting Common Errors
- #NUM! Error in T.DIST.2T: Occurs when $x < 0$. The two-tailed function only accepts non-negative t-scores. Wrap your input in
ABS()if your calculation produces negative values:=T.DIST.2T(ABS(A2), B2). - Degrees of Freedom Underflow: Providing $df < 1$ returns
#NUM!. Non-integer degrees of freedom are truncated to integers. - Probability Out of Range: In
T.INVandT.INV.2T, supplying values $le 0$ or $ge 1$ returns a#NUM!error.