aboutsummaryrefslogtreecommitdiff
path: root/semestre 2/maths/5- Probabilité/cours.tex
blob: bf627689847fd3c7632a8736fa93f377993905e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
%%=====================================================================================
%%
%%       Filename:  cours.tex
%%
%%    Description:  
%%
%%        Version:  1.0
%%        Created:  03/06/2024
%%       Revision:  none
%%
%%         Author:  YOUR NAME (), 
%%   Organization:  
%%      Copyright:  Copyright (c) 2024, YOUR NAME
%%
%%          Notes:  
%%
%%=====================================================================================
\documentclass[a4paper, titlepage]{article}

\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{textcomp}
\usepackage[french]{babel}
\usepackage{amsmath, amssymb}
\usepackage{amsthm}
\usepackage[svgnames]{xcolor}
\usepackage{thmtools}
\usepackage{lipsum}
\usepackage{framed}
\usepackage{parskip}
\usepackage{titlesec}
\usepackage{newtxtext}

% \renewcommand{\familydefault}{\sfdefault}

% figure support
\usepackage{import}
\usepackage{xifthen}
\pdfminorversion=7
\usepackage{pdfpages}
\usepackage{transparent}
\newcommand{\incfig}[1]{%
	\def\svgwidth{\columnwidth}
	\import{./figures/}{#1.pdf_tex}
}

\pdfsuppresswarningpagegroup=1

\colorlet{defn-color}{DarkBlue}
\colorlet{props-color}{Blue}
\colorlet{warn-color}{Red}
\colorlet{exemple-color}{Green}
\colorlet{corol-color}{Orange}
\newenvironment{defn-leftbar}{%
  \def\FrameCommand{{\color{defn-color}\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}
\newenvironment{warn-leftbar}{%
  \def\FrameCommand{{\color{warn-color}\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}
\newenvironment{exemple-leftbar}{%
  \def\FrameCommand{{\color{exemple-color}\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}
\newenvironment{props-leftbar}{%
  \def\FrameCommand{{\color{props-color}\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}
\newenvironment{corol-leftbar}{%
  \def\FrameCommand{{\color{corol-color}\vrule width 3pt} \hspace{10pt}}%
  \MakeFramed {\advance\hsize-\width \FrameRestore}}%
 {\endMakeFramed}

\def \freespace {1em}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
 notebraces={}{},%
 headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{defn-color}Définition~\NUMBER\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{defn-leftbar},%
 postfoothook=\end{defn-leftbar},%
]{better-defn}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
 notebraces={}{},%
 headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{warn-color}Attention\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{warn-leftbar},%
 postfoothook=\end{warn-leftbar},%
]{better-warn}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
notebraces={}{},%
headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{exemple-color}Exemple~\NUMBER\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{exemple-leftbar},%
 postfoothook=\end{exemple-leftbar},%
]{better-exemple}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
 notebraces={}{},%
 headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{props-color}Proposition~\NUMBER\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{props-leftbar},%
 postfoothook=\end{props-leftbar},%
]{better-props}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
 notebraces={}{},%
 headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{props-color}Théorème~\NUMBER\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{props-leftbar},%
 postfoothook=\end{props-leftbar},%
]{better-thm}
\declaretheoremstyle[headfont=\sffamily\bfseries,%
 notefont=\sffamily\bfseries,%
 notebraces={}{},%
 headpunct=,%
% bodyfont=\sffamily,%
 headformat=\color{corol-color}Corollaire~\NUMBER\hfill\NOTE\smallskip\linebreak,%
 preheadhook=\vspace{\freespace}\begin{corol-leftbar},%
 postfoothook=\end{corol-leftbar},%
]{better-corol}

\declaretheorem[style=better-defn]{defn}
\declaretheorem[style=better-warn]{warn}
\declaretheorem[style=better-exemple]{exemple}
\declaretheorem[style=better-corol]{corol}
\declaretheorem[style=better-props, numberwithin=defn]{props}
\declaretheorem[style=better-thm, sibling=props]{thm}
\newtheorem*{lemme}{Lemme}%[subsection]
%\newtheorem{props}{Propriétés}[defn]

\newenvironment{system}%
{\left\lbrace\begin{align}}%
{\end{align}\right.}

\newenvironment{AQT}{{\fontfamily{qbk}\selectfont AQT}}

\usepackage{LobsterTwo}
\titleformat{\section}{\newpage\LobsterTwo \huge\bfseries}{\thesection.}{1em}{}
\titleformat{\subsection}{\vspace{2em}\LobsterTwo \Large\bfseries}{\thesubsection.}{1em}{}
\titleformat{\subsubsection}{\vspace{1em}\LobsterTwo \large\bfseries}{\thesubsubsection.}{1em}{}

\newenvironment{lititle}%
{\vspace{7mm}\LobsterTwo \large}%
{\\}

\renewenvironment{proof}{$\square$ \footnotesize\textit{Démonstration.}}{\begin{flushright}$\blacksquare$\end{flushright}}

\title{Probabilités}
\author{William Hergès\thanks{Sorbonne Université - Faculté des Sciences, Faculté des Lettres}}

\begin{document}
	\maketitle
	\tableofcontents
	\newpage
	\section{Espace probabilisé}
	Les probabilités sont très semblables à la théorie des ensembles.
	\begin{defn}
		On note $\Omega$ l'ensemble des issues possibles d'une expérience aléatoire. $\Omega$ est l'univers.
	\end{defn}

	\begin{lititle}
		Dictionnaire des probabilités
	\end{lititle}
	Cette petite partie est piquée de mon cours de maths au CPES (créé par M. Kerner et M. Cote, deux professeurs de mathématiques au Lycée Henri-IV).
	\begin{table}[htpb]
		\centering
		\caption{Dictionnaire}
		\label{tab:dico-proba}
		\begin{tabular}{|c|c|}
			\hline
			Théorie des ensembles & Probabilités \\
			\hline
			$w\in\Omega$ & issue de l'expérience \\
			$A\in\mathcal{P}(\Omega)$ & événement \\
			$\mathcal{P}(\Omega)$ ou l'ensemble des parties & tribu \\
			$\bar A = \Omega\backslash A$ ou complémentaire & contraire \\
			$A\cup B$ & $A$ ou $B$ \\
			$A\cap B$ & $A$ et $B$ \\
			$B\backslash A$ & $B$ mais pas $A$\\
			$A\subset B$ & $A$ implique $B$ \\
			$A\cap B = \varnothing$ ou $A$ et $B$ sont disjoints & $A$ et $B$ sont incompatibles \\
			$A\sqcup B$ & $A$ ou bien $B$ \\
			$E_1\sqcup E_2\sqcup\ldots\sqcup E_n = \Omega$ ou un partage & système complet d'évènements (s.e.c.)\\
			\hline
		\end{tabular}
	\end{table}

	\begin{defn}
		Un espace probabilisé est un univers $\Omega$ possédant une fonction $\mathbb{P}$ de $\mathcal{P}(\Omega)$ dans $[0;1]$ tel que
		\begin{enumerate}
			\item $\mathbb{P}(\Omega)=1$
			\item $\mathbb{P}(A\cup B)=\mathbb{P}(A)+\mathbb{P}(B)$, où $A$ et $B$ sont deux événements de $\Omega$ incompatibles.
		\end{enumerate}
	\end{defn}
	Un espace probabilisé est donc un univers avec une fonction assignant une probabilité à tous les événements de l'univers~!
	\begin{props}
		On a :
		$$ \mathbb{P}(\varnothing) = 0 $$
	\end{props}
	\begin{proof}
		On a :
		$$ \mathbb{P}(\Omega) = \mathbb{P}(\varnothing\cup\Omega) = \mathbb{P}(\varnothing) + \mathbb{P}(\Omega) = 1 $$
		Donc $\mathbb{P}(\varnothing) = 0$, car, par définition, $\mathbb{P}(\Omega) = 1$.
	\end{proof}
	\begin{props}
		On a pour tous événements $A$ et $B$ de $\Omega$, un espace probabilisé~:
		$$ \mathbb{P}(A\cup B) = \mathbb{P}(A) + \mathbb{P}(B) + \mathbb{P}(A\cap B) $$
	\end{props}
	\begin{proof}
		\AQT
	\end{proof}
	\section{Probabilités conditionnelles}
	\begin{defn}
		On dit que $A\subset\Omega$ est certain si et seulement si $\mathbb{P}(A) = 1$.

		On dit que $B\subset\Omega$ est impossible si et seulement si $\mathbb{P}(B) = 0$.
	\end{defn}
	\begin{props}
		À partir d'un événement $B$ non-impossible, on peut définir un espace probabilisé.

		Soit $(\Omega,\mathbb{P})$ un espace probabilisé. Soit $B$ un événement non-impossible de $(\Omega,\mathbb{P})$ (i.e. $\mathbb{P}(B)\neq 0$). On a que $(\Omega,\mathbb{P}_B)$ est un espace probabilisé avec $\mathbb{P}_B$ de $\mathcal{P}(\Omega)$ dans $[0;1]$ tel que :
		$$ \mathbb{P}_B(A) = \frac{\mathbb{P}(A\cap B)}{\mathbb{P}(B)} $$$A$ est un événement de $\Omega$. $\mathbb{P}_B(A)$ est la probabilité de $A$ sachant $B$.
	\end{props}
	\begin{proof}
		\AQT
	\end{proof}
	On peut aussi dire que $\mathbb{P}_B(A)$ est la probabilité de $A$ conditionnelle à $B$. 

	On peut aussi noter $\mathbb{P}_B(A) = \mathbb{P}(A|B)$.
	\section{Événements indépendants}
	\begin{defn}
		Soient $A$ et $B$ deux événements de l'espace probabilisé $(\Omega,\mathbb{P})$.

		On dit qu'ils sont indépendants si et seulement si~:
		$$ \mathbb{P}(A\cap B) = \mathbb{P}(A)\times\mathbb{P}(B) $$
	\end{defn}
	\begin{props}
		Si $A$ et $B$ sont indépendants et si $B$ n'est pas impossible, alors $$ \mathbb{P}_B(A) = \mathbb{P}(A) $$
	\end{props}
	\begin{proof}
		\AQT
	\end{proof}
	\begin{thm}[Théorème de Bayes]
		On note $\Omega$ l'union des $(C_i)_{i\in[|1,n|]}$ disjoints deux à deux.

		On note $R$ un événement de $\Omega$ sachant $\mathbb{P}_{C_i}(R)$ pour tout $i$ dans $[|i,n|]$.

		On a~:
		$$ \forall i\in[|1,n|],\quad\mathbb{P}_{R}(C_i) = \frac{\mathbb{P}_{C_i}(R)\mathbb{P}(C_i)}{\displaystyle \sum_{i=1}^{n} \mathbb{P}_{C_i}(R)\mathbb{P}(C_i)}$$
	\end{thm}
	\begin{exemple}
		On veut $\mathbb{P}_D(I)$. On sait que~:
		\begin{enumerate}
			\item $\mathbb{P}_F(D) = 1/2$
			\item $\mathbb{P}_I(D) = 3/4$
			\item $\mathbb{P}_A(D) = 1/4$
		\end{enumerate}
		On sait aussi que~:
		\begin{enumerate}
			\item $\mathbb{P}(F)=1/4$
			\item $\mathbb{P}(I)=1/4$
			\item $\mathbb{P}(A)=1/2$
		\end{enumerate}
	Donc~:
	\begin{align*}
		\mathbb{P}_D(I) &= \frac{\mathbb{P}_I(D)\mathbb{P}(I)}{\mathbb{P}_F(D)\mathbb{P}(F)+\mathbb{P}_I(D)\mathbb{P}(I)+\mathbb{P}_A(D)\mathbb{P}(A)} \\
						&= \frac{\frac{3}{4}\cdot \frac{1}{4}}{\frac{1}{4}\cdot \frac{1}{4}+\frac{3}{4}\cdot \frac{1}{4}+\frac{1}{4}\cdot \frac{1}{2}} \\
						&= \frac{3}{7}
	\end{align*}
	\end{exemple}
\end{document}