how to make chi^2 noise
sdriscoll
Ultimately what I'm after are expected quartiles of a chi^2 distribution with some specific # of degrees of freedom so if there's some other way of going about this with Igor's built in chi^2 pdf/cdf functions please feel free to show me the light!
Thanks.
Otherwise, since you have access to StatsChiPDF() and enoise(), you can generate pseudo-random numbers from the Chi-squared distribution using the rejection method. It is described, for example, here: http://en.wikipedia.org/wiki/Rejection_sampling.
You might also want to take a look at analytic expressions for the expectation values that you are after. You may be able to get closed-form expressions for them (at least for chi-squared distribution).
A.G.
WaveMetrics, Inc.
December 14, 2011 at 12:28 pm - Permalink
So what I'm thinking now is if I were to be able to create a wave of say 100 points containing values on the range of 0 to 1 I can convert these to a chi^2 distribution with 3 degrees of freedom with the StatsInvChiCdf function.
I just don't know what a truly random way is of getting that random set of values between 0 and 1.
December 14, 2011 at 12:38 pm - Permalink
John Weeks
WaveMetrics, Inc.
support@wavemetrics.com
December 14, 2011 at 12:40 pm - Permalink
December 14, 2011 at 04:00 pm - Permalink
print StatsInvChiCDF(abs(enoise(1)),N)
December 16, 2011 at 09:06 pm - Permalink