I have done this problem using R
> rm(list=ls())
> #Generating uniform for Uniform distribution
> u1<-runif(10000,0,1)
> u2<-runif(10000,0,1)
> #now taking alpha(a)=1.2 and beta(b)=1.5
> a<-1.2
> b<-1.5
> #Generating V1 and V2
> v1<-u1^(1/a)
> v2<-u2^(1/b)
> #Generating W
> w=v1+v2
> #Accessing the positions for which w<=1
> pos<-which(w<=1)
> #Accesing v1 and w for which w<=1
> nv1<-v1[pos]
> nw<-w[pos]
> #Prnting how many points under the condition w<=1
> length(pos)
[1] 3532
> #creating Random variable X=V1/W
> x<-(nv1/nw)
> #Plotting the distribution of obtained x
> par(mfrow=c(2,1))
> plot(density(x))
> #Plotting density for beta with parameter alpha=1.2 and
beta=1.5 with same
> #length of x
> plot(density(rbeta(length(pos),1.2,1.5)))
> # A view of the generated data.
> head(data.table(u1,u2,v1,v2,w))
u1 u2 v1 v2 w
1: 0.5777117 0.04967083 0.6330325 0.1351246 0.7681571
2: 0.9039229 0.52912337 0.9192694 0.6541911 1.5734605
3: 0.3109522 0.43463077 0.3777850 0.5737821 0.9515671
4: 0.1067732 0.13919905 0.1550191 0.2685906 0.4236098
5: 0.9949222 0.50549031 0.9957667 0.6345637 1.6303304
6: 0.1682814 0.04683880 0.2264801 0.1299383 0.3564184
> head(data.table(nv1,nw))
nv1 nw
1: 0.6330325 0.7681571
2: 0.3777850 0.9515671
3: 0.1550191 0.4236098
4: 0.2264801 0.3564184
5: 0.2086407 0.8312930
6: 0.5256138 0.8683544
> a
[1] 1.2
> b
[1] 1.5
> head(x)
[1] 0.8240925 0.3970135 0.3659480 0.6354333 0.2509834 0.6052988
Conclusion : Density curve obtained by both generated through acceptance rejection algorthim and direct by rbeta() for the parameters alpha=1.2 and beta=1.5 are same hence we can say that x follows beta(alpha,beta)
5. For α > 0 and β > 0, consider the following accept-reject algorithm: (1) Generate...
Suppose that you need to generate a random variable Y with a density function f (y) corresponding to a beta distribution with range [0,1], and with a non-integer shape parameter for the beta distribution. For this case there is no closed-form cdf or inverse cdf. Suppose your choices for generating Y are either: a) an acceptance-rejection strategy with a constant majorizing function g(u) = V over [0, 1], i.e., generate u1 and u2 IID from a U[0,1] generator and accept...
6.29. Let Xi, X2, , X,be a random sample from a gamma distribution with known parameter α-3 and unknown β > 0,' Discuss the construction of a confidence interval for B. Hint: what is the distribution of 2 Σ x/P Follow the procedure outlined in Exercise 6.28. 6.29. Let Xi, X2, , X,be a random sample from a gamma distribution with known parameter α-3 and unknown β > 0,' Discuss the construction of a confidence interval for B. Hint: what...
difficult…… 2and4 thanks Mathematical Statistics แ (Homework y 5) 1. Let , be a random sample fiom the densit where 0 s θ 1 . Find an unbiased estimator of Q 2. Let Xi, , x. be independent random variables having pdfAx; t) given by Show that X is a sufficient statistic for e f(xl A) =-e- . x > 0 3. Let Xi, , x,' be a random sample from exponential distribution with (a) Find sufficient statistic for λ....
Mathematical Statistics แ (Homework y 5) 1. Let , be a random sample fiom the densit where 0 s θ 1 . Find an unbiased estimator of Q 2. Let Xi, , x. be independent random variables having pdfAx; t) given by Show that X is a sufficient statistic for e f(xl A) =-e- . x > 0 3. Let Xi, , x,' be a random sample from exponential distribution with (a) Find sufficient statistic for λ. (b) Find an...
Suppose y has a「(1,1) distribution while X given y has the conditional pdf elsewhere 0 Note that both the pdf of Y and the conditional pdf are easy to simulate. (a) Set up the following algorithm to generate a stream of iid observations with pdf fx(x) 1. Generate y ~ fy(y). 2. Generate X~fxy(XY), (b) How would you estimate E[X]? Suppose y has a「(1,1) distribution while X given y has the conditional pdf elsewhere 0 Note that both the pdf...
11-5 (20) Assume X1.X2Xn are IID random variables, each with density fx (x)-6x-(0+1)n(x-1) , where θ > 0 and u(x) İs the unit step function. Use the CLT to find the approximate pdf of the random variable Z- In((X,X2X]. What happens as n Hint: make a change of variable x -ey and integration by parts, or results at the end of this problem set.
LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...
LMS project Using the notes discussed in class: Implementing the LMS Algorithm First generate some signals clear all close al1: Generate signals for testing the LMS Algorithm 1000 Fs Sampling frequency Sample time 1/Fs 10000: = L Length of signal S Time vector (0:L-1) *T ; Sum of a 50 Hz sinusoid and a 120 Hz sinusoid 0.7 sin (2*pi*50*t); inuside X d+ 10 randn (size (t)); Sinusoids 5O0000000L plus noise fiqure (1) plot (Fs*t (1:150),x (1:1500)) title('Signal Corrupted with...
, Samples In 30) drawn from a uniform distribution la Minitab was used to generate the samples. es 300, b 500) Variables 15 Observations Variable TypeFormValues Missing Sample 1 Quantitative Sample 2 Quantitative Numeric Sample 3 Quantitative Numeric Sample 4 Quantitative Sample 5 ive Sample 6 Quantitative Sample 7 Quantitative Observations Sample 8 Quantitative Numeric Sample 9 Quantitative Sample 10 Quantitative Sample 11 Quantitative Sample 12 Quantitative Sample 13 Quantitative Sample 14 Quantitative Sample 15 Quantitative Numeric Numeric Variable Numeric...
5. Consider a random sample Y1, . . . , Yn from a distribution with pdf f(y|θ) = 1 θ 2 xe−x/θ , 0 < x < ∞. Calculate the ML estimator of θ. 6. Consider the pdf g(y|α) = c(1 + αy2 ), −1 < y < 1. (a) Show that g(y|α) is a pdf when c = 3 6 + 2α . (b) Calculate E(Y ) and E(Y 2 ). Referencing your calculations, explain why M1 can’t be...