\documentclass[a4paper,10pt]{article} \usepackage{myXsim} \title{Bilan - marché noir} \tribe{Terminale Sti2d} \date{Novembre 2019} \pagestyle{empty} \begin{document} \section{Loi discrète} \paragraph{Exemple - Marché noir} $X$ la variable aléatoire décrivant les gains du professeur après avoir confisquer puis revendu un téléphone. La loi de $X$ est décrite par un tableau ou un graphique reliant les valeurs prises par $X$ et les probabilités associées. \begin{minipage}{0.5\textwidth} \begin{tabular}[h]{|p{2cm}| *{6}{c|}} \hline Valeur & 10 & 40 & 150 & 200 & 250 \\ \hline Probabilité& 0.10 & 0.05 & 0.50 & 0.05 & 0.30\\ \hline \end{tabular} \end{minipage} \begin{minipage}{0.5\textwidth} \begin{tikzpicture}[scale=0.8, xscale=0.8] \draw[very thin, gray] (0,0) grid (10,4); \draw[line width=2mm,color=red] plot[ycomb] coordinates {(0.4, 0.4) (1.6, 0.2) (6, 2) (8, 0.2) (10, 1.2)}; \draw[->, very thick] (-0.5,0) -- (10.5,0); \draw[->, very thick] (0,-0.5) -- (0,4.2); \draw (0, 4.1) node [above] {Probabilité}; \draw (0, 4) node [left] {1}; \draw (0, 2) node [left] {0.5}; \draw (10, 0) node [above right] {Valeur}; \draw (10, 0) node [below] {250}; \draw (1, 0) node [below] {25}; \end{tikzpicture} \end{minipage} Espérance: \afaire{Compléter avec le calcul de l'espérance} \paragraph{Exemple - lancé de dé - équipartition} $X$ la variable aléatoire décrivant le score obtenu à un lancé de dé. $X$ a pour loi \begin{minipage}{0.5\textwidth} \begin{tabular}[h]{|p{2cm}|*{7}{c|}} \hline Valeur & 1 & 2 & 3 & 4 & 5 & 6 \\ \hline Probabilité& $\frac{1}{6}$ & $\frac{1}{6}$ & $\frac{1}{6}$ & $\frac{1}{6}$ & $\frac{1}{6}$ & $\frac{1}{6}$ \\ \hline \end{tabular} \end{minipage} \begin{minipage}{0.5\textwidth} \begin{tikzpicture}[scale=0.8] \draw[very thin, gray] (0,0) grid (7,4); \draw[line width=2mm,color=red] plot[ycomb] coordinates {(1, 1.666)(2, 1.666)(3, 1.666)(4, 1.666)(5, 1.666)(6, 1.666)}; \draw[->, very thick] (-0.5,0) -- (7.5,0); \draw[->, very thick] (0,-0.5) -- (0,4.2); \draw (0, 4.1) node [above] {Probabilité}; \draw (0, 4) node [left] {1}; \draw (0, 2) node [left] {0.5}; \draw (7, 0) node [above right] {Valeur}; \draw (1, 0) node [below] {1}; \draw (6, 0) node [below] {6}; \end{tikzpicture} \end{minipage} \end{center} Espérance: \afaire{Compléter avec le calcul de l'espérance} \end{document}