In: Advanced Math
Here are five different functional models that might represent the growth of the number of Zika cases, where x represents the week number, and y represents the number of cumulative cases.
1. Linear y = 258.74x
2. Logarithmic y=937.37ln(x)-202.03
3. Quadratic y = 31.357x ^(2 )+ 134.93x − 122
4. Power y = 55.278x ^2.0101
5. Exponential y=47.399e^(0.6737x)
For each function model listed, create a graph for 1 ≤ x ≤ 5, along with the Zika case data from Step 2. Be sure your graphs clearly label the function and the actual data.
Step 2 that the question is referring to is
Below is data of the weekly number of suspected Zika cases in French Polynesia in 2013.Plot the data on the graph below.
Week # |
New Cases |
Cumulative Cases |
1 |
49 |
49 |
2 |
191 |
240 |
3 |
369 |
609 |
4 |
331 |
940 |
5 |
333 |
1273 |
%%Matlab code for plotting various model
clear all
close all
%all given data
xx=[1 2 3 4 5];
yy=[49 240 609 940 1273];
x=linspace(1,5);
y1= 258.74*x;
y2= 937.37*log(x)-202.03;
y3= 31.357*x.^(2 )+ 134.93*x - 122;
y4= 55.278.*x.^2.0101;
y5= 47.399.*exp(0.6737*x);
hold on
plot(xx,yy,'r*')
plot(x,y1)
plot(x,y2)
plot(x,y3)
plot(x,y4)
plot(x,y5)
hold off
legend('exact
data','Linear','Logarithmic','Quadratic','Power','Exponential','location','best')
xlabel('Number of week')
ylabel('Cumulative cases')
title('plotting of suspected zika cases')
grid on; box on;
%%%%%%%%%%%%%%%% End of Code %%%%%%%%%%%%%