16.12.2012 Views

Computer Algebra Recipes

Computer Algebra Recipes

Computer Algebra Recipes

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

350 CHAPTER 8. NONLINEAR DIAGNOSTIC TOOLS<br />

The randomly generated time series is plotted in Figure 8.18.<br />

> plot([seq([n,x[n]],n=1..N)],labels=["n","x[n]"]);<br />

1<br />

0.8<br />

0.6<br />

x[n]<br />

0.4<br />

0.2<br />

0<br />

50 100 n 150 200<br />

Figure 8.18: Time series for random data.<br />

If we didn't know how the series was produced, we would probably still<br />

conclude from the ¯gure that we are dealing with random noise. But one might<br />

have arrived at the same conclusion in the previous recipe from the time series<br />

plot. As in that recipe, let's plot xn+1 versus xn using a point style, thus<br />

producing Figure 8.19.<br />

> plot([seq([x[n],x[n+1]],n=1..N-1)],style=point,symbol=<br />

circle,symbolsize=16,labels=["x[n]","x[n+1]"]);<br />

1<br />

0.8<br />

0.6<br />

x[n+1]<br />

0.4<br />

0.2<br />

0<br />

0.2 0.4 x[n] 0.8 1<br />

Figure 8.19: xn+1 versus xn for time series.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!