Excel - TINV Function



TINV Function

The Excel TINV function will retrieve the two-tailed inverse of the student's t-distribution. This function is used when dealing with small datasets and statistical analysis to make crucial decisions related to the hypothesis, risk management, and the development of confidence interventions. For example, compare the mean of NEET scores of students of two different academies to determine whether there is a significant difference.

The TINV function interchanges with the T.INV.2T function in Excel 2010.

Syntax

The syntax of TINV function is as follows −

TINV (probability,deg_freedom)

Arguments

You can use the following arguments with the TINV function −

Argument Description Required / Optional
Probability The probability associated with the two-tailed Student's t-distribution. Required
Deg_freedom It specifies the number of degrees of freedom. Required

Compatibility

This advanced excel function is compatible with the following versions of MS-Excel −

  • Excel for Microsoft 365
  • Excel for Microsoft 365 for Mac
  • Excel for the web
  • Excel 2021
  • Excel 2021 for Mac
  • Excel 2019
  • Excel 2019 for Mac
  • Excel 2016

Points to Remember

  • The TINV function will return the t value so that P(|X| > t) = probability.
  • Here, X denotes the random variable that relies on the t-distribution.
  • If deg_freedom is in decimal form, its value gets truncated.
  • You can also use probability as (1-p) for a few tables.
  • If either argument is other than numeric, the TINV function will retrieve the #VALUE! error.
  • If either p <0 or p >= 1, then TINV function will return the #NUM! error value.
  • If deg_freedom contains a negative value, the TINV function returns the #NUM! error.
  • TINV looks for a value x such that TDIST(x, deg_freedom, 2) = probability when the probability is already known. Therefore, TINV precision relies on the TDIST precision. This function utilized an iterative search technique. If the search is not successful after 100 iterations, then the TINV function will retrieve the #N/A error.

Examples of TINV Function

Practice the following examples to learn the use of the TINV function in Excel.

Example 1

Assume the sample dataset and the population mean of Hypertension patients is 32. The sample is taken from this population, and its calculated mean is 14. The patient count is 23. The values of the standard deviation and Significance level are 2 and 0.05.

Step 1 − Lets calculate the T-calculated and T-critical values. First, you may enter the formula =ABS(C4-C3)/(C6/SQRT(C5)) in the C9 cell and press the Enter key to get the result.

Excel TINV Function 1

Excel TINV Function 2

Step 2 − After that, enter the TINV formula =TINV(2*C7,C5-1) in the C10 cell and press the Enter tab.

Excel TINV Function 3

Therefore, the t critical value is 1.7174.

Excel TINV Function 4

Step 3 − You must come to a scientific conclusion on whether to accept or reject the null hypothesis. To achieve this, you can enter the formula =IF(C9<C10,"Do not reject the null hypothesis", "Reject the null hypothesis") in the C11 cell.

Excel TINV Function 5

Therefore, you may reject the null hypothesis as long as the t-calculated value is not less than the t-critical value.

Excel TINV Function 6

Example 2

If deg_freedom is in decimal form, its value gets truncated.

Solution

You can write the TINV formula =TINV(0.94, 2.3) in the E8 cell and press the Enter tab. Here, the deg_freedom 2.3 value will truncate to 2.

Excel TINV Function 7

After that, press the Enter key to get the resulting value of 0.085006.

Excel TINV Function 8

Example 3

If either argument is other than numeric, the TINV function will retrieve the #VALUE! error.

Solution

Lets say you type the expression =TINV("Rounak", 3) in the E8 cell. Here, the first argument(probability) contains a text value that is Rounak.

Excel TINV Function 9

Once you press the Enter key, the TINV function will obtain the #VALUE! error.

Excel TINV Function 10

Example 4

If either p <0 or p >= 1, then TINV function will return the #NUM! error value.

Solution

The probability value inside the TINV function must lie between 0 and 1; otherwise, the error may arise.

Lets say you write the TINV formula =TINV(-0.34,3) in the E8 cell and press Enter tab.

Excel TINV Function 11

Hence, the TINV function would return the #NUM error as the p-value is negative, which is allowed.

Example 5

If deg_freedom contains a negative value, the TINV function returns the #NUM! error.

Solution

You can enter the formula =TINV(0.94,-4.3) in the E8 cell. In this formula, the second argument(deg_freedom) is negative.

Excel TINV Function 12

Once you press the Enter tab, the TINV function will return the #NUM error. You can edit the deg_freedom value, which has to be positive to get an accurate result.

Excel TINV Function 13
Advertisements