Question: Prob 1. An unnormalized distribution P (x) is given as P() exp-122 23) +2exp(-, -8338, and pr (z) = 0 outside this range. We will

Prob 1. An unnormalized distribution P" (x) is given as P() exp-122 23) +2exp(-, -8338, and pr (z) = 0 outside this range. We will use discretization to generate random samples. (a) Discretize the range into 10 values, generate 50000 samples to estimate Ellog(12X] b) Discretize the range into 100 values, generate 50000 samples to estimate Elog(12 X] (c) Discretize the range into 1000 values, generate 50000 samples to estimate E log(12+X Include your source code and the estimated values in your submision. Prob 1. An unnormalized distribution P" (x) is given as P() exp-122 23) +2exp(-, -8338, and pr (z) = 0 outside this range. We will use discretization to generate random samples. (a) Discretize the range into 10 values, generate 50000 samples to estimate Ellog(12X] b) Discretize the range into 100 values, generate 50000 samples to estimate Elog(12 X] (c) Discretize the range into 1000 values, generate 50000 samples to estimate E log(12+X Include your source code and the estimated values in your submision
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
