Probability figure infections vs sample size

21 views (last 30 days)
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

Sign in to comment.

Answers (1)

Kumar Pallav
Kumar Pallav on 29 Oct 2021
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
Hope this helps!


Find more on MATLAB Report Generator in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by