Calculate the average of the conditional expectations

Assignment Help Econometrics
Reference no: EM133022933

ECMT2160 Computational Assignment

This assessment task requires you to use MATLAB to run some Monte Carlo simulations. You should prepare your submission as a MATLAB Live Script file (i.e., a .mlx file). Submit your answers through the Canvas course website. Your submission should include a mixture of written responses formatted as text, blocks of MATLAB code, and MATLAB output, including graphs. You should submit two versions of your answers: the original .mlx file, and a version ex- ported to .html.

Question 1

Before attempting Question 1, you should work through Sections 3.8 and 3.9 in the file IntroProb.mlx. Begin your submitted solution to Question 1 by running the command rng(STUDENTID) in MATLAB, where STUDENTID is your 9-digit Student ID number. This fixes the sequence of random numbers to be generated in your simulation.

Suppose we roll two fair six sided dice. Let X1 denote the sum of the numbers rolled, and let X2 denote the maximum of the numbers rolled.

(a)(i)Create an 11 6 matrix containing the values taken by the joint prob- ability mass function of X1 and X2. The entry in row i, column j of this matrix should contain the probability P(X1 = i, X2 = j ).
(ii)Create a three-dimensional bar graph displaying the joint probability mass function of X1 and X2.
(b)(i)Create a 1 6 vector containing the values taken by the marginal prob- ability mass function of X2. The entry in column j of this vector should contain the probability P(X2 = j ).
(ii)Create a two-dimensional bar graph displaying the marginal probability mass function of X2.
(c)(i)Create an 11 6 matrix containing the values taken by the conditional probability mass function of X1 given X2. The entry in row i, column j of this matrix should contain the conditional probability P(X1 = i |X2 = j ).
(ii)Create six two-dimensional bar graphs, each displaying the conditional probability mass function of X1 given X2 = j , with j taking the values 1 through 6 in your six graphs.

(d) In each of 10,000 iterations of a "for loop", do the following.
(i) Generate a discrete random variable whose probability mass function is the marginal probability mass function of X2 calculated in part (b). Hint: the MATLAB command randi(6,2,1) returns a 2 1 random vector whose entries are independent random variables each equal to the numbers 1 through 6 with equal probabilities.
(ii) Calculate the conditional expectation E X1 X2 = j , where j is the random number generated in part (i).
Calculate the average of the conditional expectations computed over all 10,000 iterations of the "for loop".
(e) Discuss how your findings in part (d) relate to the Law of Iterated Expecta- tions.

Question 2

Let Z be a random variable with the standard normal distribution, and let g x be the probability density function of the standard normal distribution. Let c u1, u2 be the function

c (u1, u2) = 4(u1u2)-4 (u1-3 + u2-3 - 1)-7/3 if 0 < u1 < 1 and 0 < u2 < 1
                          0                                                         otherwise.

Suppose that X1 and X2 are a pair of continuous random variables whose joint probability density function is given by

f (x1, x2) = c (P(Z ≤ x1), P(Z ≤ x2))g(x1)g(x2)

for all real x1 and x2.

(a) Create a graph of the joint probability density function of X1 and X2 for values of x1 and x2 between -3 and 3.
(b) Create a graph of the marginal probability density function of X1 for values of x1 between 3 and 3. Graph it alongside the standard normal probability density function.
(c) Repeat part (b) for X2 instead of X1.
(d) Based on your answers above, do you think that the joint distribution of X1 and X2 is multivariate normal? Why or why not?

Attachment:- Computational Assignment.rar

Reference no: EM133022933

Questions Cloud

What percentage the terminal value contributes : Required - What percentage the terminal value contributes to the total enterprise value? How sensitive is your valuation to inputs
Determine the dollar value of the annual bond premium : Baltimore uses the straight-line method for amortization. Use this information to determine the dollar value of the annual bond premium amortization
What weight should it use for debt : If the company has a $78.6 million market value of equity, what weight should it use for debt when calculating the cost of capital
What is the present value : What is the present value of $300 received at the beginning of each year for five years? Assume that the first payment is not received until the beginning
Calculate the average of the conditional expectations : Calculate the average of the conditional expectations computed over all 10,000 iterations of the "for loop".
Determine the value that will be paid for interest : Determine the value that will be paid for interest in month 12. Installment value of the debt using the fixed installment method
Discuss the investment attributes : Discuss the investment attributes for each of three NCREIF real estate portfolio style definitions. For what type of investors would each style be appropriate
Prepare journal entries : The present value of an ordinary annuity of 1 at 12% is 5.33 for nine periods and 5.65 for ten periods. Prepare journal entries for 2019, 2020 and 2021
What is the sales revenue under the optimistic case scenario : The expected variable cost per unit is $7 and the expected fixed cost is $36,000. What is the sales revenue under the optimistic case scenario

Reviews

Write a Review

Econometrics Questions & Answers

  Determine whether biomass is profitable if a rate of return

A biomass plantation operator can invest $1,000 today to plant a new crop of trees, which, is estimated, can be sold at a net gain(sales-harvesting costs) of $10,000 in 40 years. Determine whether this is profitable if a rate of return of 7%/yr is..

  Market for cigarettes

The Australian government administers two programs that affect the market for cigarettes.

  For what levels of manufacture would each location be best

Transportation costs per 1000 units 800 1,100 950 Which location would minimize the total costs, given an annual production of 50,000 unit for what levels of manufacture and distribution would each ..

  What price does blue rose inc. charge and is it efficient

What is Blue Rose's profit-maximizing output? What price does Blue Rose Inc. charge and is it efficient?

  Find the welfare loss due to monopoly

A monopolist has the following total cost curve. where P(Q) is the price that consumers are willing to pay forQ units of output. Find the welfare loss due to monopoly. Assume that acompetitive firm will equate marginal cost to price.

  Plot impressions on the vertical axis

Revisit exercise 1.7. Now that you know several functional forms, which one might be appropriate to study the relationship between advertising impressions retained and the amount of money spent on advertising? Show the necessary calculations.

  What are the conditions that a variable

What are the conditions that a variable must satisfy to qualify as an instrumental variable?

  Which of these is closest to the winning price

Which of these is closest to the winning price?

  Will certain teams and events be affected more than others

Will more people be able to attend the games? Explain your answer. Will certain teams and events be affected more than others? Provide examples.

  What impact will deflation have on interest rates

During 2003, the economy began to stop worrying that inflation was a problem. Instead, the worry was about deflation, a decline in the price level. Assume that the fed decided to hold money supply constant. What impact will deflation have on inter..

  Estimate for the estimated mean mpg mileage

The EPA tests vehicles for gasoline mileage under stringent testing conditions. The testing for a particular make and model of mid-sized SUV involved 35 vehicles submitted by the manufacturer. Assume the vehicles submitted for testing constitute a..

  What does this imply about the value of the resistor

On schematics, you will frequently see a 1000 resistor listed as 1.0 k Ω. What does this imply about the value of the resistor?

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