Question

Use Rstudio to compare the cdf and pdf of an exponential random variable with rate λ=2λ=2...

Use Rstudio to compare the cdf and pdf of an exponential random variable with rate λ=2λ=2 with the cdf and pdf of an exponential random variable with rate 1/2.

Homework Answers

Answer #1

The PDF and CDF of exponential random variable is plotted below.

The R code below.

lamda <- 2
plot(1:1)
dev.new()
curve(dexp(x,rate = lamda), xlim=c(0,4), xlab="x", ylab="PDF & CDF", main="Exponential distribution",lwd=2, col = "blue")
curve(pexp(x,rate = lamda), xlim=c(0,4), lwd=2, col = "red", add=TRUE)

The PDF and CDF of exponential random variable is plotted below.

The R code below.

lamda <- 1/2
plot(1:1)
dev.new()
curve(dexp(x,rate = lamda), ylim=c(0,1.2),xlim=c(0,8), xlab="x", ylab="PDF & CDF", main="Exponential distribution",lwd=2, col = "blue")
curve(pexp(x,rate = lamda), xlim=c(0,8), lwd=2, col = "red", add=TR
UE)

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
Suppose that X|λ is an exponential random variable with parameter λ and that λ|p is geometric...
Suppose that X|λ is an exponential random variable with parameter λ and that λ|p is geometric with parameter p. Further suppose that p is uniform between zero and one. Determine the pdf for the random variable X and compute E(X).
USING MATLAB: 1. Assume Y is an exponential random variable with rate parameter λ=2. (1) Generate...
USING MATLAB: 1. Assume Y is an exponential random variable with rate parameter λ=2. (1) Generate 1000 samples from this exponential distribution using inverse transform method (2) Compare the histogram of your samples with the true density of Y.
Problem #3. X is a random variable with an exponential distribution with rate λ = 7...
Problem #3. X is a random variable with an exponential distribution with rate λ = 7 Thus the pdf of X is f(x) = λ e−λx for 0 ≤ x where λ = 7. PLEASE ANSWER these parts if you can. f) Calculate the probability that X is at least .3 more than its expected value.Use the pexp function: g) Copy your R script for the above into the text box here.
Derive the cdf for an exponential distribution with parameter λ.
Derive the cdf for an exponential distribution with parameter λ.
Problem #3. X is a random variable with an exponential distribution with rate λ = 7...
Problem #3. X is a random variable with an exponential distribution with rate λ = 7 Thus the pdf of X is f(x) = λ e−λx for 0 ≤ x where λ = 7. a) Using the f(x) above and the R integrate function calculate the expected value of X. b) Using the f(x) above and the R integrate function calculate the expected value of X2 c) Using the dexp function and the R integrate command calculate the expected value...
The cdf of a continuous random variable ? is ?(?) = { 0 ; ? <...
The cdf of a continuous random variable ? is ?(?) = { 0 ; ? < −2 (1/2) + (3/32) (4? − ((?^3)/ 3) ); −2 ≤ ? < 2 1 ; ? ≥ 2 (a) Compute ?(? < 0), ?(−1 < ? < 1) and ?(? > 1). (b) Find the pdf ?(?). (Please use the complete format.)
Let X be an exponential random variable with parameter λ > 0. Find the probabilities P(...
Let X be an exponential random variable with parameter λ > 0. Find the probabilities P( X > 2/ λ ) and P(| X − 1 /λ | < 2/ λ) .
If the slope of the CDF at a point is 0; Select one: a. The PDF...
If the slope of the CDF at a point is 0; Select one: a. The PDF of the random variable at the point is also 0. b. The PDF of the random variable cannot be determined with this information. c. The PDF of the random variable at the point is infinity. d. The PDF of the random variable at the point is 1.
A random variable X takes values between -2 and 4 with probability density function (pdf) Sketch...
A random variable X takes values between -2 and 4 with probability density function (pdf) Sketch a graph of the pdf. Construct the cumulative density function (cdf). Using the cdf, find ) Using the pdf, find E(X) Using the pdf, find the variance of X Using either the pdf or the cdf, find the median of X
Let ? be a random variable with a PDF ?(?)= 1/(x+1) for ? ∈ (0, ?...
Let ? be a random variable with a PDF ?(?)= 1/(x+1) for ? ∈ (0, ? − 1). Answer the following questions (a) Find the CDF (b) Show that a random variable ? = ln(? + 1) has uniform ?(0,1) distribution. Hint: calculate the CDF of ?