Question

In: Statistics and Probability

Generate a random variable with Pareto(a, b) distribution with PDF given by f(x) = (aba)/(xa+1)

Generate a random variable with Pareto(a, b) distribution with PDF given by f(x) = (aba)/(xa+1)

Solutions

Expert Solution

By using R code

n=100
a=2
b=3
x={}
for(i in 1:n)
{ u=runif (1)
x[i]=b/(1-u)^(1/a)
}
x #100 random numbers

[1]  4.438007  4.109028  4.087269  3.073480  4.028701  3.019166  4.406113
  [8]  3.843584  3.463991  3.076578 14.059280  3.862273  5.081540  3.739576
 [15]  3.891572  3.623041  5.370899  3.261677  4.026012 29.844569  5.517689
 [22]  7.897716  5.642491  7.050867  3.060313  9.431027  4.152227  5.181548
 [29]  3.315387  3.722130 15.705937  3.230649  3.545882  6.126841  4.023591
 [36]  3.064140  3.883466  4.725636  3.098183  4.208045  3.385089  9.631301
 [43]  9.066154  4.097367  7.428448  4.195657  3.768385 35.018389  4.112516
 [50]  6.099770  3.016190  3.245830  3.928198  4.295770  4.433111  3.872509
 [57]  3.842630  7.775654  3.078793 10.185651  3.220501 28.174114  3.603175
 [64]  6.925029  5.342879  3.218503 18.927356  5.010576  3.086248  7.418161
 [71]  4.734602  4.019675  9.244882  3.455527  4.104277 13.259686  5.184171
 [78] 21.918495  3.196370  3.219295  4.097550  3.939188  3.164819  3.427731
 [85]  3.766181  3.588791  3.517475  5.696494  3.035002  4.916829  3.172269
 [92]  7.045089  3.339530  4.564480  6.498619  3.070068  3.186289  3.182966
 [99]  9.297420  3.887957

Related Solutions

5. Consider a random variable with a piecewise-constant PDF f(x) = 1/2, 0 < x ?...
5. Consider a random variable with a piecewise-constant PDF f(x) = 1/2, 0 < x ? 1, 1/8, 1 < x ? 3, 1/12 , 3 < x < 6. Design the simulation algorithm using the inverse-transform method.
A random variable X has a density given by f X ( x ) = (1...
A random variable X has a density given by f X ( x ) = (1 − x^2 ) [ u ( x ) − u ( x − 1) ] + aδ ( x − 2 )where u(x) is the unit step function and δ(x) is a delta function. a). Find the value of a, E(X) and σ δx^2 . b). Find and make a labeled sketch of FX (x) . C). W = the event {X ≥ 0.5}....
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 we have the following pdf for the random variable X f(x) ={x 0<=x<=1 c/x^2 1<=x<=...
Suppose we have the following pdf for the random variable X f(x) ={x 0<=x<=1 c/x^2 1<=x<= infinity 0 otherwise } (a) 2 points Find the value c such that f(x) is a valid pdf. (b) 3 points Find the cdf of X. (c) 1 point Find the 75th percentile of X.
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 )
Considering X a continuous random variable defined by the distribution function f(x) = 0 if x<1...
Considering X a continuous random variable defined by the distribution function f(x) = 0 if x<1 -k +k/x if 1<= x < 2 1 if 2<x Find k.
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...
Suppose that a random variable X has a pdf f(x) = ke^(-3x^2+6x-5), -infinity < x <...
Suppose that a random variable X has a pdf f(x) = ke^(-3x^2+6x-5), -infinity < x < infinity (a) Find k. (b) Find the mean and variance of X. (c) Find the probability that X is between 1 and 1.5.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT