Prove that Box-Muller method described in class generates independent standard normal random variables.
R Programs
#a)
f=function(n,nu,sigma)
{
for(i in 1:n)
{
u=runif(1,0,1)
v=runif(1,0,1)
x=sqrt(-2*log(u))*sin(2*pi*v)
y=sqrt(-2*log(u))*cos(2*pi*v)
print(x)
}
}
#b)
f=function(n,p)
{
lambda=-log(1-p)
for(i in 1:n)
{
u=rexp(1,rate=lambda)
x=trunc(u)
print(x)
}
}
Prove that Box-Muller method described in class generates independent standard normal random variables. 4 a) Prove...
4 a) Prove that the Box-Muller method described in class generates independent standard ll generate n to write a function which wi σ-) random variables b) Suppose that X is an exponential random variable with rate parameter λ and that Y is the integer part of X. Show that Y has a geometric distribution and use this result to give an algorithm to generate a random sample of size n from the geometric distribution with specified success probability p implementing...
4. Let X and Y be independent standard normal random variables. The pair (X,Y) can be described in polar coordinates in terms of random variables R 2 0 and 0 e [0,27], so that X = R cos θ, Y = R sin θ. (a) (10 points) Show that θ is uniformly distributed in [0,2 and that R and 0 are independent. (b) (IO points) Show that R2 has an exponential distribution with parameter 1/2. , that R has the...
Let Y.Y2, ,Yn be independent standard normal random variables. That is, Y i-1,... ,n, are iid N(0, 1) random variables. 25 a) Find the distribution of Σ 1 Y2 b) Let Wn Y?. Does Wn converge in probability to some constant? If so, what is the value of the constant?
python coding please 1.2 Sum of the Independent Random Variables Consider a set of 'n random variables XI,Xy . . . Х,, . Let's define the random variable Y as the stinmation of all X, variables: A) For the case m 10 and Xis being independent uniform variables in the interval -0.5,0.5, generate 100,000 samples of Y. Use the discretization technique from the previous section for the [-5,5 interval and plot the pmf of Y B) Now increase m to...
Practice problems using various statistical methods If n independent random variables X have normal distributions with means μ and the standard deviations σ , then determine the distribution of a. I. X-E(X) var(X) C. 2. If n independent random variables Xi have normal distributions with means μί and the standard deviations σί, then determine the distribution of a. b. Y -a1X1 + a2X2+ + anXn (ai constant) X-E(X) Vvar(X) 3. What is CLT? Proof briefly? What are t-, Chi-squared- and...
2. Suppose that you can draw independent samples (U,, U2,U. from uniform distribution on [0,1]. (a) Suggest a method to generate a standard normal random variable using (U, U2,Us...) Justify your answer. b) How can you generate a bivariate standard normal random variable? (Note that a bivariate standard normal distribution is a 2-dimensional normal with zero mean and identity covariance matrix.) (c) What can you suggest if you want to generate correlated normal random variables with covariance matrix Σ= of...
Let X and Y independent random variables with standard normal distribution. Calculate = mln 772 272 , ly Answer: 210g (2)/n Why? = mln 772 272 , ly Answer: 210g (2)/n Why?
R commands 2) Illustrating the central limit theorem. X, X, X, a sequence of independent random variables with the same distribution as X. Define the sample mean X by X = A + A 2 be a random variable having the exponential distribution with A -2. Denote by -..- The central limit theorem applied to this particular case implices that the probability distribution of converges to the standard normal distribution for certain values of u and o (a) For what...
Part 2. Random Variables 4. Two independent random variables Xand y are given with their distribution laws 0.3 0.7 0.8 0.2 Pi Find the distribution law and variance for the random variable V-3XY 5. There are 7 white balls and 3 red balls in a box. Balls are taken from the box without return at randomm until one white ball is taken. Construct the distribution law for the number of taken balls. 6. Let X be a continuous random variable...
#2 : Let X and Y be independent standard normal random variables, let Z have an arbitrary density function, and form Q = (X+ZY)/(V1+ Z2). Prove that Q also has a standard normal density function