Calculate the integral

Assignment Help Advanced Statistics
Reference no: EM131968014

Exercises

Monte Carlo methods.

1. The density f (x, y) of bi-dimensional vector (X, Y ) is inversely proportional to the 1 + x2 + x2y2 + y2 on the square x, y ∈ [-2, 2], i.e.

f (x, y) = (c/(1 + x2 + x2y2 + y2)) , x, y ∈ [-2, 2].

1. Construct the algorithm for simulation of the vector (X, Y ). Plot the function f (x, y). Simulate 10000 points of (X, Y ) and construct the corresponding histogram. Compare the density profile with the histogram.

2. Using Monte Carlo method calculate the probability P(|X - Y| ≤ 0.5). Check empirically the convergence for the true value.

3. Using Monte Carlo method calculate the integral

I = 02dx -21 dy.(xy/(1 + x2 + x2y2 + y2))

Check empirically the convergence.

2. Consider the problem of comparing means of two populations: let (x1, . . . , xn) i.i.d samples from X ∼ U [-1, 1] distribution and suppose (y1, . . . , yn) are i.i.d. samples from Y ∼ U [-1 + θ, 1 + θ], where θ is positive. Let n = 10.

1. In order to test the hypothesis H0 : µx = µy versus H1 : µx ≠ µy use the t-Student statistics (variances are equals):

t = (x¯ - y¯)/(σP√(2/n)), with σP = √(σˆ2x(n - 1) + σˆ2y(n - 1))/(2n -2)   

where

σˆ2x = 1/(n-1)Σi=1n(xi - x¯)2, σˆ2y = 1/(n-1)Σi=1n(yi - y¯)2,

Using simulation experiment construct the curve the power of the test based on the points of θ: t=seq(0,1,by=0.05), considering the α = 0.05:

(a) for any θi ∈ t simulate N times samples (x1, . . . , x10)j, (y1, . . . , y10)j, j = 1, . . . , N . For example choose N = 1000;

(b) for any (x1, . . . , x10)j, (y1, . . . , y10)j calculate tj statistics (1) and compare it with t1-α/2,2n-2 quantile of t-Student distribution with 2n - 2 degree of freedom;

(c) accept the estimation of error of type II as Mi/N , where Mi is the number of how many time we accept the H0, when H0 is wrong (because θi > 0) i.e. how many |tj| ≤ t1-α/2,2n-2; thus, the power will be 1 - Mi/N.

2. Suggest and describe the bootstrap test hypothesis for the same problem and the same α = 0.05 (use the same statistics (1)). Using simulation experiment construct the curve of the power of the test based on the points of θ: t=seq(0,1,by=0.05), considering the α = 0.05:

(a) for any θi ∈ t simulate N times samples (x1, . . . , x10)j, (y1, . . . , y10)j, j = 1, . . . , N . For example choose N = 1000;

(b) for any (x1, . . . , x10)j, (y1, . . . , y10)j calculate tj statistics (1) and then using the bootstrapping calculate pb-value: see slides how to estimate pb-value; here wee need to run the bootstrap; choose B as 1000, for example; remember, we accept H0 is pb-value is greater then α and reject H0 otherwise;

(c) accept the estimation of error of type II as Mi/N , where Mi is the number of how many time we accept the H0, when H0 is wrong (because θi > 0) i.e. how many |tj| ≤ t1-α/2,2n-2; thus, the power will be 1 - Mi/N.

Plot both power curves and compare.

3. Choose the instrumental function g(x) = e-x and evaluate the integral by importance sampling:

I = 0 1/(1 + ex) dx.

1. Find the value of integral I.

2. Plot the convergence of importance sampling estimator Iˆn to the true value.

3. Is the variance of Iˆn finite?

Reference no: EM131968014

Questions Cloud

Economic principles for determining profit-maximizing : Should the economic principles for determining profit-maximizing input levels be applied before or after completing an enterprise budget? Why?
What is equimarginal rule for utility maximization : What is Equimarginal Rule for utility maximization? Can this rule be written in the form of a mathematical formula?
Describe the process that you use to determine : Do you believe that the way consumers currently make purchase decisions has changed with the increased prevalence of Social Media? Please explain
Refusal of global consumers : One of the main reasons why developing countries didn't succeed in creating cartel is due to the refusal of global consumers to buy products
Calculate the integral : Simulation experiment construct the curve the power of the test based - Plot the convergence of importance sampling estimator
How well do you understand the course concepts you employ : How well do you understand the course concepts you employ? To what extent are you able to bring meaningful insights to understanding the topic you have chosen?
Write a swot analysis on a publically traded company : A SWOT analysis is a structured planning method used to evaluate the Strengths, Weaknesses, Opportunities, and Threats confronting a business.
Create an email message in which you listen to voice mail : You will need to listen to a voice mail from your supervisor with instructions on how to create the email to announce the new vacation policy.
Write a paper about all intern should be paid for their work : Write a paper about All intern should be paid for their work. You have to persuade the audience on a policy to be applied to insure interns are paid.

Reviews

Write a Review

Advanced Statistics Questions & Answers

  Relationship between speed, flow and geometry

Write a project proposal on relationship between speed, flow and geometry on single carriageway roads.

  Logistic regression model

Compute the log-odds ratio for each group in Logistic regression model.

  Logistic regression

Foundations of Logistic Regression

  Probability and statistics

The tubes produced by a machine are defective. If six tubes are inspected at random , determine the probability that.

  Solve the linear model

o This is a linear model. If your model needs a different engine, then you need to rethink your approach to the model. Remember, there are no IF, Max, or MIN statements in linear models.

  Plan the analysis

Plan the analysis

  Quantitative analysis

State the hypotheses that you are going to test.

  Modelise as a markov chain

modelise as a markov chain

  Correlation and regression

What are the degrees of freedom for regression

  Construct a frequency distribution for payment method

Construct a frequency distribution for Payment method

  Perform simple linear regression

Perform simple linear regression

  Quality control analysis

Determining the root causes

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