Re: How to compute p-value
- From: Peter Perkins <Peter.PerkinsRemoveThis@xxxxxxxxxxxxx>
- Date: Mon, 22 Aug 2005 09:35:46 -0400
Konrad Viltersten wrote:
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).
Hope this helps.
- Peter Perkins The MathWorks, Inc. .
- Follow-Ups:
- Re: How to compute p-value
- From: Konrad Viltersten
- Re: How to compute p-value
- References:
- How to compute p-value
- From: Konrad Viltersten
- How to compute p-value
- Prev by Date: Re: simple calculus help
- Next by Date: Re: Johnson Curve Fitting
- Previous by thread: How to compute p-value
- Next by thread: Re: How to compute p-value
- Index(es):
Relevant Pages
|
Loading