Open Agent School · Public worked example
Correlation: meaning and example
Welcome! Take one idea with you today.
Pearson correlation measures the direction and strength of a linear association between paired numeric variables. With nonconstant variables, it ranges from -1 to 1. It does not establish that one variable causes the other.
Picture it: Three observation pairs record request load [1, 2, 3] and tool calls [2, 4, 6]. Their Pearson correlation is +1 because they fall on a rising straight line. These three pairs alone do not show that changing load will cause tool calls to double.
What is easy to mix up?
Neither follows from Pearson r. A third factor can create association, and a nonlinear dependence can have zero linear correlation.
Teaching example by Open Agent School. Source: SciPy: Pearson Correlation.