INSA Toulouse — Génie Civil 2-IC — 2026-2027

Probabilités & Statistique


Chapitre 6

Estimation statistique

Anthony Réveillac

Plan du chapitre

  1. Introduction et cadre général
  2. Estimation ponctuelle — propriétés
  3. Estimateurs de la moyenne et de la variance
  4. Intervalles de confiance pour la moyenne
  5. Intervalles de confiance pour une proportion
  6. Intervalles de confiance pour la variance

6.1 — Cadre général

Dans tous ces transparents on se place sur un espace probabilisé $(\Omega, \mathcal{A}, \mathbb{P})$.

On dispose d'observations sur une population de grande taille. On veut estimer un paramètre inconnu $\theta$ à partir d'un échantillon de petite taille.

🏭 Exemple fil rouge
Une usine produit des composants électroniques. On veut estimer la proportion $p$ de composants défectueux. Tester tous les composants est trop coûteux : on prélève $n$ pièces au hasard.
On modélise par des v.a.r. i.i.d. de Bernoulli : $X_i = 1$ si défectueux, $0$ sinon.
Estimation naturelle : $\hat{p} = \bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i$
Paramètres typiques à estimer
  • Espérance $m = \mathbb{E}[X]$
  • Proportion $p$ (cas Bernoulli)
  • Variance $\sigma^2 = \text{Var}(X)$

6.2 — Échantillon et estimateur

Définition — Échantillon
Un échantillon de taille $n$ d'une variable aléatoire $X$ est la donnée de $n$ variables aléatoires indépendantes $X_1, \ldots, X_n$ de même loi que $X$.
Définition — Estimateur
Un estimateur de $\theta$ est une fonction $\hat{\theta}_n = g(X_1, \ldots, X_n)$ calculée à partir de l'échantillon.
C'est une variable aléatoire qui approche le paramètre inconnu $\theta$.
Exemples d'estimateurs naturels
  • Moyenne empirique $\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i$ : estimateur de $m = \mathbb{E}[X]$
  • Proportion empirique $\bar{X}_n$ (cas Bernoulli) : estimateur de $p$
  • Variance empirique $S_n^2 = \frac{1}{n-1}\sum_{i=1}^n (X_i - \bar{X}_n)^2$ : estimateur de $\sigma^2$

6.3 — Propriétés d'un estimateur

Définition — Estimateur consistant
$\hat{\theta}_n$ est consistant si pour tout $\varepsilon > 0$ : $$\mathbb{P}[|\hat{\theta}_n - \theta| > \varepsilon] \xrightarrow[n \to +\infty]{} 0$$ ($\hat{\theta}_n$ converge en probabilité vers $\theta$)
Définition — Biais
Le biais de $\hat{\theta}_n$ est $\mathbb{E}[\hat{\theta}_n] - \theta$.
$\hat{\theta}_n$ est sans biais si $\mathbb{E}[\hat{\theta}_n] = \theta$.

6.3 — Critère de consistance

Théorème — Critère de consistance
Si $\mathbb{E}[\hat{\theta}_n] \xrightarrow{} \theta$ et $\text{Var}[\hat{\theta}_n] \xrightarrow{} 0$, alors $\hat{\theta}_n$ est consistant.
Écart quadratique moyen (EQM)
$$\mathbb{E}[(\hat{\theta}_n - \theta)^2] = \text{Var}[\hat{\theta}_n] + \text{biais}^2$$ Un bon estimateur minimise à la fois le biais et la variance.
On parle de compromis biais-variance.
Illustration
Sans biais, grande variance → dispersé autour de $\theta$
Biaisé, faible variance → concentré mais décalé de $\theta$
Le meilleur estimateur minimise l'EQM global.

6.3 — Estimateurs classiques

Moyenne empirique
$$\bar{X}_n = \frac{1}{n}\sum_{i=1}^n X_i$$
  • Consistante (LGN)
  • Sans biais : $\mathbb{E}[\bar{X}_n] = m$
  • $\text{Var}[\bar{X}_n] = \dfrac{\sigma^2}{n}$
