I have the following program:
function x = getx(x = 0, p = .5)
if rand > p
x = getx(x)+1;
else
x = 0;
end
end
for i=1:n
z(i) = getx();
end
What is the distribution of $z$ ?
I have the following program:
function x = getx(x = 0, p = .5)
if rand > p
x = getx(x)+1;
else
x = 0;
end
end
for i=1:n
z(i) = getx();
end
What is the distribution of $z$ ?
Copyright © 2021 JogjaFile Inc.