Question

In: Statistics and Probability

i want R code for draw this density (pdf) Ailamujia poisson distribution Ailamujia logarithic distribution Ailamujia...

i want R code for draw this density (pdf)
Ailamujia poisson distribution
Ailamujia logarithic distribution
Ailamujia Geometric distribution


Solutions

Expert Solution

First the pdf's of three distributions are defined below. The parameters are beta(>0) and lambda(0<lambda<1).

The densities when plotted for beta=2 and lambda=.5 are given below.

For query in above, comment.

R Program

beta=2
lambda=.5
f1=function(x)
{
y=4*lambda*(beta^2)*x*exp(-2*beta*x)*exp(lambda*(1+2*beta*x)*exp(-2*beta*x))/(exp(lambda)-1)
return(y)
}
f2=function(x)
{
y=4*lambda*(beta^2)*x*exp(-2*beta*x)*(-log(1-lambda)*(1-lambda*(1+2*beta*x)*exp(-2*beta*x)))^(-1)

return(y)
}
f3=function(x)
{
y=4*lambda*(beta^2)*x*exp(-2*beta*x)*(1-lambda)/(lambda*(1-lambda*(1+2*beta*x)*exp(-2*beta*x))^2)

return(y)
}

curve(f1,0,3,ylim=c(0,2.5),col="red",ylab="Density")
curve(f2,0,3,ylim=c(0,2.5),col="green",add=TRUE)
curve(f3,0,3,ylim=c(0,2.5),col="blue",add=TRUE)
legend(1.5,2.5,c("Ailamujia-Poisson","Ailamujia-Logarithmic","Ailamujia-Geometric"), col=c("red","green","blue"),lty=1)


Related Solutions

I want to use R markdown to do the following questions and render a pdf for...
I want to use R markdown to do the following questions and render a pdf for all the answers!!! Q1. Suppose we toss 4 coins (each having heads probability = (1/2). Let X denote the random variable: (number of heads) - (number of tails). (a) What is the range of X? (give exact upper and lower bounds along with a line of explanation) (b) What is the probability mass function of (c) What is the cumulative density function of X...
i want all part in R code (1) The purity of oxygen produced by a fractionation...
i want all part in R code (1) The purity of oxygen produced by a fractionation process and the percentage of hydrocarbons in the main condensor of the processing unit, (2) The weight and systolic blood pressure of a group of males in the age group 25-30, (3) The number of pounds of steam used per month at a plant and the average monthly ambient temperature. Answer the following questions for each data sets. (i) Draw the scatter plot. (ii)...
A continuous probability density function (PDF) f ( X ) describes the distribution of continuous random...
A continuous probability density function (PDF) f ( X ) describes the distribution of continuous random variable X . Explain in words, and words only, this property: P ( x a < X < x b ) = P ( x a ≤ X ≤ x b )
I want to draw a sphere and I want to rotate it, How can I do...
I want to draw a sphere and I want to rotate it, How can I do it in JOGL? ( I am working on a program to visualize the sun ) please provide a pic of the code.
1) Define and elaborate upon the following: (a) A probability density function (b) A Poisson distribution...
1) Define and elaborate upon the following: (a) A probability density function (b) A Poisson distribution (c) A hypergeometric distribution (d) What does the value of a probability density function denote?
I want a report on facility safety. Civil Engineering Department (PDF)
I want a report on facility safety. Civil Engineering Department (PDF)
The random variable Y has an exponential distribution with probability density function (pdf) as follows: f(y)...
The random variable Y has an exponential distribution with probability density function (pdf) as follows: f(y) = λe−λy, y >0 = 0, otherwise (i) Showing your workings, find P (Y > s|Y > t), for s ≥ t. [3] (ii) Derive an expression for the conditional pdf of Y , conditional on that Y ≤ 200. [3] N(t) is a Poisson process with rate λ (iii) Find an expression for the Cumulative Distribution Function (CDF) of the waiting time until...
I am making google slide presentation and want to insert a pdf into it and cannot...
I am making google slide presentation and want to insert a pdf into it and cannot figure out how to do it
Real life applications of Poisson distribution with explain Or The uses of Poisson distribution in real...
Real life applications of Poisson distribution with explain Or The uses of Poisson distribution in real life and how? and Real life applications of Hypergeometric , binomial , geometric distribution with explain Or The uses of Hypergeometric, binomial, geometric distribution in real life and how?
Consider a Poisson distribution in which the offspring distribution is Poisson with mean 1.3. Compute the...
Consider a Poisson distribution in which the offspring distribution is Poisson with mean 1.3. Compute the (finite-time) extinction probabilities un = P{ Xn = 0 | X0 = 1 } for n = 0, 1, . . . , 5. Also compute the probability of ultimate extinction u∞.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT