Filter löschen
Filter löschen

Probability figure infections vs sample size

3 Ansichten (letzte 30 Tage)
Colin Leonelli
Colin Leonelli am 24 Sep. 2021
Beantwortet: Kumar Pallav am 29 Okt. 2021
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 Kommentare
Sulaymon Eshkabilov
Sulaymon Eshkabilov am 25 Sep. 2021
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.
Colin Leonelli
Colin Leonelli am 25 Sep. 2021
I'm not sure what you mean

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Kumar Pallav
Kumar Pallav am 29 Okt. 2021
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!

Community Treasure Hunt

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

Start Hunting!

Translated by