Simulate the standardised sum of independent and

Assignment Help Mathematics
Reference no: EM13583837

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

1845_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

X = R cos(Θ), Y = Rsin(Θ)

with Θ ~ U[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

959_standard normal density curve1.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 ^β = ( ^β0, ^β1)T , via solving

(ATA)β^ = ATy

where y = (y1 , . . . , yN)T , and

1028_standard normal density curve2.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

Y = -2 + X -X2 + ε

where X ~ U[0, 1] and ε ~ N(0, 0.12) 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 = β01x + β2x2 , and plot your estimates for β0, β1, and β2 as N increases, together with a line indicating their true values. Supply your code.

Reference no: EM13583837

Questions Cloud

Suppose x d metric space has infinitely many distinct : 1- let xd metric space and fx --gt x isometry with fxis dense in x prove f is homomorphism.2- suppose x d metric space
Prepare general journal entries for the following : prepare general journal entries for the following transactions on december 17 on your market paid 1500 to keystone
As a sidereaction organometallic reagents can react with : as a side?reaction organometallic reagents can react with atmospheric co2 to produce metal carboxylates while the cacl2
Annual profit in thousands of dollars is given by the : annual profit in thousands of dollars is given by the function px 100vx-5 3000 where x is the number of items sold in
Simulate the standardised sum of independent and : 1. repeatedly 104 times simulate the standardised sum of independent and identically distributed variates x1 . . .
Analyze three accounting standards promulgated by the fasb : analyze three accounting standards promulgated by the fasb and show how economic consequences rather than
Pursco is a domestic corporation that distributes : pursco is a domestic corporation that distributes scientific equipment worldwide. during the current year pursco had
How does lean manufacturing reduces scrap waste and : 1.what is lean accounting?2.what are some advantages and disadvantags3.what are some issuess accountants face when
Would changing the asset definition in the conceptual : would changing the asset definition in the conceptual framework to one concerned with property rights have any other

Reviews

Write a Review

Mathematics Questions & Answers

  Determining minimum consumed time

From a raft 50m offshore, a lifeguard wants to swim to shore and run to a snack bar 100m down the beach. If the lifeguard swims at 1m/s and runs at 3m/s, express the total swimming and running time t as a function of the distance

  What is the mos economical way of shipping

the cost of transporting a large truck load was $35 dollars ,that of a small one was $25. what is the mos economical way of shipping the 150 machines?

  Application of calculus

Application of calculus

  Questions on ferris wheel

Prepare a Flexible Budget Gator Divers is a company that provides diving services such as underwater ship repairs to clients in the Tampa Bay area.

  Find the grade of the peak

base elevation of 8700 ft, mountain peak in colorado rises 14407 ft over distance of 15844 ft. find the grade of the peak.

  How many handshakes take place

Two twelve-member basketball teams play a game. After the game, each of the members of the winning team shakes hands once with each member of both teams. How many handshakes take place?

  Create an equation of a nonlinear function

Support your answer. Create an equation of a nonlinear function and provide two inputs for your classmates to evaluate.

  What length is the hypotenuse of a right angled triangle

what length is the hypotenuse of a right angled triangle if the base is 123inches,the short side is 114inches and the angle opposite the right angle is 41degrees.

  Find the three integers

The square of the largest of three positive consecutive integers is 320 less than the sum of the squares of the two smaller integers. Find the three integers.

  What did the doctor say after examining yunn yunsberger

What did the doctor say after examining Yunn Yunsberger.

  Perform the appropriate one-tailed test

If the population mean is 36, are the serial killers significantly more introverted at the .05 level? Perform the appropriate one-tailed test.

  Calculate e(x) and var(x)

Let U be a uniform random variable on the interval (-pi/2, pi/2). Let X=sinU. Find the probability density function of X and calculate E(X) and var(X).

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