Hi,
I want to do Chi-square test, to find the weather two distribution are same or not.

I want to use some statistical function to do that.
i found common math library to that test.

But I don't know how to use that library.
Math - Commons-Math: The Apache Commons Mathematics Library

and I find the code as

long[] observed = {10, 9, 11};
double[] expected = {10.1, 9.8, 10.3};
System.out.println(TestUtils.chiSquare(expected, observed));


If anyone can give me the idea about how to sue it, that will be very helpful for me.

Thank you

See post on other forum.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.