Skip to main content
Log in

Computing p-values in conditional independence models for a contingency table

  • Original Paper
  • Published:
Computational Statistics Aims and scope Submit manuscript

Abstract

We present a Markov chain Monte Carlo (MCMC) method for generating Markov chains using Markov bases for conditional independence models for a four-way contingency table. We then describe a Markov basis characterized by Markov properties associated with a given conditional independence model and show how to use the Markov basis to generate random tables of a Markov chain. The estimates of exact p-values can be obtained from random tables generated by the MCMC method. Numerical experiments examine the performance of the proposed MCMC method in comparison with the χ 2 approximation using large sparse contingency tables.

This is a preview of subscription content, log in via an institution to check access.

Access this article

Price excludes VAT (USA)
Tax calculation will be finalised during checkout.

Instant access to the full article PDF.

Similar content being viewed by others

References

  • Agresti A (1992) A survey of exact inference for contingency tables. Stat Sci 7: 131–153

    Article  MATH  MathSciNet  Google Scholar 

  • Agresti A (1999) Exact inference for categorical data: recent advances and continuing controversies. Stat Med 20: 2709–2722

    Article  Google Scholar 

  • Booth JG, Butler RW (1999) An importance sampling algorithm for exact conditional test in log-linear models. Biometrika 86: 321–332

    Article  MATH  MathSciNet  Google Scholar 

  • Caffo BS (2006) Exact hypothesis tests for log-linear models with exactLoglinTest. J Stat Softw 17: 1–17

    Google Scholar 

  • Caffo BS, Booth JG (2001) A Markov chain Monte Carlo algorithm for approximating exact conditional probabilities. J Comput Graph Stat 10: 730–745

    Article  MathSciNet  Google Scholar 

  • Christensen R (1997) Log-linear models and logistic regression, 2nd edn. Springer, New York

    MATH  Google Scholar 

  • Dalenius P, Reiss RS (1982) Data-swapping: a technique for disclosure control. J Stat Plan Inference 6: 73–85

    Article  MATH  MathSciNet  Google Scholar 

  • Darroch JN, Lauritzen SL, Speed TP (1980) Markov-fields and log-linear models for contingency tables. Ann Stat 8: 522–539

    Article  MATH  MathSciNet  Google Scholar 

  • Dawid AP (1979) Conditional independence in statistical theory (with discussion). J R Stat Soc Ser B 41: 1–31

    MATH  MathSciNet  Google Scholar 

  • Diaconis P, Sturmfels B (1998) Algebraic algorithms for sampling from conditional distributions. Ann Stat 26: 363–397

    Article  MATH  MathSciNet  Google Scholar 

  • Dobra A (2003) Markov bases for decomposable graphical models. Bernoulli 9: 1093–1108

    Article  MATH  MathSciNet  Google Scholar 

  • Edwards D (1995) Introduction to graphical modelling. Springer, New York

    MATH  Google Scholar 

  • Forster JJ, McDonald JW, Smith PW (1996) Monte Carlo exact conditional tests for log-linear and logistic models. J R Stat Soc Ser B 58: 445–453

    MATH  MathSciNet  Google Scholar 

  • Geyer CJ (1992) Practical Markov Chain Monte Carlo. Stat Sci 7: 473–483

    Article  Google Scholar 

  • Goorin AM, Perez-Atayde A, Gebhardt M, Andersen JW, Wilkinson RH, Delorey MJ, Watts H, Link M, Jaffe N, Frei E III (1987) Weekly high-dose methotrexate and doxorubicin for osteosarcoma: the Dana-Farber Cancer Institute/the Children’s Hospital–study III. J Clin Oncol 5: 1178–1184

    Google Scholar 

  • Hastings WK (1970) Monte Carlo sampling methods using Markov chains and their applications. Biometrika 57: 97–109

    Article  MATH  Google Scholar 

  • Lauritzen SL (1996) Graphical models. Oxford University Press, New York

    Google Scholar 

  • Sundberg R (1975) Some results about decomposable (or Markov-type) models for multidimensional contingency tables: distribution of marginals and partitioning of tests. Scand J Stat 2: 71–79

    MATH  MathSciNet  Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Masahiro Kuroda.

Additional information

This research is supported by the Japan Society for the Promotion of Science (JSPS), Grant-in-Aid for Scientific Research (C), No 20500263.

Rights and permissions

Reprints and permissions

About this article

Cite this article

Kuroda, M., Hashiguchi, H. & Nakagawa, S. Computing p-values in conditional independence models for a contingency table. Comput Stat 25, 57–70 (2010). https://doi.org/10.1007/s00180-009-0161-0

Download citation

  • Received:

  • Accepted:

  • Published:

  • Issue Date:

  • DOI: https://doi.org/10.1007/s00180-009-0161-0

Keywords

Navigation