Loi uniforme discrète
Modèle:À sourcer {{#invoke:Bandeau|ébauche}}
Modèle:Infobox/Début Modèle:Infobox/Titre Modèle:Infobox/Image Modèle:Infobox/Image Modèle:Infobox/Séparateur optionnel Modèle:Infobox/Image Modèle:Infobox/Séparateur optionnel Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Ligne mixte optionnelle Modèle:Infobox/Notice Modèle:Infobox/Fin
En théorie des probabilités, une loi discrète uniforme est une loi de probabilité discrète pour laquelle la probabilité de réalisation est identique (équiprobabilité) pour chaque modalité d’un ensemble fini de modalités possibles.
C'est le cas par exemple de la loi de la variable aléatoire donnant le résultat du lancer d'une pièce équilibrée, avec deux modalités équiprobables : Pile, et Face. C'est aussi le cas de celle donnant le résultat du jet d'un dé équilibré.
Cas général
Présentation
Une variable aléatoire <math>X</math> suit une loi discrète uniforme si <math>X</math> peut prendre <math>n</math> modalités distinctes <math>k_1 , k_2 , \cdots , k_n ,</math> avec la probabilité <math>\tfrac{1}{n}</math> pour chaque modalité <math>k_i .</math>
Plus formellement :
- Le support d'une variable aléatoire <math>X</math> est l'ensemble <math>\mathrm{A}</math> de toutes les modalités distinctes que <math>X</math> peut prendre.
- <math>X</math> est dite discrète, et uniforme sur <math>\mathrm{A} ,</math> si le cardinal <math>\# \mathrm{A}</math> de <math>\mathrm{A}</math> est fini, et si <math>X</math> prend ses modalités avec équiprobabilité.
Calcul d'une probabilité
La loi uniforme sur un ensemble <math>\mathrm{A}</math> se note parfois <math>\mathbb{U} _{ \mathrm{A} } .</math> Soient <math>\mathrm{A}</math> un ensemble fini et <math>X</math> une variable aléatoire suivant <math>\mathbb{U} _{ \mathrm{A} } \ ;</math> on note :
- <math>\mathbb{P} (X = k) = \mathbb{U} _{ \mathrm{A} } ( \{ k \} ) = \frac{ 1\!\!1 _{ \mathrm{A} } (k) }{ \# \mathrm{A} } ,</math>
où <math>1\!\!1 _{ \mathrm{A} }</math> désigne la fonction indicatrice (ou caractéristique) de l'ensemble <math>\mathrm{A} .</math> D'un point de vue pratique,
- <math>\mathbb{P} (X \in B) = \sum_{k \in B} \mathbb{P} (X = k) = \sum_{k \in B} \frac{ 1\!\!1 _{ \mathrm{A} } (k) }{ \# \mathrm{A} } = \frac{ \# ( \mathrm{A} \cap B ) }{ \# \mathrm{A} } .</math>
Cas particuliers
Modalités qualitatives
- Un exemple simple de loi discrète uniforme à modalités qualitatives est le lancer d’une pièce de monnaie équilibrée. L'ensemble des <math>n = 2</math> modalités possibles de <math>X</math> est Modèle:Math} ; et à chaque fois que la pièce est lancée, la probabilité d’un résultat donné vaut <math>\tfrac{1}{2} .</math>
- Un autre exemple est la loi donnant la couleur d'une carte tirée au hasard dans un jeu de 32 cartes indiscernables (sauf leurs faces). L'ensemble des <math>n = 4</math> couleurs possibles de <math>X</math> est Modèle:Math} ; et à chaque fois qu'une carte est tirée (avec remise), la probabilité d’un résultat donné vaut <math>\tfrac{1}{4} .</math>
- Considérons l'événement « La couleur de la carte n'est pas Pique » : <math>(X \ne \text{Pique}) \Leftrightarrow (X \in B),</math> où Modèle:Math}. Attention : en toute rigueur, <math>B</math> n'est pas un événement de l'univers <math>\Omega</math> des 32 cartes, mais de l'univers image de <math>\Omega</math> par <math>X:</math> celui des quatre couleurs possibles. Le cardinal de <math>B</math> est <math>3</math> (et non pas 24), donc en appliquant la dernière formule du § Calcul d'une probabilité, <math>\mathbb{P} (X \in B) = \tfrac{ \# B }{ \# \mathrm{A} } = \tfrac{3}{4} .</math>
Modalités quantitatives
Valeurs entières consécutives
Un exemple simple de loi discrète uniforme à valeurs entières consécutives est le jet d’un dé non biaisé. L'ensemble des <math>n = 6</math> valeurs possibles de <math>X</math> est <math>\mathrm{A} = \{ 1, 2, 3, 4, 5, 6 \} \ ;</math> et à chaque fois que le dé est jeté, la probabilité d’un résultat donné vaut <math>\tfrac{1}{6} .</math>
Le tableau ci-contre concerne la loi discrète uniforme sur l'ensemble <math>\{ 1,2, \cdots ,n \} .</math> Elle n'est qu'un cas particulier de loi discrète uniforme, mais elle est importante car elle génère l'ensemble des autres cas : si <math>Y</math> suit une loi discrète uniforme sur <math>\mathrm A = \{ k_1 , k_2 , \cdots , k_n \} ,</math> alors il existe une fonction <math>\psi</math> telle que <math>Y = \psi (X),</math> où <math>X</math> est une variable aléatoire suivant la loi discrète uniforme sur l'ensemble <math>\{ 1,2, \cdots ,n \} .</math> De plus, si <math>Y</math> est quantitative, alors on peut prendre pour <math>\psi</math> une fonction réelle infiniment dérivable<ref>Modèle:Lien web</ref>.
L'espérance d'une variable aléatoire <math>X</math> suivant la loi <math>\mathbb U_{ \{ 1,2, \cdots ,n \} }</math> est<ref name=Lejeune>Modèle:Ouvrage, p. 45, 46</ref>:
- <math>\mathbb{E} (X) = \frac{n+1}{2} .</math>
Sa variance est<ref name=Lejeune/>:
- <math>\mathbb{V} (X) = \frac{n^2-1}{12} .</math>
Sa fonction génératrice des moments est<ref>Modèle:Ouvrage</ref>:
- <math>\mathrm{M} _X (t) = \mathbb{E} \left( \mathrm{e} ^{tX} \right) = \frac 1n \sum_{k=1}^{n} \mathrm{e} ^{tk} = \frac{ \mathrm{e} ^t }{n} \frac{ \mathrm{e} ^{tn} -1 }{ \mathrm{e} ^t -1 } \quad \forall t \ne 0, \quad</math> et <math>\ \mathrm{M} _X (0) = 1.</math>
Sa fonction caractéristique est<ref>Modèle:Lien web</ref>:
- <math>\Phi _X (t) = \mathbb{E} \left( \mathrm{e} ^{ \mathrm{i} tX} \right) = \frac 1n \sum_{k=1}^{n} \mathrm{e} ^{ \mathrm{i} tk} = \frac{ \mathrm{e} ^{ \mathrm{i} t } }{n} \frac{ \mathrm{e} ^{ \mathrm{i} tn } -1 }{\mathrm{e} ^{ \mathrm{i} t } -1 } \quad \forall t \ne 0, \quad</math> et <math>\ \Phi _X (0) = 1.</math>
On peut généraliser ces résultats, par translation de valeur algébrique <math>a-1,</math> à une loi uniforme sur <math>n</math> entiers consécutifs :
- <math>\begin{matrix} \mathrm{A} & = & \{ k_1 , & k_2 , & \cdots , & k_{n-1} , & k_n \} \\ & = & \{ a, & a+1, & \cdots , & b-1, & b \} & = & [ \! [a,b] \! ] , \end{matrix}</math>
où <math>n = b-a+1.</math>
Son espérance est :
- <math>\mathbb{E} (X) = a-1 + \frac{n+1}{2} = \frac{a+b}{2} .</math>
Sa variance (invariante par translation) est :
- <math>\mathbb{V} (X) = \frac{n^2-1}{12} .</math>
Valeurs réelles ou entières
Si les modalités d’une variable aléatoire uniforme discrète <math>X</math> sont des nombres (entiers ou réels), Modèle:Cad si <math>\mathrm{A} = \{ k_1 , k_2 , \cdots , k_n \}</math> est une partie (finie) de <math>\Z</math> ou <math>\R ,</math> alors on peut exprimer probabilité, espérance, et fonction de répartition (Modèle:Cad distribution cumulative) en termes de distribution·s déterministe·s.
Soit <math>( \Omega , \mathcal{T} , \mathbb{P} )</math> un espace probabilisé.
Probabilité
En utilisant des notations de la théorie de la mesure, on peut exprimer la probabilité <math>\mathbb{P} _X</math> par :
- <math>\mathbb{P} _X = \mathbb{U} _{ \mathrm{A} } = \frac{1}{n} \sum_{i=1}^{n} \delta _{ k_i } ;</math>
- <math>\forall B \in \mathcal{B} ( \R ) , \quad \mathbb{P} (X \in B) = \mathbb{U} _{ \mathrm{A} } (B) = \frac{1}{n} \sum_{i=1}^{n} \delta _{ k_i } (B),</math>
- où <math>\delta _{ x_0 }</math> désigne la mesure de Dirac centrée en <math>x_0 .</math>
On peut exprimer la fonction de masse <math>\mathrm{p} _X : \R \rightarrow [0,1]</math> par :
- <math>\forall k \in \R , \quad \mathrm{p} _X (k) = \mathbb{P} (X = k) = \mathbb{U} _{ \mathrm{A} } ( \{ k \} ) = \frac{1}{n} \sum_{i=1}^{n} \delta _{ k_i } ( \{ k \} ). \quad \big( \{ k \} \in \mathcal{B} ( \R ) \big)</math>
Fonction de répartition
On peut définir la fonction de répartition <math>\mathrm{F} _X : \R \rightarrow [0,1]</math> par :
- <math>\forall k \in \R , \quad \mathrm{F} _X (k) = \mathbb{P} (X \le k).</math>
La fonction de répartition est croissante sur <math>\R .</math>
La fonction de répartition peut s'exprimer par :
- <math>\forall k \in \R , \quad \mathrm{F} _X (k) = {1 \over n} \sum_{i=1}^{n} \mathrm{H} ( k - k_i ),</math>
où <math>\mathrm{H} ( x - x_0 )</math> désigne la fonction marche de Heaviside translatée de <math>x_0 ,</math> Modèle:Cad la fonction de répartition correspondant à la distribution déterministe centrée en <math>x_0 \ ;</math> cette distribution est aussi appelée masse de Dirac en <math>x_0 .</math> Cela suppose d'adopter la convention <math>\mathrm{H} (0) = 1.</math>
Espérance
L'espérance d'une loi uniforme discrète de support <math>\mathrm{A} = \{ k_1 , k_2 , \cdots , k_n \} ,</math> partie (finie) de <math>\R</math> ou <math>\Z ,</math> est :
- <math>\mathbb{E} (X) = \frac{1}{n} \sum_{i=1}^{n} k_i \ ;</math>
Modèle:Cad, plus simplement<ref>Modèle:Lien web</ref>:
- <math>\mathbb{E} (X) = \frac{ k_1 + k_2 + \cdots + k_n }{n} .</math>
De façon plus générale, si <math>X</math> est une variable aléatoire suivant une loi uniforme discrète de support un ensemble <math>\mathrm{A} = \{ k_1 , k_2 , \cdots , k_n \}</math> (fini) quelconque, et si <math>\varphi</math> est une fonction définie sur <math>\mathrm{A}</math> et à valeurs réelles, alors, par théorème de transfert<ref>Modèle:Lien web</ref>:
- <math>\mathbb{E} \big( \varphi (X) \big) = \frac{1}{n} \sum_{i=1}^{n} \varphi ( k_i ).</math>
Somme
- La somme de deux variables aléatoires, même indépendantes, suivant des lois discrètes uniformes de même étendue suit une loi discrète non uniforme<ref>Modèle:Lien web</ref>.
- Par exemple, sur la figure triangulaire, <math>\mathbb{P} (S = 2) = \tfrac{1}{36} \ne \mathbb{P} (S = 3) = \tfrac{2}{36} = \tfrac{1}{18} .</math>
- La somme de deux variables aléatoires indépendantes suivant des lois discrètes uniformes d'étendues différentes peut suivre une loi discrète uniforme.
Dé trapézoédrique à dix faces, numérotées 00, 10, 20, ···, 90.
Dé trapézoédrique à dix faces, numérotées de 0 à 9.
- Par exemple, la somme des résultats d'un dé à dix faces numérotées en dizaines (00, 10, 20, ···, 90) et d'un dé à dix faces numérotées en unités (de 0 à 9) suit la loi discrète uniforme de support <math>\{ 00, 01, 02, \cdots , 98, 99 \} .</math>
Simulation
Il est possible de simuler une loi uniforme discrète sur <math>\{ 1,2, \cdots ,n \}</math> à l'aide de la loi uniforme continue sur <math>[0,1[,</math> en faisant l'observation suivante<ref>Modèle:Lien web</ref>: si <math>U</math> suit la loi <math>\mathbb{U} _{[0,1[}</math> et si <math>X</math> est définie par <math>X = \lfloor nU \rfloor +1,</math> où <math>\lfloor \cdot \rfloor</math> est la fonction partie entière, alors <math>X</math> suit la loi <math>\mathbb{U} _{ \{ 1,2, \cdots ,n \} } .</math>