Path: news.mathworks.com!not-for-mail
From: "wang wang" <pligly@gmail.com>
Newsgroups: comp.soft-sys.matlab
Subject: chi-square two sample test
Date: Tue, 10 Jun 2008 12:31:01 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 11
Message-ID: <g2ls65$p3u$1@fred.mathworks.com>
Reply-To: "wang wang" <pligly@gmail.com>
NNTP-Posting-Host: webapp-05-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1213101061 25726 172.30.248.35 (10 Jun 2008 12:31:01 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Tue, 10 Jun 2008 12:31:01 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1407754
Xref: news.mathworks.com comp.soft-sys.matlab:473031



I have a data set,and I estimate the parameters of a 
specified distribution,say the lognormal distribution,from 
that data set. Now I want to test the goodness of fit of 
that distribution to the data(notice particularly that the 
parameters of the distribution is estimated from the data 
set).Can anyone tell me whether the chi-square two sample 
test is adequate to do that or not? And is there a 
exsiting function to do that work? I have known that there 
exist a function named'chi2gof'which can do the chi-square 
goodness-of-fit test,but this function only tests whether 
the data comes from a normal distribution.