Introduction§
Les probabilités formalisent le hasard. Ce chapitre couvre le programme de Math Spé : espaces probabilisés, variables aléatoires discrètes et à densité, convergences et théorèmes limites. On s’appuie sur la théorie de la mesure de manière simplifiée, conformément au programme de prépa.
1. Espaces probabilisés§
1.1 Tribu et mesure de probabilité§
Un univers Ω \Omega Ω est l’ensemble de toutes les issues possibles d’une expérience aléatoire.
Une tribu (ou σ \sigma σ -algèbre) A \mathcal{A} A sur Ω \Omega Ω est une famille de parties de Ω \Omega Ω contenant Ω \Omega Ω , stable par complémentaire et par union dénombrable.
Une probabilité P P P sur ( Ω , A ) (\Omega, \mathcal{A}) ( Ω , A ) est une application P : A → [ 0 , 1 ] P : \mathcal{A} \to [0, 1] P : A → [ 0 , 1 ] telle que :
P ( Ω ) = 1 P(\Omega) = 1 P ( Ω ) = 1
σ \sigma σ -additivité : pour toute suite ( A n ) (A_n) ( A n ) d’événements deux à deux incompatibles, P ! ( ⋃ n A n ) = ∑ n P ( A n ) P!\left(\bigcup_{n} A_n\right) = \sum_{n} P(A_n) P ! ( ⋃ n A n ) = ∑ n P ( A n )
Le triplet ( Ω , A , P ) (\Omega, \mathcal{A}, P) ( Ω , A , P ) est un espace probabilisé .
1.2 Propriétés fondamentales§
P ( A ‾ ) = 1 − P ( A ) P(\overline{A}) = 1 - P(A) P ( A ) = 1 − P ( A )
P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B ) P(A \cup B) = P(A) + P(B) - P(A \cap B) P ( A ∪ B ) = P ( A ) + P ( B ) − P ( A ∩ B )
Si A ⊂ B A \subset B A ⊂ B , alors P ( A ) ≤ P ( B ) P(A) \leq P(B) P ( A ) ≤ P ( B ) (croissance)
Formule des probabilités totales : si ( B n ) (B_n) ( B n ) est un système complet d’événements, P ( A ) = ∑ n P ( A ∩ B n ) = ∑ n P ( A ∣ B n ) , P ( B n ) P(A) = \sum_n P(A \cap B_n) = \sum_n P(A|B_n),P(B_n) P ( A ) = ∑ n P ( A ∩ B n ) = ∑ n P ( A ∣ B n ) , P ( B n )
Formule de Bayes : P ( B k ∣ A ) = P ( A ∣ B k ) , P ( B k ) ∑ n P ( A ∣ B n ) , P ( B n ) P(B_k | A) = \dfrac{P(A|B_k),P(B_k)}{\sum_n P(A|B_n),P(B_n)} P ( B k ∣ A ) = ∑ n P ( A ∣ B n ) , P ( B n ) P ( A ∣ B k ) , P ( B k )
1.3 Indépendance§
Deux événements A , B A, B A , B sont indépendants si P ( A ∩ B ) = P ( A ) , P ( B ) P(A \cap B) = P(A),P(B) P ( A ∩ B ) = P ( A ) , P ( B ) .
Des événements A 1 , … , A n A_1, \ldots, A_n A 1 , … , A n sont mutuellement indépendants si pour toute partie I ⊂ 1 , … , n I \subset {1, \ldots, n} I ⊂ 1 , … , n :
P ! ( ⋂ i ∈ I A i ) = ∏ i ∈ I P ( A i ) P!\left(\bigcap_{i \in I} A_i\right) = \prod_{i \in I} P(A_i) P ! ( i ∈ I ⋂ A i ) = i ∈ I ∏ P ( A i )
L’indépendance deux à deux ne suffit pas pour l’indépendance mutuelle.
2. Variables aléatoires discrètes§
2.1 Définitions§
Une variable aléatoire discrète X X X est une application X : Ω → E X : \Omega \to E X : Ω → E (où E E E est un ensemble dénombrable) telle que pour tout x ∈ E x \in E x ∈ E , X = x ∈ A {X = x} \in \mathcal{A} X = x ∈ A .
La loi de X X X est la donnée des probabilités P ( X = x ) P(X = x) P ( X = x ) pour tout x ∈ E x \in E x ∈ E .
2.2 Espérance, variance§
Pour X X X à valeurs dans N \mathbb{N} N ou Z \mathbb{Z} Z (ou plus généralement à valeurs dénombrables dans R \mathbb{R} R ) :
Espérance : E ( X ) = ∑ x x , P ( X = x ) E(X) = \sum_{x} x,P(X = x) E ( X ) = ∑ x x , P ( X = x ) (si la série converge absolument)
Variance : V ( X ) = E ! [ ( X − E ( X ) ) 2 ] = E ( X 2 ) − E ( X ) 2 V(X) = E!\left[(X - E(X))^2\right] = E(X^2) - E(X)^2 V ( X ) = E ! [ ( X − E ( X ) ) 2 ] = E ( X 2 ) − E ( X ) 2
Écart-type : σ ( X ) = V ( X ) \sigma(X) = \sqrt{V(X)} σ ( X ) = V ( X )
Propriétés de l’espérance
Linéarité : E ( a X + b Y ) = a E ( X ) + b E ( Y ) E(aX + bY) = aE(X) + bE(Y) E ( a X + bY ) = a E ( X ) + b E ( Y ) (toujours, même sans indépendance)
Positivité : si X ≥ 0 X \geq 0 X ≥ 0 p.s., alors E ( X ) ≥ 0 E(X) \geq 0 E ( X ) ≥ 0
Théorème de transfert : E ( g ( X ) ) = ∑ x g ( x ) , P ( X = x ) E(g(X)) = \sum_x g(x),P(X = x) E ( g ( X )) = ∑ x g ( x ) , P ( X = x )
Propriétés de la variance
V ( a X + b ) = a 2 V ( X ) V(aX + b) = a^2 V(X) V ( a X + b ) = a 2 V ( X )
Si X X X et Y Y Y sont indépendantes : V ( X + Y ) = V ( X ) + V ( Y ) V(X + Y) = V(X) + V(Y) V ( X + Y ) = V ( X ) + V ( Y )
V ( X ) = 0 ⟺ X V(X) = 0 \iff X V ( X ) = 0 ⟺ X est constante p.s.
2.3 Lois classiques discrètes§
Loi Notation P ( X = k ) P(X = k) P ( X = k ) E ( X ) E(X) E ( X ) V ( X ) V(X) V ( X ) Bernoulli B ( p ) \mathcal{B}(p) B ( p ) p k ( 1 − p ) 1 − k p^k(1-p)^{1-k} p k ( 1 − p ) 1 − k , k ∈ 0 , 1 k \in {0,1} k ∈ 0 , 1 p p p p ( 1 − p ) p(1-p) p ( 1 − p ) Binomiale B ( n , p ) \mathcal{B}(n, p) B ( n , p ) ( n k ) p k ( 1 − p ) n − k \binom{n}{k}p^k(1-p)^{n-k} ( k n ) p k ( 1 − p ) n − k n p np n p n p ( 1 − p ) np(1-p) n p ( 1 − p ) Poisson P ( λ ) \mathcal{P}(\lambda) P ( λ ) e − λ λ k k ! e^{-\lambda}\dfrac{\lambda^k}{k!} e − λ k ! λ k λ \lambda λ λ \lambda λ Géométrique G ( p ) \mathcal{G}(p) G ( p ) p ( 1 − p ) k − 1 p(1-p)^{k-1} p ( 1 − p ) k − 1 , k ≥ 1 k \geq 1 k ≥ 1 1 p \dfrac{1}{p} p 1 1 − p p 2 \dfrac{1-p}{p^2} p 2 1 − p
Si X n ∼ B ( n , λ / n ) X_n \sim \mathcal{B}(n, \lambda/n) X n ∼ B ( n , λ / n ) avec λ \lambda λ fixé, alors X n → L P ( λ ) X_n \xrightarrow{\mathcal{L}} \mathcal{P}(\lambda) X n L P ( λ ) quand n → + ∞ n \to +\infty n → + ∞ .
2.4 Fonctions génératrices§
Pour X X X à valeurs dans N \mathbb{N} N , la fonction génératrice est :
G X ( s ) = E ( s X ) = ∑ k = 0 + ∞ P ( X = k ) , s k , ∣ s ∣ ≤ 1 G_X(s) = E(s^X) = \sum_{k=0}^{+\infty} P(X = k),s^k, \quad |s| \leq 1 G X ( s ) = E ( s X ) = k = 0 ∑ + ∞ P ( X = k ) , s k , ∣ s ∣ ≤ 1
Propriétés :
G X ( 1 ) = 1 G_X(1) = 1 G X ( 1 ) = 1
G X ′ ( 1 ) = E ( X ) G_X'(1) = E(X) G X ′ ( 1 ) = E ( X )
G X ′ ′ ( 1 ) = E ( X ( X − 1 ) ) G_X''(1) = E(X(X-1)) G X ′′ ( 1 ) = E ( X ( X − 1 )) , d’où V ( X ) = G X ′ ′ ( 1 ) + G X ′ ( 1 ) − [ G X ′ ( 1 ) ] 2 V(X) = G_X''(1) + G_X'(1) - [G_X'(1)]^2 V ( X ) = G X ′′ ( 1 ) + G X ′ ( 1 ) − [ G X ′ ( 1 ) ] 2
Si X ⊥ Y X \perp Y X ⊥ Y : G X + Y = G X ⋅ G Y G_{X+Y} = G_X \cdot G_Y G X + Y = G X ⋅ G Y
La fonction génératrice caractérise la loi.
3. Variables aléatoires à densité§
3.1 Définition§
Une variable aléatoire X X X est dite à densité s’il existe une fonction f X : R → R + f_X : \mathbb{R} \to \mathbb{R}_+ f X : R → R + , intégrable, telle que pour tout intervalle [ a , b ] [a, b] [ a , b ] :
P ( a ≤ X ≤ b ) = ∫ a b f X ( t ) , d t P(a \leq X \leq b) = \int_a^b f_X(t),dt P ( a ≤ X ≤ b ) = ∫ a b f X ( t ) , d t
La fonction f X f_X f X est la densité de X X X . On a ∫ − ∞ + ∞ f X ( t ) , d t = 1 \displaystyle\int_{-\infty}^{+\infty} f_X(t),dt = 1 ∫ − ∞ + ∞ f X ( t ) , d t = 1 .
3.2 Fonction de répartition§
La fonction de répartition de X X X est F X ( x ) = P ( X ≤ x ) F_X(x) = P(X \leq x) F X ( x ) = P ( X ≤ x ) .
Pour une v.a. à densité : F X ( x ) = ∫ − ∞ x f X ( t ) , d t F_X(x) = \displaystyle\int_{-\infty}^x f_X(t),dt F X ( x ) = ∫ − ∞ x f X ( t ) , d t
On a f X = F X ′ f_X = F_X' f X = F X ′ (presque partout)
F X F_X F X est croissante, continue à droite, lim − ∞ F X = 0 \lim_{-\infty} F_X = 0 lim − ∞ F X = 0 , lim + ∞ F X = 1 \lim_{+\infty} F_X = 1 lim + ∞ F X = 1
3.3 Espérance et variance (cas continu)§
E ( X ) = ∫ − ∞ + ∞ t , f X ( t ) , d t , V ( X ) = ∫ − ∞ + ∞ ( t − E ( X ) ) 2 , f X ( t ) , d t E(X) = \int_{-\infty}^{+\infty} t,f_X(t),dt, \qquad V(X) = \int_{-\infty}^{+\infty} (t - E(X))^2,f_X(t),dt E ( X ) = ∫ − ∞ + ∞ t , f X ( t ) , d t , V ( X ) = ∫ − ∞ + ∞ ( t − E ( X ) ) 2 , f X ( t ) , d t
Théorème de transfert : E ( g ( X ) ) = ∫ − ∞ + ∞ g ( t ) , f X ( t ) , d t E(g(X)) = \displaystyle\int_{-\infty}^{+\infty} g(t),f_X(t),dt E ( g ( X )) = ∫ − ∞ + ∞ g ( t ) , f X ( t ) , d t .
3.4 Lois classiques continues§
Loi Notation Densité f X ( t ) f_X(t) f X ( t ) E ( X ) E(X) E ( X ) V ( X ) V(X) V ( X ) Uniforme U ( [ a , b ] ) \mathcal{U}([a,b]) U ([ a , b ]) 1 b − a , 1 [ a , b ] ( t ) \dfrac{1}{b-a},\mathbb{1}_{[a,b]}(t) b − a 1 , 1 [ a , b ] ( t ) a + b 2 \dfrac{a+b}{2} 2 a + b ( b − a ) 2 12 \dfrac{(b-a)^2}{12} 12 ( b − a ) 2 Exponentielle E ( λ ) \mathcal{E}(\lambda) E ( λ ) λ , e − λ t , 1 t ≥ 0 \lambda,e^{-\lambda t},\mathbb{1}_{t \geq 0} λ , e − λ t , 1 t ≥ 0 1 λ \dfrac{1}{\lambda} λ 1 1 λ 2 \dfrac{1}{\lambda^2} λ 2 1 Normale N ( μ , σ 2 ) \mathcal{N}(\mu, \sigma^2) N ( μ , σ 2 ) 1 σ 2 π , e − ( t − μ ) 2 2 σ 2 \dfrac{1}{\sigma\sqrt{2\pi}},e^{-\frac{(t-\mu)^2}{2\sigma^2}} σ 2 π 1 , e − 2 σ 2 ( t − μ ) 2 μ \mu μ σ 2 \sigma^2 σ 2
Propriété sans mémoire de la loi exponentielle Si X ∼ E ( λ ) X \sim \mathcal{E}(\lambda) X ∼ E ( λ ) , alors pour s , t ≥ 0 s, t \geq 0 s , t ≥ 0 :
P ( X > s + t ∣ X > s ) = P ( X > t ) P(X > s + t \mid X > s) = P(X > t) P ( X > s + t ∣ X > s ) = P ( X > t )
C’est la seule loi continue à posséder cette propriété.
3.5 Arbre de choix de la loi§
flowchart TD
A["Modéliser une\nvariable aléatoire"] --> B{"Valeurs\ndiscrètes ou continues ?"}
B -- Discrètes --> C{"Combien d'issues\npar épreuve ?"}
C -- "2 (succès/échec)" --> D{"Nombre d'épreuves ?"}
D -- "1 épreuve" --> E["Bernoulli B(p)"]
D -- "n épreuves\nfixées" --> F["Binomiale B(n,p)"]
D -- "Jusqu'au 1er\nsuccès" --> G["Géométrique G(p)"]
C -- "Événements rares\nindépendants" --> H["Poisson P(λ)"]
B -- Continues --> I{"Quel type\nde phénomène ?"}
I -- "Tous les résultats\néquiprobables" --> J["Uniforme U([a,b])"]
I -- "Temps d'attente\nsans mémoire" --> K["Exponentielle E(λ)"]
I -- "Somme de\nnombreuses v.a.\n(TCL)" --> L["Normale N(μ,σ²)"]
4. Couples de variables aléatoires§
4.1 Loi conjointe et lois marginales§
La loi conjointe du couple ( X , Y ) (X, Y) ( X , Y ) est la donnée de P ( X ∈ A , Y ∈ B ) P(X \in A, Y \in B) P ( X ∈ A , Y ∈ B ) pour tous A , B A, B A , B .
Cas discret : P ( X = x i , Y = y j ) P(X = x_i, Y = y_j) P ( X = x i , Y = y j ) pour tous ( i , j ) (i, j) ( i , j ) .
Cas continu : densité conjointe f X , Y ( x , y ) f_{X,Y}(x, y) f X , Y ( x , y ) telle que P ( ( X , Y ) ∈ D ) = ∬ D f X , Y ( x , y ) , d x , d y P((X,Y) \in D) = \iint_D f_{X,Y}(x,y),dx,dy P (( X , Y ) ∈ D ) = ∬ D f X , Y ( x , y ) , d x , d y .
Les lois marginales se retrouvent par sommation / intégration :
P ( X = x i ) = ∑ j P ( X = x i , Y = y j ) P(X = x_i) = \sum_j P(X = x_i, Y = y_j) P ( X = x i ) = ∑ j P ( X = x i , Y = y j )
f X ( x ) = ∫ − ∞ + ∞ f X , Y ( x , y ) , d y f_X(x) = \int_{-\infty}^{+\infty} f_{X,Y}(x, y),dy f X ( x ) = ∫ − ∞ + ∞ f X , Y ( x , y ) , d y
4.2 Indépendance de variables aléatoires§
X X X et Y Y Y sont indépendantes si pour tous A , B A, B A , B :
P ( X ∈ A , Y ∈ B ) = P ( X ∈ A ) , P ( Y ∈ B ) P(X \in A, Y \in B) = P(X \in A),P(Y \in B) P ( X ∈ A , Y ∈ B ) = P ( X ∈ A ) , P ( Y ∈ B )
Équivalemment :
Cas discret : P ( X = x , Y = y ) = P ( X = x ) , P ( Y = y ) P(X = x, Y = y) = P(X = x),P(Y = y) P ( X = x , Y = y ) = P ( X = x ) , P ( Y = y ) pour tous x , y x, y x , y .
Cas continu : f X , Y ( x , y ) = f X ( x ) , f Y ( y ) f_{X,Y}(x, y) = f_X(x),f_Y(y) f X , Y ( x , y ) = f X ( x ) , f Y ( y ) p.p.
4.3 Covariance et corrélation§
Cov ( X , Y ) = E ! [ ( X − E ( X ) ) ( Y − E ( Y ) ) ] = E ( X Y ) − E ( X ) , E ( Y ) \operatorname{Cov}(X, Y) = E!\left[(X - E(X))(Y - E(Y))\right] = E(XY) - E(X),E(Y) Cov ( X , Y ) = E ! [ ( X − E ( X )) ( Y − E ( Y )) ] = E ( X Y ) − E ( X ) , E ( Y )
ρ ( X , Y ) = Cov ( X , Y ) σ ( X ) , σ ( Y ) ∈ [ − 1 , 1 ] \rho(X, Y) = \frac{\operatorname{Cov}(X, Y)}{\sigma(X),\sigma(Y)} \in [-1, 1] ρ ( X , Y ) = σ ( X ) , σ ( Y ) Cov ( X , Y ) ∈ [ − 1 , 1 ]
Si X ⊥ Y X \perp Y X ⊥ Y alors Cov ( X , Y ) = 0 \operatorname{Cov}(X,Y) = 0 Cov ( X , Y ) = 0 (la réciproque est fausse en général)
V ( X + Y ) = V ( X ) + V ( Y ) + 2 Cov ( X , Y ) V(X + Y) = V(X) + V(Y) + 2\operatorname{Cov}(X,Y) V ( X + Y ) = V ( X ) + V ( Y ) + 2 Cov ( X , Y )
∣ ρ ( X , Y ) ∣ = 1 ⟺ |\rho(X,Y)| = 1 \iff ∣ ρ ( X , Y ) ∣ = 1 ⟺ il existe a , b a, b a , b tels que Y = a X + b Y = aX + b Y = a X + b p.s.
5. Convergences de variables aléatoires§
5.1 Les quatre modes de convergence§
Soit ( X n ) (X_n) ( X n ) une suite de v.a. définies sur le même espace probabilisé, et X X X une v.a.
Convergence presque sûre : X n → p . s . X X_n \xrightarrow{p.s.} X X n p . s . X si P ! ( lim n → ∞ X n = X ) = 1 P!\left(\lim_{n \to \infty} X_n = X\right) = 1 P ! ( lim n → ∞ X n = X ) = 1 .
Convergence en probabilité : X n → P X X_n \xrightarrow{P} X X n P X si pour tout ε > 0 \varepsilon > 0 ε > 0 , P ( ∣ X n − X ∣ > ε ) → 0 P(|X_n - X| > \varepsilon) \to 0 P ( ∣ X n − X ∣ > ε ) → 0 .
Convergence dans L p L^p L p : X n → L p X X_n \xrightarrow{L^p} X X n L p X si E ( ∣ X n − X ∣ p ) → 0 E(|X_n - X|^p) \to 0 E ( ∣ X n − X ∣ p ) → 0 .
Convergence en loi : X n → L X X_n \xrightarrow{\mathcal{L}} X X n L X si F X n ( x ) → F X ( x ) F_{X_n}(x) \to F_X(x) F X n ( x ) → F X ( x ) pour tout x x x point de continuité de F X F_X F X .
5.2 Hiérarchie des convergences§
flowchart TD
A["Convergence\npresque sûre"] --> C["Convergence\nen probabilité"]
B["Convergence\ndans L^p"] --> C
C --> D["Convergence\nen loi"]
style A fill:#4a90d9,color:#fff
style B fill:#4a90d9,color:#fff
style C fill:#e6a817,color:#fff
style D fill:#d94a4a,color:#fff
Implications (et non-implications)
X n → p . s . X ⟹ X n → P X ⟹ X n → L X X_n \xrightarrow{p.s.} X \implies X_n \xrightarrow{P} X \implies X_n \xrightarrow{\mathcal{L}} X X n p . s . X ⟹ X n P X ⟹ X n L X
X n → L p X ⟹ X n → P X X_n \xrightarrow{L^p} X \implies X_n \xrightarrow{P} X X n L p X ⟹ X n P X (pour p ≥ 1 p \geq 1 p ≥ 1 )
Les réciproques sont fausses en général.
La convergence p.s. et la convergence dans L p L^p L p ne sont pas comparables.
Cas particulier : si X n → L c X_n \xrightarrow{\mathcal{L}} c X n L c (constante), alors X n → P c X_n \xrightarrow{P} c X n P c .
5.3 Inégalités utiles§
Pour X ≥ 0 X \geq 0 X ≥ 0 et a > 0 a > 0 a > 0 : P ( X ≥ a ) ≤ E ( X ) a P(X \geq a) \leq \dfrac{E(X)}{a} P ( X ≥ a ) ≤ a E ( X ) .
Inégalité de Bienaymé-Tchebychev Pour toute v.a. X X X d’espérance μ \mu μ et de variance σ 2 \sigma^2 σ 2 , pour tout ε > 0 \varepsilon > 0 ε > 0 :
P ( ∣ X − μ ∣ ≥ ε ) ≤ σ 2 ε 2 P(|X - \mu| \geq \varepsilon) \leq \frac{\sigma^2}{\varepsilon^2} P ( ∣ X − μ ∣ ≥ ε ) ≤ ε 2 σ 2
6. Loi des grands nombres§
6.1 Loi faible des grands nombres§
Soit ( X n ) (X_n) ( X n ) une suite de v.a. i.i.d. (indépendantes et identiquement distribuées) d’espérance μ \mu μ et de variance finie σ 2 \sigma^2 σ 2 . Soit X ‾ n = 1 n ∑ k = 1 n X k \overline{X}_n = \dfrac{1}{n}\sum_{k=1}^n X_k X n = n 1 ∑ k = 1 n X k . Alors :
X ‾ n → P μ \overline{X}_n \xrightarrow{P} \mu X n P μ
Esquisse de preuve. Par Bienaymé-Tchebychev :
P ( ∣ X ‾ n − μ ∣ ≥ ε ) ≤ V ( X ‾ n ) ε 2 = σ 2 n ε 2 → 0 ■ P(|\overline{X}_n - \mu| \geq \varepsilon) \leq \frac{V(\overline{X}_n)}{\varepsilon^2} = \frac{\sigma^2}{n\varepsilon^2} \to 0 \quad \blacksquare P ( ∣ X n − μ ∣ ≥ ε ) ≤ ε 2 V ( X n ) = n ε 2 σ 2 → 0 ■
6.2 Loi forte des grands nombres§
Sous les mêmes hypothèses (avec seulement l’existence de E ( ∣ X 1 ∣ ) E(|X_1|) E ( ∣ X 1 ∣ ) ), on a :
X ‾ n → p . s . μ \overline{X}_n \xrightarrow{p.s.} \mu X n p . s . μ
La moyenne empirique d’un grand nombre de réalisations converge (presque sûrement) vers l’espérance. C’est le fondement théorique des sondages et des simulations de Monte-Carlo.
7. Théorème central limite§
Soit ( X n ) (X_n) ( X n ) une suite de v.a. i.i.d. d’espérance μ \mu μ et de variance σ 2 > 0 \sigma^2 > 0 σ 2 > 0 . Alors :
Z n = X ‾ n − μ σ / n = ∑ k = 1 n X k − n μ σ n → L N ( 0 , 1 ) Z_n = \frac{\overline{X}_n - \mu}{\sigma / \sqrt{n}} = \frac{\sum_{k=1}^n X_k - n\mu}{\sigma\sqrt{n}} \xrightarrow{\mathcal{L}} \mathcal{N}(0, 1) Z n = σ / n X n − μ = σ n ∑ k = 1 n X k − n μ L N ( 0 , 1 )
Quelle que soit la loi des X k X_k X k (pourvu qu’elle ait une variance finie), la somme normalisée converge vers une loi normale. C’est pourquoi la loi normale apparaît si souvent en pratique.
Application : approximation normale de la binomiale Si S n ∼ B ( n , p ) S_n \sim \mathcal{B}(n, p) S n ∼ B ( n , p ) , alors pour n n n grand :
S n − n p n p ( 1 − p ) ≈ N ( 0 , 1 ) \frac{S_n - np}{\sqrt{np(1-p)}} \approx \mathcal{N}(0, 1) n p ( 1 − p ) S n − n p ≈ N ( 0 , 1 )
Exemple numérique : S 100 ∼ B ( 100 , 0.5 ) S_{100} \sim \mathcal{B}(100, 0.5) S 100 ∼ B ( 100 , 0.5 ) . Calculer P ( S 100 ≥ 55 ) P(S_{100} \geq 55) P ( S 100 ≥ 55 ) .
P ( S 100 ≥ 55 ) = P ! ( S 100 − 50 5 ≥ 1 ) ≈ 1 − Φ ( 1 ) ≈ 1 − 0.8413 = 0.1587 P(S_{100} \geq 55) = P!\left(\frac{S_{100} - 50}{5} \geq 1\right) \approx 1 - \Phi(1) \approx 1 - 0.8413 = 0.1587 P ( S 100 ≥ 55 ) = P ! ( 5 S 100 − 50 ≥ 1 ) ≈ 1 − Φ ( 1 ) ≈ 1 − 0.8413 = 0.1587
8. Exercices types corrigés§
Un test de dépistage a une sensibilité de 95% (P ( T + ∣ malade ) = 0.95 P(T^+|\text{malade}) = 0.95 P ( T + ∣ malade ) = 0.95 ) et une spécificité de 90% (P ( T − ∣ sain ) = 0.90 P(T^-|\text{sain}) = 0.90 P ( T − ∣ sain ) = 0.90 ). La prévalence de la maladie est 1%. Calculer P ( malade ∣ T + ) P(\text{malade}|T^+) P ( malade ∣ T + ) .
Solution.
Par Bayes :
P ( M ∣ T + ) = P ( T + ∣ M ) , P ( M ) P ( T + ∣ M ) , P ( M ) + P ( T + ∣ M ‾ ) , P ( M ‾ ) P(M|T^+) = \frac{P(T^+|M),P(M)}{P(T^+|M),P(M) + P(T^+|\overline{M}),P(\overline{M})} P ( M ∣ T + ) = P ( T + ∣ M ) , P ( M ) + P ( T + ∣ M ) , P ( M ) P ( T + ∣ M ) , P ( M )
= 0.95 × 0.01 0.95 × 0.01 + 0.10 × 0.99 = 0.0095 0.0095 + 0.099 = 0.0095 0.1085 ≈ 0.0876 = \frac{0.95 \times 0.01}{0.95 \times 0.01 + 0.10 \times 0.99} = \frac{0.0095}{0.0095 + 0.099} = \frac{0.0095}{0.1085} \approx 0.0876 = 0.95 × 0.01 + 0.10 × 0.99 0.95 × 0.01 = 0.0095 + 0.099 0.0095 = 0.1085 0.0095 ≈ 0.0876
Malgré un test performant, la probabilité d’être réellement malade sachant un test positif n’est que d’environ 8.8% ! Cela est dû à la faible prévalence.
Exercice 2 : Fonction génératrice§
Soit X ∼ P ( λ ) X \sim \mathcal{P}(\lambda) X ∼ P ( λ ) . Calculer G X ( s ) G_X(s) G X ( s ) et retrouver E ( X ) E(X) E ( X ) et V ( X ) V(X) V ( X ) .
Solution.
G X ( s ) = ∑ k = 0 + ∞ s k , e − λ λ k k ! = e − λ ∑ k = 0 + ∞ ( λ s ) k k ! = e − λ , e λ s = e λ ( s − 1 ) G_X(s) = \sum_{k=0}^{+\infty} s^k,e^{-\lambda}\frac{\lambda^k}{k!} = e^{-\lambda}\sum_{k=0}^{+\infty} \frac{(\lambda s)^k}{k!} = e^{-\lambda},e^{\lambda s} = e^{\lambda(s-1)} G X ( s ) = k = 0 ∑ + ∞ s k , e − λ k ! λ k = e − λ k = 0 ∑ + ∞ k ! ( λ s ) k = e − λ , e λ s = e λ ( s − 1 )
G X ′ ( s ) = λ , e λ ( s − 1 ) G_X'(s) = \lambda,e^{\lambda(s-1)} G X ′ ( s ) = λ , e λ ( s − 1 ) , donc E ( X ) = G X ′ ( 1 ) = λ E(X) = G_X'(1) = \lambda E ( X ) = G X ′ ( 1 ) = λ .
G X ′ ′ ( s ) = λ 2 , e λ ( s − 1 ) G_X''(s) = \lambda^2,e^{\lambda(s-1)} G X ′′ ( s ) = λ 2 , e λ ( s − 1 ) , donc G X ′ ′ ( 1 ) = λ 2 G_X''(1) = \lambda^2 G X ′′ ( 1 ) = λ 2 et E ( X ( X − 1 ) ) = λ 2 E(X(X-1)) = \lambda^2 E ( X ( X − 1 )) = λ 2 .
V ( X ) = E ( X 2 ) − E ( X ) 2 = E ( X ( X − 1 ) ) + E ( X ) − E ( X ) 2 = λ 2 + λ − λ 2 = λ V(X) = E(X^2) - E(X)^2 = E(X(X-1)) + E(X) - E(X)^2 = \lambda^2 + \lambda - \lambda^2 = \lambda V ( X ) = E ( X 2 ) − E ( X ) 2 = E ( X ( X − 1 )) + E ( X ) − E ( X ) 2 = λ 2 + λ − λ 2 = λ .
Exercice 3 : Densité d’une fonction de v.a.§
Soit X ∼ N ( 0 , 1 ) X \sim \mathcal{N}(0, 1) X ∼ N ( 0 , 1 ) . Déterminer la loi de Y = X 2 Y = X^2 Y = X 2 .
Solution.
Pour y > 0 y > 0 y > 0 : F Y ( y ) = P ( X 2 ≤ y ) = P ( − y ≤ X ≤ y ) = 2 Φ ( y ) − 1 F_Y(y) = P(X^2 \leq y) = P(-\sqrt{y} \leq X \leq \sqrt{y}) = 2\Phi(\sqrt{y}) - 1 F Y ( y ) = P ( X 2 ≤ y ) = P ( − y ≤ X ≤ y ) = 2Φ ( y ) − 1 .
En dérivant : f Y ( y ) = 2 , φ ( y ) ⋅ 1 2 y = 1 2 π y , e − y / 2 f_Y(y) = 2,\varphi(\sqrt{y}) \cdot \dfrac{1}{2\sqrt{y}} = \dfrac{1}{\sqrt{2\pi y}},e^{-y/2} f Y ( y ) = 2 , φ ( y ) ⋅ 2 y 1 = 2 π y 1 , e − y /2 pour y > 0 y > 0 y > 0 .
On reconnaît la loi du chi-deux à 1 degré de liberté : Y ∼ χ 2 ( 1 ) Y \sim \chi^2(1) Y ∼ χ 2 ( 1 ) , qui est aussi une Γ ( 1 / 2 , 1 / 2 ) \Gamma(1/2, 1/2) Γ ( 1/2 , 1/2 ) .
Exercice 4 : Loi des grands nombres§
On lance n n n fois un dé équilibré et on note X ‾ n \overline{X}_n X n la moyenne des résultats. Déterminer un n n n tel que P ( ∣ X ‾ n − 3.5 ∣ < 0.1 ) ≥ 0.95 P(|\overline{X}_n - 3.5| < 0.1) \geq 0.95 P ( ∣ X n − 3.5∣ < 0.1 ) ≥ 0.95 .
Solution.
X i ∼ U ( 1 , … , 6 ) X_i \sim \mathcal{U}({1, \ldots, 6}) X i ∼ U ( 1 , … , 6 ) , E ( X i ) = 3.5 E(X_i) = 3.5 E ( X i ) = 3.5 , V ( X i ) = 35 / 12 V(X_i) = 35/12 V ( X i ) = 35/12 .
Par Tchebychev : P ( ∣ X ‾ n − 3.5 ∣ ≥ 0.1 ) ≤ 35 / 12 n × 0.01 = 3500 12 n P(|\overline{X}_n - 3.5| \geq 0.1) \leq \dfrac{35/12}{n \times 0.01} = \dfrac{3500}{12n} P ( ∣ X n − 3.5∣ ≥ 0.1 ) ≤ n × 0.01 35/12 = 12 n 3500 .
On veut cette probabilité ≤ 0.05 \leq 0.05 ≤ 0.05 , soit 3500 12 n ≤ 0.05 \dfrac{3500}{12n} \leq 0.05 12 n 3500 ≤ 0.05 , d’où n ≥ 3500 0.6 ≈ 5834 n \geq \dfrac{3500}{0.6} \approx 5834 n ≥ 0.6 3500 ≈ 5834 .
L’estimation de Tchebychev est très grossière. Par le TCL, on aurait une bien meilleure borne.
Par le TCL : X ‾ n − 3.5 35 / 12 / n ≈ N ( 0 , 1 ) \dfrac{\overline{X}_n - 3.5}{\sqrt{35/12}/\sqrt{n}} \approx \mathcal{N}(0,1) 35/12 / n X n − 3.5 ≈ N ( 0 , 1 ) .
P ( ∣ X ‾ n − 3.5 ∣ < 0.1 ) ≈ 2 Φ ! ( 0.1 n 35 / 12 ) − 1 ≥ 0.95 P(|\overline{X}_n - 3.5| < 0.1) \approx 2\Phi!\left(\dfrac{0.1\sqrt{n}}{\sqrt{35/12}}\right) - 1 \geq 0.95 P ( ∣ X n − 3.5∣ < 0.1 ) ≈ 2Φ ! ( 35/12 0.1 n ) − 1 ≥ 0.95
Φ ! ( 0.1 n 35 / 12 ) ≥ 0.975 \Phi!\left(\dfrac{0.1\sqrt{n}}{\sqrt{35/12}}\right) \geq 0.975 Φ ! ( 35/12 0.1 n ) ≥ 0.975 , soit 0.1 n 35 / 12 ≥ 1.96 \dfrac{0.1\sqrt{n}}{\sqrt{35/12}} \geq 1.96 35/12 0.1 n ≥ 1.96 .
n ≥ 1.96 × 35 / 12 0.1 = 1.96 × 1.708 0.1 ≈ 33.5 \sqrt{n} \geq \dfrac{1.96 \times \sqrt{35/12}}{0.1} = \dfrac{1.96 \times 1.708}{0.1} \approx 33.5 n ≥ 0.1 1.96 × 35/12 = 0.1 1.96 × 1.708 ≈ 33.5 , d’où n ≥ 1123 n \geq 1123 n ≥ 1123 .
Exercice 5 : Théorème central limite§
Soit ( X n ) (X_n) ( X n ) i.i.d. suivant une loi exponentielle E ( 1 ) \mathcal{E}(1) E ( 1 ) . Calculer la limite en loi de Y n = n ( X ‾ n − 1 ) Y_n = \sqrt{n}\left(\overline{X}_n - 1\right) Y n = n ( X n − 1 ) .
Solution.
On a E ( X i ) = 1 E(X_i) = 1 E ( X i ) = 1 , V ( X i ) = 1 V(X_i) = 1 V ( X i ) = 1 . Par le TCL :
∑ k = 1 n X k − n n = n ( X ‾ n − 1 ) = Y n → L N ( 0 , 1 ) \frac{\sum_{k=1}^n X_k - n}{\sqrt{n}} = \sqrt{n}(\overline{X}_n - 1) = Y_n \xrightarrow{\mathcal{L}} \mathcal{N}(0, 1) n ∑ k = 1 n X k − n = n ( X n − 1 ) = Y n L N ( 0 , 1 )
Voir aussi : Intégrales Généralisées , Topologie Prépa
Commentaires