Answered step by step
Verified Expert Solution
Question
1 Approved Answer
9.2. Sampling bias a la Cameron-Martin. We consider a Brownian motion with drift 0 = 1: Be = Bett . (a) Generate a sample S
9.2. Sampling bias a la Cameron-Martin. We consider a Brownian motion with drift 0 = 1: Be = Bett . (a) Generate a sample S of 100,000 paths for (By,t E [0, 1]) using a 0.01 dis- cretization. (b) Using the function numpy . random . choice, sample 1,000 paths in S not uni- formly but proportionally to their weight: M(B) = e-Bi+1/2 Again you will need to normalize the weights M(B) so that the sum over the 100,000 paths is 1. Let's call this new sample S. (c) Draw the histogram of B1/2 on the sample S. It should look like a Gaussian PDF with mean 0 and variance 1/2
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started