%数学建模案例选集
%游戏网站奖项设置
clc
clear
format long
n = 4;p = 1/n;q = 1-p;
a = 40;b = 100;
so = 5000;
for i = 1:23
s(i) = so + 100*i;
pmax = 0;
for M = 1:1000
ko = ceil((s(i)-so+M*a)/(a+b));
PM = 1-binocdf(ko-1,M,p);
if PM > pmax
pmax = PM;
Mmax = M;
end
end
pstar(i) = pmax;
mstar(i) = Mmax;
end
ans = [s',mstar',pstar',ceil(10000*pstar)']
s | M | P | 平均获奖人数 | 获奖价值 | 总奖金 |
5100 | 8 | 0.321456909 | 3215 | 200 | 64.3 |
5200 | 30 | 0.196593363 | 1966 | ||
5300 | 45 | 0.132658446 | 1327 | ||
5400 | 67 | 0.092603029 | 927 | ||
5500 | 82 | 0.065980194 | 660 | ||
5600 | 104 | 0.04762262 | 477 | 1000 | 47.7 |
5700 | 119 | 0.034682835 | 347 | ||
5800 | 141 | 0.025445539 | 255 | ||
5900 | 163 | 0.018760897 | 188 | ||
6000 | 178 | 0.013899866 | 139 | ||
6100 | 200 | 0.010332091 | 104 | 5000 | 52 |
6200 | 215 | 0.007704446 | 78 | ||
6300 | 237 | 0.005759738 | 58 | ||
6400 | 252 | 0.004315086 | 44 | ||
6500 | 274 | 0.003239649 | 33 | ||
6600 | 296 | 0.002435842 | 25 | ||
6700 | 311 | 0.001834738 | 19 | ||
6800 | 333 | 0.001383602 | 14 | ||
6900 | 348 | 0.001044758 | 11 | ||
7000 | 370 | 0.000789756 | 8 | ||
7100 | 385 | 0.000597561 | 6 | 10 | 60 |
7200 | 407 | 0.000452605 | 5 | ||
7300 | 429 | 0.000343049 | 4 |
Powered by Discuz! X2.5 © 2001-2013 数学建模网-数学中国 ( 蒙ICP备14002410号-3 蒙BBS备-0002号 ) 论坛法律顾问:王兆丰
GMT+8, 2024-5-23 12:46 , Processed in 0.280542 second(s), 27 queries .