Si $X \sim \mathcal{N}(m,\sigma^2)$ : $\bar{X}_n \sim \mathcal{N}\!\left(m, \dfrac{\sigma^2}{n}\right)$
Variance empirique
$$S_n^2 = \frac{1}{n-1}\sum_{i=1}^n (X_i - \bar{X}_n)^2$$
  • Consistante
  • Sans biais : $\mathbb{E}[S_n^2] = \sigma^2$
⚠️ Diviseur $n-1$ et non $n$ (pour garantir le sans-biais)
Loi du $\chi^2$
Si $X_i \sim \mathcal{N}(m,\sigma^2)$ : $$\frac{(n-1)S_n^2}{\sigma^2} \sim \chi^2_{(n-1)}$$

Rappel — Notion de quantile

Définition
Le quantile d'ordre $\alpha$ ($\alpha \in ]0,1[$) de $X$ est le réel $x_\alpha$ tel que $\mathbb{P}[X \leq x_\alpha] = \alpha$.
Exemple discret — Dé à 6 faces
Quantile d'ordre $\alpha = 0.6$ : $x_{0.6} = 4$ car $F_X(4) = 4/6 \geq 0.6$.
0.6 x₀.₆=4 1 2 3 5 6 1
Exemple continu — $\mathcal{E}(1)$
$F_X(x) = 1-e^{-x}$. Quantile d'ordre $\alpha$ : $x_\alpha = -\ln(1-\alpha)$.
Ex : $x_{0.6} = -\ln(0.4) \approx 0.916$.
0.6 x₀.₆ 1 2 3 1

Quantile de la loi $\mathcal{N}(0,1)$

$z_{1-\alpha/2}$ est le quantile d'ordre $1-\alpha/2$ de $\mathcal{N}(0,1)$ : $\mathbb{P}[Z \leq z_{1-\alpha/2}] = 1-\alpha/2$.
Par symétrie de la loi normale : $\mathbb{P}[-z_{1-\alpha/2} \leq Z \leq z_{1-\alpha/2}] = 1-\alpha$.
— z* z* 0 α/2 α/2 1 − α
$z^* = z_{1-\frac{\alpha}{2}}$ Aire centrale $= 1-\alpha$ $z^* = z_{1-\frac{\alpha}{2}}$
Valeurs usuelles
$\alpha = 5\%$ : $z_{97.5\%} = 1.96$  |  $\alpha = 10\%$ : $z_{95\%} = 1.645$
$\alpha = 1\%$ : $z_{99.5\%} = 2.576$  |  $\alpha = 2\%$ : $z_{99\%} = 2.326$

6.4 — IC pour la moyenne (variance connue)

$n$-échantillon $X_1,\ldots,X_n$ i.i.d. $\sim \mathcal{N}(m, \sigma^2)$, $m$ inconnu, $\sigma$ connu.

Construction
On a $\sqrt{n}\dfrac{\bar{X}_n - m}{\sigma} \sim \mathcal{N}(0,1)$.
Soit $z_{1-\alpha/2}$ le quantile d'ordre $1-\alpha/2$ de $\mathcal{N}(0,1)$.
Alors $\mathbb{P}\!\left[-z_{1-\alpha/2} \leq \sqrt{n}\dfrac{\bar{X}_n-m}{\sigma} \leq z_{1-\alpha/2}\right] = 1-\alpha$.
$$\text{IC}_{1-\alpha}(m) = \left[\bar{x}_n - z_{1-\alpha/2}\frac{\sigma}{\sqrt{n}},\;\; \bar{x}_n + z_{1-\alpha/2}\frac{\sigma}{\sqrt{n}}\right]$$
À 95% : $\alpha = 5\%$, $z_{97.5\%} = 1.96$
$$\text{IC}_{95\%}(m) = \left[\bar{x}_n - \frac{1.96\,\sigma}{\sqrt{n}},\;\; \bar{x}_n + \frac{1.96\,\sigma}{\sqrt{n}}\right]$$ Pour $n$ grand sans hypothèse normale, le TCL garantit la validité asymptotique.

