Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. data = RandomFunction[WienerProcess[0, 1], {0, 1, 0.01}, 1000];
  2. data // Normal // #[[All, 2]] & /@ # & // Set[sample, #] &;
  3.  
  4. Table[Transpose@{sample[[All, i]], sample[[All, i + 1]]}, {i, 1,
  5. 99}] // Flatten[#, 1] & // KernelMixtureDistribution //
  6. Set[pxy, #] &;
  7. px = MarginalDistribution[pxy, 1];
  8. pcxy = PDF[pxy, {0, y}]/PDF[px, 0];
  9.  
  10. ProbabilityDistribution[pcxy, {y, -Infinity, Infinity}]
  11. RandomVariate[%, 3] // AbsoluteTiming
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement