Question

In: Computer Science

QUESTION 1 a) It is now known the average rate of infection from the spread of...

QUESTION 1

a) It is now known the average rate of infection from the spread of corona virus endemic in a certain city daily is 2. Assume a suitable distribution to model the process.

b) Write a matlab program for model the probability of infection for the next 15 days.

c) Run as simulated plot for the Probability distribution and Cumulative distribution from the program above.

d) Using Simulation model estimate the probability that 3 people will infected in the next two days.

QUESTION 2

a) i) Based on a graph of the probability distribution (Q1d) indicate the probability that 3 persons will contract the virus in a given day

ii) Find the mean and standard deviation of the number of infections from (Q1) in the past three days.

b) The recent global climate change has necessitated the need for a new model for predicting weather patterns. Two scientists who were modeling this process in Ghana ended up with two different system models.

i) What could be the possible reason(s) for the differences in their system model? Justify your answer.

ii) In relation to real world data from the process how can you select the best model to employ for subsequent simulations and prediction of the process?

QUESTION 3

We wish to model the blood type of a person. It is known that blood type is inherited. If both parents carry genes for the AS and AS blood types, each child has probability 0.3 of getting two S genes and so of having blood type SS. Different children inherit independently of each other.

a) Write a Matlab program to determine the probability that the first child these parents have with type SS blood is their fifth child.

b) In relation to the three classifications of mathematical models, discuss the given genetic modelling problem in 2(a).

c) The administration of the Kasoa Government hospital wants to improve its quality of service by reducing the waiting time of travelers. For that purpose, they want to design what could be the best queuing strategy to have the minimum waiting time. You have been task to advice on the best queuing strategy in order to reduce the waiting time of patients before attended to. Discuss how you will address the problem

Solutions

Expert Solution

QUESTION 1 :

You can change infection rate (transmission rate) and see how spread is affected (flatten the curve).

Infection rate = beta = number of social contacts x probability of contracting virus each contact. When we socially isolate we reduce beta and therefore spread.

An individual is infectious for approximately 7 days. During this time they pass covid19 to approximately 2.5 people. These 2 basic parameters determine the model dynamics.

Simulink model is of the following system of three odes:

dS/dt = -β(I/N)S
dI/dt = β(I/N)S – γI
dR/dt = γI

S = Number Susceptible Individuals
I = Number Infectious Individuals
R = Number Recovered Individuals
N= Total Population
β = Ep = Number Social contacts x probability of transmitting disease each contact = Infection rate
γ = Recovery Rate

Key scenarios of dynamics:
If, during 7 days of being infectious, a person passes to 1 person then the disease will not grow, i.e., number of infectious individuals stays the same.
If, during 7 days of being infectious, a person passes to 2 or more people the disease grows, i.e., number of infectious individuals grows.
If, during 7 days of being infectious, a person does not pass to another person (or, say 10 people are sick at exact same time and pass to 9 people over 7 days) the disease will reduce, i.e., number of sick individuals goes to zero.
As individuals recover, the number of susceptible people decline, and therefore spread slows and eventually reduces to zero

QUESTION 3 :

a) For this first 4 children should not have blood type SS, the probaility being 0.7 and the fifth child should have blood type SS, the probability being 0.3.

Hence the answer is 0.7* 0.7* 0.7* 0.7*0.3

Matlab program:

p = 1;

i=1;

while i<=5

if i==5

p = p*0.3;

else

p = p*0.7;

end

i=i+1;

end

disp(p)

Please refer to the screenshot of the code to understand the indentation of the code

OUTPUT :

please upvote if u like it thank you !


Related Solutions

1. Differentiate HIV infection from AIDS. Explain how HIV can spread in the community. 2. The...
1. Differentiate HIV infection from AIDS. Explain how HIV can spread in the community. 2. The STDs or venereal diseases can be transmitted from one person to another through sexual intercourse. Describe the symptoms of gonorrhea, genital herpes, and syphilis infections. Explain how they can be prevented.
1. Patients are known to arrive at a pharmacy randomly, with an average rate of four...
1. Patients are known to arrive at a pharmacy randomly, with an average rate of four patients arriving per hour 1.1 What is a probability that exactly three patients will arrive at the pharmacy during a particular hour 1.2 What is the probability that only one patient will arrive at the pharmacy during a 30 minutes interval 1.3 What is the probability that seven patient will arrive at the pharmacy during a two hour interval 2. An aeroscape compagny has...
QUESTION 1. On average, one in every 1000 people living in a city is known to...
QUESTION 1. On average, one in every 1000 people living in a city is known to have cancer. In a study carried out in this province, 5000 people were checked for health. According to this; a) Calculate the probability that 7 out of 5000 people will get cancer. b) Calculate the probability that no more than 1 person out of 5000 can get cancer.
Question) It is known that, on average, 2 people in 5 in a certain country are...
Question) It is known that, on average, 2 people in 5 in a certain country are overweight. A random sample of 400 people is chosen. Using a suitable approximation, find the probability that fewer than 165 people in the sample are overweight. It is based on using normal distribution as an approximation for the binomial distribution. Please explain in detail with all logical steps for better understanding so as to how to solve these types of questions.
one model for the spread of a rumor is that the rate of spread is proportional...
one model for the spread of a rumor is that the rate of spread is proportional to the product of the fraction y of the population who have heard the rumor and the fraction who have not heard the rumor a small town has 1000 inhabitants at 8Am , 80 people have heard a rumor by noon half the town has heard it. At what time will 90% of the population have heard the rumor? please solve this problem meticulously...
Question 1 The Paradox of Thrift implies that a. the average savings rate of 6% of...
Question 1 The Paradox of Thrift implies that a. the average savings rate of 6% of Americans is too low b. the average savings rate of 6% of Americans is too high c. while high rate of savings by some citizens is good, higher rate of savings by Americans may reduce aggregate demand d. Americans should not save at a higher rate than citizens of countries with whom we have high volumes of trade Question 2 Macroeconomic policy activism: a....
Recent headlines have highlighted the spread of MRSA infection in the United States. Accoridng to the...
Recent headlines have highlighted the spread of MRSA infection in the United States. Accoridng to the CDC, MRSA is responsible for over 90,000 serious infections and over 18,000 hospital stay-related deaths per year in the United States. These MRSA strains are responsible for many serious skin and soft tissue infections, as well as pneumonia. One major problem with MRSA is that occasionally the skin infection can spread to other organs of the body with more severe, life threatening symptoms, including...
Analyze how AIDS and malaria are spread, using the chain of infection. Discuss the means of...
Analyze how AIDS and malaria are spread, using the chain of infection. Discuss the means of transmission, chain of infection, and how the chain of infection was interrupted as well as what public health were taken.
White blood cells, also known as WBCs and leukocytes, protect the body from infection. WBCs arise...
White blood cells, also known as WBCs and leukocytes, protect the body from infection. WBCs arise from stem cells. There are three types: Lymphocytes, identified as B and T cells, derive from lymphoid stem cells while monocytes and granulocytes—which can be further broken down into neutrophils, basophils, and eosinophils—derive from myeloid stem cells. Immature WBCs are known as blast cells. An increase in leukocyte levels is known as leukocytosis, whereas a decrease is referred to as leukopenia. Disorders of WBCs...
It is known that the average American orders food from a restaurant in person or as...
It is known that the average American orders food from a restaurant in person or as take out 4.2 times a week on average. Suppose we take a sample of 30 Americans and find that the average amount of meals ordered out is 3.2 per week with a sample standard deviation of 2.82 meals. We are interested in testing if the average amount of meals ordered out is actually lower than 4.2 now. Using the sample of 30 adults, what...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT