Maxima – 229 – descriptive – 6

work

Continuo da qui, copio dal Reference Manual, PDF scaricabile da qui, sono a p.722.

mean_deviation (list)
mean_deviation (matrix)
The mean deviation, defined as

229-0

(%i1) load ("descriptive")$

(%i2) s1 : read_list (file_search ("pidigits.data"))$

(%i3) mean_deviation (s1);
                                      51
(%o3)                                 --
                                      20
(%i4) s2 : read_matrix (file_search ("wind.data"))$

(%i5) mean_deviation (s2);
(%o5) [3.287959999999998, 3.075342, 3.23907, 4.715664000000001,
                                                             4.028546000000002]

median_deviation (list)
median_deviation (matrix)
The median deviation, defined as

229-1

where med is the median of list.

(%i6) s1 : read_list (file_search ("pidigits.data"))$

(%i7) median_deviation (s1);
                                       5
(%o7)                                  -
                                       2
(%i8) s2 : read_matrix (file_search ("wind.data"))$

(%i9) median_deviation (s2);
(%o9)            [2.75, 2.755, 3.08, 4.315, 3.309999999999999]

harmonic_mean (list)
harmonic_mean (matrix)
The harmonic mean, defined as

229-2

(%i10) y : [5, 7, 2, 5, 9, 5, 6, 4, 9, 2, 4, 2, 5]$

(%i11) harmonic_mean (y), numer;
(%o11)                         3.901858027632205
(%i12) s2 : read_matrix (file_search ("wind.data"))$

(%i13) harmonic_mean (s2);
(%o13) [6.948015590052786, 7.391967752360356, 9.055658197151745,
                                          13.44199028193692, 13.01439145898509]

See also functions mean and geometric_mean.

geometric_mean (list)
geometric_mean (matrix)
The geometric mean, defined as

229-3

(%i14) y : [5, 7, 2, 5, 9, 5, 6, 4, 9, 2, 4, 2, 5]$

(%i15) geometric_mean (y), numer;
(%o15)                         4.454845412337012
(%i16) s2 : read_matrix (file_search ("wind.data"))$

(%i17) geometric_mean (s2);
(%o17) [8.82476274347979, 9.22652604739361, 10.0442675714889,
                                           14.6127412634902, 13.96184163444275]

kurtosis (list)
kurtosis (matrix)
The kurtosis coefficient, defined as

229-4

(%i18) s1 : read_list (file_search ("pidigits.data"))$

(%i19) kurtosis (s1), numer;
(%o19)                        - 1.273247946514421
(%i20) s2 : read_matrix (file_search ("wind.data"))$

(%i21) kurtosis (s2);
(%o21) [- 0.2715445622195385, 0.119998784429451, - 0.4275233490482866,
                                    - 0.6405361979019522, - 0.4952382132352935]

See also functions mean, var and skewness.

â­•

Posta un commento o usa questo indirizzo per il trackback.

Trackback

Rispondi

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione /  Modifica )

Google photo

Stai commentando usando il tuo account Google. Chiudi sessione /  Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione /  Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione /  Modifica )

Connessione a %s...

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d blogger hanno fatto clic su Mi Piace per questo: