Quartile

\usetikzlibrary{decorations.pathreplacing, arrows.meta}
\begin{document}
  \begin{tikzpicture}[font=\sffamily]
    % Ligne numérique principale
    \draw[thick, -{Stealth}] (0,0) -- (10,0);
    
    % Boîte de l'écart interquartile (IQR)
    % On utilise 'color' pour la compatibilité TikZJax
    \draw[fill=blue!10, draw=blue!80, thick] (2.5, -0.6) rectangle (7.5, 0.6);
    
    % Ligne de la médiane (Q2)
    \draw[very thick, blue!80] (5, -0.6) -- (5, 0.6);
    
    % Tics et étiquettes pour les quartiles
    \foreach \x/\label in {1/Min, 2.5/$Q_1$, 5/$Q_2$, 7.5/$Q_3$, 9/Max} {
      \draw[thick] (\x, 0.1) -- (\x, -0.1);
      \node[below=8pt] at (\x, 0) {\small \label};
    }
    
    \draw[decorate, decoration={brace, amplitude=10pt, raise=5pt}, thick] (2.5, 0.6) -- (7.5, 0.6) 
      node[midway, above=18pt] {Inter-quartile range [IQR]};
      
    \node at (1.75, 0.3) {\tiny 25\%};
    \node at (3.75, 0) {\tiny 25\%};
    \node at (6.25, 0) {\tiny 25\%};
    \node at (8.25, 0.3) {\tiny 25\%};
    
  \end{tikzpicture}
\end{document}