Question: Consider the following R function mysomething = function ( n ) { u = runif ( n , 0 , 1 ) x = 0
Consider the following R function
mysomething functionn
u runifn
x u
fork in :n
ifukxk
else ifukxk
else ifukxk
else ifukxk
else ifukxk
else ifukxk
returnx
From what distribution does mysomething draw n samples from? Be as specific as possible.
To receive full credit, write down the set of outcomes and corresponding probabilities of this
distribution.
x
PX x
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
