Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask MATLAB Expert

1. Repeatedly (104 times) simulate the standardised sum of independent and identically distributed variates X1, . . . ,Xn

648_standard normal density curve.png

and provide histogram plots, with the (suitably renormalised) standard normal density curve superimposed, for

(a) X1 ~ Exp(1) and n = 2, 6, 1000.
(b) X1 ~ Ber(3=4) and n = 5, 20, 100.

Supply your code.

2. Repeat the simulation in Q1a with n = 1000, and independently simulate an equal number of outcomes from the standard normal distribution using the Box- Muller method. Plot the empirical quantiles against eachother, together with the line y = x, and comment on the plausibility that the samples come from the same distribution. Supply your code.

3. Simulate 106 outcomes (X, Y ), where

948_standard normal density curve1.png

with Θ ~ [0, 2Π), and R = 5 + S with S ~ Exp(1) independently of Θ. Provide a scatter plot of typical output, and give the (empirical) correlation. Comment on the correlation and dependence of (X, Y ). Supply your code.

4. Simulate 200 coin-flip experiments with success parameter p = 1=4, and compute the average number of successes p, together with an approximate 95% conβdence interval

775_standard normal density curve2.png

where zq is the q-th quantile of a standard normal variate. Repeat the experiment 104 times, and plot the approximate conβdence intervals for each experiment, together with a line showing the true success parameter. Calculate the proportion of the 104 repeated experiments that contain the true success parameter, and comment. Supply your code.

5. Simulate N = 103 outcomes from the model

Y = -2 + X + ε

where X ~ U[0, 1] and ε ~ N(0, 0.12 ) independently. From your simulated outcomes of (X, Y ), βt a linear regression model to increasing numbers of outcomes (from N = 2 to N = 104 ) as

y = β0 + β1x

by using the solution to the normal equations to obtain estimates for 1715_standard normal density curve3.png, via solving where

1395_standard normal density curve4.png

Plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

6. Simulate N = 104 outcomes from the model

where X ~ U[0, 1] and ε ~ N(0, 0.1 ) independently. From your simulated outcomes of (X, Y ).

(a) Fit a linear regression model as in Q5, and plot your estimates for β0 and β1 as N increases, together with a line indicating their true values. Supply your code.

(b) Fit a quadratic regression model y = β0 + β1x+ β2x2, and plot your estimates for β0, β1, and β2 as N increases, together with a line indicating their true values. Supply your code.

MATLAB, Engineering

  • Category:- MATLAB
  • Reference No.:- M9871093
  • Price:- $75

Guranteed 36 Hours Delivery, In Price:- $75

Have any Question?


Related Questions in MATLAB

What comparison of means test was used to answer the

What comparison of means test was used to answer the question

Prepare a 3 - 10 pages long reportprepare a presentation

Prepare a 3 - 10 pages long report Prepare a presentation with 5 - 9 slides. The slides will include introduction (need and similar work), theoretical background (tested neural networks), Data, Results (Comparison of the ...

Recitation problems -1 determine the highest real root of

Recitation Problems - 1. Determine the highest real root of f(x) = 2x 3 - 11.7x 2 + 17.7x - 5 using the Newton-Raphson method with at least four iterations. Start with an initial guess of x 0 = 3. 2. Determine the real r ...

Assignment matlab programmingusing appropriate matlab

Assignment: MatLab Programming Using appropriate MatLab syntax, write the code required to analyse and display the data as per the problem description. The order of the MatLab Program should be as follows: Variables and ...

Question - verify the attached paper with matlab and get

Question - Verify the attached paper with matlab and get all the results in the paper and explain step by step the matlab code. Paper - Improving Massive MIMO Belief Propagation Detector with Deep Neural Network. Attachm ...

Discrete optimisation- solve the following two problems

Discrete Optimisation - Solve the following two problems with both exhaustive enumeration and branch and bound - Problem 1 is a mixed integer linear optimisation problem (the problem has both discrete and continuous vari ...

Assignmentafter the success of your robo-advice venture you

Assignment After the success of your robo-advice venture you decide to explore alternative sources of profitability for your company. You realize that Australian investors are often forced to chose between expensive acti ...

Assignment -we have daily gridded rainfall data of 40 years

Assignment - We have daily gridded rainfall data of 40 years and structure of the dataset is like below; Lat = [6.5:0.25:38.5]; Lon = [66.5:0.25:100]; Rainfall (135x129x365x40) (Lon, Lat, days, years). Now, we looking fo ...

Assignmentq1 find the laplace transforms of the following

Assignment Q.1 Find the Laplace transforms of the following functions: (a) t 2 + at + b and (b) sin(2nΠt/T) Q.2 Find f (t) for the following F(s) = α[ f (t)]. (i) 5/(s + 3), (ii) 1/s 2 + 25, (iii) 1/s(s+1) Q.3 Find the L ...

Assignment details -need to write a code for connecting

Assignment Details - Need to write a code for connecting segments (Lines) a special case of TSP. The problem is to connect lines in 2d/ 3d space with path obstructions. Can you help me write the code for this? Hope you m ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As