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 )
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 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.
I want a report on facility safety. Civil Engineering Department (PDF)
I want a report on facility safety. Civil Engineering Department (PDF)
this is my code I want the opposite i want to convert a postfix expression to...
this is my code I want the opposite i want to convert a postfix expression to infix expression #include <iostream> #include <string> #define SIZE 50 using namespace std; // structure to represent a stack struct Stack {   char s[SIZE];   int top; }; void push(Stack *st, char c) {   st->top++;   st->s[st->top] = c; } char pop(Stack *st) {   char c = st->s[st->top];   st->top--;   //(A+B)*(C+D)   return c; } /* function to check whether a character is an operator or not. this function...
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
(R programming) Generate 50 samples from a Poisson distribution with lambda to be 2 and define...
(R programming) Generate 50 samples from a Poisson distribution with lambda to be 2 and define the log likelihood function Use optimization to find the maximum likelihood estimator of lambda. Repeat for 100 times using forloop. You will need to save the results of the estimated values of lambda.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT