Re: Noncentral Chi Distribution



Soenke Engelken wrote:
Dear Matlabers,

I am looking for an evaluation function for the noncentral Chi
distribution. The nonc. Chi-square is included in the statistics
toolbox, but this one is not. Do you know of any implementation, e.g.
using a transformation from the nonc. Chi-square? Googling or search
on this site did not reveal any. Many thanks!

Soenke, I assume you're talking about a random variable that is just the square root of a non-central chi-square r.v.. The non-centrality parameter for the N-C chi may also be expressed in terms of a square root, so you may have to square that.

Depending on what you mean by "evaluation", this is fairly straight-forward, using the functions in the Statistics Toolbox for the NC chi-square. For the CDF, you just square the x value you have. For the PDF, you'll also have to divide by the derivative of the square root transformation. And so on.

The Distribution Fitting Tool in the Statistics Toolbox includes support for modelling the Ricean distribution, which is a scaled square root of a N-C chi-square with 2 d.f. The code in stats/private/addrice.m may provide a helpful starting point for you.

Hope this helps.

- Peter Perkins
The MathWorks, Inc.
.



Relevant Pages

  • Re: Testing a Pseudo-Random Generator
    ... >from dividing by the square root of a chi-square. ... >> statistics t0 was calculated. ... > Frequencies of t0 in the interval ...
    (sci.stat.math)
  • Noncentral Chi Distribution
    ... Chi-square is included in the statistics ... toolbox, ... using a transformation from the nonc. ...
    (comp.soft-sys.matlab)
  • Re: diehard and ent results quesion
    ... >>probability of rejecting a good generator. ... The question was about applying a chi-square test ... That's what makes the averaging suggestion so very bad. ... or most any introductory statistics text for ...
    (sci.crypt)
  • Re: Chi-square for binomial samples
    ... Most chi-square statistics that I have seen assume ... hypergeometric distribution. ... The row totals do ...
    (sci.stat.math)
  • Re: significance in contingency table
    ... I understand the need of finding the law of the statistics under the null ... the formula hints at a Chi-square with one degree of freedom: ... So, the second test would fail in many cases where the first succeeds, which ...
    (sci.stat.math)