How to you performed Goodness of Fit test For a Normal Distribution

26 views
Skip to first unread message

looneyto...@gmail.com

unread,
May 31, 2015, 1:54:58 PM5/31/15
to accor...@googlegroups.com
I am trying to do a Goodness of Fit Test.
But not sure how to go about it.

I tried using AndersonDarling Testing like this, but do not seem to be able to get the PValue, it shows as NaN..this is my code so far

double[] samp1 = new double[] { 6, 8 ,5.5,2.6,7.8,13.5};

var test = new AndersonDarlingTest(samp1, new NormalDistribution());





rtbInfo.Text += "\n" + test.Statistic.ToString();
rtbInfo.Text += "\n" + test.Significant.ToString();
rtbInfo.Text += "\n" + test.PValue.ToString();
rtbInfo.Text += "\n" + test.Tail.ToString();
rtbInfo.Text += "\n" + test.Size.ToString();
Reply all
Reply to author
Forward
0 new messages