6.5 — IC pour la moyenne (variance inconnue)

On remplace $\sigma$ par son estimateur $S_n$. La statistique suit alors une loi de Student.

Loi de Student $\mathcal{T}_{n-1}$
Si $X_i \sim \mathcal{N}(m,\sigma^2)$ (variance inconnue) : $$\sqrt{n}\frac{\bar{X}_n - m}{S_n} \sim \mathcal{T}_{n-1}$$
$$\text{IC}_{1-\alpha}(m) = \left[\bar{x}_n - t_{1-\alpha/2}\frac{s_n}{\sqrt{n}},\;\; \bar{x}_n + t_{1-\alpha/2}\frac{s_n}{\sqrt{n}}\right]$$
📋 $t_{1-\alpha/2}$ se lit dans les tables de Student à $n-1$ degrés de liberté
Pour $n$ grand (≥ 30), $\mathcal{T}_{n-1} \approx \mathcal{N}(0,1)$, donc $t_{1-\alpha/2} \approx z_{1-\alpha/2}$.

6.6 — IC pour une proportion

On estime $p$ par $\bar{X}_n = \frac{1}{n}\sum X_i$ (avec $X_i$ de Bernoulli).

Par le TCL : $\dfrac{\bar{X}_n - p}{\sqrt{p(1-p)/n}} \xrightarrow{\mathcal{L}} \mathcal{N}(0,1)$.

IC asymptotique pour $p$
En remplaçant $p$ dans les bornes par $\bar{X}_n$ (estimateur consistant) :
$$\text{IC}_{1-\alpha}(p) = \left[\bar{x}_n - z_{1-\alpha/2}\sqrt{\frac{\bar{x}_n(1-\bar{x}_n)}{n}},\;\; \bar{x}_n + z_{1-\alpha/2}\sqrt{\frac{\bar{x}_n(1-\bar{x}_n)}{n}}\right]$$
🏭 Application : 21 pièces défectueuses sur 1500
$\bar{x}_n = 21/1500 = 0.014$, $z_{97.5\%} = 1.96$ $$\text{IC}_{95\%}(p) = [0.0081,\; 0.0199]$$ Avec 95% de confiance : entre 0.81% et 1.99% de pièces défectueuses.

🎛️ Simulation — IC pour la moyenne

$X \sim \mathcal{N}(m=5, \sigma^2=4)$. On génère un échantillon de taille $n$ et on compare les IC à $1-\alpha$.

Échantillon (n=10)

6.7 — IC pour la variance

Si $X_i \sim \mathcal{N}(m,\sigma^2)$ : $\dfrac{(n-1)S_n^2}{\sigma^2} \sim \chi^2_{(n-1)}$.

Construction
Soient $v_{\alpha/2}$ et $v_{1-\alpha/2}$ les quantiles de $\chi^2_{(n-1)}$. $$\mathbb{P}\!\left[v_{\alpha/2} \leq \frac{(n-1)S_n^2}{\sigma^2} \leq v_{1-\alpha/2}\right] = 1-\alpha$$
$$\text{IC}_{1-\alpha}(\sigma^2) = \left[\frac{(n-1)s_n^2}{v_{1-\alpha/2}},\;\; \frac{(n-1)s_n^2}{v_{\alpha/2}}\right]$$
⚠️ Attention
La densité du $\chi^2$ n'est pas symétrique (contrairement à $\mathcal{N}(0,1)$), donc $v_{\alpha/2} \neq -v_{1-\alpha/2}$. On lit les deux quantiles séparément dans les tables.

Résumé du Chapitre 6

