Correlogram Analysis
\begin{tikzpicture}[scale=0.8]
% Draw correlation matrix
\draw[fill=blue!30] (0,0) rectangle (1,1);
\draw[fill=red!50] (1,0) rectangle (2,1);
\draw[fill=red!70] (2,0) rectangle (3,1);
\draw[fill=red!60] (3,0) rectangle (4,1);
\draw[fill=red!50] (0,1) rectangle (1,2);
\draw[fill=blue!30] (1,1) rectangle (2,2);
\draw[fill=blue!20] (2,1) rectangle (3,2);
\draw[fill=blue!10] (3,1) rectangle (4,2);
\draw[fill=red!70] (0,2) rectangle (1,3);
\draw[fill=blue!20] (1,2) rectangle (2,3);
\draw[fill=blue!30] (2,2) rectangle (3,3);
\draw[fill=red!90] (3,2) rectangle (4,3);
\draw[fill=red!60] (0,3) rectangle (1,4);
\draw[fill=blue!10] (1,3) rectangle (2,4);
\draw[fill=red!90] (2,3) rectangle (3,4);
\draw[fill=blue!30] (3,3) rectangle (4,4);
% Labels
\node at (0.5,-0.3) {\tiny Sep.L};
\node at (1.5,-0.3) {\tiny Sep.W};
\node at (2.5,-0.3) {\tiny Pet.L};
\node at (3.5,-0.3) {\tiny Pet.W};
\node at (-0.3,0.5) {\tiny Sep.L};
\node at (-0.3,1.5) {\tiny Sep.W};
\node at (-0.3,2.5) {\tiny Pet.L};
\node at (-0.3,3.5) {\tiny Pet.W};
% Correlation values
\node at (2.5,0.5) {\tiny 0.96};
\node at (3.5,2.5) {\tiny 0.96};
\node at (1.5,0.5) {\tiny -0.12};
\end{tikzpicture}
Strong correlation: Petal length ↔ Petal width (r=0.96)
Box Plot Insights
\begin{tikzpicture}[scale=0.7]
% Three box plots for species
\foreach \x/\species/\color in {1/setosa/green, 2.5/versicolor/blue, 4/virginica/red} {
% Box plot structure
\draw[thick, \color] (\x-0.3,0.5) rectangle (\x+0.3,1.5);
\draw[thick, \color] (\x-0.3,1) -- (\x+0.3,1);
\draw[thick, \color] (\x,0.2) -- (\x,0.5);
\draw[thick, \color] (\x,1.5) -- (\x,1.8);
% Species labels
\node at (\x,-0.2) {\tiny \species};
% Add some outliers for virginica
\ifnum\x=4
\fill[\color] (\x,2.2) circle (0.05);
\fill[\color] (\x,0.1) circle (0.05);
\fi
}
\node at (2.5,2.5) {\small Petal Length by Species};
\end{tikzpicture}
Clear separation: Species distinguishable by petal features