A scatter matrix is a grid of pairwise scatter plots for several numeric columns, giving a fast visual survey of relationships across a data set. Its diagonal uses histograms to show each column’s distribution. section 11.14
Build the matrix around a concrete comparison:
- Load oil prices, ice-cream consumption, and miles traveled as separate indexed data frames. section 11.13
Oil, ice cream, and miles
A matrix built from the three joined columns can reveal that oil prices, ice-cream consumption, and miles driven move together over time. Use df.corr() alongside the plots: the matrix helps locate patterns quickly, while correlation gives a clearer indication of relationship strength. These observations do not by themselves establish causation. section 11.14

