Thread Subject: Matlab probability cut-off value

Subject: Matlab probability cut-off value

From: miki lo

Date: 8 Jan, 2008 10:20:38

Message: 1 of 4

Hello,
Sometimes I ran a t-test for a super significantly different groups, the Matlab often returns a p value which equals 0. that is p=0.
What does this mean, what is the p value at which Matlab stops given a number and gives a zero? P<1e-30 or p<1e-100? Etc…?

Subject: Matlab probability cut-off value

From: Greg Heath

Date: 8 Jan, 2008 11:45:29

Message: 2 of 4

On Jan 8, 5:20 am, miki lo <myart...@gmail.com> wrote:
> Hello,
> Sometimes I ran a t-test for a super significantly different groups, the Matlab often returns a p value which equals 0. that is p=0.
> What does this mean, what is the p value at which Matlab stops given a number and gives a zero? P<1e-30 or p<1e-100? Etc...?

I had the same question and found the answer
by trial and error. Although I don't remember
the answer, you can repeat what I did.

Hope this helps.

Greg

Subject: Matlab probability cut-off value

From: miki lo

Date: 8 Jan, 2008 11:50:22

Message: 3 of 4

that would be great!!! thank you.
All I need is a number.

Subject: Matlab probability cut-off value

From: Peter Perkins

Date: 8 Jan, 2008 17:11:32

Message: 4 of 4

miki lo wrote:

> Sometimes I ran a t-test for a super significantly different groups, the Matlab often returns a p value which equals 0. that is p=0.
> What does this mean, what is the p value at which Matlab stops given a number and gives a zero? P<1e-30 or p<1e-100? Etc…?

Miko, it's certainly easy enough to figure this out empirically by
experimenting with the line of code in TTEST that computes the p-value

     p = 2 * tcdf(-abs(tval), df);


and working back from there to figure out what effect size in your data
corresponds to a particular value of the t-statistic TVAL. For example,

 >> df = 25; tval = 1e8; 2 * tcdf(-abs(tval), df)
ans =
   4.7085e-184

which corresponds to having a difference in means that 1e8 times the
estimated std dev.

I think you'll find that for a t-test, the possible p-values can be
quite small -- maybe even realmin, I forget. But you ought to ask
yourself why the difference between a p-value of 1e-100, say, and a
p-value that's exactly zero (because of underflow) matters to you. The
approximation of the test statistic's sampling distribution as a t
distribution is almost certainly not very accurate that far out in the
tails in most cases involving real data.

Hope this helps.

- Peter Perkins
   The MathWorks, Inc.

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Public Submission Policy

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Disclaimer prior to use.

Contact us at files@mathworks.com