# Simulation of 2-dimensional Brownian motion

I am trying to simulate (for the first time) a 2-dimensional SDE, in Matlab.

$$X(t)=F(t,X(t))\,dt + \sigma(t,X(t))\,dBt$$

I have no problem using the Euler-Maruyama method in the one dimensional case, but I am not sure if I am correct with the 2-dimensional Brownian motion $B=(B_1,B_2)$.

I need to simulate two sequences $dB_1$ and $dB_2$. Can I just simulate 2 sequences in Matlab $\sqrt{dt}*randn$? Will they be independent ?

I tried to search for tutorials on simulation of two independent Brownian motions. Can you help me with this? What is the easiest way of generating two independent sequences of normally distributed random numbers?

Thank you :) Bilka

-

The following code

>> X = cumsum(0.01 * randn(10000,2));
>> plot(X(:,1), X(:,2))
>> axis equal


generates this plot. Adjust parameters to taste.

-
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 1, "mathjax_display_tex": 1, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.9643504023551941, "perplexity": 403.1416348858007}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2014-10/segments/1393999675662/warc/CC-MAIN-20140305060755-00033-ip-10-183-142-35.ec2.internal.warc.gz"}