slides: blue -> yellow

This commit is contained in:
Michele Guerini Rocco 2020-06-12 00:40:04 +02:00
parent b639fdeea3
commit 8b781c599a
2 changed files with 25 additions and 25 deletions

View File

@ -86,16 +86,16 @@ How to estimate sample median, mode and FWHM?
\draw [line width=3, ->, cyclamen] (-5,0) -- (5,0);
\node [right] at (5,0) {$x$};
% points
\draw [blue!50!black, fill=blue] (-4.6,-0.1) rectangle (-4.8,0.1);
\draw [blue!50!black, fill=blue] (-4,-0.1) rectangle (-4.2,0.1);
\draw [blue!50!black, fill=blue] (-3.3,-0.1) rectangle (-3.5,0.1);
\draw [blue!50!black, fill=blue] (-2.3,-0.1) rectangle (-2.5,0.1);
\draw [blue!50!black, fill=blue] (-0.6,-0.1) rectangle (-0.8,0.1);
\draw [blue!50!black, fill=blue] (-0.1,-0.1) rectangle (0.1,0.1);
\draw [blue!50!black, fill=blue] (1.1,-0.1) rectangle (1.3,0.1);
\draw [blue!50!black, fill=blue] (2,-0.1) rectangle (2.2,0.1);
\draw [blue!50!black, fill=blue] (2.7,-0.1) rectangle (2.9,0.1);
\draw [blue!50!black, fill=blue] (4,-0.1) rectangle (4.2,0.1);
\draw [yellow!50!black, fill=yellow] (-4.6,-0.1) rectangle (-4.8,0.1);
\draw [yellow!50!black, fill=yellow] (-4,-0.1) rectangle (-4.2,0.1);
\draw [yellow!50!black, fill=yellow] (-3.3,-0.1) rectangle (-3.5,0.1);
\draw [yellow!50!black, fill=yellow] (-2.3,-0.1) rectangle (-2.5,0.1);
\draw [yellow!50!black, fill=yellow] (-0.6,-0.1) rectangle (-0.8,0.1);
\draw [yellow!50!black, fill=yellow] (-0.1,-0.1) rectangle (0.1,0.1);
\draw [yellow!50!black, fill=yellow] (1.1,-0.1) rectangle (1.3,0.1);
\draw [yellow!50!black, fill=yellow] (2,-0.1) rectangle (2.2,0.1);
\draw [yellow!50!black, fill=yellow] (2.7,-0.1) rectangle (2.9,0.1);
\draw [yellow!50!black, fill=yellow] (4,-0.1) rectangle (4.2,0.1);
% future nodes
\node at (-1,-0.3) (1a) {};
\node at (3.1,0.3) (1b) {};
@ -172,10 +172,10 @@ $$
\begin{center}
\begin{tikzpicture}
% points
\draw [blue!50!black, fill=blue] (-2,-0.1) rectangle (-1.8,0.1);
\draw [blue!50!black, fill=blue] (-0.1,-0.1) rectangle (0.1,0.1);
\draw [blue!50!black, fill=blue] (1.3,-0.1) rectangle (1.5,0.1);
\draw [blue!50!black, fill=blue] (0.7,-0.1) rectangle (0.9,0.1);
\draw [yellow!50!black, fill=yellow] (-2,-0.1) rectangle (-1.8,0.1);
\draw [yellow!50!black, fill=yellow] (-0.1,-0.1) rectangle (0.1,0.1);
\draw [yellow!50!black, fill=yellow] (1.3,-0.1) rectangle (1.5,0.1);
\draw [yellow!50!black, fill=yellow] (0.7,-0.1) rectangle (0.9,0.1);
\pause
% lines
\draw [cyclamen, dashed] (-1.9,0.1) -- (-1.9,1);
@ -194,7 +194,7 @@ $$
\pause
% sum
\draw [fill=white, white, opacity=0.5] (-3.5,0.1) rectangle (3,1.3);
\draw[domain=-3.4:3.4, smooth, variable=\x, blue, very thick]
\draw[domain=-3.4:3.4, smooth, variable=\x, yellow, very thick]
plot ({\x}, {exp(-(\x + 1.9)*(\x + 1.9)) +
exp(-\x*\x) +
exp(-(\x - 1.4)*(\x - 1.4)) +

View File

@ -37,18 +37,18 @@ Quantify distance between expected and observed CDF. KS statistic:
\draw [cyclamen, fill=cyclamen!20!white] ( 1.6,0) rectangle ( 2.3,4);
\draw [cyclamen, fill=cyclamen!20!white] ( 2.3,0) rectangle ( 2.5,4.5);
% points
\draw [blue!50!black, fill=blue] (-2.6,-0.1) rectangle (-2.4,0.1); %-2.5
\draw [blue!50!black, fill=blue] (-1.6,-0.1) rectangle (-1.4,0.1); %-1.5
\draw [blue!50!black, fill=blue] (-1,-0.1) rectangle (-0.8,0.1); %-0.9
\draw [blue!50!black, fill=blue] (-0.7,-0.1) rectangle (-0.5,0.1); %-0.6
\draw [blue!50!black, fill=blue] (0.4,-0.1) rectangle (0.6,0.1); % 0.5
\draw [blue!50!black, fill=blue] (0.6,-0.1) rectangle (0.8,0.1); % 0.7
\draw [blue!50!black, fill=blue] (1.1,-0.1) rectangle (1.3,0.1); % 1.2
\draw [blue!50!black, fill=blue] (1.5,-0.1) rectangle (1.7,0.1); % 1.6
\draw [blue!50!black, fill=blue] (2.2,-0.1) rectangle (2.4,0.1); % 2.3
\draw [yellow!50!black, fill=yellow] (-2.6,-0.1) rectangle (-2.4,0.1); %-2.5
\draw [yellow!50!black, fill=yellow] (-1.6,-0.1) rectangle (-1.4,0.1); %-1.5
\draw [yellow!50!black, fill=yellow] (-1,-0.1) rectangle (-0.8,0.1); %-0.9
\draw [yellow!50!black, fill=yellow] (-0.7,-0.1) rectangle (-0.5,0.1); %-0.6
\draw [yellow!50!black, fill=yellow] (0.4,-0.1) rectangle (0.6,0.1); % 0.5
\draw [yellow!50!black, fill=yellow] (0.6,-0.1) rectangle (0.8,0.1); % 0.7
\draw [yellow!50!black, fill=yellow] (1.1,-0.1) rectangle (1.3,0.1); % 1.2
\draw [yellow!50!black, fill=yellow] (1.5,-0.1) rectangle (1.7,0.1); % 1.6
\draw [yellow!50!black, fill=yellow] (2.2,-0.1) rectangle (2.4,0.1); % 2.3
% expected
\pause
\draw[domain=-2.5:2.5, yscale=5, smooth, variable=\x, blue, very thick]
\draw[domain=-2.5:2.5, yscale=5, smooth, variable=\x, yellow, very thick]
plot ({\x}, {((atan(\x)*pi/180) + pi/2)/pi});
\pause
\draw [very thick, cyclamen, <->] (0.5,2.5) -- (0.5,3.25);