a)Inverse Transform method:
If
has distribution, then
such that
is an observation from the probability distribution
, this means that we can generate observations from the
distribution
by generating
random variables (which most software programs can do easily) and
applying the
transformation.
Here
The inverse function is
.
To generate one random variable from F, generate
, then
b) Acceptance-Rejection Algorithm for continuous random variables
1. Generate a RV
distributed as
.
2. Generate
(independent from
)
3. If
, then set
; otherwise go back to 1, (“reject”).
Take
. Then
To find the maximum value of ,
,
Which is maximum when
So,
.
Iterations for generating a random number from G.
Let
and
.
.
Reject
Let
and
.
,
so accept
(25 pts.) Let the random variable X have pdf f(x) = { 0<x<1 1<isa Generate a...
Question Let X be a continuous random variable with the following probability density function (pdf) 0.5e fx (x) = { 0.5e-1 x < 0. <>0.. (a) Show that fx (x) is a valid pdf. (b) Find the cumulative distribution function Fx (.x). (e) Find F='(X). (d) Write an algorithm to generate a sample of size 1000 from the distribution of X using the inverse-transform method. Be as precise as possible.
Let X be a random variable with pdf S 4x3 0 < x <1 Let Y 0 otherwise f(x) = {41 = = (x + 1)2 (a) Find the CDF of X (b) Find the pdf of Y.
Let X1 Xn be a random sample from a distribution with the pdf f(x(9) = θ(1 +0)-r(0-1) (1-2), 0 < x < 1, θ > 0. the estimator T-4 is a method of moments estimator for θ. It can be shown that the asymptotic distribution of T is Normal with ETT θ and Var(T) 0042)2 Apply the integral transform method (provide an equation that should be solved to obtain random observations from the distribution) to generate a sam ple of...
1. Let X be a random variable with pdf f(x )-, 0 < x < 2- a) Find the cdf F(x) b) Find the mean ofX.v c) Find the variance of X. d) Find F (1.75) e) Find PG < x < +' f) Find P(X> 1). g) Find the 40th percentile.*
IV. Let X be a random variable with the following pdf: f() = (a + 1)2 for 0<< 1 0 elsewhere Find the maximum likelihood estimator of a, based on a random sample of size n. Check if the Maximum Likelihood Estimator in Part (a) is unbiased
Let X and Y be continuous random variables with following joint pdf f(x, y): y 0<1 and 0<y< 1 0 otherwise f(x,y) = Using the distribution method, find the pdf of Z = XY.
8. Let X and Y be a random variable with joint continuous pdf: f(x,y)- 0< y <1 0, otherwise a. b. c. Find the marginal PDF of X and Y Find the E(X) and Var(X) Find the P(X> Y)
Let X be a continuous random variable with the following PDF 6x(1 – x) if 0 < x < 1 fx(x) = 3 0.w. Suppose that we know Y | X = x ~ Geometric(x). Find the posterior density of X given Y = 2, i.e., fxY (2|2).
2. Let X be a continuous random variable with pdf f(x) = { cr", [w] <1, f() = 0. Otherwise, where the parameter c is constant (with respect to x). (a) Find the constant c. (b) Compute the cumulative distribution function F(2) of X. (c) Use F(2) (from b) to determine P(X > 1/2). (d) Find E(X) and V(X).
4. Let X have the following PDF: sin(x) , 0 < x < π , otherwise Ix(x) = 0 Find the CDF of X Using the Probability Integral Transformation Theorem, describe the process of generating values from the density of X Using R, generate 1,000 values using your process in part b. Produce a histogram of these generated values, and overlay the density curve of X over top. (Hint: in R, the function acos calculates the inverse cosine function.) Using...