Question

In: Math

Let X be a random variable with CDF F(x) = e-e(µ-x)/β, where β > 0 and...

Let X be a random variable with CDF F(x) = e-e(µ-x)/β, where β > 0 and -∞ < µ, x < ∞.

1. What is the median of X?

2. Obtain the PDF of X. Use R to plot, in the range -10<x<30, the pdf for µ = 2, β = 5.

3. Draw a random sample of size 1000 from f(x) for µ = 2, β = 5 and draw a histogram of the values in the random sample drawn. Compare this histogram with the answer in 2 above.

Solutions

Expert Solution

Following is the R Code to draw probability plot

rm(list=ls(all=T))
mu <- 2;
beta <- 5;
x <- seq(-10,30,by=0.01)
pdf <- (1/beta)*exp((mu-x)/beta)*exp(-exp((mu-x)/beta));

plot(x,pdf,type="l",main="Figure 1")

Following is the code to plot histogram and comparing it with probability plot

rm(list=ls(all=T))
mu <- 2;
beta <- 5;
x <- seq(-10,30,by=0.01)
pdf <- (1/beta)*exp((mu-x)/beta)*exp(-exp((mu-x)/beta));
xs <- mu-beta*log(-log(runif(1000)));
hist(xs, main="Figure 2", probability=T)
plot(x,pdf,type="l")

From the graph, it is observed that both the probability density plot and histogram are matching to each other


Related Solutions

If X is a random variable with CDF F(x) = e-e(µ-x)/β, where β > 0 and...
If X is a random variable with CDF F(x) = e-e(µ-x)/β, where β > 0 and -∞ < µ, x < ∞; calculate the median of X. Also, obtain the PDF of X.
Does a continuous random variable X exist with E(X − a) = 0, where a is...
Does a continuous random variable X exist with E(X − a) = 0, where a is the day of your birthdate? If yes, give an example for its probability density function. If no, give an explanation. (b) Does a continuous random variable Y exist with E (Y − b) 2 = 0, where b is the month of your birthdate? If yes, give an example for its probability density function. If no, give an explanation.
Let f(x) = a(e-2x – e-6x), for x ≥ 0, and f(x)=0 elsewhere. a) Find a...
Let f(x) = a(e-2x – e-6x), for x ≥ 0, and f(x)=0 elsewhere. a) Find a so that f(x) is a probability density function b)What is P(X<=1)
Let X be a exponential random variable with pdf f(x) = λe−λx for x > 0,...
Let X be a exponential random variable with pdf f(x) = λe−λx for x > 0, and cumulative distribution function F(x). (a) Show that F(x) = 1−e −λx for x > 0, and show that this function satisfies the requirements of a cdf (state what these are, and show that they are met). [4 marks] (b) Draw f(x) and F(x) in separate graphs. Define, and identify F(x) in the graph of f(x), and vice versa. [Hint: write the mathematical relationships,...
Let X be a uniform random variable with pdf f(x) = λe−λx for x > 0,...
Let X be a uniform random variable with pdf f(x) = λe−λx for x > 0, and cumulative distribution function F(x). (a) Show that F(x) = 1−e −λx for x > 0, and show that this function satisfies the requirements of a cdf (state what these are, and show that they are met). [4 marks] (b) Draw f(x) and F(x) in separate graphs. Define, and identify F(x) in the graph of f(x), and vice versa. [Hint: write the mathematical relationships,...
Let X be a continuous random variable with pdf: f(x) = ax^2 − 2ax, 0 ≤...
Let X be a continuous random variable with pdf: f(x) = ax^2 − 2ax, 0 ≤ x ≤ 2 (a) What should a be in order for this to be a legitimate p.d.f? (b) What is the distribution function (c.d.f.) for X? (c) What is Pr(0 ≤ X < 1)? Pr(X > 0.5)? Pr(X > 3)? (d) What is the 90th percentile value of this distribution? (Note: If you do this problem correctly, you will end up with a cubic...
Suppose that T (≥ 0) is a continuous random variable. Let its pdf, cdf, survival function,...
Suppose that T (≥ 0) is a continuous random variable. Let its pdf, cdf, survival function, hazard rate function, and cumulative hazard rate function be f(t), F(t), s(t), h(t), and H(t), respectively. Note that H(t) is defined by R t 0 h(u)du. a. Denote s(t), h(t), and H(t) as a function of f(t). b. Denote f(t), h(t), and H(t) as a function of s(t). c. Denote f(t), s(t), and H(t) as a function of h(t). d. Denote f(t) and s(t)...
Suppose that random variable X 0 = (X1, X2) is such that E[X 0 ] =...
Suppose that random variable X 0 = (X1, X2) is such that E[X 0 ] = (µ1, µ2) and var[X] = σ11 σ12 σ12 σ22 . (a matrix) (i) Let Y = a + bX1 + cX2. Obtain an expression for the mean and variance of Y . (ii) Let Y = a + BX where a' = (a1, a2) B = b11 b12 0 b22 (a matrix). Obtain an expression for the mean and variance of Y . (ii)...
(A universal random number generator.)Let X have a continuous, strictly increasing cdf F. Let Y =...
(A universal random number generator.)Let X have a continuous, strictly increasing cdf F. Let Y = F(X). Find the density of Y. This is called the probability integral transform. Now let U ∼ Uniform(0,1) and let X = F−1(U). Show that X ∼ F. Now write a program that takes Uniform (0,1) random variables and generates random variables from an Exponential (β) distribution
Let X be a continuous random variable such that E[Xm] exists where m is some positive...
Let X be a continuous random variable such that E[Xm] exists where m is some positive integer. Prove that if k is a positive integer and k < m, then E[Xk] exists.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT