SOCR EduMaterials AnalysisActivities Fisher Exact

From SOCR
Jump to: navigation, search

SOCR Analysis Activities - SOCR Analyses Example on Fisher's Exact Test Activity

Applet

SOCR Fisher's exact Test Applet is available online here.

Background

You can find more details about the Fisher's Exact Test here. This demo is based on an example from Wolfram MathWorld Fisher's Exact Test.

Steps

1. Click on "Fisher's Exact Test" from the conbo box in the left panel.

SOCR AnalysisActivities FisherExact Chu 061407 Fig1.gif
SOCR AnalysisActivities FisherExact Chu 061407 Fig1A.gif

2. Click on "Input" button. You'll see a screen like below waiting for your input

SOCR AnalysisActivities FisherExact Chu 061407 Fig2.gif

The minimum size of table is 2 by 2. We'll use 2 by 2 for our example. (Note that you can also change the number of rows and/or columns by clicking on the combo box.)

SOCR AnalysisActivities FisherExact Chu 061407 Fig2A.gif

Type in numbers into the cells. You can also change the text of the row and column names from "Row 1" etc., to something you like.

SOCR AnalysisActivities FisherExact Chu 061407 Fig2B.gif


3. Click on the "Calculate" button and then "Result" to see the results.

SOCR AnalysisActivities ChiTable Chu 061407 Fig3.gif

Note: if you happen to click on the "Clear" button in the middle of the procedure, all the data will be cleared out. Simply start over from step 1 and retrieve the data by clicking an EXAMPLE button.

Notes

  • The SOCR Fisher's Exact Test provides calculations for examining the significance of the association (contingency) between the two kinds of classifications. These are in general represented by NxK matrices.
  • Please note that in the following situations the Exact Fisher's test is very difficult to compute:
    • anytime the frequency counts (cell-values in the matrix) are large (say >9), and/or
    • the matrix-sizes > 2 (i.e., N and/or K >2).
  • P-value-cutoff is \(p_o\), the starting likelihood of the matrix, which is used incrementally to compute the one-sided and the two-sided p-values of interest. Note that in general, the two-sided p-value will be quite different from 2 times the one-sided p-value!

Example

  • If the “Cochran conditions” are satisfied (no cell has count zero, and more than 80% of the cells have counts at least 5) the R calculations are based on asymptotic chi-squared probabilities and matrix simulation is done conditional on the row and column marginals, and works only if the marginals are strictly positive (Patefield algorithm, 1981).

> data <- matrix(c(13, 6, 29, 11, 16, 4), nr=3)
> data
[,1] [,2]
[1,] 13 11
[2,] 6 16
[3,] 29 4
> fisher.test(data, alternative = "greater")
Fisher's Exact Test for Count Data
data: data
p-value = 0.00001568
alternative hypothesis: greater

  • SOCR Calculations
SOCR AnalysisActivities FishersExactTest Fig4.png




Translate this page:

(default)
Uk flag.gif

Deutsch
De flag.gif

Español
Es flag.gif

Français
Fr flag.gif

Italiano
It flag.gif

Português
Pt flag.gif

日本語
Jp flag.gif

България
Bg flag.gif

الامارات العربية المتحدة
Ae flag.gif

Suomi
Fi flag.gif

इस भाषा में
In flag.gif

Norge
No flag.png

한국어
Kr flag.gif

中文
Cn flag.gif

繁体中文
Cn flag.gif

Русский
Ru flag.gif

Nederlands
Nl flag.gif

Ελληνικά
Gr flag.gif

Hrvatska
Hr flag.gif

Česká republika
Cz flag.gif

Danmark
Dk flag.gif

Polska
Pl flag.png

România
Ro flag.png

Sverige
Se flag.gif