6.3 Grid Approximaiton
Discretized approximation of the posterior.
Method of producing samples:
Define a grid of possible values of the parameters \(\theta\),
Evaluate the numerator at each possible value
Obtain a discrete approximation of \(f(\theta|y)\) by normalizing the results
- i.e. divide by the sum!
Randomly sample the grid values using the probabilities determined in step 3.