Introduction to Bayesian Analysis Procedures

Standard Prior Distributions

Table 1 through Table 10 show the density functions for all the distributions that you can use as priors in SAS Econometrics procedures. Some procedures support only a subset of these distributions. You can typically specify these distributions as priors for model parameters in a PRIOR statement.

Table 1: Beta Distribution

Density f left-parenthesis theta vertical-bar a comma b right-parenthesis equals StartFraction theta Superscript a minus 1 Baseline left-parenthesis 1 minus theta right-parenthesis Superscript b minus 1 Baseline Over upper B left-parenthesis a comma b right-parenthesis EndFraction
Parameter restriction a greater-than 0, b greater-than 0
Range StartLayout Enlarged left-brace 1st Row 1st Column theta element-of left-bracket 0 comma 1 right-bracket 2nd Column when a equals 1 comma b equals 1 2nd Row 1st Column theta element-of left-bracket 0 comma 1 right-parenthesis 2nd Column when a equals 1 comma b not-equals 1 3rd Row 1st Column theta element-of left-parenthesis 0 comma 1 right-bracket 2nd Column when a not-equals 1 comma b equals 1 4th Row 1st Column theta element-of left-parenthesis 0 comma 1 right-parenthesis 2nd Column otherwise EndLayout
Mean StartFraction a Over a plus b EndFraction
Variance StartFraction a b Over left-parenthesis a plus b right-parenthesis squared left-parenthesis a plus b plus 1 right-parenthesis EndFraction
Mode StartLayout Enlarged left-brace 1st Row 1st Column StartFraction a minus 1 Over a plus b minus 2 EndFraction 2nd Column a greater-than 1 comma b greater-than 1 2nd Row 1st Column 0 and 1 2nd Column a less-than 1 comma b less-than 1 3rd Row 1st Column 0 2nd Column StartLayout Enlarged left-brace 1st Row  a less-than 1 comma b greater-than-or-equal-to 1 2nd Row  a equals 1 comma b greater-than 1 EndLayout 4th Row 1st Column 1 2nd Column StartLayout Enlarged left-brace 1st Row  a greater-than-or-equal-to 1 comma b less-than 1 2nd Row  a greater-than 1 comma b equals 1 EndLayout 5th Row 1st Column not unique 2nd Column a equals b equals 1 EndLayout


Table 2: Cauchy Distribution

Density f left-parenthesis theta vertical-bar mu comma gamma right-parenthesis equals StartFraction 1 Over pi gamma left-bracket 1 plus left-parenthesis StartFraction theta minus mu Over gamma EndFraction right-parenthesis squared right-bracket EndFraction
Parameter restriction gamma greater-than 0
Range theta element-of left-parenthesis negative normal infinity comma normal infinity right-parenthesis
Mean Not defined
Variance Not defined
Mode mu


Table 3: Gamma Distribution

Density f left-parenthesis theta vertical-bar a comma b right-parenthesis equals StartFraction 1 Over b Superscript a Baseline normal upper Gamma left-parenthesis a right-parenthesis EndFraction theta Superscript a minus 1 Baseline e Superscript negative theta slash b
Parameter restriction a greater-than 0 comma b greater-than 0
Range theta element-of left-bracket 0 comma normal infinity right-parenthesis
Mean a b
Variance a b squared
Mode left-parenthesis a minus 1 right-parenthesis b


Table 4: Inverse Gamma Distribution

Density f left-parenthesis theta vertical-bar a comma b right-parenthesis equals StartFraction b Superscript a Baseline Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction theta Superscript minus left-parenthesis a plus 1 right-parenthesis Baseline e Superscript negative b slash theta
Parameter restriction a greater-than 0 comma b greater-than 0
Range theta element-of left-bracket 0 comma normal infinity right-parenthesis
Mean StartFraction b Over a minus 1 EndFraction comma a greater-than 1
Variance StartFraction b squared Over left-parenthesis a minus 1 right-parenthesis squared left-parenthesis a minus 2 right-parenthesis EndFraction comma a greater-than 2
Mode StartFraction b Over a plus 1 EndFraction


Table 5: Lognormal Distribution

Density f left-parenthesis theta vertical-bar mu comma sigma right-parenthesis equals StartFraction 1 Over theta sigma StartRoot 2 pi EndRoot EndFraction exp left-parenthesis minus StartFraction left-parenthesis log theta minus mu right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis
Parameter restriction sigma greater-than 0
Range theta element-of left-parenthesis 0 comma normal infinity right-parenthesis
Mean exp left-parenthesis mu plus sigma squared slash 2 right-parenthesis
Variance exp left-parenthesis 2 mu plus 2 sigma squared right-parenthesis minus exp left-parenthesis 2 mu plus sigma squared right-parenthesis
Mode exp left-parenthesis mu minus sigma squared right-parenthesis


Table 6: Normal Distribution

Density f left-parenthesis theta vertical-bar mu comma sigma right-parenthesis equals StartFraction 1 Over sigma StartRoot 2 pi EndRoot EndFraction exp left-parenthesis minus StartFraction left-parenthesis theta minus mu right-parenthesis squared Over 2 sigma squared EndFraction right-parenthesis
Parameter restriction sigma greater-than 0
Range theta element-of left-parenthesis negative normal infinity comma normal infinity right-parenthesis
Mean mu
Variance sigma squared
Mode mu


Table 7: Square Root Gamma Distribution

Density f left-parenthesis theta vertical-bar a comma b right-parenthesis equals StartFraction 2 Over b Superscript a Baseline normal upper Gamma left-parenthesis a right-parenthesis EndFraction theta Superscript 2 a minus 1 Baseline e Superscript minus theta squared slash b
Parameter restriction a greater-than 0 comma b greater-than 0
Range theta element-of left-bracket 0 comma normal infinity right-parenthesis
Mean StartFraction normal upper Gamma left-parenthesis a plus one-half right-parenthesis Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction StartRoot b EndRoot
Variance StartSet a minus left-bracket StartFraction normal upper Gamma left-parenthesis a plus one-half right-parenthesis Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction right-bracket squared EndSet b
Mode StartRoot left-parenthesis a minus one-half right-parenthesis b EndRoot comma a greater-than-or-equal-to one-half
This is also known as the Nakagami distribution. For more information, see Stacy (1962).


Table 8: Square Root Inverse Gamma Distribution

Density f left-parenthesis theta vertical-bar a comma b right-parenthesis equals StartFraction 2 b Superscript a Baseline Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction theta Superscript minus left-parenthesis 2 a plus 1 right-parenthesis Baseline e Superscript negative b slash theta squared
Parameter restriction a greater-than 0 comma b greater-than 0
Range theta element-of left-bracket 0 comma normal infinity right-parenthesis
Mean StartFraction normal upper Gamma left-parenthesis a minus one-half right-parenthesis Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction StartRoot b EndRoot comma a greater-than one-half
Variance StartSet StartFraction 1 Over a minus 1 EndFraction minus left-bracket StartFraction normal upper Gamma left-parenthesis a minus one-half right-parenthesis Over normal upper Gamma left-parenthesis a right-parenthesis EndFraction right-bracket squared EndSet b comma a greater-than 1
Mode StartRoot StartFraction b Over a plus one-half EndFraction EndRoot
This is also known as the inverse Nakagami distribution. For more information, see Stacy (1962).


Table 9: t Distribution

Density f left-parenthesis theta vertical-bar mu comma sigma comma nu right-parenthesis equals StartStartFraction normal upper Gamma left-parenthesis StartFraction nu plus 1 Over 2 EndFraction right-parenthesis OverOver normal upper Gamma left-parenthesis StartFraction nu Over 2 EndFraction right-parenthesis StartRoot pi nu EndRoot sigma EndEndFraction left-bracket 1 plus StartFraction 1 Over nu EndFraction StartFraction left-parenthesis theta minus mu right-parenthesis squared Over sigma squared EndFraction right-bracket Superscript minus StartFraction nu plus 1 Over 2 EndFraction
Parameter restriction sigma greater-than 0, nu greater-than 0
Range theta element-of left-parenthesis negative normal infinity comma normal infinity right-parenthesis
Mean mu comma for nu greater-than 1
Variance StartFraction nu Over nu minus 2 EndFraction sigma squared comma for nu greater-than 2
Mode mu


Table 10: Uniform Distribution

Density f left-parenthesis theta vertical-bar m comma upper M right-parenthesis equals StartFraction 1 Over upper M minus m EndFraction
Parameter restriction negative normal infinity less-than m less-than upper M less-than normal infinity
Range theta element-of left-bracket m comma upper M right-bracket
Mean StartFraction m plus upper M Over 2 EndFraction
Variance StartFraction left-parenthesis upper M minus m right-parenthesis squared Over 12 EndFraction
Mode Not unique
Some procedures allow for improper uniform priors, where m equals negative normal infinity or upper M equals normal infinity. For more information, see the section Improper Priors.


Last updated: July 09, 2026