Re: How to compute p-value
- From: "Konrad Viltersten" <tmp1@xxxxxxxxxxxxxx>
- Date: Tue, 23 Aug 2005 17:41:43 +0200
>> I'd like to compute the p-value for a certain distribution.
>> Let's say i have the following:
>> val = cdf ('chi2', spot, 99)
>> which allows me to simply check what cdf we have
>> accumulated in the point of spot.
>>
>> Now, i wish to go the other way around and given the value
>> of val, get the corresponding value of spot.
>
> Presumably you have the Statistics Toolbox, since you're using CDF.
> For every function named something like CHI2CDF (which is what
> CDF('chi2',...) ultimately calls, there is a function named
> something like CHI2INV to compute a quantile given a cumulative
> probability. The opposite of CDF is named ICDF (because INV is a
> linear algebra function).
>
> Neither of these two things is a p-value, probably. Usually for a
> chi-square distribution, the p-value that people care about is the
> right tail, which you get from 1-chi2cdf(spot,99).
Thanks! I'm sure it will help.
--
Vänligen
Konrad
---------------------------------------------------
Sleep - thing used by ineffective people
as a substitute for coffee
Ambition - a poor excuse for not having
enough sense to be lazy
---------------------------------------------------
.
- References:
- How to compute p-value
- From: Konrad Viltersten
- Re: How to compute p-value
- From: Peter Perkins
- How to compute p-value
- Prev by Date: Re: binary fwrite and fread question
- Next by Date: Re: Interpreting spline
- Previous by thread: Re: How to compute p-value
- Next by thread: latex code as string in popup menu
- Index(es):
Relevant Pages
|