Skip to content
← All questions

How are the Normal importance-sampling proposal parameters chosen from the retained g∗g^* samples?

The parameters of the Normal proposal distribution are chosen using maximum likelihood estimation. The mean μ\mu is set to the sample mean of the retained g∗g^* samples, and the standard deviation σ\sigma is set to the square root of the sample second central moment of those samples.

Conditions

  • The proposal family is restricted to Normal distributions.
  • The data used for fitting are the retained samples satisfying X>γX>\gamma.

Reasoning, step by step

  1. Compute the sample mean of the retained g∗g^* samples to estimate μ\mu.
  2. Compute the sample root second central moment of the retained samples to estimate σ\sigma.

Example

The code computes `mu = np.mean(Xs)` and `sigma = np.sqrt(np.mean((Xs-mu)**2))`, and the narrator describes this as finding maximum likelihood estimates for μ\mu and σ\sigma given the samples.

Common misconceptions

  • Assuming the parameters are chosen randomly.
  • Thinking the standard deviation is calculated using an unbiased sample variance (dividing by n−1n-1) rather than the sample second central moment (dividing by nn).

Watch the explanation

Explore next

Answers are generated from source material and independently checked. Consult the original video or creator if something is unclear.