Re: How to compute p-value



>> 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

---------------------------------------------------

.



Relevant Pages

  • Re: How to compute p-value
    ... 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. ... is a linear algebra function). ... Neither of these two things is a p-value, ...
    (comp.soft-sys.matlab)
  • How to compute p-value
    ... I'd like to compute the p-value for a certain distribution. ... which allows me to simply check what cdf we have ... get the corresponding value of spot. ...
    (comp.soft-sys.matlab)
  • Re: Finding the p-value using MatLab
    ... i seem to have big time trouble finding the right tools for that. ... val = cdf ('chi2', spot, 99) which allows me to simply check what cdf we have accumulated in the point of spot. ... I hope you dance -- Lee Ann Womack ...
    (sci.stat.math)
  • Re: TDist Formula and Explanation
    ... tdist function to come up with the p-value. ... Excel's tdist is not the cdf of t, ... Suippose t is negative and you want the probability ...
    (sci.stat.math)
  • Re: TDist Formula and Explanation
    ... tdist function to come up with the p-value. ... minus the cdf of the absolute value of t. ...
    (sci.stat.math)