Let X1,...,Xn be a random sample from the pdf
f(x)=(1/b)exp[-(x-a)/b], a< x< infinity, 0< b< infinity,
where a and b are location and scale parameter, respectively.
Now I have to generate X of 1000 observations from the pdf. I am a R user.
For initiate the problem, I set parameter values of a and b arbitrarily. But to generate the probability f(x), I need to set the values of x, but I have been asked to generate X from the pdf. It seems to calculate the probabilities f(x) and to generate the values of X are simultaneous work. How can I do that ?