Sponsored links: Algebra eBooks
 

Help Index

A

B

C

D

E

F

G

H

I

J

K

L

M

N

O

P

Q

R

S

T

U

V

W

X

Y

Z

The Maxima on-line user's manual

Algebra Calculator

Search:

Var Calculator

Var

Function: var (<list>)

data : [68,27,35,45,65,-3,10,21,10,45,38,13,53,25,72,58,10,45,20,15,70,34,22,88,48,55,59,47,43,28,22,1,53,60,-3,5,43,70,85,34,70,38,40,43,73,31,78,57,42,73,28,85,70,55,100,13,34,23,28,40,60,26,40,85,46,48,65,58,40,54,2,50,30,-8,35,60,40,36,34,100,10,50,7,33,52,25,80,4,34,22,32,58,0,27,70,32,34,60,100,70,55,82,100,60,6,58,100,-2,88,27,35,73,100,28,60,48,67,10,40,60,45,4,58,48,75,-8,40,40,50,63,36,40,31,75,52,65,50,34,48,34,-8,37,24,53,26,49,100,43,64,48,55,30,34,60,85,75,40,67,82,57,58,55,61,36,40,0,100,12,55,30,4,27,-5,11,43,70,95,55,19,11,18,21,18,63,45,100,-2,40,9,30,64,21,63,16,25,3,61,16,85,55,100,50,100,55,88,10,16,38,45,85,32,72,28,31,75,85,40,69,62,-3,88,52,40,16,70,21,28,100,28,27,31,22,4,41,58,28,60,58,100,24,22,55,23,17,45,70,18,-2,70,40,45,22,38,48,40,10,1,58,53,48,100,5,12,60,51,38,14,48,34,73,85,30,42,65,43,79,4,75,30,75,25,21,100,22,70,34,28,58,31,46,63,38,75,27,67,75,89,70,28,28,30,58,82,23,28,82,50,46,45,62,48,75,85,70,16,90,30,75,48,31,28,33,65,80,75,21,-8,16,65,33,-14,70,82,46,50,22,70,-7,24,48,12,52,6,33,73,53,88,42,29,19,82,31,53,70,16,38,-8,4,75,61,61,56,41,45,45,62,64,-2,43,36,85,24,70,70,32,23,60,70,34,48,24,16,4,-2,6,65,34,76,75,22,45,100] ;
maxzahl:100;
var:makelist([i,0],i,0,100);
cnt:0;
for j:1 thru length(data) step 1 do(    if(data[j]<=0) then     cnt:cnt+1);
var[1][2]:cnt;
for i:1 thru maxzahl step 1 do(    for j:1 thru length(data) step 1 do(        if(i = data[j]) then         cnt:cnt+1),var[i+1][2]:cnt,cnt:0);
var;
plot2d([[discrete,var],[discrete,var]],[x,0,100],[style, [points,2,1,1], [impulses,1]],[point_type,circle]);

Function: var (<matrix>) This is the sample variance, defined as n ==== 2 1 \ _ 2 s = - > (x - x) n / i ==== i = 1

Example:

          (%i1) load (descriptive)$
          (%i2) s1 : read_list (file_search ("pidigits.data"))$
          (%i3) var (s1), numer;
          (%o3)                   8.425899999999999

See also function var1.

There are also some inexact matches for var. Try ?? var to see them.

(%o1)                                true
(%i2) 

Var Example

Related Examples

var

var: rand(10);

Calculate

var

var (p, q, l, fx, e, ...

eq1: nx=p+q*x;

Calculate

var

var (p, q, l, fx, e, ...

eq1: nx=p+q*x;

eq2: sx=nx/fx;

Calculate

var

var: "var";

Calculate

var

var (p, q, l, fx, e, ...

Calculate

var

var (p, q, l, fx, e, ...

eq1: nx=p+q*x;

eq2: sx=nx/fx;

Calculate

var

f(mu,phi,var):=(-.5*(...

Calculate

var

var: "var";

Calculate

var

? tr_state_var;

Calculate