tiancanrong的个人博客分享 http://blog.sciencenet.cn/u/tiancanrong

博文

回答一个博主

已有 3705 次阅读 2011-5-8 20:12 |系统分类:生活其它|关键词:学者

n=10000;%%模拟的次数
countend=0;%%符合博主条件的模拟次数
for mu=53:73
    for sigma=1:12  
        count=0;%%中间临时比较值
        for i=1:n
            chengji=normrnd(mu,sigma,1,95);chengji2=[74 60.33];
            chengji=[chengji,chengji2];
            chengji=sort(chengji);
            if (chengji(94)==74)&(chengji(68)>60.33)%%判断计数规则
                count=count+1;
            end
        end
        if countend<count
            countend=count;
            muend=mu;sigmaend=sigma;
        end
    end
end
x0=muend+sigmaend*norminv(1-30/97,0,1);%%%%最低pass分数线
               


https://m.sciencenet.cn/blog-306734-441971.html

上一篇:概率中的卷积
下一篇:前浪死在沙滩上

1 dulizhi95

发表评论 评论 (1 个评论)

数据加载中...
扫一扫,分享此博文

Archiver|手机版|科学网 ( 京ICP备07017567号-12 )

GMT+8, 2024-5-12 21:08

Powered by ScienceNet.cn

Copyright © 2007- 中国科学报社

返回顶部