Probability of an event

1 回表示 (過去 30 日間)
Kendall Donahoe
Kendall Donahoe 2020 年 4 月 28 日
編集済み: Kendall Donahoe 2020 年 4 月 28 日
thankyou

採用された回答

David Hill
David Hill 2020 年 4 月 28 日
You could loop through this many times to attempt to get a better answer.
x=randi(100,100000000,5);
m=[20,63,78,11,45];
s=zeros(100000000,1);
for k=1:5
s=s+double(x(:,k)==m(k));
end
proB=sum(s>=3)/100000000;

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by