• December 4th, 2013, 05:14 PM
potatoes
Just basic ideas and hints would help.
Thank you so much.

Here is the problem:

Disease transmission, a monte carlo example.

Student has 5% chance of contact with another random student.
Each contact has a 7% chance of disease transmission.
After student is infected, they will not be contagious for the first three days and will become contagious for the fourth and fifth days. The sixth day, the student will not come to school. A student can not be re-infected if he/she is already infected.

Ignoring other variables....

If there are 550 students, what is the change of you catching the disease? Given that you are not the first to have the disease.
• December 4th, 2013, 05:24 PM
GregBrannon
Welcome to the forum!

You'll have to show what you've done so far to get help. We can't write it for you. It's our own version of ignoring other variables . . .
• December 4th, 2013, 09:07 PM
potatoes
Quote:

Originally Posted by GregBrannon
Welcome to the forum!

You'll have to show what you've done so far to get help. We can't write it for you. It's our own version of ignoring other variables . . .

I have no programming experience and this is an assignment assigned from my statistics teacher. I'm not looking for a program, I was just wondering if I could get a hint on how to start since I can't even start.

Sorry and thanks
• December 4th, 2013, 09:15 PM
Norm
Try thinking about how you would do it with a paper, pencil and calculator. Write some ideas down, think about how they might work, refine the ideas and write down some more.
• December 6th, 2013, 11:53 PM
potatoes
Quote:

Originally Posted by Norm
Try thinking about how you would do it with a paper, pencil and calculator. Write some ideas down, think about how they might work, refine the ideas and write down some more.

I tried writing down ideas but i was wondering:
I'm assuming I would have to run numerous trials to get a close number.
So could you use for loops to perform these numerous trials?
And would you have to use an array to store all the students?
• December 7th, 2013, 08:45 AM
Norm
I wouldn't worry about loops or arrays until the overall design for the program is done. Once you have a design, then worry about how to implement it.

Quote:

Student has 5% chance of contact with another random student.
What is the time-frame for that event? Once a day, week, lifetime?