Thread Subject: p value from F statistic and n

Subject: p value from F statistic and n

From: Iliana Chollett

Date: 20 Nov, 2009 15:06:06

Message: 1 of 3

Hello everybody

I have a silly doubt that has taken too much of my afternoon. If somebody could help I would be really grateful!

I need to calculate the probabilities (p-values) associated with a huge nxm matrix of F-statistics and the companion nxm matrix with the number of observations. It seems something trivial, but I can’t find the right function to do it in matlab.

Thanks in advance!

Subject: p value from F statistic and n

From: Tom Lane

Date: 20 Nov, 2009 20:01:19

Message: 2 of 3

> I need to calculate the probabilities (p-values) associated with a huge
> nxm matrix of F-statistics and the companion nxm matrix with the number of
> observations. It seems something trivial, but I can’t find the right
> function to do it in matlab.

Admittedly I don't know what F test you want to perform, how the companion
matrix relates, and what numerator and denominator degrees of freedom you
would use.

But if you have the Statistics Toolbox, the fcdf function computes the lower
tail probability Prob(F<t) as a function of t. Depending on your test, you
may be interested in the upper tail (Prob(F>t) = 1-Prob(F<t)) or in both
tails.

-- Tom

Subject: p value from F statistic and n

From: Iliana Chollett

Date: 23 Nov, 2009 22:01:05

Message: 3 of 3

Thank you very much Tom. I wil try to be more specific in next posts! but your fcdf function does the trick. Cheers!

"Tom Lane" <tlane@mathworks.com> wrote in message <he6sif$r9v$1@fred.mathworks.com>...
> > I need to calculate the probabilities (p-values) associated with a huge
> > nxm matrix of F-statistics and the companion nxm matrix with the number of
> > observations. It seems something trivial, but I can’t find the right
> > function to do it in matlab.
>
> Admittedly I don't know what F test you want to perform, how the companion
> matrix relates, and what numerator and denominator degrees of freedom you
> would use.
>
> But if you have the Statistics Toolbox, the fcdf function computes the lower
> tail probability Prob(F<t) as a function of t. Depending on your test, you
> may be interested in the upper tail (Prob(F>t) = 1-Prob(F<t)) or in both
> tails.
>
> -- Tom
>

Tags for this Thread

Everyone's Tags:

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.

Tag Activity for This Thread
Tag Applied By Date/Time
p value I C 20 Nov, 2009 10:09:13
f statistic I C 20 Nov, 2009 10:09:13
critical value I C 20 Nov, 2009 10:09:13
rssFeed for this Thread

Contact us at files@mathworks.com