Path: news.mathworks.com!not-for-mail
From: Peter Perkins <Peter.PerkinsRemoveThis@mathworks.com>
Newsgroups: comp.soft-sys.matlab
Subject: Re: chi-square two sample test
Date: Thu, 12 Jun 2008 09:33:49 -0400
Organization: The MathWorks, Inc.
Lines: 19
Message-ID: <g2r8jt$den$2@fred.mathworks.com>
References: <g2ls65$p3u$1@fred.mathworks.com> <g2lvan$1a3$1@fred.mathworks.com> <g2ntgq$r5e$1@fred.mathworks.com> <g2onqt$rmv$2@fred.mathworks.com> <g2qavh$399$1@fred.mathworks.com>
NNTP-Posting-Host: perkinsp.dhcp.mathworks.com
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: fred.mathworks.com 1213277629 13783 172.31.57.88 (12 Jun 2008 13:33:49 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 12 Jun 2008 13:33:49 +0000 (UTC)
User-Agent: Thunderbird 2.0.0.14 (Windows/20080421)
In-Reply-To: <g2qavh$399$1@fred.mathworks.com>
Xref: news.mathworks.com comp.soft-sys.matlab:473484



wang wang wrote:

> Thank you Peter,the second sample can be generated from 
> the specific distribution whose parameters are estimated 
> from the data set.This sample can be seen as come from the 
> specific distribution,then maybe the chi-square two sample 
> test can be used to test whether the generated sample and 
> the original data set come from a common distribution

I don't know what to tell you.  Your description of your context is exactly what 
a one-sample chi-squared test is for.  I don't know why you would want to 
artificially introduce another sample.

How your distribution is defined makes no difference at all.  You are fitting a 
distribution to data by estimating its parameters.  If you can compute 
cumulative probabilities from that fitted distribution, then that's all you need 
to use chi2gof.  If your problem is that you can't compute cumulative 
probabilites, then I wonder how useful your model will actually be from a 
predictive point of view.