Probability figure infections vs sample size
1 回表示 (過去 30 日間)
古いコメントを表示
I need to write a code to make a figure showing the probability of seeing one or more infections vs. sample size
The infection rate is 0.9 per 9000, or 0.0001
2 件のコメント
Sulaymon Eshkabilov
2021 年 9 月 25 日
1st, clarify the probability distribution and then generate the population with the given probability values. MATLAB has a few random number generators which can be employed.
回答 (1 件)
Kumar Pallav
2021 年 10 月 29 日
Hi,
You could first create a set of sample sizes. Based on that, you derive the number of people with infections based on the given probability. I have tried it with 5 sample of different sizes below.
x=[100 200 300 400 500];%Sample population size
y= x.*0.0001; %probable number of people with infections
plot(x,y)
Hope this helps!
0 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!