comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Help with the F-test. mpftest.pro in particular.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Help with the F-test. mpftest.pro in particular. [message #53297] Fri, 06 April 2007 08:55 Go to previous message
cgguido is currently offline  cgguido
Messages: 195
Registered: August 2005
Senior Member
Hi all,

I am trying to figure out how the F-test works.

I created two fake datasets with 1e6 elements and a variance of 4


n = 1e6
s = 4
i1 = randomn(sss, n)*s
i2 = randomn(sss, n)*s


I then calculate the f value as the ration of the largest variance to
the smallest (the two sets have the same number of degrees of freedom,
n)

var = [variance(i1), variance(i2)]
vv = max(var, min=v)
f = vv/v

Then I print the probability that the variances are similar due to
pure chance (should be close to zero because the variances are *set*
to be th same)

print, mpftest(f, n, n)
--> 0.47958397


I must be doing something very wrong :-(

Can somebody help please?

Thanks,
Gianguido
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Previous Topic: loop limit ???
Next Topic: Re: loop limit ???

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Sat Oct 11 18:45:57 PDT 2025

Total time taken to generate the page: 1.36388 seconds