Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Engineering Mathematics Expert

Question 1. Let Xi, i = 1, ... ,50 be independent random variables with Xi having exponential distribution with mean (0.9)i.

(a) Calculate the mean and variance of X¯.

(b) Use simulation to estimate p(X¯ > 0.5) with 2 decimals precision.

(c) Does X¯ have approximately normal distribution? Justify your answer by simulating X¯ and drawing a histogram.

2. Let (Xi, Yi), i = 1,...., n be a random sample from a bivariate standard normal distribution with correlation coefficient p. Let S denote the sample covariance matrix and let Al and A2 denote the eigenvalues of S.

For n = 30, 40, 50 and ρ = 0.2, 0.5, 0.8 find the following:
(a) The marginal distribution of the λ1 and λ2.
(b) The means, variances and covariances of the eigenvalues of S
(c) Find the distribution of the max(λ1, λ2).

3. Let Y1.....Yn be a set on independent Poison random variables with the mean

λi = eβo + β1x1i + β2x2i

(a) Based on the following observations, write a function to find the maximum likelihood estimations for β0, β1 and β2.

Y X1 X2 Y X1 X2
0 3 1 0 3 5
2 5 5 0 3 3
2 2 4 0 3 2
1 2 4 2 5 4
2 2 3 0 3 5
0 3 3 2 5 3
1 4 2 1 4 4
3 5 3 1 2 2
3 1 4 1 4 3
0 3 4 3 5 2
0 3 I 0 3 1
2 5 3 2 5 4
1 2 3 0 3 1
0 3 1 2 2 3
2 2 1 0 3 2

(b) Assume that β0 = 0.1, β1 = 0.2 and β2 = 0.3 and matrix X is generated by R code: set . seed (890)

x < - cbind(sample(1:5,30,replace,-.T,c(.05,.2,.35,.25,15))

sample(1:5,30,replace=T.c(.15,.2,.3,.2,15)))

Write a function to generate independent Poison random variables Yi, i = 1,......30, 10000 times and returns a matrix of the maximum likelihood estimators of βi's.

(c) Using the function obtained in (a) find the means and variances of the βi's estimations.

(d) draw the empirical distributions for βi's estimations.

(e) Create a vector of predictions of Y when x1 = 3 and x2 = 5 using the rows of the matrix obtained in (a), then find the mean and the variances of the predictions.

(f) Draw a histogram of predictions.

4. Write a function that takes as input a vector x, then returns as output the vector (m,lb,ub), where m is the mean and (lb, ub) is a 95% confidence interval for it. That is m = x¯ - 1.96s/√n, lb = x¯ + 1.96s/√n, where s is standard deviation of the sample.

Then, write a program that applies your function to the following sample
11, 52. 87, 45, 39. 95, 42, 38, 10, 03, 48, 56.

To four decimal places you should be getting

(43.83333, 27.9526, 59.7140)

5. Here is some code for simulating a random variable. Write down the cdf of the random variable being simulated. Check your answer by plotting an empirical cdf from the simulated data, then plotting the actual cdf on the top.

sim < - function () {
U < - runif(1)

if ( U < 0.5 )

{ return(0)
} else {
return(- log((1 - U)/20))
}

}

Engineering Mathematics, Engineering

  • Category:- Engineering Mathematics
  • Reference No.:- M92036288

Have any Question?


Related Questions in Engineering Mathematics

Analytical methods for engineers assignment - calculusthis

ANALYTICAL METHODS FOR ENGINEERS ASSIGNMENT - CALCULUS This assignment assesses Outcome - Analyse and model engineering situations and solve problems using calculus. Questions - Q1. Differentiate the following functions ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet. Problem 1 - Cash Planning A startup investment project needs money to cover its cash flow needs. At the ...

I have these questions for a homework assignment and have

I have these questions for a homework assignment and have to show work. This works with MIPS coding language and is the class Introduction to Computer Architecture. 1. Find the 2's complement representation (in 32-bit he ...

Assignment - lp problemsthe data for all the problems in

Assignment - LP problems The data for all the problems in this HW are included in the LP_problems_xlsx spreadsheet Problem 1: Cash Planning A startup investment project needs money to cover its cash flow needs. At the en ...

Question suppose g is an undirected connected weighted

Question : Suppose G is an undirected, connected, weighted graph such that the edges in G have distinct edge weights. Show that the minimum spanning tree for G is unique.

Math assignment -q1 let fx -x3-cosx and p0 1 use newtons

Math Assignment - Q1. Let f(x) = -x 3 -cos(x), and p 0 = 1. Use Newton's method to find p 2 . Could p0=0 be used? Q2. Perform two iterations by Newton's method and the secant method to each of the following: a. e x + 2 - ...

Assignment - introduction to math programmingdirections

Assignment - Introduction to Math Programming Directions - Formulate a linear programming model for the following description. Include definitions of decision variables, Objective function, and constraints. Augment your ...

Question what is the signed binary sum of 1011100 and

Question : What is the signed binary sum of 1011100 and 1110101 in decimal? Show all of your work. What is the hexadecimal sum of 9A88 and 4AF6 in hexadecimal and decimal? Show all of your work.

Assignment -1 let t and or 0 1 be a boolean algebradefine

Assignment - 1. Let (T, ∧, ∨,', 0, 1) be a Boolean Algebra. Define ∗ : T × T → T and o : T × T → T as follows: x ∗ y := (x ∨ y)' x o y := (x ∧ y)' (a) Show, using the laws of Boolean Algebra, how to define x ∗ y using on ...

Question a signal starts at point x as it travels to point

Question : A signal starts at point X. As it travels to point Y, it loses 8 dB. At point Y, the signal is boosted by 10 bB. As the signal travels to point Z, it loses 7 dB. The dB strength of the signal at point Z is -5 ...

  • 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