Bewerken

Delen via


WorksheetFunction.TInv(Double, Double) Method

Definition

Returns the t-value of the Student's t-distribution as a function of the probability and the degrees of freedom.

public:
 double TInv(double Arg1, double Arg2);
public double TInv (double Arg1, double Arg2);
Public Function TInv (Arg1 As Double, Arg2 As Double) As Double

Parameters

Arg1
Double

Probability - the probability associated with the two-tailed Student's t-distribution.

Arg2
Double

Degrees_freedom - the number of degrees of freedom with which to characterize the distribution.

Returns

Remarks

Important: This function has been replaced with one or more new functions that may provide improved accuracy and whose names better reflect their usage. This function is still available for compatibility with earlier versions of Excel. However, if backward compatibility is not required, you should consider using the new functions from now on, because they more accurately describe their functionality. For more information about the new functions, see the TInv(Double, Double) and T_Inv_2T(Double, Double) methods.

If either argument is nonnumeric, TInv returns the #VALUE! error value.

If probability < 0 or if probability > 1, TInv returns the #NUM! error value.

If degrees_freedom is not an integer, it is truncated.

If degrees_freedom < 1, TInv returns the #NUM! error value.

TInv returns that value t, such that P(|X| > t) = probability where X is a random variable that follows the t-distribution and P(|X| > t) = P(X < -t or X > t).

A one-tailed t-value can be returned by replacing probability with 2*probability. For a probability of 0.05 and degrees of freedom of 10, the two-tailed value is calculated with TINV(0.05,10), which returns 2.28139. The one-tailed value for the same probability and degrees of freedom can be calculated with TINV(2*0.05,10), which returns 1.812462.

Applies to