117 lines
3.4 KiB
TeX
117 lines
3.4 KiB
TeX
|
\documentclass[14pt,xcolor=table]{classPres}
|
||
|
%\usepackage{myXsim}
|
||
|
|
||
|
\title{}
|
||
|
\author{}
|
||
|
\date{Septembre 2019}
|
||
|
|
||
|
\begin{document}
|
||
|
\begin{frame}{Simulation avec le tableur}
|
||
|
\begin{block}{Aléatoire}
|
||
|
|
||
|
\pause
|
||
|
Fonction pour faire de l'aléatoire:
|
||
|
\begin{center}
|
||
|
\texttt{ALEA()}
|
||
|
\end{center}
|
||
|
\pause
|
||
|
|
||
|
Renvoie un nombre aléatoire entre 0 et 1
|
||
|
|
||
|
\Ovalbox{\texttt{F9}} tirer un nouveau nombre
|
||
|
|
||
|
\end{block}
|
||
|
|
||
|
\pause
|
||
|
\begin{block}{Conditions}
|
||
|
Si ... Alors ... Sinon ...
|
||
|
|
||
|
\begin{center}
|
||
|
\texttt{SI(...; ... ; ...)}
|
||
|
\end{center}
|
||
|
\end{block}
|
||
|
\end{frame}
|
||
|
|
||
|
\begin{frame}{Marche aléatoire}
|
||
|
\begin{center}
|
||
|
\begin{tikzpicture}[scale=1.5]
|
||
|
\filldraw[very thick, ->] (-2.4,0) -- (2.4,0);
|
||
|
\draw[step=1] (-2,-0.1) grid (2,0.1);
|
||
|
\draw (0, 0) node [below] {0};
|
||
|
\draw (1, 0) node [below] {1};
|
||
|
\draw (2, 0) node [below] {2};
|
||
|
\draw (-1, 0) node [below] {-1};
|
||
|
\draw (-2, 0) node [below] {-2};
|
||
|
|
||
|
% \filldraw[very thick, ->] (0.1,0.3) -- (0.9,0.3) ;
|
||
|
% \filldraw[very thick, ->] (-0.1,0.3) -- (-0.9,0.3) ;
|
||
|
\filldraw[very thick, ->] (0.1,0.3) -- node[midway,above] {0,5} (0.9,0.3) ;
|
||
|
\filldraw[very thick, ->] (-0.1,0.3) -- node[midway,above] {0,5} (-0.9,0.3) ;
|
||
|
\end{tikzpicture}
|
||
|
\end{center}
|
||
|
P(\mbox{aller à droite ou }+1) = 0.5\\
|
||
|
P(\mbox{aller à gauche ou }-1) = 0.5
|
||
|
\pause
|
||
|
\begin{block}{Où sera-t-on au bout de 100 étapes?}
|
||
|
\pause
|
||
|
\begin{center}
|
||
|
\includegraphics[scale=0.2]{./fig/tabl_marche_alea}
|
||
|
\end{center}
|
||
|
\end{block}
|
||
|
\end{frame}
|
||
|
|
||
|
|
||
|
\begin{frame}{Marche aléatoire}
|
||
|
\framesubtitle{Direction favorite}
|
||
|
\begin{center}
|
||
|
\begin{tikzpicture}[scale=1.5]
|
||
|
\filldraw[very thick, ->] (-2.4,0) -- (2.4,0);
|
||
|
\draw[step=1] (-2,-0.1) grid (2,0.1);
|
||
|
\draw (0, 0) node [below] {0};
|
||
|
\draw (1, 0) node [below] {1};
|
||
|
\draw (2, 0) node [below] {2};
|
||
|
\draw (-1, 0) node [below] {-1};
|
||
|
\draw (-2, 0) node [below] {-2};
|
||
|
|
||
|
% \filldraw[very thick, ->] (0.1,0.3) -- (0.9,0.3) ;
|
||
|
% \filldraw[very thick, ->] (-0.1,0.3) -- (-0.9,0.3) ;
|
||
|
\filldraw[very thick, ->] (0.1,0.3) -- node[midway,above] {p} (0.9,0.3) ;
|
||
|
\filldraw[very thick, ->] (-0.1,0.3) -- node[midway,above] {...} (-0.9,0.3) ;
|
||
|
\end{tikzpicture}
|
||
|
\end{center}
|
||
|
P(\mbox{aller à droite ou }+1) = p\\
|
||
|
P(\mbox{aller à gauche ou }-1) = ...
|
||
|
\pause
|
||
|
\begin{block}{Où sera-t-on au bout de 100 étapes}
|
||
|
\begin{itemize}
|
||
|
\item quand $p=0.6$?
|
||
|
\item quand $p=0.4$?
|
||
|
\item quand $p=0.9$?
|
||
|
\end{itemize}
|
||
|
\end{block}
|
||
|
\end{frame}
|
||
|
|
||
|
\begin{frame}{Marché noir}
|
||
|
\framesubtitle{Simulation}
|
||
|
|
||
|
$X$ variable aléatoire respectant la loi suivante
|
||
|
\begin{center}
|
||
|
\small
|
||
|
\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{center}
|
||
|
Simuler cette variable pour calculer les gains du professeur après 10 confiscations.
|
||
|
\end{frame}
|
||
|
|
||
|
\end{document}
|
||
|
|
||
|
%%% Local Variables:
|
||
|
%%% mode: latex
|
||
|
%%% TeX-master: "master"
|
||
|
%%% End:
|
||
|
|