Question: Evaluate a sum with a vector input

Experts,

 

I have a series as follows: 

b := (sum((x[i]-xbar)^3, i = 1 .. n))/(n*[(sum((x[i]-xbar)^2, i = 1 .. n))/(n-1)]^1.5)

(b is skewness of x)

Taking the derivatives:

 

c1:=diff(b, xbar);

c2:=diff(b, x[i]);
 

now I want to evaluate c1 and c2 with a matrix input:

 

x:=<<0.556960605000000>,<3.39039994000000>,<2.09005200300000>,<0.645104568000000>,<5.31340491600000>,<3.32743462200000>,<0.635452131000000>,<1.56878297000000>,<0.282764039000000>,<1.02862059900000>,<3.14927606700000>,<0.654644768000000>,<1.30502450500000>,<2.13887537900000>,<2.11803658900000>,<7.29488570500000>,<0.478693554000000>>

where xbar is the mean value of x

 

Can you please help me

 

Thanks

 

 

 

 

 

Please Wait...