How do I compute the standardized sample mean from this data?
조회 수: 4 (최근 30일)
이전 댓글 표시
How do I compute the standardized sample mean from this data, in which I have to sample 1000 from an exponential random variable? I don't know how to input such an equation or what function is needed
N = 10000;
a=0; b=1;
x = a+(b-a)*rand([N,1]);
lambda = 1;
Y = -log(x)/lambda;
댓글 수: 0
답변 (1개)
KSSV
2022년 9월 20일
N = 10000;
a=0; b=1;
x = a+(b-a)*rand([N,1]);
lambda = 1;
Y = -log(x)/lambda;
Y_std = (Y-mean(Y))/std(Y) ;
mean(Y_std)
댓글 수: 0
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!