Hi,
I have a data set that I would like to upload to use the Chi-Square Test in order to Calculate my P-Square.
Can someone assist on how to go about this?
Thanks!
Chriss
What did you try yourself? Have you looked for Chi square test? You would’ve found: PearsonChiSquareTest—Wolfram Documentation
With a plethora of examples. Good luck!
Hi,
Yes I did look at the references many times. I am now taking a class so I am unfamiliar with the concept. Also, I am a first time user to Wolfram. I have no idea how to use my data and follow the Reference Guide to input the data into the formula bar. So unfortunately, the link doesn’t help me much because I don’t know how to interpret it into Wolfram nor do I understand what I’m doing. Sorry for my lack of understanding but you’ll have to go step by step with me on this because I’m completely clueless.
Thanks.
Try reading:
or
those two will explain simple list-manipulation and import et cetera,
Hi Christine,
Sorry, I don’t have experience with Chi-Square Test, but maybe this could help !
data=Import["C:\\Users\\Jos\\Wolfram Mathematica\\.......\\Wolfram_ChiSquare Test.xlsx", "xlsx"]
data = Take[data[[All, 2]]]
maxdata = Max[data]
mindata = Min[data]
vardata = Variance[data]
meddata = Median[data]
meandata = Mean[data]
stddata = StandardDeviation[data]
Print[Style["Demand (X)", 14, Bold, Red]]
Print["Maximum: ", maxdata]
Print["Minimum: ", mindata]
Print["Variance: ", vardata]
Print["Median: ", meddata]
meandata = N[Mean[data]];
stddata = N[StandardDeviation[data]];
modedata = Commonest[data][[1]];
Grid[{
{Labeled[meandata, "Mean: ", Left]}
, {Labeled[modedata, "Mode: ", Left]}
, {Labeled[stddata, "Standard Dev.:", Left]}
}
, Alignment -> Left]
d1 = NormalDistribution[modedata, stddata];
H = DistributionFitTest[data, d1, "HypothesisTestData"];
H["TestDataTable", All]
Good luck,…Jos
Hi Christine,
In further calculations shows the p-Value for the PearsonChiSquareTest : 0.0496.
\[ScriptCapitalH] =
PearsonChiSquareTest[data, Automatic, "HypothesisTestData"]
\[ScriptCapitalH]["PValueTable"]
p = PearsonChiSquareTest[data]
Good Luck,…Jos
I am not sure I understand the question, but if you are asking about how to compute a Chi Square statistic and its meaning when one confronts contingency tables, I have written a brief notebook for my class. I’m attaching it to this post.
Dear Mr. Seth Chandler,
Thanks for your information, this is very useful !
Regards,…Jos