Pratique des Biostatistiques
Dernière modification: 19 décembre 2011

Produit matriciel

  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.
  • strict warning: Declaration of views_plugin_style_default::options() should be compatible with views_object::options() in /home/iamin/www/umdb/biostats/sites/default/modules/views/plugins/views_plugin_style_default.inc on line 24.
  • strict warning: Declaration of views_plugin_row::options_validate() should be compatible with views_plugin::options_validate(&$form, &$form_state) in /home/iamin/www/umdb/biostats/sites/default/modules/views/plugins/views_plugin_row.inc on line 134.
  • strict warning: Declaration of views_plugin_row::options_submit() should be compatible with views_plugin::options_submit(&$form, &$form_state) in /home/iamin/www/umdb/biostats/sites/default/modules/views/plugins/views_plugin_row.inc on line 134.
  • strict warning: Declaration of views_handler_filter::options_validate() should be compatible with views_handler::options_validate($form, &$form_state) in /home/iamin/www/umdb/biostats/sites/default/modules/views/handlers/views_handler_filter.inc on line 607.
  • strict warning: Declaration of views_handler_filter::options_submit() should be compatible with views_handler::options_submit($form, &$form_state) in /home/iamin/www/umdb/biostats/sites/default/modules/views/handlers/views_handler_filter.inc on line 607.
  • strict warning: Declaration of views_handler_filter_boolean_operator::value_validate() should be compatible with views_handler_filter::value_validate($form, &$form_state) in /home/iamin/www/umdb/biostats/sites/default/modules/views/handlers/views_handler_filter_boolean_operator.inc on line 159.
  • strict warning: Declaration of views_handler_argument::init() should be compatible with views_handler::init(&$view, $options) in /home/iamin/www/umdb/biostats/sites/default/modules/views/handlers/views_handler_argument.inc on line 744.
  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.
  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.
  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.
  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.
  • strict warning: Non-static method view::load() should not be called statically in /home/iamin/www/umdb/biostats/sites/default/modules/views/views.module on line 906.

Le produit matriciel AB est la généralisation du produit scalaire entre les lignes de A et les colonnes de B.

Imaginons qu’une association de consommateurs teste le prix de 4 listes d’achats dans 3 magasins M1, M2, M3.

Client 1 2 3 4
Pain(s) 2 0 10 0
Jambon (kg) 0,3 3 0 6
Bac(s) de bière 1 2 5 0
Bouteille(s) d'eau 6 16 0 24
Vidange(s) à rendre 0 0 0 0
Prix (€) M1 M2 M3
1 pain 2 1,8 2,2
1 kg de jambon 10 15 8
1 bac de bière 12 11 12
1 bouteille d'eau 1 1,5 0,8
1 vidange -0,1 -0,1 -0,1

Soit A la matrice des quantités de genre 5 x 4 et B 5 x3 la matrice des prix unitaires.

TeX Embedding failed!

Le prix à payer par chaque client dans chaque magasin est donné par le produit A’B = C

 A’ : 4 x 5, B : 5 x 3, C : 4 x 3

TeX Embedding failed!

La liste d’articles dans la liste d’achat doit forcément correspondre élément par élément à la liste d’articles dans la liste de prix : le nombre de colonnes de A doit être égal au nombre de lignes de B.

  M1 M2 M3
Client 1 25 28.1 23.6
Client 2 70 91 60.8
Client 3 80 73 82
Client 4 84 126 67.2

La faisabilité d’un produit matriciel et le genre de la matrice produite se lit aisément en représentant les genres par un jeu de dominos :

 A’ : 4 x 5
B : 5 x 3
 
les extrémités en contact correspondent:
le produit A'B est possible et la matrice produite aura pour genre les valeurs extérieures.
  
C : 4 x 3
 
     
B : 5 x 3
A’ : 4 x 5
 
les extrémités en contact ne correspondent pas :
le produit BA' est impossible.

Le produit matriciel n’est donc pas commutatif: A'B ≠ BA'. Par la contrainte du genre des partenaires, il ne pourrait l’être qu’entre matrices carrées, mais ce n’est pas le cas, sauf particularité.

Par contre la transposée du produit AB peut s’écrire B'A'= (AB)'

Exemple: B'A=(A'B)'

TeX Embedding failed!

Exemple interactif de produit matriciel :

Les deux matrices à fond blanc sont interactives: vous pouvez changer les valeurs dans les cellules, et visualiser le résultat directement dans la matrice à fond gris.

NB: pour valider un changement de valeur: "enter" dans firefox, "tab" dans safari et internet-explorer. Utiliser le point comme symbole décimal