Re: P-value from T-stat



On Oct 5, 12:56 am, Graham Ashe <knight_arm...@xxxxxxxxx> wrote:
I plan to write a function in a computer program to perform a two sample t-test assuming unequal variances on any two samples of data passed to it. Unfortunately, all I can actually calculate is the t-statistic and DOF but not the p-value (which I need to know in order to determine if the difference in means is statistically significant or not; let's assume it's always a two-tailed test).

1. Is there a way to estimate the p-value from the t-statistic (without looking up a reference table); at least to know if the difference in means is significant?

2. On a side note, if through calculation I get a fractional value for the DOF (e.g. 7.85), am I supposed to round it to 8 or truncate it to 7?

If your program environment has an incomplete Beta function, often
denoted I_x(a,b), in its library then the 2-tailed p-value is I_x(a,b)
with x = df/(df + t^2), a = df/2, b = 1/2, where df = the degrees of
freedom, which need not be an integer.
.



Relevant Pages

  • Re: Pingie: Rev
    ... LOL, liak your foolish friend Mr. Turds, you really have no ... it was a DIRECT reference. ... LOL, this should be good. ... "Freedom, true freedom, is nothing more than intellectual advantage over others." ...
    (alt.2600)
  • Re: TDist Formula and Explanation
    ... and bolts of the formula to come up with a valid ... to use the incomplete beta function to calculate the ... Re the OP's question about how to compute the p-value in Excel: ...
    (sci.stat.math)
  • Re: MTDesk is down again!
    ... person's reference to his or her own beliefs. ... expression is the true imposition on freedom of religion that is taking ... am somehow imposing on someone else's freedom. ... reference to religion is not. ...
    (sci.med.transcription)
  • Re: Deleting a file used by another process.
    ... perticular secnario, the file is opened only once. ... And I think all reference ... Freedom is not worth having if it does not include the freedom to make mistakes. ...
    (microsoft.public.vc.mfc)
  • Re: chi-square table
    ... the statistics2 package by Shin-ichi Hara: ... Returns the integral of Chi-squared distribution with n degrees of freedom ... Return the P-value of the corresponding integral. ...
    (comp.lang.ruby)