Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

R CODE HELP: I am NOT asking for you to do the entire coding for this problem. H

ID: 3305264 • Letter: R

Question

R CODE HELP: I am NOT asking for you to do the entire coding for this problem. However, I am struggling conceptually with how to approach it. I don't understand what exactly N is defined as. Any help in getting started with this problem would be greatly appreciated!

2. Let Un, U2, be independent and identically distributed random vari- ables with uniform distribution u(0,1). Define ve, al xi = 2, 1 × 2 2 × × xn and it is assumed that Write an R function that takes an argument n and returns a vector (Ni,..,N) where each N is obtained independently as above.

Explanation / Answer

U1,U2, ........ be independent and identically distributed random variables from Uniform (0, 1).

To find N we first calculate product of U1,U2,...... Then check it is greater than or equal to e-3 i. e. We choose n such that product of U1, U2,......,Un is greater than e-3 once we find such n note that if condition satisfy at n= 25 then ahead from n = 26 to our specified value of n condition satisfyed. For this purpose first we choose large enough length of n and then find Max of such n which satisfy above condition which is N.

They providing initial value of Ui =1 we have to find similar way remaning value of Ui by following above procedure.