+ Reply to Thread
Results 1 to 4 of 4

Thread: Non central Chi square distribution and approximations Matlab

  1. #1
    Points: 13, Level: 1
    Level completed: 25%, Points required for next Level: 37

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Non central Chi square distribution and approximations Matlab




    Hello!

    I have a problem with the computation of a chi squared distribution in Matlab. I have a quadratic form : y' Px y, this form has a non central chi squared distribution with r degrees of freedom and a parameter of non centrality lambda.

    My question is : How could I turn this noncentral distribution into central distribution ? I have tried the Patnaik approximation, but I think I have a problem in Matlab. I use chi2pdf(x,r') where r' is the new dof (Patnaik), and I multiply this pdf by c' (which is the Patnaik coefficient). But the result doesn't fit with the result of the noncentral pdf (ncx2pdf(x,r,lambda)).

    If anyone has a beginning of an answer, it' fantastic !

    Thanks

  2. #2
    Devorador de queso
    Points: 95,866, Level: 100
    Level completed: 0%, Points required for next Level: 0
    Awards:
    Posting AwardCommunity AwardDiscussion EnderFrequent Poster
    Dason's Avatar
    Location
    Tampa, FL
    Posts
    12,936
    Thanks
    307
    Thanked 2,630 Times in 2,246 Posts

    Re: Non central Chi square distribution and approximations Matlab

    What do you mean by "how could I turn this noncentral distribution into central distribution"?
    I don't have emotions and sometimes that makes me very sad.

  3. #3
    Points: 13, Level: 1
    Level completed: 25%, Points required for next Level: 37

    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Non central Chi square distribution and approximations Matlab

    I mean, how can I approximate the non-central chi2 distribution in central chi2 distribution ?

    I use the Patnaik approximation but I don't succeed with Matlab.
    I use the functions chi2pdf and ncx2pdf

  4. #4
    Super Moderator
    Points: 13,151, Level: 74
    Level completed: 76%, Points required for next Level: 99
    Dragan's Avatar
    Location
    Illinois, US
    Posts
    2,014
    Thanks
    0
    Thanked 223 Times in 192 Posts

    Re: Non central Chi square distribution and approximations Matlab


    Quote Originally Posted by bidou8601 View Post
    I mean, how can I approximate the non-central chi2 distribution in central chi2 distribution ?

    I use the Patnaik approximation but I don't succeed with Matlab.
    I use the functions chi2pdf and ncx2pdf

    My guess is that you should use the function ncx2cdf(X,v,delta), where X is the specified value, v is the degrees of freedom, and delta is the non-centrality parameter.

    So, for example, if you enter ncx2cdf(5.99,2, 0), you will obtain a cumulative probability of 0.950 (which is a central chi-square distribution with 2 degrees of freedom).

    If you enter ncx2cdf(5.99,2, 1), you will obtain a cumulative probability of 0.8672 (which is a chi-square distribution with 2 degrees of freedom that has a non-centrality parameter of 1).

+ Reply to Thread

           




Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts






Advertise on Talk Stats