# Fisher's exact test — monte carlo version

I've been recently working with 2x2 contingency tables, where majority of researchers in my field use FET to assess significance. I saw, that in R, one can also use the monte carlo variation of this test.

I can't seem to understand what is being sampled in that scenario, or when is this applicable. To employ FET, one simply counts A=x, A=y, B=x,B=y occurences, and uses that for the exact test. Is the counting part, e.g. |A=x| too computationally demanding? What exactly is being approximated, because even for very large datasets, it is nowdays trivial to count occurrences related to observed event (e.g. disease).

Thank you very much.

*edit 1 The A,B,x and y are labels of rows and columns, the two vertical columns are A,B and the two rows x and y. A=x represents the cell count, A column, x row.

• "A=x, A=y, B=x,B=y" I don't understand what you mean by this. Are you referring to the cell frequencies generated under independence? – AdamO Feb 28 '18 at 15:21
• Yes, sorry for being inconsistent. – sdgaw erzswer Feb 28 '18 at 15:49

simulate.p.value
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.8132091760635376, "perplexity": 1648.6992041616056}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 20, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2020-05/segments/1579251796127.92/warc/CC-MAIN-20200129102701-20200129132701-00254.warc.gz"}