Educational Tools for Introductory Bayesian Statistics using Mathematica PowerPoint PPT Presentation

presentation player overlay
1 / 51
About This Presentation
Transcript and Presenter's Notes

Title: Educational Tools for Introductory Bayesian Statistics using Mathematica


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

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

3
Outline
  • What Mathematica can and cannot do.
  • What mathStatica can and cannot do.
  • What my Bayespack can do.

Application of SuMOpack (2005)
4
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
ltltStatistics
6
(No Transcript)
7
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
(No Transcript)
9
(No Transcript)
10
(No Transcript)
11
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
What mathStatica Can Do
  • Given PDF, mathStatica can do manysymbolic
    derivations using the followingfunctionsExpect
    , Var, Corr, Cov, Prob, Transform, Jacob,
    Sufficient,Conditional, Marginal, and more.

13
(No Transcript)
14
(No Transcript)
15
(No Transcript)
16
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
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
Bayespack objectives
  • Should be able to handle fully symbolicmultivaria
    te random variables.

Use SuMOpack.
19
SuMOpack for Mathematica (2005)
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
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
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
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
(No Transcript)
23
(No Transcript)
24
(No Transcript)
25
(No Transcript)
26
(No Transcript)
27
Identifying the Distribution
28
(No Transcript)
29
Bayesian Posterior Distributions
  • Method 1 Using the tools such as
    completeSquare,transform the joint distribution
    to the standard form and identify.

30
Completion of Square
31
Completion of Square
32
Completion of Square
33
Normal (natural conjugate)
34
Normal (natural conjugate)
35
Normal (natural conjugate)
36
Normal (natural conjugate)
37
Normal (natural conjugate)
38
Normal Regression (natural conjugate)
39
Normal Regression (natural conjugate)
40
Normal Regression (natural conjugate)
41
Normal Regression (natural conjugate)
42
Normal Regression (natural conjugate)
43
Bayesian Posterior Distributions
  • Method 2 Try to identify the distribution
    automatically if possible without transforming to
    the standard form.

44
Normal Regression (natural conjugate)
45
Normal Regression (natural conjugate)
46
Normal Regression (natural conjugate)
47
Normal Regression (natural conjugate)
48
Normal Regression (natural conjugate)
49
Normal Regression (natural conjugate)
50
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.
51
Where to Download
  • http//www.ms.hum.titech.ac.jp/sumopack/sumopack.
    zip
  • http//www.ms.hum.titech.ac.jp/sumopack/Bayespack
    .zip (by the end of June)
  • mayekawa_at_hum.titech.ac.jp
Write a Comment
User Comments (0)
About PowerShow.com