SOLUTION;-
GIVEN DATA;-
x <- rnorm(1000)
z <- rnorm(1000)
y <- x^3 + 10* x + z
var(x+y)
var(x) + var(y) + 2 *cov(x,y)
var(x-y)
var(x) + var(y) - 2 *cov(x,y)
Running code
> x <- rnorm(1000)
> z <- rnorm(1000)
>
> y <- x^3 + 10* x + z
>
> var(x+y)
[1] 202.4593
> var(x) + var(y) + 2 *cov(x,y)
[1] 202.4593
>
> var(x-y)
[1] 149.9148
> var(x) + var(y) - 2 *cov(x,y)
[1] 149.9148
note that
var(x+y) = var(x) + var(y) + 2 *cov(x,y) = 202.4593
similarly
var(x-y) = var(x) + var(y) - 2 *cov(x,y) = 149.9148
R code please Problem 3 Use a simulation to verify that when X~N(0,1), Z N(0,1)Y X3+...
must be Rstudio code. can use other languages to do the problem but please convert to R code The median is the middle of a dataset. For example, if your observations are c(1,2,3,8,10), the median is 3. Note ã = 1+2+3+8+10 4.8, so they're not necessarily equal. 5 The interquartile range is the difference between the 75% and 25% percentiles. The function IQR() in R can be used to compute it. Or, compute the 75% percentile with the function quantile(),...
(3) Verify the Divergence Theorem for F(x, y, z)-(zy, yz, xz) and the solid tetrahedron with vertices (0,0,0), (1,0,0), (0, 2,0), and (0, 0,1 (3) Verify the Divergence Theorem for F(x, y, z)-(zy, yz, xz) and the solid tetrahedron with vertices (0,0,0), (1,0,0), (0, 2,0), and (0, 0,1
Q2: Suppose that X-N(O, 1), U-N(O, 0.25), Y 3- 2X and Z following questions. 2 X +U. Please answer the Compute E(Y), E(Z), Var(Y) and Var(Z). What are the distributions of Y and Z? Using R, draw 50 independent realizations of X and U. Using those values, create 50 realizations of Y and Z. (NOTE: set the seed for random number generation in R. Before your code type set.seed 123))
Obtain E(Z|X), Var(Z|X) and verify that E(E(Z|X)) =E(Z), Var(E(Z|X))+E(Var(Z|X)) =Var(Z) 3. Let X, Y be independent Exponential (1) random variables. Define 1, if X Y<2 Obtain E (Z|X), Var(ZX) and verify that E(E(Zx)) E(Z), Var(E(Z|X))+E(Var(Z|X)) - Var(Z)
Consider the multiple regression model y = X3 + €, with E(€)=0 and var(€)=oʻI. Problem 1 Gauss-Mrkov theorem (revisited). We already know that E = B and var() = '(X'X)". Consider now another unbiased estimator of 3, say b = AY. Since we are assuming that b is unbiased we reach the conclusion that AX = I (why?). The Gauss-Markov theorem claims that var(b) - var() is positive semi-definite which asks that we investigate q' var(b) - var() q. Show...
3) Suppose X~N(0,1) and Y~N(2,4), they are independent, then is incorrect. 6 X-Y N(-2,5) D Var(X) < Var(Y) SupposeX-N(Aof) and Y-N(H2,σ ), they arc indcpcndcnt, thcn in the following statementss incorrect 4) 5) Suppose X~NCHiof) and Y~NCHz,σ ), they are independent, if PCIX-Hik 1) > PCIY _ μ2I 1), then ( ) is correct.
Problem 4. For r E [0, 1, fnd F)-(t)dt, where fr) 3 2r. Verify that F is continuous on [0,1] and F"(z) =f(z) at all points where f is continuous. Problern 5. Suppose that g, h : [c, d] → [a,b] are differentiable. ForエE [c,d] define h(a) Find H'(r) Problem 4. For r E [0, 1, fnd F)-(t)dt, where fr) 3 2r. Verify that F is continuous on [0,1] and F"(z) =f(z) at all points where f is continuous. Problern...
a) Use the following R code to empirically check the Central Limit Theorem via simulation .n <- 40 # sample size m <- c(1:200) #create a vector of length 200 for (i in 1:200) { #simulate 200 samples x <- rnorm(n) m[i] <- mean(x) } hist(m) b) Repeat part (a) with n=200 and compare the histograms. Describe what you observe and what you expect when n increases. c) Repeat parts (a) and (b) with runif() and rexp() respectively instead of...
If y varies directly with x3 and inversely with z, and y is 64 when x is 8 and z is 2, what is y when x is 5 and z is 3?
Please help with the R code! Thanks! Assume that your data consists of x1, . . , strap sample, we sample with replacement of these n points to obtain a set of IID new points Xi,... , X" such tha , Tn, n values. When we generate the boot- for each l. This new dataset, X* , X*, is called a bootstrap sample (a) (1 pt) Show that the bootstrap sample is an IID random sample from Fn, where TI...