Contact

T.DIST in ONLYOFFICE: Student t CDF and Density without Tail-Flag Confusion

Statistical Intermediate ONLYOFFICE

Use T.DIST with explicit tail conventions, independently checked examples and exact-source bounds and compatibility limits.

Verification status: See the evidence and test scope described in this guide. How formula examples are checked

=T.DIST(1,1,TRUE) has the independent target 0.75. FALSE instead gives the density 0.159154943091895. The third argument chooses CDF versus density, not one versus two tails.

Syntax

T.DIST(x, deg_freedom, cumulative)

Enter an inspectable distribution example

Create TModel. Put Parameter in A1 and Value in B1. Enter Threshold in A2 and 1 in B2; Degrees of freedom in A3 and 1 in B3; Tail area in A4 and 0.05 in B4. Keep these cells unchanged when adding controls.

One degree of freedom is chosen because the t distribution then has the Cauchy closed form: its CDF is 1/2+atan(t)/π and its density is 1/[π(1+t²)]. This lets the examples be checked independently without running ONLYOFFICE. It is an arithmetic teaching case, not a recommendation to base practical inference on a tiny sample.

A t distribution is symmetric around zero. Its tail heaviness depends on degrees of freedom; a t value is not a raw measurement in minutes or grams. In a statistical test, its construction and degrees of freedom must come from the appropriate sampling model. A distribution formula alone does not establish those assumptions.

Choose the left-tail CDF or density

The official reference requires x, degrees of freedom and a logical cumulative flag. TRUE returns P(T≤x); FALSE returns a continuous probability density. A density is not a probability of an exact point, and a CDF is not a right-tail p-value.

For df=1, x=1 gives atan(1)=π/4. Adding 1/2 yields the CDF 3/4. The density is 1/[π(1+1²)]=1/(2π). These independent identities distinguish the two outputs unambiguously.

Worked signs and modes

Formula Independent target
=T.DIST(B2,B3,TRUE) 0.75
=T.DIST(B2,B3,FALSE) 0.159154943091895
=T.DIST(-1,1,TRUE) 0.25
=T.DIST(0,1,TRUE) 0.5
=T.DIST(0,1,FALSE) 0.318309886183791
=T.DIST(1,2,TRUE) 0.788675134594813

Negative x is valid in this interface. At zero, half the continuous symmetric distribution lies to either side. A density can be symmetric even though the CDF is not: the density at −1 equals the density at +1, while the CDFs sum to 1.

Advanced: turn cumulative values into areas

=T.DIST(1,1,TRUE)-T.DIST(-1,1,TRUE) has target 0.5 for the interval [−1,1]. =1-T.DIST(1,1,TRUE) has target 0.25 for the right tail above +1. The two-sided tail outside ±1 is 0.5.

The same positive threshold has a smaller tail as degrees of freedom increase in these examples: at df=2 its right-tail probability is approximately 0.211324865405187. Do not silently substitute a standard normal distribution simply because a statistic is standardized; the applicable degrees of freedom matter.

For an actual observed signed statistic, choose the tail based on the prespecified question. A left-tail CDF of 0.75 does not mean a 75% chance that a null hypothesis is true. Probability calculations and hypothesis interpretation are different steps.

Source bounds and legacy distinctions

The code rejects df<1, but does not explicitly truncate df in this forward function before passing it to the beta-based helper. Help calls df an integer. Use an integer for the documented examples, and do not claim the implementation has the same fractional-df behavior as the inverse functions, which apply parseInt.

The mode is converted numerically and tested for truthiness internally. Use explicit TRUE or FALSE; arbitrary nonzero mode values are not a clear substitute for documented logical intent. Conversion errors propagate. =T.DIST(1,0,TRUE) is source-predicted #NUM!.

Legacy TDIST takes a tails argument equal to 1 or 2, requires a nonnegative threshold, and returns tail area. In particular, TDIST(1,1,1) targets 0.25, whereas T.DIST(1,1,TRUE) targets 0.75. The punctuation change is not an alias migration. Use T.DIST.RT for a right tail or T.DIST.2T for a nonnegative two-tail magnitude.

The helper evaluates beta functions for CDF/tails and a density expression for FALSE. Extreme-tail precision, malformed arrays and native import behavior remain outside these bounded scalar examples. Subtracting a CDF very close to 1 can lose a tiny tail; an apparent zero is not mathematical impossibility.

Version, precision and verification

Checked October 18, 2026 against current official help and SDKJS tag v10.0.0.169, commit 3679e0375a758d7dc59d31337a45461be3525ed8. Introduction dates and a final supported-version endpoint are not established. Desktop Editors, Docs, mobile releases and imported files require separate compatibility checks.

Neither the ONLYOFFICE application nor its calculation engine was executed for this guide. The numerical targets are independently calculated mathematical values; code-path and error observations are manual source traces. They are not screenshots, displayed workbook results or promises of identical final digits. Use English function names and comma separators as shown, adapting separators to the editor’s locale.

Keep inputs and intermediate probabilities numeric and unrounded. Format the display rather than replacing values with rounded strings. These moderate scalar examples do not certify extreme-tail accuracy, unusual type coercion, array entry or dynamic spill. Model assumptions must be checked separately from arithmetic correctness.