summaryrefslogtreecommitdiff
path: root/291/CH7/EX7.5b/eg7_5b.sce
blob: 6e26eb71ced070a30153dcb5ebd232deb329ea74 (plain)
1
2
3
4
5
6
7
phat = 0.52;
error = 0.04;
zalpha = 1.96;
//lowerlim = phat - (zalpha*sqrt(phat*(1-phat)/samplesize));
//upperlim = phat + (zalpha*sqrt(phat*(1-phat)/samplesize));
samplesize = (error/zalpha)^2/(phat*(1-phat));
disp(1/samplesize)