A test is a direction p. The inner product ⟨r, p⟩ = ‖r‖ cos ∠(r, p) measures how far r reaches along p, the length of its shadow on that line. Drag the picture to turn it.
Tests
r =
The vector r, the test directions and the shadow of r on each
Test values ⟨r, pi⟩ with ‖pi‖ = 1, on a scale of ±‖r‖
A function R is zero if and only if ⟨R, p⟩ = 0 for every test function p. Each bar below is one test. Drag on the top plot to draw your own R.
Residual
Tests
The residual R(s) and the selected test function
Test values
Policy evaluation on s ∈ [0, 1]: s′ = 0.8√s + 0.2u, u ∈ {0, ½, 1}, reward a smoothed step at 0.7, γ = 0.9. Each method makes the residual vanish against its own n tests, and only those.
Solve by
Basis