The number of spam attacks seems to approximately follow a logistic model (see insert). Here is a list of the number of attacks P (in millions), starting on January 2001 (t = 0) through october 2002 (t = 21 ): 0.74, 0.81, 0.89, 1.01, 1.14, 1.301, 1.50, 1.74, 2.01, 2.31, 2.64, 2.98, 3.33, 3.67, 4.00, 4.30, 4.57, 4.80, 5.00, 5.16, 5.30, 5.41 Your job will be to find a suitable model for this data, and to use it to determine some trends. |
Write a report that has the following parts.
Tips, comments, and additional information
with(plots):
p1 :=PLOT(POINTS([1,2],[2,4],[1.5,3]));
p2 := plot(x^2,x=0..2):
display([a,b]);
with(DEtools):
de1 := diff(x(t),t) = 3*x(t)*(1-x(t)/300);
DEplot(de1,x(t),t=0..3,x=0..400);
Here is how to plot the slope field and a particular solution:
DEplot(de1,x(t),t=0..3,x=0..400,[[x(0)=50]]);
dsolve({de1,x(0)=50},x(t));
Curve fitting in Maple may be done with the fit command. Here
is one example:
with(stats):
xvals := [-2.,-1.,0.,1.,2.];
yvals := [-3,0,1,0,-3];
fit[leastsquare[[x,y], y=a*x^2+b*x+c]]( [xvals,yvals]);