Skip to content

Commit

Permalink
misc
Browse files Browse the repository at this point in the history
  • Loading branch information
jrnold committed May 10, 2017
1 parent 6841d8c commit 256ad65
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions shrinkage.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -488,3 +488,25 @@ ggplot(all_coefpaths, aes(x = log2(tau), y = mean, colour = model)) +
geom_line() +
facet_wrap(~ parameter)
```

## Zellner's g-prior

An alternative prior is the Zellner's g-prior.
Consider the regression,
$$
y_i | \alpha, \vec{\beta}, \sigma \sim N(\alpha + \mat{X} \vec{\beta}, \sigma^2)
$$
The $g$-prior is a non-informative, data-dependent prior,
$$
\vec{\beta} \sim N(0, \sigma^2 g \mat{X}\T \mat{X})
$$
It depends on only a single parameter $g$.
The prior for $g$ must be proper. Some common choices include,
$$
\begin{aligned}
g &= n \\
g &= k^2 \\
g &= \max(n, k^2)
\end{aligned}
$$
or putting a hyperprior on $g$.

0 comments on commit 256ad65

Please sign in to comment.