+ Reply to Thread
Results 1 to 19 of 19

Why is p-value greater than 1 when it should not

  1. #1
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Why is p-value greater than 1 when it should not

    After doing some searching online, I realized that p values should not be greater than 1. Somebody please tell me what I am doing wrong here:

    Final Template2.xlsx
    OnditiGK

  2. #2
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Why are you multiplying T.DIST by 2?!

    I wonder if you want:

    =2*(1 - T.DIST($O6,$N6,TRUE))

    which is equivalent to

    =T.DIST.2T($O6,$N6)

  3. #3
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    Kindly refer to problem 2 here:

    http://stattrek.com/hypothesis-test/...px?Tutorial=AP

    Change null and alternative from:

    Null hypothesis: μ1 - μ2 >= 7
    Alternative hypothesis: μ1 - μ2 < 7

    To:

    Null hypothesis: μ1 - μ2 = 0
    Alternative hypothesis: μ1 - μ2 not equal

  4. #4
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    [.... deleted by me ....]
    Last edited by joeu2004; 10-11-2017 at 06:20 PM.

  5. #5
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    [.... deleted by me ....]
    Last edited by joeu2004; 10-11-2017 at 06:21 PM.

  6. #6
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP, 2007, 2024
    Posts
    16,437

    Re: Why is p-value greater than 1 when it should not

    As near as I can tell, the calculation programmed into the spreadsheet is correct. I put those parameters (t=2.24 and df=145) into stattrek's t-distribution calculator (link in tutorial page) and into this calculator http://www.danielsoper.com/statcalc/...tor.aspx?id=41 and got the same answer as your function did. So this appears to be the correct result for the cumulative distribution function. This table of cumulative probabilities (http://www.sjsu.edu/faculty/gerstman...er/t-table.pdf ) shows many entries that are greater than 1. Are you certain that your calculation must be less than 1?

    I have not thought through this fully, but is it possible that you intended to compute the probability density function (3rd argument of T.DIST() function is 0 or FALSE)? The probability density function will return values much closer to 0 (and probably cannot return a value greater than 1).

    It has been a long time since I looked at t-tests, so I don't remember the details very well. I would suggest that you need to check your procedure and make sure you are clear on what the p value represents.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  7. #7
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    [.... deleted by me ....]

  8. #8
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Quote Originally Posted by joeu2004 View Post
    [.... deleted by me ....]
    Sorry for the misdirections. I got caught up in the tutorial examples, and I lost sight of your original question.

    Bottom line: It does appear that you are doing the correct calculations.

    Off-hand, I cannot explain why the p-value exceeds 1 in this example. I suspect it is due to a misinterpretation of the problem or the structure of a solution for two-tailed problem. But honestly, it has been too long since I did hypothesis testing, and I do not have time to delve into this further.

  9. #9
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    P values should not be greater than 1. They will mean probabilities greater than 100 percent.
    Last edited by gko_87; 10-11-2017 at 06:30 PM.

  10. #10
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    Consider for example the P value in my attachment:1.973

    If multiplied by 100 to convert to percentage you get 197.3%.

    Is this realistic?

  11. #11
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    According to explanation here the p shouldn't be greater than 1:

    https://socratic.org/questions/can-a...why-or-why-not

  12. #12
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    How can I perform the 3 t tests with the following as the alternative hypotheses:

    1st - test for the equality of the means

    2nd - if mean 1 is greater than mean 2

    3rd - if mean one is less than mean two.

  13. #13
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Quote Originally Posted by Onditi View Post
    Consider for example the P value in my attachment:1.973 [....] Is this realistic?
    No.

    Aha! Part of the problem is: the old TDIST function, which I am used to, is not parameter-for-parameter compatible with the new T.DIST function.

    Since you want to test u1-u2=0, you should use a two-tailed test. Enter one of the following formulas into P6:

    =T.DIST.2T(ABS(O6),N6)

    or

    =TDIST(ABS(O6),N6,2)

    or

    =2*TDIST(ABS(O6),N6,1)

    or

    =2*T.DIST(-ABS(O6),N6,TRUE)

    I can explain further later, if you wish. I have to leave now.
    Last edited by joeu2004; 10-11-2017 at 11:32 PM. Reason: minor; typo: -ABS in 2*T.DIST formula

  14. #14
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Quote Originally Posted by joeu2004 View Post
    Part of the problem is: the old TDIST function, which I am used to, is not parameter-for-parameter compatible with the new T.DIST function.
    And the various descriptions of Student's t are inconsistent, not only among themselves, but also within themselves.

    For example, consider the stattrek.com tutorial. On the one hand, it says that the Student's t-statistic is calculated by the formula t = [ (x1 - x2) - d ] / SE = -1.99. On the other hand, it says that the p-value is interpreted as P(t < -1.99) = 0.027; that is, the probability that t < -1.99. In the latter context, t refers to a random variable, not the Student's t-statistic (which is -1.99).

    The stattrek.com Student's t calculator uses the correct nomenclature, namely: P(T < t). T is the random variable that has a Student's t-distribution with df degrees of freedom, and t is the Student's t-score for the sample data.


    Quote Originally Posted by joeu2004 View Post
    Since you want to test u1-u2=0, you should use a two-tailed test. Enter one of the following formulas into P6:
    =T.DIST.2T(ABS(O6),N6)
    or
    =TDIST(ABS(O6),N6,2)
    or
    =2*TDIST(ABS(O6),N6,1)
    or
    =2*T.DIST(-ABS(O6),N6,TRUE)
    Your formula 2*T.DIST(O6,N6,2) works for the tutorial problem #1 only because the t-score in O6 is negative. (And because T.DIST interprets any non-zero numerical value as TRUE in the 3rd parameter.)

    T.DIST(t,df,TRUE) returns P(T < t) for t <= 0 and t > 0. But for a two-tailed test and t > 0, we want P(T < -t) + P(t < T); that is, the sum of the cumulative tail probabilities. Since the Student's t-distribution is symmetrical, P(T < -t) = P(t < T), and P(T < -t) + P(t < T) = 2*P(T < -abs(t)). So we can write 2*T.DIST(-ABS(t),df,TRUE), which is what T.DIST.2T(ABS(t),df) calculates.

    TDIST(t,df,1) returns P(t < T) for t > 0. So we can write 2*TDIST(ABS(t),df,1), which is what TDIST(ABS(t),df,2) calculates.
    Last edited by joeu2004; 10-12-2017 at 08:07 AM. Reason: errata in orange

  15. #15
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Quote Originally Posted by Onditi View Post
    How can I perform the 3 t tests with the following as the alternative [sic] hypotheses:
    1st - test for the equality of the means
    2nd - if mean 1 is greater than mean 2
    3rd - if mean one is less than mean two
    I think you mean: those are the null hypotheses, consistent with the stattrek.com tutorial.

    u1-u2 = 0, a two-tailed test: T.DIST.T2(ABS(t),df)
    u1-u2 >= d, a one-tailed test: T.DIST(t,df,TRUE)
    u1-u2 < d, a one-tailed test: 1 - T.DIST(t,df,TRUE)

    d = 0 for u1>=u2 and u1<u2.

    As the stattrek.com tutorial explains, reject the null hypothesis when the P-value returned by the appropriate expression above is less than the significance level (typically 0.01, 0.05 or 0.10; but it can be anything between 0 and 1 non-inclusively).

  16. #16
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    Thank you Joe. Will run some tests then get back here.

  17. #17
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    I really appreciate you taking the time to take me through this.

  18. #18
    Forum Contributor
    Join Date
    09-13-2016
    Location
    Kenya
    MS-Off Ver
    Excel 2010
    Posts
    321

    Re: Why is p-value greater than 1 when it should not

    Would you be kind enough to display how you would state the null and alternative hypothesis for μ1 > μ2 and μ1 < μ2. Do i compute another set of degrees of freedom and t when testing for μ1 > μ2 and μ1 < μ2, or do i use the same values I used for for μ1 = μ2?

  19. #19
    Forum Expert
    Join Date
    05-01-2014
    Location
    California, US
    MS-Off Ver
    Excel 2010
    Posts
    1,795

    Re: Why is p-value greater than 1 when it should not

    Quote Originally Posted by Onditi View Post
    Would you be kind enough to display how you would state the null and alternative hypothesis for μ1 > μ2 and μ1 < μ2. Do i compute another set of degrees of freedom and t when testing for μ1 > μ2 and μ1 < μ2, or do i use the same values I used for for μ1 = μ2?
    As I understand it (not an expert), yes: referring to the stattrek.com tutorial, SE, df and t would be the same because d is simply zero.

    I provided the null hypotheses in post #15. Note that I corrected one mathematical expression.

    If algebra is not your strength, here is something more complete.

    Please Login or Register  to view this content.
    According to one or two webpages, we do not always accept the alternate hypothesis when we reject the null hypothesis.

    I am not citing the webpages because their authority and descriptions are unclear. You might do your own research, if it matters to you.

    -----

    The expressions for #3 assume that t is calculated the same way as for #2 (my preference).

    Alternatively, calculate t as follows:

    t = (d - (u1-u2)) / SE

    and reject the null hypothesis when:

    T.DIST(t,df,TRUE) < significance level
    Last edited by joeu2004; 10-12-2017 at 08:42 AM. Reason: minor

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] find value which is greater than in a range of cells and return the greater value
    By green369 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-11-2015, 02:46 AM
  2. [SOLVED] count values greater 2 or greater in a column.
    By ammartino44 in forum Excel General
    Replies: 3
    Last Post: 09-16-2014, 07:05 PM
  3. [SOLVED] Value must be 1 or greater
    By Fallout in forum Excel General
    Replies: 5
    Last Post: 07-22-2012, 06:32 AM
  4. Replies: 5
    Last Post: 05-04-2012, 06:39 PM
  5. Greater than value than yes
    By Art Vandalaye in forum Excel General
    Replies: 2
    Last Post: 04-26-2011, 11:18 AM
  6. Greater than or Less than.. If Greater Need Difference
    By lemondrplvr in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2010, 02:39 AM
  7. Replies: 4
    Last Post: 08-25-2009, 06:39 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1