Paramètre Estimateur Loi pivot IC $1-\alpha$
$m$ ($\sigma$ connu) $\bar{X}_n$ $\mathcal{N}(0,1)$ $\bar{x}_n \pm z_{1-\alpha/2}\frac{\sigma}{\sqrt{n}}$
$m$ ($\sigma$ inconnu) $\bar{X}_n$ $\mathcal{T}_{n-1}$ $\bar{x}_n \pm t_{1-\alpha/2}\frac{s_n}{\sqrt{n}}$
$p$ (proportion) $\bar{X}_n$ $\mathcal{N}(0,1)$ (asympt.) $\bar{x}_n \pm z_{1-\alpha/2}\sqrt{\frac{\bar{x}_n(1-\bar{x}_n)}{n}}$
$\sigma^2$ $S_n^2$ $\chi^2_{(n-1)}$ $\left[\frac{(n-1)s_n^2}{v_{1-\alpha/2}}, \frac{(n-1)s_n^2}{v_{\alpha/2}}\right]$
Prochain chapitre : Tests d'hypothèses

🎯 Quiz — Chapitre 6

Q1.

$X_1,\ldots,X_n$ i.i.d. $\sim \mathcal{N}(m, \sigma^2)$, $\sigma$ connu. Quel est l'IC à 95% pour $m$ ?

  1. $\left[\bar{x}_n \pm \frac{1.96\,\sigma}{\sqrt{n}}\right]$
  2. $\left[\bar{x}_n \pm \frac{1.96\,\sigma}{n}\right]$
  3. $\left[\bar{x}_n \pm \frac{1.64\,\sigma}{\sqrt{n}}\right]$
  4. $\left[\bar{x}_n \pm \frac{1.96\,s_n}{\sqrt{n}}\right]$
Q2.

Un estimateur $\hat{\theta}_n$ est sans biais si :

  1. $\hat{\theta}_n \to \theta$ en probabilité
  2. $\mathbb{E}[\hat{\theta}_n] = \theta$
  3. $\text{Var}(\hat{\theta}_n) \to 0$
  4. $\hat{\theta}_n = \theta$ p.s.
Q3.

On observe 200 composants, 14 sont défectueux. Donner un IC à 95% pour la proportion $p$.

  1. $[0.035,\; 0.105]$
  2. $[0.07,\; 0.14]$
  3. $[0.04,\; 0.11]$
  4. $[0.014,\; 0.028]$
Q4.

$\hat{\theta}_n$ est consistant si :

  1. $\mathbb{E}[\hat{\theta}_n] = \theta$
  2. $\mathbb{P}[|\hat{\theta}_n - \theta| > \varepsilon] \to 0$ pour tout $\varepsilon > 0$
  3. $\text{Var}(\hat{\theta}_n) = 0$
  4. $\hat{\theta}_n \geq \theta$ p.s.

✅ Correction du Quiz

Q1 — Réponse : a)
$\sigma$ connu, loi normale : on utilise $z_{97.5\%} = 1.96$. $$\text{IC}_{95\%}(m) = \left[\bar{x}_n - \frac{1.96\,\sigma}{\sqrt{n}},\; \bar{x}_n + \frac{1.96\,\sigma}{\sqrt{n}}\right]$$
Q2 — Réponse : b) $\mathbb{E}[\hat{\theta}_n] = \theta$
Sans biais = la moyenne des estimations est égale à la vraie valeur. Attention : sans biais n'implique pas consistant (et vice-versa) !
Q3 — Réponse : a) $[0.035,\; 0.105]$
$\hat{p} = 14/200 = 0.07$, donc $1 - \hat{p} = 0.93$. L'IC pour une proportion utilise la variance de Bernoulli $\hat{p}(1-\hat{p})$ : $$\text{IC}_{95\%}(p) = \hat{p} \pm z_{0.975}\sqrt{\frac{\hat{p}(1-\hat{p})}{n}} = 0.07 \pm 1.96\sqrt{\frac{0.07 \times 0.93}{200}} = 0.07 \pm 0.035.$$
Q4 — Réponse : b)
Consistant = converge en probabilité vers $\theta$. Par Chebychev : si $\mathbb{E}[\hat{\theta}_n] \to \theta$ et $\text{Var}(\hat{\theta}_n) \to 0$, alors $\hat{\theta}_n$ est consistant.
Transparents réalisés avec l'assistance de Claude AI