4
> SD := x -> stats[describe,standarddeviation](x):
2
> y := [6,7,5,4,3,1,2]:
y := [6, 7, 5, 4, 3, 1, 2]
> AVE(y);
4
> SD(y);
2
> r := (x,y) -> stats[describe,linearcorrelation](x,y):
-13
---
14
> with(statplots): 

Compute the five number summary for the following data: x as before and y given by, |
> yb := [2,1,4,3,7,5,6]:
> avex := AVE(x): sdx := SD(x): avey := AVE(yb): sdy := SD(yb): rb := r(x,yb):
> avex, sdx, avey, sdy, rb;
23
4, 2, 4, 2, ----
28
> evalf(rb);
.8214285714
> l2 := plot(sdline(u,x,yb),u=0..10): 