Question

In: Math

Suppose we wish to generate a sample from the exponential ($\beta$) distribution, and only have access...

Suppose we wish to generate a sample from the exponential ($\beta$) distribution, and only have access to a computer which generates numbers from the skew logistic distribution. It turns out that if $X$~SkewLogistic ($\beta$), then log(1+exp($-X$)) is exponential ($\beta$). Show that this is true and check by simulation that this transformation is correct.

Solutions

Expert Solution

Solution:

The PDF of Skew logistic distribution is,

If Suppose that X is a continuous random variable and is a strictly monotonic differentiable function. Let . Then the PDF of Y is given by

GIven,

So,

Now,

So,

which is PDF of an exponential distribution.

Therefore, Y ~ exp()

I have used R language for simulation.

Run the following function to generate samples of Skew logistic PDF.

sl = function(alpha,size) {
x = runif(size,0,1)
y = (alpha*exp(-x)/(1+exp(-x))^(alpha+1))
return(y)
}

Run the below commands to generate 10000 samples of skew logistic random variables and do the transformation and plot the graph.

x = sl(5,10000)
y = log(1+exp(-x))
plot(y,exp(-5*y))

The graph is shown below.

The graph shows that the random variables y follow an exponential distribution.


Related Solutions

We have a random sample of size 10 from a normal distribution. We wish to estimate...
We have a random sample of size 10 from a normal distribution. We wish to estimate the population mean. Damjan suggests taking the average of the sample minimum and sample maximum. Allan thinks this will be a poor estimator and says we should use the sample mean instead. Do a simulation in R to compare these two estimators in terms of their bias and variance. Include a side-by-side boxplot that compares their sampling distributions.
We have a random sample of size 10 from a normal distribution. We wish to estimate...
We have a random sample of size 10 from a normal distribution. We wish to estimate the population mean. joseph suggests taking the average of the sample minimum and sample maximum.steve thinks this will be a poor estimator and says we should use the sample mean instead. Do a simulation in R to compare these two estimators in terms of their bias and variance. Include a side-by-side boxplot that compares their sampling distribut showing R output also
Suppose that ?!,···, ?" form a random sample from the beta distribution with parameters ? and...
Suppose that ?!,···, ?" form a random sample from the beta distribution with parameters ? and ?. Find the moments estimators for ? and ?. NOTE: Please make the solution as well detailed as possible especially the making of ? and ? the subject of formular respectively
Suppose X1, ..., Xn are i.i.d. from an exponential distribution with mean θ. If we are...
Suppose X1, ..., Xn are i.i.d. from an exponential distribution with mean θ. If we are testing H0 : θ = θ0 vs Ha : θ > θ0. Suppose we reject H0 when ( X¯n/ θ0) > 1 + (1.645/ √n) (a) (10 points) Calculate the power function G(ζ). You may leave your answer in terms of the standard normal cdf Φ(x). (b) (5 points) Is this test consistent?
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to...
Suppose we have a random sample of size 50 from a N(μ,σ2) PDF. We wish to test H0: μ=10 versus H1: μ=10. The sample moments are x ̄ = 13.4508 and s2 = 65.8016. (a) Find the critical region C and test the null hypothesis at the 5% level. What is your decision? (b) What is the p-value for your decision? (c) What is a 95% confidence interval for μ?
Use R and perform following: Generate 1000 observations from an exponential distribution with mean 10. Generate...
Use R and perform following: Generate 1000 observations from an exponential distribution with mean 10. Generate 1000 observations from a central t-distribution with 8 degree of freedom. Make a qqplot of observations in problem 1 versus quantiles generated from a t-distribution with 8 degree of freedom. Can the t distribution be used to approximate data in part 1?Submit the plot. Repeat above part but submit a qqplot of the observations in 1 versus quantiles from an exponential with mean 1....
We observe a random sample of n values from the beta distribution with parameters c and...
We observe a random sample of n values from the beta distribution with parameters c and 2. (a) Find a general expression for the method of moments (MOM) estimate of c, and calculate this MOM estimate for the case where we observe two values, 0.96 and 0.84. (b) Find the bias of the MOM estimator of c for the case where c = 1 and n = 1. (c) Find a general expression for the maximum likelihood estimate (MLE) of...
7) Use Excel to generate a series of 100 random values from the exponential distribution with...
7) Use Excel to generate a series of 100 random values from the exponential distribution with a mean of 25? USING EXCEL SHOW ALL WORK
*Daily presentation for Friday, January 31*: Suppose we have a random sample from a Bernoulli(p) distribution....
*Daily presentation for Friday, January 31*: Suppose we have a random sample from a Bernoulli(p) distribution. Show that the MoM using E[X] is nice and simple, while the MoM using Var[X] is complex and weird.
Generate 100 samples of size n=8 from an exponential distribution with mean 3 . Each row...
Generate 100 samples of size n=8 from an exponential distribution with mean 3 . Each row of your data will denote an observed random sample of size 8, from an exponential distribution with mean 3. Obtain sample mean for each sample, store in another column and make a histogram for sample means. Repeat for n=100. Compare and interpret the histograms you obtained for n=8 and n=100. Submit the histograms along with your one small paragraph comparison. Can you solve it...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT