Question

use R software Let X be a non-negative random variable with μ = E[X] < ∞....

use R software

Let X be a non-negative random variable with μ = E[X] < . For a random sample x1, …, xn from the distribution of X, the Gini ratio is defined by

G=12n2μn∑j=1n∑i=1|xi−xj|.G=12n2μ∑j=1n∑i=1n|xi−xj|.

The Gini ratio is applied in economics to measure inequality in income distribution (see, e.g., [168]). Note that G can be written in terms of the order statistics x(i) as

G=1n2μn∑i=1(2i−n−1)x(i).G=1n2μ∑i=1n(2i−n−1)x(i).

If the mean is unknown, let ˆGG^ be the statistic G with μ replaced by ¯xx¯. Estimate by simulation the mean, median and deciles of ˆGG^ if X is standard lognormal. Repeat the procedure for the uniform distribution and Bernoulli(0.1). Also construct density histograms of the replicates in each case.

Homework Answers

Answer #1

This is the code using standard lognormal distribution. Mean and median in this case is 0.514 and 0.511

For unifrom distribution, rlnorm( n ) is replaced by runif( n ) and mean and median in this case is 0.331 and 0.330

For bernoulli distribution, rlnorm( n ) is replaced by rbinom( n, size = 1, prob = 0.1 ) and mean and median in this case is 0.899 and 0.9.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
Let X1, X2, · · · , Xn be a random sample from an exponential distribution...
Let X1, X2, · · · , Xn be a random sample from an exponential distribution f(x) = (1/θ)e^(−x/θ) for x ≥ 0. Show that likelihood ratio test of H0 : θ = θ0 against H1 : θ ≠ θ0 is based on the statistic n∑i=1 Xi.
Let {Xj} ∞ j=1 be a collection of i.i.d. random variables uniformly distributed on [0, 1]....
Let {Xj} ∞ j=1 be a collection of i.i.d. random variables uniformly distributed on [0, 1]. Let N be a Poisson random variable with mean n, and consider the random points {X1 , . . . , XN }. b. Let 0 < a < b < 1. Let C(a,b) be the number of the points {X1 , . . . , XN } that lies in (a, b). Find the conditional mass function of C(a,b) given that N =...
(1 point)   Let XiXi for i=1,2,3,… be a random variable whose probability distribution has an average...
(1 point)   Let XiXi for i=1,2,3,… be a random variable whose probability distribution has an average of μ=15 and a standard deviation of σ=2. Assume the Xi are independent and continuous. Let Sn=X1+⋯+Xn To use a Normal distribution to approximate P(S49<750), find the area to the left of 750 under a Normal curve with center (average) and spread (standard deviation)  . The estimated probability is
Let the random variable X follow a distribution with a mean of μ and a standard...
Let the random variable X follow a distribution with a mean of μ and a standard deviation of σ. Let X1 be the mean of a sample of n1 (n1=1) observations randomly chosen from this population, and X2 be the mean of a sample of n2( n2 =49) observations randomly chosen from the same population. Which of the following statement is False? Evaluate the following statement.                                 P(μ - 0.2σ <X 1 < μ + 0.2σ) < P(μ - 0.2σ <X...
Let x be a continuous random variable that has a normal distribution with μ=85 and σ=12....
Let x be a continuous random variable that has a normal distribution with μ=85 and σ=12. Assuming n/N ≤ 0.05, find the probability that the sample mean, x¯, for a random sample of 18taken from this population will be between 81.7 and 90.4. Round your answer to four decimal places.
Let X1, . . . , Xn be a random sample from a Poisson distribution. (a)...
Let X1, . . . , Xn be a random sample from a Poisson distribution. (a) Prove that Pn i=1 Xi is a sufficient statistic for λ. (b) The MLE for λ in a Poisson distribution is X. Use this fact and the result of part (a) to argue that the MLE is also a sufficient statistic for λ.
Let X be a random variable with a mean distribution of mean μ = 70 and...
Let X be a random variable with a mean distribution of mean μ = 70 and variance σ2 = 15. d) Imagine a symmetric interval around the mean (μ ± c) of the distribution described above. Find the value of c such that the probability is about 0.2 that X is in this interval. Please explain how to get the answer
Let X be a continuous random variable uniformly distributed on the interval (0,2). Find E( |X-μ|...
Let X be a continuous random variable uniformly distributed on the interval (0,2). Find E( |X-μ| ) A. 1/12 B. 1/4 C. 1/3 D. 1/2
(a) It is given that a random variable X such that P(X =−1) =P(X = 1)...
(a) It is given that a random variable X such that P(X =−1) =P(X = 1) = 1/4, P(X = 0) = 1/2. Find the mgf of X, mX(t) (b) Let X1 and X2 be two iid random varibles such that P(Xi =1)=P(Xi =−1)=1/2, i=1,2. Use the mgfs to prove that X and Y =(X1+X2)/2 have the same distribution
Let the random variable X follow a Normal distribution with variance σ2 = 625. A random...
Let the random variable X follow a Normal distribution with variance σ2 = 625. A random sample of n = 50 is obtained with a sample mean, X-Bar of 180. What is the probability that μ is between 198 and 211? What is Z-Score1 for μ greater than 198?
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT