Jump to content

Wikipedia:Reference desk/Archives/Mathematics/2022 March 8

From Wikipedia, the free encyclopedia
Mathematics desk
< March 7 << Feb | March | Apr >> Current desk >
Welcome to the Wikipedia Mathematics Reference Desk Archives
The page you are currently viewing is a transcluded archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


March 8

[edit]

Observed vs. expected values

[edit]

Hi there, I was looking for help regarding a statistics question. I have a set of 2 x 2 observed values and 2 x 2 expected values in a spreadsheet. I was planning on using the chi-square test for independence with the Yates correction factor because my data fit the criterion to need the yates correction factor. I was wondering if there was any statistical test that compared the difference between my expected values with observed values, but not in a way that created expected values like the chi-squared test does. Thanks so much and any help is appreciated! JuxtaposedJacob (talk) 14:15, 8 March 2022 (UTC)[reply]

A general formula is given by:
in which the are the observed and the the expected values. Note that if the expected values are obtained independently and not derived from the observed values, there are four degrees of freedom, instead of the usual one d.o.f. for a 2 × 2 contingency table. (This assumes there is no fixed relation at all connecting these values; if it is a given that this takes away one d.o.f.)  --Lambiam 14:42, 8 March 2022 (UTC)[reply]
See Fisher's exact test Robinh (talk) 00:32, 10 March 2022 (UTC)[reply]
Fisher's exact test does not allow one to compare the fit of observed values to one's own expected values. If the observed values are 20│50
10│20
, Fisher's test will give p = 0.64, even if the expected values are 20│10
10│60
and the observations obviously do not match the expectations.  --Lambiam 09:14, 10 March 2022 (UTC)[reply]