Excel macro for applying Bayes' rule

베이즈 법칙의 활용을 위한 엑셀 매크로

  • Kim, Jae-Hyun (Department of Computer Engineering, Seokyeong University) ;
  • Baek, Hoh-Yoo (Division of Mathematics and Informational Statistics, Wonkwang University)
  • 김재현 (서경대학교 컴퓨터공학과) ;
  • 백호유 (원광대학교 수학정보통계학부)
  • Received : 2011.10.31
  • Accepted : 2011.11.25
  • Published : 2011.12.01

Abstract

The prior distribution is the probability distribution we have before observing data. Using Bayes' rule, we can compute the posterior distribution, the new probability distribution, after observing data. Computing the posterior distribution is much easier than before by using Excel VBA macro. In addition, we can conveniently compute the successive updating posterior distributions after observing the independent and sequential outcomes. In this paper we compose some Excel VBA macros for applying Bayes' rule and give some examples.

베이즈 법칙에서는 사전확률과 우도가 주어지고 어떤 실험결과가 일어났을 때 사후확률을 계산한다. 이러한 사후확률의 계산 문제를 엑셀 매크로를 이용하여 쉽게 계산할 수 있다. 또한 일련의 독립적이고 연속적인 실험결과에 따르는 사후확률도 편리하게 계산할 수 있다. 특히, 엑셀 매크로를 작성하면 작업창에서 반복된 계산의 입력과 출력이 쉽게 이루어진다. 본 논문에서는 베이즈 법칙의 활용을 위해서 엑셀 매크로를 작성하고 그것의 사용 예를 들었다.

Keywords

References

  1. 강기훈, 박흥선, 신기일, 신민웅, 정석오, 최대우 (2005). <베이지안 통계학>, 자유아카데미, 서울.
  2. 김병휘, 백호유, 박태룡, 오현숙, 장인홍 (2001). <베이지안 통계계산>, 자유아카데미, 서울.
  3. 백호유, 이정미 (2005). 베이즈 법칙을 활용한 미니탭 매크로. <한국통계학회 추계학술발표회 논문집>, 133-139.
  4. 이주미, 임요한, 한규섭, 이경은 (2009). 삼각분할표 자료에서 베이지안 모형을 이용한 예측. <한국데이터정보과학회지>, 20 , 411-423.
  5. 정기문 (2010). 비재생혼합보증이 종료된 이후의 비용과 비가동시간에 근거한 교체정책에 대한 베이지안 접근. <한국데이터정보과학회지>, 21, 873-882.
  6. 주용성, 정형주, 김병준 (2009). 한국 기상자료의 군집분석: 베이지안 모델기반 방법의 응용. <한국데이터정보과학회지>, 20, 57-64.
  7. Albert, J. H. (1996). Bayesian computation using minitab, Duxbury Press, Belmont, CA.
  8. Antelman, G. (1996). Elementary Bayesian statistics, Edward Elgar Publishing, Cheltenham.
  9. Berry, D. A. (1996). Statistics : A Bayesian perspective, Duxbury Press, Belmont, CA.
  10. Lee, P. M. (1997). Bayesian statistics : An introduction, 2nd edition, John Wiley & Sons Inc., New York.
  11. MINITAB Inc. (2003). MINITAB user's guide release 14 for Windows.