Write program to simulate process

Assignment Help Applied Statistics
Reference no: EM131192419

Problem - 1:

Computational Problem - Consider the process x(t), driven in discrete time by

Δx(t) = x(t + Δt) - x(t) = μ(x,t)Δt + σ(x,t)Δz(t)

where z(t) is a Wiener process. This is equation (4.49) before passing to the limit. Here 0 ≤ t ≤ T and Δt =T/n where n is user specified.

Write a program to simulate this process on [0, T]. The program structure should allow the user to specify T, n, the functions μ(x, t) and σ(x, t). As well the number of simulations M should be an input variable.

(a) Take x(0) = 1, μ(x, t) = 0, σ(x, t) = 1 and T = 1 so that x(t) is a pure Wiener process on [0,1]. Initially take n = 100 and simulate M = 1,000 paths.

(i) Use the output to compare graphically the distribution of x(t) at t = 0.5 and t = 1.

(ii) Experiment with n and M to try to obtain better approximations to the known distributions.

(iii) Constructing a table to compare these with the known theoretical distributions for x(t) and comment on the effect of n and M.

(b) Take x(0) = I, μ(x,t) = μx, σ(x, t) = σx and T = 2 so that x(t) is the geometric Brownian motion for the stock price.

(i) Use μ = 0.15 and a = 0.20 and take n = 100 and simulate M= 1.000 paths to obtain better approximations.

(ii) Use the output to graph the distributions of x(t) and ln(x(t)/x(0)) at t = 2.

(iii) Constructing a table to compare these with the known true distributions for x(T) and In(x(T)/x(0)). As in the previous question play with the values of n and M and comment on the effect of n and M.

(c) Repeat the exercise by taking x(0) = 0.06,

μ(x,t) = k(x- -x)

with k = 0.5, x- = 0.065 and σ (x,t) = σ with σ = 0.02, n = 100 and M= 1,000.

Calculate and graph the distribution of x at T = 6 months and T = 12 months, and compare these with the theoretical distributions. Comment on the effect of n and M.

Problem.

Computational Problem - Consider the stochastic integral

Y(t) =  0te-k(t-s)dz(s),

where z(s) is a Wiener process.

(i) Write a program that will approximate Y(t) by

Yn(t) = i=0Σn-Ie-k(nr-at)Δzt

where Δt = t/n and Δzt = z((i + 1)Δt) - z(iΔt). The values of k, t, n and the number Mof simulated paths should be user defined inputs. Initially take k = 0.5, t= 1, n= 100 and M= 1,000.

(ii) Compare the simulated distribution of Yn (1) with the true distribution of Y(1) [see Section 5.2 if you have forgotten how to calculate this]. Experiment with the values of n and M.

Problem.

Computational Problem - Use the solutions (6.16) and (6.17) to simulate the stock price process x(t) and the return process In(x(0140)) in the interval (0, T) and in particular obtain the simulated distribution for these quantities. Use the same values for x(0), p, a and T as used in Problem 4.6(b).

Since now it is possible to draw the (z(T) - z(0)) directly from a normal distribu¬tion, discretisation error is avoided. Gauge the impact of the discretisation error by comparing the distributions obtained here with the ones obtained in Problem 4.6(b) and the true distribution.

(P6) Change of Measure-Let x follow a (μ, σ) process

dx = μdt + σdz,

where μ and σ are constant.

(a). Write done the process for x(t) and the probability density function p(x, t|xo, 0);

(b). For a constant λ, define ξ(t) as in equation (8.38) in the note and work out ξ(t)p(x,t|x0,0);

(c). Using (a) and (b) to show that p-(x, t|x0,0) = ξ(t)p(x, t|x0,0) is the probability density function of a process with mean of μ - λσ and variance of σ2 process.

Reference no: EM131192419

Questions Cloud

Regulatory changes in its management of market risk : A large all equity pension fund company with AUM of $500 Billion that closely following S&P 500 index is facing a possibility of new regulatory changes in its management of market risk.
Create efficiency within the production process : Company's expand to create efficiency within the production process. An efficient productions process relates to increased sales and growth. Other variables other than depreciation could alter the company's cash flow. What other variables can you ide..
Like to make single investment : Sarah Wiggum would like to make a single investment and have ?$1.6 million at the time of her retirement in 28 years. She has found a mutual fund that will earn 5 percent annually. How much will Sarah have to invest? today? If Sarah earned an annual ..
What is weighted average cost of capital : A company has 30 million shares outstanding trading for $8 per share. It also has $90 million in outstanding debt. If its equity cost of capital is 15%, and its debt cost of capital is 9%, and its effective corporate tax rate is 40%, what is its weig..
Write program to simulate process : Calculate and graph the distribution of x at T = 6 months and T = 12 months, and compare these with the theoretical distributions. Comment on the effect of n and M.
What are the reasons for the research : What are the reasons for the research? Do you agree/disagree with the author's hypotheses? Any assumptions within the article? Conclusions?
The world bank green bond process implementation : The World Bank Green Bond Process Implementation Guidelines - The green bond program of the World Bank (International Bank for Reconstruction and Development, rated Aaa/AAA) supports the transition to low-carbon and climate resilient development an..
Will healthy people find working for large firms : Will healthy people find working for large firms more, less, or equally attractive than before this testing program began? How about unhealthy people? Explain.
Formulate searchable clinical questions in the picot format : Formulate searchable, clinical questions in the PICO(T) format using the material in this case study. There are several potential questions that could be asked, but you only need to identify two.

Reviews

Write a Review

Applied Statistics Questions & Answers

  Hypothesis testing

What assumptions about the number of pedestrians passing the location in an hour are necessary for your hypothesis test to be valid?

  Calculate the maximum reduction in the standard deviation

Calculate the maximum reduction in the standard deviation

  Calculate the expected value, variance, and standard deviati

Calculate the expected value, variance, and standard deviation of the total income

  Determine the impact of social media use on student learning

Research paper examines determine the impact of social media use on student learning.

  Unemployment survey

Find a statistics study on Unemployment and explain the five-step process of the study.

  Statistical studies

Locate the original poll, summarize the poling procedure (background on how information was gathered), the sample surveyed.

  Evaluate the expected value of the total number of sales

Evaluate the expected value of the total number of sales

  Statistic project

Identify sample, population, sampling frame (if applicable), and response rate (if applicable). Describe sampling technique (if applicable) or experimental design

  Simple data analysis and comparison

Write a report on simple data analysis and comparison.

  Analyze the processed data in statistical survey

Analyze the processed data in Statistical survey.

  What is the probability

Find the probability of given case.

  Frequency distribution

Accepting Manipulation or Manipulating

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd