Compute the baseline statistic from train rows only.
Add only train rows
The train sum is 2 + 4 + 6 = 12.
2+4+6=12
Divide by train count
There are 3 train rows, so the train mean is 12 divided by 3 = 4.
312=4
Test rows are not in this statistic
Rows D and E do not contribute to the train sum, train count, or train mean.
train statistic uses train rows only