Both Function are
| mymean=function(x,p) {sum(x*p)} myvariance=function(x,p) {sum((x^2)*p)-mymean(x,p)^2} |
R-code with an example:

Let X be a random variable that takes values x = (xi,... , xn) with respec-...
Let Xi, ..., Xn be random variables with the same mean and with covariance function where |ρ| < 1 . Find the mean and variance of Sn-Xi + . . . + Xn. Assume thatE(X. ) μ and V(X) σ2 for i (1.2. , n}
(35) Let X and Y be discrete random variables with join mass function 14 p(x, y) = (a) Find the marginal mass functions of X and Y, fx and fy, respec- tively. (b) Find the constant k (c) Find Cov(X, Y) (d) Find fx *fy
(35) Let X and Y be discrete random variables with join mass function 14 p(x, y) = (a) Find the marginal mass functions of X and Y, fx and fy, respec- tively. (b) Find the...
5. Let X be a discrete random variable. The following table shows its possible values r and the associated probabilities P(X -f(x) 013 (a) Verify that f(x) is a probability mass function (b) Calculate P(X < 1), P(X < 1), and P(X < 0.5 or X > 2). (c) Find the cumulative distribution function of X ompute the mean and the variance of
Let Xi,... , Xn be a random sample from a normal random variable X with E(X) 0 and var(X)-0, i.e., X ~N(0,0) (a) What is the pdf of X? (b) Find the likelihood function, L(0), and the log-likelihood function, e(0) (c) Find the maximun likelihood estimator of θ, θ (d) Is θ unbiased?
Let Xi,X2, , Xn be independent and identically distributed (ii.d.) Exponential(1) random variables. 14] [41 (a) Find the method of moments estimator for X (b) Find the method of moments estimator for (c) Find the bias, variance and MSE (mean square erop) for the essimator in part () Total: [16]
Let Xi,X2, , Xn be independent and identically distributed (ii.d.) Exponential(1) random variables. 14] [41 (a) Find the method of moments estimator for X (b) Find the method of moments...
4. Let Xi,.. . , Xn be a random sample from a distribution with the density function 62(1-x), if 0〈x〈1; f(x) = elswhere. As usual, define First determine the mean and variance of the given distribution. What is an approximate distribution of Xn? For a sample of size 75, what are the exact mean and variance for Xn?
Let Ņ, X1. X2, . . . random variables over a probability space It is assumed that N takes nonnegative inteqer values. Let Zmax [X1, -. .XN! and W-min\X1,... ,XN Find the distribution function of Z and W, if it suppose N, X1, X2, are independent random variables and X,, have the same distribution function, F, and a) N-1 is a geometric random variable with parameter p (P(N-k), (k 1,2,.)) b) V - 1 is a Poisson random variable with...
3. [6 pts] Let Xi, . . . , Xn be a random sample from a distribution with variance σ2 < oo. Find cov(X,-x,x) for i 1,..,n.
3. [6 pts] Let Xi, . . . , Xn be a random sample from a distribution with variance σ2
let x be a random variable which takes values in the interval (1,3). the density function of x is proportional to 2^x. find the mean
Problem 5 Let Xi, X2, ..., Xn be a random sample from Bernoulli(p), 0 < p < 1, and 7.i. Prove that the sample proportion is an unbiased estimator of p, i.e. p,- is an unbiased estimator of p 7.ii. Derive an expression for the variance of p,n 7.iii. Prove that the sample proportion is a consistent estimator of p. 7.iv. Prove that pn(1- Pn)