필터 지우기
필터 지우기

Probability figure infections vs sample size

조회 수: 5 (최근 30일)
Colin Leonelli
Colin Leonelli 2021년 9월 24일
답변: Kumar Pallav 2021년 10월 29일
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
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.
Colin Leonelli
Colin Leonelli 2021년 9월 25일
I'm not sure what you mean

댓글을 달려면 로그인하십시오.

답변 (1개)

Kumar Pallav
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!

카테고리

Help CenterFile Exchange에서 Descriptive Statistics and Visualization에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by