Skip to content

a bug with Student t-value??

5 messages · huaru wang, Sunny Srivastava, (Ted Harding) +1 more

#
On 07-Nov-09 09:02:38, huaru wang wrote:
Not at all. The reason is that your table gives the t-value for a
two-sided test (with equal tails), i.e. 0.025 in each tail.
The function qt() in R returns the t-value for a one-sided test,
i.e. 0.05 in the (by default) upper tail. Compare:

  qt(0.95,9)
# [1] 1.833113
  qt(0.975,9)
# [1] 2.262157

The second value agrees with your table. Many printed tables give
the two-sided values, rather than the one-sided.

Hoping this helps,
Ted.

--------------------------------------------------------------------
E-Mail: (Ted Harding) <Ted.Harding at manchester.ac.uk>
Fax-to-email: +44 (0)870 094 0861
Date: 07-Nov-09                                       Time: 09:55:50
------------------------------ XFMail ------------------------------
#
Sunny Srivastava wrote:
Or, put differently, tables are often given for two-sided p-values 
(especially in the back pages of textbooks), whereas qt() is for one-sided.

I.e. the t distribution with 9 DF has a probability of 0.95 of falling 
BELOW 1.833 but also of falling BETWEEN -2.262 and +2.262.