knitr::opts_chunk$set( collapse = TRUE, comment = "##", eval = TRUE, cache = TRUE ) quick_eval <- FALSE options(scipen = 6) set.seed(318937291)
library(extraDistr) library(lemur.pack) library(MASS) library(mvtnorm) library(latex2exp) library(microbenchmark) library(tidyverse) library(gridExtra) library(cowplot)
We are working with various finite populations which take on different values, ranging from simple discrete-valued categorical variables, to continuous-valued variables. We focus on three scenarios:
(1) Categorical -- $Y_i \in {a, b, c, \dots}$ (2) Discrete Numeric -- $Y_i \in {1, 2, 3, \dots}$ (3) Binned Numeric -- $Y_i \in {(-\infty, a], (a, b], \dots}$ (4) Continuous Numeric -- $Y_i \in \mathbb{R}$
We employ Markov chain Monte Carlo (MCMC) methods to sample from the posterior of our populations, and focus largely on jittering populations via symmetric proposals. Our posterior is constructed the canonical way, via
[ \pi(y|x) \propto \ell(x|y) p(y) ]
The two major components, our prior distribution $p(y)$, and likelihood function $\ell(x|y)$.
Because we are working with finite populations, $\ell(x|y)$ often cannot take on the form of sampling distribution. To illustrate, imagine a population...
[insert example here]
[still need to talk about priors... but we have the discrete case]
???
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.