Skip to content
← All questions

How is the reported confidence interval constructed from the importance-sampling estimates?

The confidence interval is constructed as a symmetric interval around the point estimate. The half-width is calculated by multiplying 1.96 by the sample standard deviation of the weighted estimator array, and then dividing by the square root of the number of proposal samples.

Conditions

  • Uses the sample standard deviation of the weighted estimates.
  • The interval is presented as a numerical summary based on a normal approximation.

Reasoning, step by step

  1. Compute the sample standard deviation of the weighted estimator array.
  2. Divide the standard deviation by the square root of the number of samples.
  3. Multiply the result by 1.96 to get the half-width.
  4. Add and subtract the half-width from the point estimate to get the bounds.

Example

The code computes `oHat = ests.std()` and `widthCI = 1.96 * oHat / np.sqrt(R)`, then prints bounds as `lHat-widthCI` and `lHat+widthCI`.

Common misconceptions

  • Assuming `widthCI` represents the full width of the interval rather than the half-width.
  • Believing the interval is asymmetric.

Watch the explanation

Explore next

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