Simulate standardised sum of independent variates

Assignment Help Mathematics
Reference no: EM13307073

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

2196_Simulate the standardised sum.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 = Rcos(Θ) , 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 b p, together with an approximate 95% confidence interval

1439_Simulate the standardised sum1.png

where zq is the q-th quantile of a standard normal variate. Repeat the experiment 104 times, and plot the approximate confidence 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 ), fit a linear regression model to increasing numbers of outcomes (from N = 2 to N = 104) as

y = β0 + βx,

by using the solution to the normal equations to obtain estimates for β = (β0, β1) , via solving (ATA)β = ATy ,

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

708_Simulate the standardised sum2.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.

Reference no: EM13307073

Questions Cloud

Find max score and display : Write a program using functions to do the following tasks.
Determine what is the economic life of the challenger : The initial investment is $12,000 , there is no annual maintenance cost for the first 3 years , however , it will be $2,000 in each of years four and five , and then $4,500 in the sixth year and increasing by $2,500 each year thereafter .
Determine what is the position of the image : An object is 5 cm from an equi-convex lens of focal length f=15 cm, What is the position of the image
What is the first order approximation for the mean of y : Let X be a uniformly distributed continuous random variable ranging between 5 and 8, X ~ U[5 , 8]. Variable Y is a function of X: Y: h(X)= 2X^2+1 a. Determine the PDF of Y. b. Find the expected value of Y.
Simulate standardised sum of independent variates : 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.
Create a program that functions as simple boolean calculator : Create a program that functions as a simple boolean calculator for 32-bit integers. It should display a menu that asks the user to make a selection from the following list.
How many clock cycles are needed : Indicate data dependency in the above code. Assuming there is no forwarding in the pipeline, how many clock cycles are needed to finish the program? If full forwarding is used, how many clock cycles are needed?
Design an audio amplifier using a jfet : Design an audio amplifier using a JFET and a 20-volt power supply. The amplifier is to have a gain of 50
Determine maximum moment in the beam if spinned at both ends : If the live load on a 30 foot long beam is 1.2 kip/feet and the dead load is 0.8 kip/feet determine the maximum moment in the beam (kip-ft) if it is pinned at both ends. Assume the weight of the steel is 0.3 kip/feet.

Reviews

Write a Review

Mathematics Questions & Answers

  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.

  Logistic map

This assignment has two question related to maths. Questions are related to bifurcation cascade and logistic map.

  Finding the probability of cards

This assignment has questions related to probabiltiy.

  Systems of ode

Find all the xed points, and study their stability and Draw the phase portrait of the system, as well as the graphs of the solutions in all relevant cases.

  Derive the boolean expression

Derive the Boolean Expression and construct the switching circuit for the truth table stated

  System of equations

Evaluate which equations are under-identified, just-identified, and over-identified.

  Linear programming problem

Linear programming problem consisting of only two constraints with one objective function.

  Find the natural domain

Find the natural domain of the given functions.

  Introduction to numerical methods

Compute the coecients of the polynomials using the term recurrence relation.

  Chart of the topological manifold

De?nition of smoothness of functions on a smooth manifold is chart independent and hence geometric.

  Mathematics in computing

Questions related on mathematics in computing.

  Complex problems

Complex problems

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