html5-img
1 / 51

Educational Tools for Introductory Bayesian Statistics using Mathematica

Educational Tools for Introductory Bayesian Statistics using Mathematica. Shin-ichi Mayekawa Graduate School of Decision Science and Technology. Tokyo Institute of Technology. Purpose of this Research. Find a way to use Mathematica e fficiently in Bayesian Statistics.

kane-hebert
Download Presentation

Educational Tools for Introductory Bayesian Statistics using Mathematica

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. IMPS2006 Educational Toolsfor Introductory Bayesian Statistics using Mathematica Shin-ichi MayekawaGraduate School of Decision Science and Technology.Tokyo Institute of Technology

  2. IMPS2006 Purpose of this Research • Find a way to use Mathematicaefficiently in Bayesian Statistics. • Mathematica can do Symbolic Math.Especially, definite integration.

  3. IMPS2006 Outline What Mathematica can and cannot do. What mathStatica can and cannot do. What my Bayespack can do. Application of SuMOpack (2005)

  4. IMPS2006 What Mathematica Can Do • Knows(memorizes) PDF, CDF,mean, variance, skewness, kurtosisof many distributions. • Knows(memorizes) Characteristic Function ofunivariate distribution. • Can symbolically calculate/derive the expectation of a function of the random variable. • And More.

  5. IMPS2006 <<Statistics`

  6. IMPS2006

  7. IMPS2006 What Mathematica Cannot Do • Given an expression (full or kernel) and the name of the random variable, it cannot identify the distribution. • Cannot directly calculate marginal/conditional distributions. • Cannot handle fully symbolic multivariate distributions. • No Bayesian distributions.

  8. IMPS2006

  9. IMPS2006

  10. IMPS2006

  11. IMPS2006 What is mathStatica ? • mathStatica is a package created by:Colin Rose and Murray Smith(2002) Mathematical Statistics with MathematicaSpringer Texts in Statistics 2002with which we can study and practice mathematical statistics using Mathemtatica. • http://www.mathstatica.com/reviews/

  12. IMPS2006 What mathStatica Can Do • Given PDF, mathStatica can do manysymbolic derivations using the followingfunctions:Expect, Var, Corr, Cov, Prob, Transform, Jacob, Sufficient,Conditional, Marginal, and more.

  13. IMPS2006

  14. IMPS2006

  15. IMPS2006

  16. IMPS2006 What mathStatica Cannot Do • Given an expression (full or kernel) and the name of the random variable, it cannot identify the distribution. • Cannot handle fully symbolic multivariate distributions. • No Bayesian distributions. • No Bayesian statistics.

  17. IMPS2006 Bayespack: objectives • Provide several Bayesian distributuionssuch as Inverted xxxx distribution. • Given an expression (full or kernel) and the name of the random variable(RV), identify the distribution of RV. • Find the kernel of the distributionby pattern matching,and find the normalizing constant.

  18. IMPS2006 Bayespack: objectives • Should be able to handle fully symbolicmultivariate random variables. Use SuMOpack.

  19. IMPS2006 1) Fully Symbolic Matrix Operations 1. Simplification of Matrix Expressions 2. Simplification of Partitioned Matrix Expressions 3. Conversion of Matrix Expressions to Summation Expressions 4. Derivative of a Scalar Function of Matrices w.r.t. a Matrix SuMOpack for Mathematica (2005) 2) Fully Symbolic Summation Operations 1. Simplification of Summation Expressions 2. Conversion of Summation Expressions to Matrix Expressions 3. Derivative of a Summation Expression w.r.t. a Subscripted Variable

  20. IMPS2006 Bayespack: objectives • Should be able to do the standard Bayesian Analysis. • Identify the product of the Likelihood and the prior using the parametersas RV.

  21. IMPS2006 Bayesian Distributions • Chi and Chi-Squared distribution(with scale parametes) • Inverted Chi, Chi-Squared distributionInverted Gamma distribution • t distribution (with mean and scale parametes) • Multivariate t distributionmatric t distribution (with mean and scale parametes) • Inverted Wishart distribution

  22. IMPS2006

  23. IMPS2006

  24. IMPS2006

  25. IMPS2006

  26. IMPS2006

  27. IMPS2006 Identifying the Distribution

  28. IMPS2006

  29. IMPS2006 Bayesian Posterior Distributions • Method 1 Using the tools such as completeSquare,transform the joint distribution to the standard form and identify.

  30. IMPS2006 Completion of Square

  31. IMPS2006 Completion of Square

  32. IMPS2006 Completion of Square

  33. IMPS2006 Normal (natural conjugate)

  34. IMPS2006 Normal (natural conjugate)

  35. IMPS2006 Normal (natural conjugate)

  36. IMPS2006 Normal (natural conjugate)

  37. IMPS2006 Normal (natural conjugate)

  38. IMPS2006 Normal Regression (natural conjugate)

  39. IMPS2006 Normal Regression (natural conjugate)

  40. IMPS2006 Normal Regression (natural conjugate)

  41. IMPS2006 Normal Regression (natural conjugate)

  42. IMPS2006 Normal Regression (natural conjugate)

  43. IMPS2006 Bayesian Posterior Distributions • Method 2 Try to identify the distribution automatically if possible without transforming to the standard form.

  44. IMPS2006 Normal Regression (natural conjugate)

  45. IMPS2006 Normal Regression (natural conjugate)

  46. IMPS2006 Normal Regression (natural conjugate)

  47. IMPS2006 Normal Regression (natural conjugate)

  48. IMPS2006 Normal Regression (natural conjugate)

  49. IMPS2006 Normal Regression (natural conjugate)

  50. IMPS2006 Conclusions Bayespack can be used as an Educational Tool. It may be more suited for those whowish to write a textbook on Bayseian Statistics. Thank you.

More Related